@ckeditor/ckeditor5-footnotes 0.0.0-nightly-next-20251216.0 → 0.0.0-nightly-next-20251217.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={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:()=>Y,FootnotesClipboard:()=>L,FootnotesEditing:()=>v,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>p,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=128]})(t,e)}function c(){const t=["nodeAfter","attributes","remove","elementName","6975MpwHKi","name","getItems","push","getChanges","values","_getElementKey","length","getElementKey","root","type","714696fzTohL","createRangeOn","_model","delete","get","252MNRnoM","clear","$text","add","position","5868331vNygOG","rootName","slice","element","insert","1251618vqqlFq","280964sKlivg","3280050RsCBRo","has","set","4811875PsEQAK","_trackedElements","reset","_elementName","from","99RTLHRz","$graveyard","flat"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(493174===parseInt(e(155))/1+parseInt(e(154))/2+-parseInt(e(128))/3*(-parseInt(e(144))/4)+-parseInt(e(159))/5+parseInt(e(156))/6+parseInt(e(149))/7+parseInt(e(139))/8*(-parseInt(e(164))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(141)];[r(162)];[r(134)];[r(160)]=new Map;constructor(t,e){const o=r;this[o(141)]=t,this[o(162)]=e[o(170)],this[o(134)]=e[o(136)]}[r(161)](){const t=r;this[t(160)][t(145)]()}[r(132)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(153)===i[e(138)]&&e(146)!==i[e(129)]&&i[e(148)][e(167)]){const t=this[e(141)][e(140)](i[e(148)][e(167)]);for(const o of t[e(130)]()){if(!o.is(e(152),this[e(162)]))continue;const t=this[e(134)](o);n[e(157)](t)||n[e(158)](t,[]),n[e(143)](t)[e(131)](o)}}if(e(169)===i[e(138)]&&i[e(129)]===this[e(162)]){const t=this[e(134)]({getAttribute:t=>i[e(168)][e(143)](t)});o[e(147)](t)}}for(const[t,n]of this[e(160)])e(165)===n[e(137)][e(150)]&&o[e(147)](t);for(const t of o)this[e(160)][e(142)](t);for(const[t,o]of n)this[e(160)][e(158)](t,o[o[e(135)]-1]);const i=new Set;for(const[t,s]of n)o[e(157)](t)&&(i[e(147)](s[0]),s[e(135)]>1?n[e(158)](t,s[e(151)](1)):n[e(142)](t),o[e(142)](t));return{removed:Array[e(163)](o),inserted:Array[e(163)](n[e(133)]())[e(166)](),moved:Array[e(163)](i)}}}function u(t,e){const o=d();return(u=function(t,e){return o[t-=339]})(t,e)}const f=u;function d(){const t=["_footnoteDefsTracker","definition","footnoteRef","add","8TIOaDq","_handleFootnotesDefinitionsObjectSync","_insertEmptyFootnotesDefinitionsContainer","footnoteId","setAttribute","reference","_ensureFootnotesReferencesHaveProperOrder","_footnotesDefinitions","has","getChanges","set","compareWith","parent","footnotesDefinitions","before","footnoteCounter","move","getChildren","singleton","model","getFootnotesDefinitionsObjectElement","after","push","high","getFootnotes","11464SlreoC","_footnotes","_sortFootnoteDefinitions","document","$graveyard","2270073GBgXFN","listenTo","rootName","getFootnote","createPositionAt","find","editor","enqueueChange","isOfficialPlugin","reset","get","1770DYdHfZ","change:data","_handleFootnoteReferencesChanges","insert","remove","root","_updateFootnotesCounters","splice","registerPostFixer","findIndex","3085068eENmct","_ensureFootnotesDefinitionsContainerExists","footnoteInlineContent","append","unshift","footnoteDefinition","pluginName","indexOf","_footnoteDefsContainerTracker","config","low","createPositionBefore","some","_updateFootnoteRefCounter","paragraph","min","isEqual","isPremiumPlugin","createRangeIn","length","_footnoteFormatter","setFootnoteFormatter","from","getRootNames","43838rlRmVd","71598wTgjGI","5670yzNeKq","_handleMovedFootnoteReference","getFootnotesFormatter","1195388wuDlaK","_handleFootnotesDefinitionsObjectChanges","init","getAttribute","footnotes.multiBlock","_handleInsertedFootnoteReference","differ","_handleRemoveFootnoteReferenceById","createRangeOn","childCount","_handleFootnoteDefinitionsChanges","475wwMjzT","26576UGIIUR","createElement","FootnotesTracker","end","map","_footnoteRefsTracker"];return(d=function(){return t})()}!function(t){const e=u,o=t();for(;;)try{if(593379===parseInt(e(438))/1*(parseInt(e(411))/2)+parseInt(e(366))/3+parseInt(e(416))/4+parseInt(e(427))/5*(parseInt(e(412))/6)+-parseInt(e(387))/7+parseInt(e(361))/8*(-parseInt(e(413))/9)+parseInt(e(377))/10*(-parseInt(e(428))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class p extends t.Plugin{[f(362)]=[];[f(343)]=null;[f(407)]=null;[f(395)];[f(433)];[f(434)];static get[f(393)](){return f(430)}static get[f(374)](){return!0}static get[f(404)](){return!0}constructor(t){const e=f;super(t),this[e(395)]=new l(this[e(372)][e(355)],{elementName:e(349),getElementKey:()=>e(354)}),this[e(433)]=new l(this[e(372)][e(355)],{elementName:e(436),getElementKey:t=>t[e(419)](e(339))}),this[e(434)]=new l(this[e(372)][e(355)],{elementName:e(392),getElementKey:t=>t[e(419)](e(339))})}[f(418)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(364)][t(385)](e=>{const n=t,i=o[n(364)][n(422)][n(345)]();let s=!1;return this[n(417)](e,i)&&(s=!0),this[n(426)](e,i)&&(s=!0),this[n(379)](e,i)&&(s=!0),this[n(342)](e)&&(s=!0),this[n(439)](e)&&(s=!0),this[n(363)](e)&&(s=!0),s}),this[t(367)](o[t(364)],t(378),()=>{const e=t;o[e(373)]({isUndoable:!1},t=>{this[e(388)](t)})},{priority:t(397)}),this[t(367)](n,t(346),()=>{const e=t;this[e(362)]=[],this[e(395)][e(375)](),this[e(433)][e(375)](),this[e(434)][e(375)]()},{priority:t(359)})}[f(356)](){return this[f(343)]}[f(369)](t){const e=f;return this[e(362)][e(371)](e=>e.id===t)||null}[f(360)](){const t=f;return Array[t(409)](this[t(362)])}[f(415)](){return this[f(407)]}[f(408)](t){this[f(407)]=t}[f(383)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(362)][o(406)];i++)this[o(400)](t,i)&&(n=!0);return n}[f(440)](t,e){const o=f,n=t[o(429)](o(349),{});return t[o(390)](n,e),this[o(343)]=n,n}[f(388)](t){const e=f;if(!this[e(362)][e(406)]||this[e(343)])return;const o=this[e(362)][0][e(341)][e(382)],n=this[e(440)](t,o);for(const o of this[e(362)])o[e(435)][e(348)]||t[e(380)](o[e(435)],n,e(431));this[e(383)](t)}[f(417)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(395)][o(345)](e);if(r[o(406)]&&(this[o(343)]=r[0]),i[o(406)])if(i[o(406)]>1||this[o(343)]&&i[o(399)](t=>t!==this[o(343)])){const e=t[o(429)](o(349),{}),s=[];this[o(343)]&&s[o(358)](this[o(343)]),s[o(358)](...i),t[o(380)](e,s[0],o(350));for(const n of s)t[o(352)](t[o(405)](n),t[o(370)](e,o(431))),t[o(381)](n);this[o(343)]=e,this[o(383)](t),n=!0}else this[o(343)]=i[0];if(s[o(406)]&&o(365)===this[o(343)]?.[o(382)][o(368)]){for(const e of this[o(362)])t[o(381)](e[o(341)]),n=!0;this[o(362)]=[],this[o(343)]=null}return n}[f(426)](t,e){const o=f;let n=!1;const i=this[o(372)][o(396)][o(376)](o(420)),{inserted:s,moved:r}=this[o(434)][o(345)](e);for(const e of[...r,...s]){const s=e[o(419)](o(339)),r=this[o(369)](s);r&&(r[o(435)]=e),h(t,i,e)&&(n=!0)}return n}[f(379)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(433)][o(345)](e);for(const e of i)this[o(423)](t,e)&&(n=!0);for(const e of s)this[o(421)](t,e)&&(n=!0);for(const e of r)this[o(414)](t,e)&&(n=!0);return n}[f(439)](t){const e=f;if(!this[e(343)])return!1;let o=!1;if(this[e(343)][e(425)]!==this[e(362)][e(406)]){const n=[];for(const t of this[e(343)][e(353)]()){const i=t[e(419)](e(339));this[e(369)](i)||(n[e(391)](t),o=!0)}for(const o of n)t[e(381)](o)}const n=new Set,i=[];for(const t of this[e(343)][e(353)]()){const s=t[e(419)](e(339));n[e(344)](s)?(i[e(391)](t),o=!0):n[e(437)](s)}for(const o of i)t[e(381)](o);return this[e(343)][e(425)]||(t[e(381)](this[e(343)]),this[e(343)]=null,o=!0),o}[f(421)](t,e){const o=f;if(this[o(362)][o(371)](t=>t[o(341)]===e))return!1;let n=!1;const i=e[o(419)](o(339)),s=this[o(362)][o(386)](t=>t.id===i);-1!==s&&(t[o(381)](this[o(362)][s][o(341)]),this[o(362)][o(384)](s,1),n=!0);let r=this[o(343)]?function(t,e){const n=o;for(const o of t[n(353)]())if(o[n(419)](n(339))===e)return o;return null}(this[o(343)],i):null;r||(r=t[o(429)](o(392),{footnoteId:i}),this[o(343)]&&(t[o(380)](r,this[o(343)],o(431)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(372)][o(355)],this[o(362)],e);this[o(362)][o(384)](c,0,a);let l=c;return-1!==s&&(l=Math[o(402)](c,s)),this[o(383)](t,l)&&(n=!0),n}[f(423)](t,e){const o=f,n=this[o(362)][o(386)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(362)][n];return o(365)!==s[o(435)][o(382)][o(368)]&&(t[o(381)](s[o(435)]),i=!0),this[o(362)][o(384)](n,1),this[o(383)](t,n)&&(i=!0),i}[f(414)](t,e){const o=f,n=e[o(419)](o(339)),i=this[o(362)][o(386)](t=>t.id===n),s=this[o(362)][i];let r=!1;s[o(341)]=e,this[o(362)][o(384)](i,1);const a=m(this[o(372)][o(355)],this[o(362)],e);return this[o(362)][o(384)](a,0,s),this[o(383)](t,Math[o(402)](i,a))&&(r=!0),r}[f(400)](t,e){const o=f;if(!this[o(343)])return!1;const n=this[o(362)][e];let i;return i=this[o(407)]?this[o(407)]({footnote:n,container:this[o(343)],digits:String(this[o(362)][o(406)])[o(406)],value:e+1}):String(e+1),n[o(341)][o(419)](o(351))!=i&&(t[o(340)](o(351),i,n[o(341)]),!0)}[f(363)](t){const e=f;if(!this[e(343)]||this[e(362)][e(406)]<2)return!1;if(function(t,o){const n=e;if(t[n(406)]!==o[n(406)])return!1;for(let e=0;e<t[n(406)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(362)][e(432)](t=>t.id),Array[e(409)](this[e(343)][e(353)]())[e(432)](t=>t[e(419)](e(339)))))return!1;let o=!1;for(let n=0;n<this[e(362)][e(406)];n++){const i=this[e(362)][n],s=t[e(398)](i[e(435)]),r=t[e(370)](this[e(343)],n);s[e(403)](r)||(t[e(352)](t[e(424)](i[e(435)]),r),o=!0)}return o}[f(342)](t){const e=f;if(!this[e(362)][e(406)])return!1;const{model:o}=this[e(372)];let n=!1;for(let i=0;i<this[e(362)][e(406)]-1;i++){const s=this[e(362)][i],r=this[e(362)][i+1],a=o[e(398)](s[e(341)]),c=o[e(398)](r[e(341)]);e(357)===a[e(347)](c)&&(this[e(414)](t,s[e(341)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=f;if(o[n(425)])return!1;const i=n(e?401:389);return t[n(380)](t[n(429)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(406)])return 0;const i=t[n(398)](o);for(let o=0;o<e[n(406)];o++){const s=e[o],r=t[n(398)](s[n(341)]);if(n(350)===i[n(347)](r))return o}const s=o[n(382)];let r=-1;for(let t=e[n(406)]-1;t>=0;t--)if(e[t][n(341)][n(382)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(364)][n(410)](),c=a[n(394)](s[n(368)]),l=a[c+1];if(l)for(let t=0;t<e[n(406)];t++)if(e[t][n(341)][n(382)][n(368)]===l)return t;return e[n(406)]}const g=y;function w(){const t=["get","FootnotesEditing","selection","881054jeZxxe","460272kIPmLx","test","470bKkwPB","model","isBlock","4011JgOOxr","execute","footnoteId","10OqEiZJ","change","9817587TStEwB","end","footnoteRef","2234280QsuHKq","258zpcDSZ","insertObject","insert-footnote-command-executed-with-invalid-id","2440395XCjgOW","_moveSelectionToFootnoteDefinition","getItems","checkChild","refresh","_getPositionToInsertFootnote","plugins","3608LomfDH","getFirstRange","length","string","isObject","isEnabled","editor","createElement","document"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=493]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(466981===parseInt(e(509))/1+-parseInt(e(508))/2+-parseInt(e(526))/3+parseInt(e(496))/4*(-parseInt(e(511))/5)+-parseInt(e(523))/6*(parseInt(e(514))/7)+parseInt(e(522))/8+parseInt(e(519))/9*(parseInt(e(517))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(493)](){const t=g,e=this[t(502)][t(512)][t(504)][t(507)],o=this[t(494)](e);this[t(501)]=!!o}[g(515)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(504)],r=this[e(494)](s);if(!r)return;const a=o[e(495)][e(505)](e(506)),c=t?.[e(516)]??(0,i.uid)();!function(t){const o=e;return o(499)==typeof t&&t[o(498)]>0&&!/\s/[o(510)](t)&&!/^\d/[o(510)](t)}(c)?(0,i.logWarning)(e(525)):(n[e(518)](t=>{const o=e,i=t[o(503)](o(521),{footnoteId:c});n[o(524)](i,r,null)}),a[e(527)](c))}[g(494)](t){const e=g,{model:o}=this[e(502)],{schema:n}=o,i=t[e(497)]();for(const t of i[e(528)]())if(n[e(513)](t)||n[e(500)](t))return null;const s=i[e(520)];return n[e(529)](s,e(521))?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=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1765843200;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(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})=>T(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(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 T(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 P=_;function D(){const t=["_handleCopyFootnotesDefinitions","element","footnoteId","1155AurLuB","getRanges","createRangeIn","7flhFqG","append","insert","sourceEditorId","root","end","selection","editor","definition","footnoteInlineContent","getData","remove","6yYJSaV","226kuzqTg","data","footnoteDefinition","3688QuRCWa","from","footnotes.multiBlock","isOfficialPlugin","editing","3944560vWTCwF","footnotesDefinitions","requires","add","content","flatMap","_handlePasteFootnotesDefinitions","config","find","getFirstRange","181317aSNgnz","1282915FZlsIr","getFootnotesDefinitionsObjectElement","70pZHrbC","921947yEbRsx","FootnotesClipboard","method","length","outputTransformation","10KajHns","setAttribute","listenTo","dataTransfer","htmlProcessor","12SLTYDa","getAttribute","push","create","_insertEmptyFootnotesDefinitionsContainer","_defineClipboardIntegration","toView","application/ckeditor5-footnotes","reduce","includes","createElement","init","entries","setData","drop","295155tTaJou","stringify","footnoteRef","toModel","get","contentInsertion","document","isPremiumPlugin","10596skDquK","parse","getFootnotes","toData","getFootnote","clipboardInput","getSelectedBlocks","change","pluginName"];return(D=function(){return t})()}function _(t,e){const o=D();return(_=function(t,e){return o[t-=203]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(293615===parseInt(e(237))/1*(parseInt(e(234))/2)+parseInt(e(252))/3*(-parseInt(e(266))/4)+parseInt(e(253))/5*(parseInt(e(233))/6)+-parseInt(e(221))/7*(parseInt(e(242))/8)+parseInt(e(281))/9*(parseInt(e(261))/10)+parseInt(e(218))/11*(-parseInt(e(206))/12)+-parseInt(e(256))/13*(-parseInt(e(255))/14))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class L extends t.Plugin{static get[P(214)](){return P(257)}static get[P(244)](){return[v,S.ClipboardPipeline]}static get[P(240)](){return!0}static get[P(205)](){return!0}[P(277)](){this[P(271)]()}[P(271)](){const t=P;this[t(215)](),this[t(248)]()}[P(215)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(285)](S.ClipboardPipeline),s=o[t(285)](p);this[t(263)](i,t(260),(o,i)=>{const r=t,a=A(n[r(220)](i[r(246)]));if(!a[r(259)])return;const c=s[r(208)](),l=a[r(274)]((t,o)=>{const n=r,i=c[n(250)](t=>t.id===o);if(i){const o=e[n(235)][n(272)](i[n(229)],{isClipboardPipeline:!0}),s=e[n(235)][n(265)][n(209)](o);t[i.id]=s}return t},Object[r(269)](null));i[r(264)][r(279)](r(273),JSON[r(282)](l))})}[P(248)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(241)],r=n[t(285)](S.ClipboardPipeline),a=n[t(285)](p),c=e[t(249)][t(285)](t(239));let l=null;this[t(263)](s[t(204)],t(211),(e,o)=>{const n=t,i=o[n(264)][n(231)](n(273));l=i?JSON[n(207)](i):null}),this[t(263)](r,t(203),(n,s)=>{const r=t,u=s[r(224)]===this[r(228)].id;u&&r(280)===s[r(258)]||o[r(213)](t=>{const n=r;let f=a[n(254)]();const d=!!f&&Array[n(238)](o[n(204)][n(227)][n(212)]())[n(275)](f);if((f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(220)](e))n.is(o(216),o(243))&&i[o(268)](n);for(const e of i)t[o(232)](e)}(t,s[n(246)]),!l)return;const{selection:p}=o[n(204)],h=p[n(251)]()[n(225)];f&&!d||(f=function(t,e){const o=n;for(const{item:n}of t[o(220)](e))if(n.is(o(216),o(243)))return n;return null}(t,s[n(246)]),f||=a[n(270)](t,h));const m=Array[n(238)](p[n(219)]())[n(247)](A),g=function(t,e,o){const s=n,r=Object[s(269)](null);for(const{item:n}of t[s(220)](e))if(n.is(s(216),s(283))){const e=n[s(267)](s(217));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(262)](s(217),r[e],n)}return r}(t,s[n(246)],t=>{const e=n;return!u||!!a[e(210)](t)&&!m[e(275)](t)});for(const[o,i]of Object[n(278)](l)){const s=g[o]||o,r=t[n(276)](n(236),{footnoteId:s}),a=e[n(235)][n(265)][n(272)](i);let l;if(c)l=e[n(235)][n(284)](a,r);else{l=t[n(276)](n(230));const o=e[n(235)][n(284)](a,l);t[n(223)](o,l)}t[n(222)](l,r),t[n(223)](r,f,n(226))}l=null})})}}function A(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(216),e(283))&&o[e(245)](n[e(267)](e(217)));return Array[e(238)](o)}var V=o(311),R=o(355),O=o(929),N=o.n(O),K=o(297),j=o.n(K),M=o(102),B=o.n(M),z=o(123),q=o.n(z),H=o(741),U=o.n(H),W=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=q(),G.insert=B().bind(null,"head"),G.domAPI=j(),G.insertStyleElement=U();N()(W.A,G);W.A&&W.A.locals&&W.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",Z(t,V.ButtonView)),e.add("menuBar:insertFootnote",Z(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function J(){var t=["1YrPFyF","338040VnmSJo","3811540OymbRz","2557318JJFPeW","3391731cQIMbt","pluginName","9241477vzqvTB","8ljiRMX","3890610nPokaf","isPremiumPlugin","Footnotes","requires","33fHsMLE","35234859sBBadG","isOfficialPlugin","12CtsBVw"];return(J=function(){return t})()}var $=Q;function Q(t,e){var o=J();return(Q=function(t,e){return o[t-=270]})(t,e)}!function(t){for(var e=Q,o=t();;)try{if(802697===parseInt(e(271))/1*(-parseInt(e(274))/2)+-parseInt(e(283))/3*(parseInt(e(272))/4)+parseInt(e(273))/5*(-parseInt(e(270))/6)+-parseInt(e(277))/7*(-parseInt(e(278))/8)+-parseInt(e(275))/9+parseInt(e(279))/10+parseInt(e(284))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(J);class Y extends t.Plugin{static get[$(276)](){return $(281)}static get[$(282)](){return[v,L,X]}static get[$(285)](){return!0}static get[$(280)](){return!0}}const tt=et;function et(t,e){const o=nt();return(et=function(t,e){return o[t-=189]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(574090===parseInt(e(203))/1+parseInt(e(200))/2+-parseInt(e(191))/3*(-parseInt(e(192))/4)+-parseInt(e(198))/5+parseInt(e(190))/6+parseInt(e(205))/7+parseInt(e(195))/8*(-parseInt(e(196))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[tt(189),tt(197),tt(194),tt(201),tt(199),tt(202),tt(193),tt(204)];function nt(){const t=["lower-alpha","78660lTzFcD","upper-latin","upper-alpha","1137926Kknzkq","upper-roman","3738735AgkVmh","decimal","4226538elDnzv","3GxvpRs","1167736BbjVSF","lower-roman","lower-latin","323368hunbwO","288VTzIhE","decimal-leading-zero","4200780HoofkX"];return(nt=function(){return t})()}const it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=238]})(t,e)}function rt(){const t=["get","refresh","524972GwWFFp","14197779uyOhtm","change","2183236xUwevM","value","3465910pmZLEv","3505071wbmZIF","model","6BPOOqf","188312IdmWsZ","103478imeMCj","getFootnotesDefinitionsObjectElement","execute","includes","plugins","footnotesListStyle","22nURosR","_updateFootnotesCounters","getAttribute","isEnabled","setAttribute"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(633168===-parseInt(e(259))/1*(-parseInt(e(242))/2)+parseInt(e(255))/3+parseInt(e(252))/4+-parseInt(e(254))/5+parseInt(e(257))/6*(parseInt(e(249))/7)+-parseInt(e(258))/8+-parseInt(e(250))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(248)](){const t=it,{editor:e}=this,o=e[t(240)][t(247)](p)[t(260)]();this[t(245)]=!!o,this[t(253)]=o?.[t(244)](t(241))??null}[it(238)]({value:t}){const e=it,{editor:o}=this,n=o[e(240)][e(247)](p),i=n[e(260)]();i&&ot[e(239)](t)&&o[e(256)][e(251)](o=>{const s=e;o[s(246)](s(241),t,i),n[s(243)](o)})}}const ct=ut;function lt(){const t=["1992624wjEhpp","plugins","refresh","value","footnotesListStart","isEnabled","9864LCqryI","getFootnotesDefinitionsObjectElement","change","setAttribute","2363097IdsHjd","26jSwppy","4361tmYXnZ","_updateFootnotesCounters","getAttribute","12251DHFEzy","20LTuSRC","isInteger","model","91gpYTcI","3818488BEqiaJ","10vGRgmL","6285818XkZEtD","9ExsoXz","execute","663540XPpwMa","get"];return(lt=function(){return t})()}function ut(t,e){const o=lt();return(ut=function(t,e){return o[t-=331]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(627175===-parseInt(e(355))/1*(parseInt(e(351))/2)+-parseInt(e(350))/3+parseInt(e(356))/4*(parseInt(e(338))/5)+parseInt(e(346))/6*(parseInt(e(352))/7)+-parseInt(e(333))/8*(-parseInt(e(336))/9)+parseInt(e(334))/10*(parseInt(e(335))/11)+parseInt(e(340))/12*(-parseInt(e(332))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ft extends t.Command{[ct(342)](){const t=ct,{editor:e}=this,o=e[t(341)][t(339)](p)[t(347)]();this[t(345)]=!!o,this[t(343)]=o?.[t(354)](t(344))??null}[ct(337)]({value:t}){const e=ct,{editor:o}=this,n=o[e(341)][e(339)](p),i=n[e(347)]();i&&Number[e(357)](t)&&o[e(331)][e(348)](o=>{const s=e;o[s(349)](s(344),t,i),n[s(353)](o)})}}const dt=pt;function pt(t,e){const o=mt();return(pt=function(t,e){return o[t-=468]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(572642===parseInt(e(493))/1+-parseInt(e(501))/2*(parseInt(e(499))/3)+parseInt(e(566))/4+-parseInt(e(533))/5+parseInt(e(557))/6+-parseInt(e(468))/7+parseInt(e(505))/8*(parseInt(e(470))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(mt);class ht extends t.Plugin{static get[dt(479)](){return dt(565)}static get[dt(487)](){return[v,p]}static get[dt(503)](){return!0}static get[dt(546)](){return!0}[dt(494)](){const t=dt,{editor:e}=this;e[t(537)][t(516)](t(481),t(495)),e[t(537)][t(516)](t(508),1),e[t(559)][t(523)](t(560),new at(e)),e[t(559)][t(523)](t(483),new ft(e)),this[t(480)](),this[t(522)](),this[t(540)](),this[t(564)]()}[dt(480)](){const t=dt,{editor:e}=this,{schema:o}=e[t(485)];o[t(475)](t(498),{allowAttributes:[t(491),t(473)]})}[dt(522)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(492)](t(488))[t(523)](e=>{const o=t;e.on(o(513),(t,e,n)=>{const s=o,r=e[s(507)],a=e[s(504)]?.[s(550)];r[s(545)](s(484))&&a?.is(s(529),s(498))&&(function(t,e,o,n){const i=s;if(!n[i(497)](e,i(473)))return;let r=1;const a=o[i(555)][i(556)](t,{attributes:i(518)});if(a){const e=Number[i(553)](t[i(496)](i(518)),10);Number[i(535)](e)||(r=e)}!a&&e[i(539)](i(473))||o[i(561)][i(528)](i(473),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(497)](e,i(491)))return;let r=i(495),a=!1;if(o[i(555)][i(556)](t,{attributes:i(543)})){const e={1:i(495),a:i(472),A:i(476),i:i(489),I:i(510)}[t[i(496)](i(543))];e&&(r=e),a=!0}o[i(555)][i(556)](t,{styles:i(536)})&&(r=function(t){const e=i;switch(t){case e(472):return e(471);case e(476):return e(502);default:return t}}(t[i(527)](i(536))),a=!0),!a&&e[i(539)](i(491))||o[i(561)][i(528)](i(491),r,e)}(r,a,n,i))})}),o[t(492)](t(469))[t(523)](e=>{const o=t;e.on(o(519),(t,e,n)=>{const i=o;if(!n[i(555)][i(556)](e[i(531)],t[i(538)]))return;const s=gt(e[i(531)],n[i(520)]),{attributeNewValue:r}=e;null==r||1===r?n[i(561)][i(477)](i(518),s):n[i(561)][i(528)](i(518),String(r),s)}),e.on(o(524),(t,e,n)=>{const i=o;if(!n[i(555)][i(556)](e[i(531)],t[i(538)]))return;const s=gt(e[i(531)],n[i(520)]),{attributeNewValue:r}=e;r&&i(495)!==r?n[i(561)][i(542)](i(536),r,s):n[i(561)][i(506)](i(536),s)})})}[dt(564)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(525)][t(515)](p),i=this[t(509)](),s=this[t(521)]();o[t(551)][t(534)](e=>{const r=t,a=o[r(551)][r(526)][r(490)]();let c=!1;for(const t of a){if(r(562)!==t[r(543)]||r(563)===t[r(538)])continue;const n=o[r(486)](t[r(512)][r(530)]);for(const t of n[r(517)]())t.is(r(529),r(498))&&(!t[r(539)](r(473))&&o[r(532)][r(497)](t,r(473))&&(e[r(528)](r(473),s,t),c=!0),!t[r(539)](r(491))&&o[r(532)][r(497)](t,r(491))&&(e[r(528)](r(491),i,t),c=!0))}return c&&n[r(500)](e),c})}[dt(540)](){const t=dt,{editor:e}=this;e[t(525)][t(515)](p)[t(511)](e=>this[t(541)](e))}[dt(509)](){const t=dt;return this[t(547)][t(537)][t(515)](t(481))}[dt(521)](){const t=dt;return this[t(547)][t(537)][t(515)](t(508))}[dt(541)]({container:t,value:e,digits:o}){const n=dt,i=t[n(496)](n(491)),s=t[n(496)](n(473)),r=Math[n(567)](e)+(s??1)-1;switch(i){case n(558):return function(t,e){const o=n;return String(t)[o(478)](e,"0")}(r,Math[n(544)](2,o));case n(472):case n(471):return wt(r,!1);case n(476):case n(502):return wt(r,!0);case n(489):return bt(r,!1);case n(510):return bt(r,!0);default:return String(r)}}}function mt(){const t=["registerPostFixer","isNaN","list-style-type","config","name","hasAttribute","_defineFormatter","_formatFootnoteListValue","setStyle","type","max","hasClass","isPremiumPlugin","editor","toUpperCase","getChildren","parent","document","fromCharCode","parseInt","find","consumable","consume","2019474cIIkbM","decimal-leading-zero","commands","footnotesStyle","writer","insert","$text","_definePostfixer","FootnotesPropertiesEditing","2800280QZdTBz","floor","5274122lZtXmJ","downcast","9JzghBG","lower-latin","lower-alpha","footnotesListStart","toLowerCase","extend","upper-alpha","removeAttribute","padStart","pluginName","_defineSchema","footnotes.footnotesProperties.defaultListStyle","toViewElement","footnotesStart","footnotes-list","model","createRangeOn","requires","upcast","lower-roman","getChanges","footnotesListStyle","for","134929PGMWZf","init","decimal","getAttribute","checkAttribute","footnotesDefinitions","1584333GtxhVw","_updateFootnotesCounters","2nwbPDI","upper-latin","isOfficialPlugin","modelCursor","12179200MDZQKu","removeStyle","viewItem","footnotes.footnotesProperties.defaultStartIndex","_getDefaultListStyle","upper-roman","setFootnoteFormatter","position","element:ol","from","get","define","getItems","start","attribute:footnotesListStart:footnotesDefinitions","mapper","_getDefaultStartIndex","_defineConverters","add","attribute:footnotesListStyle:footnotesDefinitions","plugins","differ","getStyle","setAttribute","element","nodeAfter","item","schema","4198895LcZrSj"];return(mt=function(){return t})()}function gt(t,e){const o=dt,n=e[o(482)](t);return Array[o(514)](n[o(549)]())[o(554)](t=>t.is(o(529),"ol")&&t[o(545)](o(484)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(552)](97+t)+n,i=Math[o(567)]((i-1)/26)}return e?n[o(548)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(474)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=q(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=U();N()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon: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 V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Tt();return(xt=function(t,e){return o[t-=103]})(t,e)}!function(t){for(var e=xt,o=t();;)try{if(459567===parseInt(e(107))/1+parseInt(e(105))/2+-parseInt(e(117))/3*(-parseInt(e(114))/4)+parseInt(e(113))/5*(parseInt(e(115))/6)+parseInt(e(109))/7*(-parseInt(e(111))/8)+parseInt(e(116))/9+-parseInt(e(104))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt);class Et extends t.Plugin{static get[Ft(103)](){return Ft(108)}static get[Ft(106)](){return[ht,Ct]}static get[Ft(112)](){return!0}static get[Ft(110)](){return!0}}function Tt(){var t=["FootnotesProperties","168RKiQCx","isPremiumPlugin","215984GxeERg","isOfficialPlugin","4575VhtsDI","284XQzdUY","4848wDmyir","4943673DExaXa","31047vlxbqy","pluginName","14733060xEgxmo","933562OxXTWf","requires","90648yuFZlV"];return(Tt=function(){return t})()}function St(){var t=["972zlaCwO","527787UZNzkp","132494tIjavd","345023OekXgA","1053afbgXb","10bLmdsi","23459FQuqUV","46590GwDvGG","80KQVczb","75760HXBHPK"];return(St=function(){return t})()}function Pt(t,e){var o=St();return(Pt=function(t,e){return o[t-=398]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(102303===-parseInt(e(407))/1+parseInt(e(403))/2+parseInt(e(405))/3*(parseInt(e(401))/4)+parseInt(e(399))/5*(-parseInt(e(398))/6)+parseInt(e(404))/7+-parseInt(e(400))/8+parseInt(e(402))/9*(parseInt(e(406))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),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:()=>Y,FootnotesClipboard:()=>L,FootnotesEditing:()=>v,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>p,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=128]})(t,e)}function c(){const t=["nodeAfter","attributes","remove","elementName","6975MpwHKi","name","getItems","push","getChanges","values","_getElementKey","length","getElementKey","root","type","714696fzTohL","createRangeOn","_model","delete","get","252MNRnoM","clear","$text","add","position","5868331vNygOG","rootName","slice","element","insert","1251618vqqlFq","280964sKlivg","3280050RsCBRo","has","set","4811875PsEQAK","_trackedElements","reset","_elementName","from","99RTLHRz","$graveyard","flat"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(493174===parseInt(e(155))/1+parseInt(e(154))/2+-parseInt(e(128))/3*(-parseInt(e(144))/4)+-parseInt(e(159))/5+parseInt(e(156))/6+parseInt(e(149))/7+parseInt(e(139))/8*(-parseInt(e(164))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(141)];[r(162)];[r(134)];[r(160)]=new Map;constructor(t,e){const o=r;this[o(141)]=t,this[o(162)]=e[o(170)],this[o(134)]=e[o(136)]}[r(161)](){const t=r;this[t(160)][t(145)]()}[r(132)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(153)===i[e(138)]&&e(146)!==i[e(129)]&&i[e(148)][e(167)]){const t=this[e(141)][e(140)](i[e(148)][e(167)]);for(const o of t[e(130)]()){if(!o.is(e(152),this[e(162)]))continue;const t=this[e(134)](o);n[e(157)](t)||n[e(158)](t,[]),n[e(143)](t)[e(131)](o)}}if(e(169)===i[e(138)]&&i[e(129)]===this[e(162)]){const t=this[e(134)]({getAttribute:t=>i[e(168)][e(143)](t)});o[e(147)](t)}}for(const[t,n]of this[e(160)])e(165)===n[e(137)][e(150)]&&o[e(147)](t);for(const t of o)this[e(160)][e(142)](t);for(const[t,o]of n)this[e(160)][e(158)](t,o[o[e(135)]-1]);const i=new Set;for(const[t,s]of n)o[e(157)](t)&&(i[e(147)](s[0]),s[e(135)]>1?n[e(158)](t,s[e(151)](1)):n[e(142)](t),o[e(142)](t));return{removed:Array[e(163)](o),inserted:Array[e(163)](n[e(133)]())[e(166)](),moved:Array[e(163)](i)}}}function u(t,e){const o=d();return(u=function(t,e){return o[t-=339]})(t,e)}const f=u;function d(){const t=["_footnoteDefsTracker","definition","footnoteRef","add","8TIOaDq","_handleFootnotesDefinitionsObjectSync","_insertEmptyFootnotesDefinitionsContainer","footnoteId","setAttribute","reference","_ensureFootnotesReferencesHaveProperOrder","_footnotesDefinitions","has","getChanges","set","compareWith","parent","footnotesDefinitions","before","footnoteCounter","move","getChildren","singleton","model","getFootnotesDefinitionsObjectElement","after","push","high","getFootnotes","11464SlreoC","_footnotes","_sortFootnoteDefinitions","document","$graveyard","2270073GBgXFN","listenTo","rootName","getFootnote","createPositionAt","find","editor","enqueueChange","isOfficialPlugin","reset","get","1770DYdHfZ","change:data","_handleFootnoteReferencesChanges","insert","remove","root","_updateFootnotesCounters","splice","registerPostFixer","findIndex","3085068eENmct","_ensureFootnotesDefinitionsContainerExists","footnoteInlineContent","append","unshift","footnoteDefinition","pluginName","indexOf","_footnoteDefsContainerTracker","config","low","createPositionBefore","some","_updateFootnoteRefCounter","paragraph","min","isEqual","isPremiumPlugin","createRangeIn","length","_footnoteFormatter","setFootnoteFormatter","from","getRootNames","43838rlRmVd","71598wTgjGI","5670yzNeKq","_handleMovedFootnoteReference","getFootnotesFormatter","1195388wuDlaK","_handleFootnotesDefinitionsObjectChanges","init","getAttribute","footnotes.multiBlock","_handleInsertedFootnoteReference","differ","_handleRemoveFootnoteReferenceById","createRangeOn","childCount","_handleFootnoteDefinitionsChanges","475wwMjzT","26576UGIIUR","createElement","FootnotesTracker","end","map","_footnoteRefsTracker"];return(d=function(){return t})()}!function(t){const e=u,o=t();for(;;)try{if(593379===parseInt(e(438))/1*(parseInt(e(411))/2)+parseInt(e(366))/3+parseInt(e(416))/4+parseInt(e(427))/5*(parseInt(e(412))/6)+-parseInt(e(387))/7+parseInt(e(361))/8*(-parseInt(e(413))/9)+parseInt(e(377))/10*(-parseInt(e(428))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class p extends t.Plugin{[f(362)]=[];[f(343)]=null;[f(407)]=null;[f(395)];[f(433)];[f(434)];static get[f(393)](){return f(430)}static get[f(374)](){return!0}static get[f(404)](){return!0}constructor(t){const e=f;super(t),this[e(395)]=new l(this[e(372)][e(355)],{elementName:e(349),getElementKey:()=>e(354)}),this[e(433)]=new l(this[e(372)][e(355)],{elementName:e(436),getElementKey:t=>t[e(419)](e(339))}),this[e(434)]=new l(this[e(372)][e(355)],{elementName:e(392),getElementKey:t=>t[e(419)](e(339))})}[f(418)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(364)][t(385)](e=>{const n=t,i=o[n(364)][n(422)][n(345)]();let s=!1;return this[n(417)](e,i)&&(s=!0),this[n(426)](e,i)&&(s=!0),this[n(379)](e,i)&&(s=!0),this[n(342)](e)&&(s=!0),this[n(439)](e)&&(s=!0),this[n(363)](e)&&(s=!0),s}),this[t(367)](o[t(364)],t(378),()=>{const e=t;o[e(373)]({isUndoable:!1},t=>{this[e(388)](t)})},{priority:t(397)}),this[t(367)](n,t(346),()=>{const e=t;this[e(362)]=[],this[e(395)][e(375)](),this[e(433)][e(375)](),this[e(434)][e(375)]()},{priority:t(359)})}[f(356)](){return this[f(343)]}[f(369)](t){const e=f;return this[e(362)][e(371)](e=>e.id===t)||null}[f(360)](){const t=f;return Array[t(409)](this[t(362)])}[f(415)](){return this[f(407)]}[f(408)](t){this[f(407)]=t}[f(383)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(362)][o(406)];i++)this[o(400)](t,i)&&(n=!0);return n}[f(440)](t,e){const o=f,n=t[o(429)](o(349),{});return t[o(390)](n,e),this[o(343)]=n,n}[f(388)](t){const e=f;if(!this[e(362)][e(406)]||this[e(343)])return;const o=this[e(362)][0][e(341)][e(382)],n=this[e(440)](t,o);for(const o of this[e(362)])o[e(435)][e(348)]||t[e(380)](o[e(435)],n,e(431));this[e(383)](t)}[f(417)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(395)][o(345)](e);if(r[o(406)]&&(this[o(343)]=r[0]),i[o(406)])if(i[o(406)]>1||this[o(343)]&&i[o(399)](t=>t!==this[o(343)])){const e=t[o(429)](o(349),{}),s=[];this[o(343)]&&s[o(358)](this[o(343)]),s[o(358)](...i),t[o(380)](e,s[0],o(350));for(const n of s)t[o(352)](t[o(405)](n),t[o(370)](e,o(431))),t[o(381)](n);this[o(343)]=e,this[o(383)](t),n=!0}else this[o(343)]=i[0];if(s[o(406)]&&o(365)===this[o(343)]?.[o(382)][o(368)]){for(const e of this[o(362)])t[o(381)](e[o(341)]),n=!0;this[o(362)]=[],this[o(343)]=null}return n}[f(426)](t,e){const o=f;let n=!1;const i=this[o(372)][o(396)][o(376)](o(420)),{inserted:s,moved:r}=this[o(434)][o(345)](e);for(const e of[...r,...s]){const s=e[o(419)](o(339)),r=this[o(369)](s);r&&(r[o(435)]=e),h(t,i,e)&&(n=!0)}return n}[f(379)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(433)][o(345)](e);for(const e of i)this[o(423)](t,e)&&(n=!0);for(const e of s)this[o(421)](t,e)&&(n=!0);for(const e of r)this[o(414)](t,e)&&(n=!0);return n}[f(439)](t){const e=f;if(!this[e(343)])return!1;let o=!1;if(this[e(343)][e(425)]!==this[e(362)][e(406)]){const n=[];for(const t of this[e(343)][e(353)]()){const i=t[e(419)](e(339));this[e(369)](i)||(n[e(391)](t),o=!0)}for(const o of n)t[e(381)](o)}const n=new Set,i=[];for(const t of this[e(343)][e(353)]()){const s=t[e(419)](e(339));n[e(344)](s)?(i[e(391)](t),o=!0):n[e(437)](s)}for(const o of i)t[e(381)](o);return this[e(343)][e(425)]||(t[e(381)](this[e(343)]),this[e(343)]=null,o=!0),o}[f(421)](t,e){const o=f;if(this[o(362)][o(371)](t=>t[o(341)]===e))return!1;let n=!1;const i=e[o(419)](o(339)),s=this[o(362)][o(386)](t=>t.id===i);-1!==s&&(t[o(381)](this[o(362)][s][o(341)]),this[o(362)][o(384)](s,1),n=!0);let r=this[o(343)]?function(t,e){const n=o;for(const o of t[n(353)]())if(o[n(419)](n(339))===e)return o;return null}(this[o(343)],i):null;r||(r=t[o(429)](o(392),{footnoteId:i}),this[o(343)]&&(t[o(380)](r,this[o(343)],o(431)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(372)][o(355)],this[o(362)],e);this[o(362)][o(384)](c,0,a);let l=c;return-1!==s&&(l=Math[o(402)](c,s)),this[o(383)](t,l)&&(n=!0),n}[f(423)](t,e){const o=f,n=this[o(362)][o(386)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(362)][n];return o(365)!==s[o(435)][o(382)][o(368)]&&(t[o(381)](s[o(435)]),i=!0),this[o(362)][o(384)](n,1),this[o(383)](t,n)&&(i=!0),i}[f(414)](t,e){const o=f,n=e[o(419)](o(339)),i=this[o(362)][o(386)](t=>t.id===n),s=this[o(362)][i];let r=!1;s[o(341)]=e,this[o(362)][o(384)](i,1);const a=m(this[o(372)][o(355)],this[o(362)],e);return this[o(362)][o(384)](a,0,s),this[o(383)](t,Math[o(402)](i,a))&&(r=!0),r}[f(400)](t,e){const o=f;if(!this[o(343)])return!1;const n=this[o(362)][e];let i;return i=this[o(407)]?this[o(407)]({footnote:n,container:this[o(343)],digits:String(this[o(362)][o(406)])[o(406)],value:e+1}):String(e+1),n[o(341)][o(419)](o(351))!=i&&(t[o(340)](o(351),i,n[o(341)]),!0)}[f(363)](t){const e=f;if(!this[e(343)]||this[e(362)][e(406)]<2)return!1;if(function(t,o){const n=e;if(t[n(406)]!==o[n(406)])return!1;for(let e=0;e<t[n(406)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(362)][e(432)](t=>t.id),Array[e(409)](this[e(343)][e(353)]())[e(432)](t=>t[e(419)](e(339)))))return!1;let o=!1;for(let n=0;n<this[e(362)][e(406)];n++){const i=this[e(362)][n],s=t[e(398)](i[e(435)]),r=t[e(370)](this[e(343)],n);s[e(403)](r)||(t[e(352)](t[e(424)](i[e(435)]),r),o=!0)}return o}[f(342)](t){const e=f;if(!this[e(362)][e(406)])return!1;const{model:o}=this[e(372)];let n=!1;for(let i=0;i<this[e(362)][e(406)]-1;i++){const s=this[e(362)][i],r=this[e(362)][i+1],a=o[e(398)](s[e(341)]),c=o[e(398)](r[e(341)]);e(357)===a[e(347)](c)&&(this[e(414)](t,s[e(341)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=f;if(o[n(425)])return!1;const i=n(e?401:389);return t[n(380)](t[n(429)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(406)])return 0;const i=t[n(398)](o);for(let o=0;o<e[n(406)];o++){const s=e[o],r=t[n(398)](s[n(341)]);if(n(350)===i[n(347)](r))return o}const s=o[n(382)];let r=-1;for(let t=e[n(406)]-1;t>=0;t--)if(e[t][n(341)][n(382)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(364)][n(410)](),c=a[n(394)](s[n(368)]),l=a[c+1];if(l)for(let t=0;t<e[n(406)];t++)if(e[t][n(341)][n(382)][n(368)]===l)return t;return e[n(406)]}const g=y;function w(){const t=["get","FootnotesEditing","selection","881054jeZxxe","460272kIPmLx","test","470bKkwPB","model","isBlock","4011JgOOxr","execute","footnoteId","10OqEiZJ","change","9817587TStEwB","end","footnoteRef","2234280QsuHKq","258zpcDSZ","insertObject","insert-footnote-command-executed-with-invalid-id","2440395XCjgOW","_moveSelectionToFootnoteDefinition","getItems","checkChild","refresh","_getPositionToInsertFootnote","plugins","3608LomfDH","getFirstRange","length","string","isObject","isEnabled","editor","createElement","document"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=493]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(466981===parseInt(e(509))/1+-parseInt(e(508))/2+-parseInt(e(526))/3+parseInt(e(496))/4*(-parseInt(e(511))/5)+-parseInt(e(523))/6*(parseInt(e(514))/7)+parseInt(e(522))/8+parseInt(e(519))/9*(parseInt(e(517))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(493)](){const t=g,e=this[t(502)][t(512)][t(504)][t(507)],o=this[t(494)](e);this[t(501)]=!!o}[g(515)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(504)],r=this[e(494)](s);if(!r)return;const a=o[e(495)][e(505)](e(506)),c=t?.[e(516)]??(0,i.uid)();!function(t){const o=e;return o(499)==typeof t&&t[o(498)]>0&&!/\s/[o(510)](t)&&!/^\d/[o(510)](t)}(c)?(0,i.logWarning)(e(525)):(n[e(518)](t=>{const o=e,i=t[o(503)](o(521),{footnoteId:c});n[o(524)](i,r,null)}),a[e(527)](c))}[g(494)](t){const e=g,{model:o}=this[e(502)],{schema:n}=o,i=t[e(497)]();for(const t of i[e(528)]())if(n[e(513)](t)||n[e(500)](t))return null;const s=i[e(520)];return n[e(529)](s,e(521))?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=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1765929600;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(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})=>T(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(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 T(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 P=_;function D(){const t=["_handleCopyFootnotesDefinitions","element","footnoteId","1155AurLuB","getRanges","createRangeIn","7flhFqG","append","insert","sourceEditorId","root","end","selection","editor","definition","footnoteInlineContent","getData","remove","6yYJSaV","226kuzqTg","data","footnoteDefinition","3688QuRCWa","from","footnotes.multiBlock","isOfficialPlugin","editing","3944560vWTCwF","footnotesDefinitions","requires","add","content","flatMap","_handlePasteFootnotesDefinitions","config","find","getFirstRange","181317aSNgnz","1282915FZlsIr","getFootnotesDefinitionsObjectElement","70pZHrbC","921947yEbRsx","FootnotesClipboard","method","length","outputTransformation","10KajHns","setAttribute","listenTo","dataTransfer","htmlProcessor","12SLTYDa","getAttribute","push","create","_insertEmptyFootnotesDefinitionsContainer","_defineClipboardIntegration","toView","application/ckeditor5-footnotes","reduce","includes","createElement","init","entries","setData","drop","295155tTaJou","stringify","footnoteRef","toModel","get","contentInsertion","document","isPremiumPlugin","10596skDquK","parse","getFootnotes","toData","getFootnote","clipboardInput","getSelectedBlocks","change","pluginName"];return(D=function(){return t})()}function _(t,e){const o=D();return(_=function(t,e){return o[t-=203]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(293615===parseInt(e(237))/1*(parseInt(e(234))/2)+parseInt(e(252))/3*(-parseInt(e(266))/4)+parseInt(e(253))/5*(parseInt(e(233))/6)+-parseInt(e(221))/7*(parseInt(e(242))/8)+parseInt(e(281))/9*(parseInt(e(261))/10)+parseInt(e(218))/11*(-parseInt(e(206))/12)+-parseInt(e(256))/13*(-parseInt(e(255))/14))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class L extends t.Plugin{static get[P(214)](){return P(257)}static get[P(244)](){return[v,S.ClipboardPipeline]}static get[P(240)](){return!0}static get[P(205)](){return!0}[P(277)](){this[P(271)]()}[P(271)](){const t=P;this[t(215)](),this[t(248)]()}[P(215)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(285)](S.ClipboardPipeline),s=o[t(285)](p);this[t(263)](i,t(260),(o,i)=>{const r=t,a=A(n[r(220)](i[r(246)]));if(!a[r(259)])return;const c=s[r(208)](),l=a[r(274)]((t,o)=>{const n=r,i=c[n(250)](t=>t.id===o);if(i){const o=e[n(235)][n(272)](i[n(229)],{isClipboardPipeline:!0}),s=e[n(235)][n(265)][n(209)](o);t[i.id]=s}return t},Object[r(269)](null));i[r(264)][r(279)](r(273),JSON[r(282)](l))})}[P(248)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(241)],r=n[t(285)](S.ClipboardPipeline),a=n[t(285)](p),c=e[t(249)][t(285)](t(239));let l=null;this[t(263)](s[t(204)],t(211),(e,o)=>{const n=t,i=o[n(264)][n(231)](n(273));l=i?JSON[n(207)](i):null}),this[t(263)](r,t(203),(n,s)=>{const r=t,u=s[r(224)]===this[r(228)].id;u&&r(280)===s[r(258)]||o[r(213)](t=>{const n=r;let f=a[n(254)]();const d=!!f&&Array[n(238)](o[n(204)][n(227)][n(212)]())[n(275)](f);if((f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(220)](e))n.is(o(216),o(243))&&i[o(268)](n);for(const e of i)t[o(232)](e)}(t,s[n(246)]),!l)return;const{selection:p}=o[n(204)],h=p[n(251)]()[n(225)];f&&!d||(f=function(t,e){const o=n;for(const{item:n}of t[o(220)](e))if(n.is(o(216),o(243)))return n;return null}(t,s[n(246)]),f||=a[n(270)](t,h));const m=Array[n(238)](p[n(219)]())[n(247)](A),g=function(t,e,o){const s=n,r=Object[s(269)](null);for(const{item:n}of t[s(220)](e))if(n.is(s(216),s(283))){const e=n[s(267)](s(217));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(262)](s(217),r[e],n)}return r}(t,s[n(246)],t=>{const e=n;return!u||!!a[e(210)](t)&&!m[e(275)](t)});for(const[o,i]of Object[n(278)](l)){const s=g[o]||o,r=t[n(276)](n(236),{footnoteId:s}),a=e[n(235)][n(265)][n(272)](i);let l;if(c)l=e[n(235)][n(284)](a,r);else{l=t[n(276)](n(230));const o=e[n(235)][n(284)](a,l);t[n(223)](o,l)}t[n(222)](l,r),t[n(223)](r,f,n(226))}l=null})})}}function A(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(216),e(283))&&o[e(245)](n[e(267)](e(217)));return Array[e(238)](o)}var V=o(311),R=o(355),O=o(929),N=o.n(O),K=o(297),j=o.n(K),M=o(102),B=o.n(M),z=o(123),q=o.n(z),H=o(741),U=o.n(H),W=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=q(),G.insert=B().bind(null,"head"),G.domAPI=j(),G.insertStyleElement=U();N()(W.A,G);W.A&&W.A.locals&&W.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",Z(t,V.ButtonView)),e.add("menuBar:insertFootnote",Z(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function J(){var t=["1YrPFyF","338040VnmSJo","3811540OymbRz","2557318JJFPeW","3391731cQIMbt","pluginName","9241477vzqvTB","8ljiRMX","3890610nPokaf","isPremiumPlugin","Footnotes","requires","33fHsMLE","35234859sBBadG","isOfficialPlugin","12CtsBVw"];return(J=function(){return t})()}var $=Q;function Q(t,e){var o=J();return(Q=function(t,e){return o[t-=270]})(t,e)}!function(t){for(var e=Q,o=t();;)try{if(802697===parseInt(e(271))/1*(-parseInt(e(274))/2)+-parseInt(e(283))/3*(parseInt(e(272))/4)+parseInt(e(273))/5*(-parseInt(e(270))/6)+-parseInt(e(277))/7*(-parseInt(e(278))/8)+-parseInt(e(275))/9+parseInt(e(279))/10+parseInt(e(284))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(J);class Y extends t.Plugin{static get[$(276)](){return $(281)}static get[$(282)](){return[v,L,X]}static get[$(285)](){return!0}static get[$(280)](){return!0}}const tt=et;function et(t,e){const o=nt();return(et=function(t,e){return o[t-=189]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(574090===parseInt(e(203))/1+parseInt(e(200))/2+-parseInt(e(191))/3*(-parseInt(e(192))/4)+-parseInt(e(198))/5+parseInt(e(190))/6+parseInt(e(205))/7+parseInt(e(195))/8*(-parseInt(e(196))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[tt(189),tt(197),tt(194),tt(201),tt(199),tt(202),tt(193),tt(204)];function nt(){const t=["lower-alpha","78660lTzFcD","upper-latin","upper-alpha","1137926Kknzkq","upper-roman","3738735AgkVmh","decimal","4226538elDnzv","3GxvpRs","1167736BbjVSF","lower-roman","lower-latin","323368hunbwO","288VTzIhE","decimal-leading-zero","4200780HoofkX"];return(nt=function(){return t})()}const it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=238]})(t,e)}function rt(){const t=["get","refresh","524972GwWFFp","14197779uyOhtm","change","2183236xUwevM","value","3465910pmZLEv","3505071wbmZIF","model","6BPOOqf","188312IdmWsZ","103478imeMCj","getFootnotesDefinitionsObjectElement","execute","includes","plugins","footnotesListStyle","22nURosR","_updateFootnotesCounters","getAttribute","isEnabled","setAttribute"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(633168===-parseInt(e(259))/1*(-parseInt(e(242))/2)+parseInt(e(255))/3+parseInt(e(252))/4+-parseInt(e(254))/5+parseInt(e(257))/6*(parseInt(e(249))/7)+-parseInt(e(258))/8+-parseInt(e(250))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(248)](){const t=it,{editor:e}=this,o=e[t(240)][t(247)](p)[t(260)]();this[t(245)]=!!o,this[t(253)]=o?.[t(244)](t(241))??null}[it(238)]({value:t}){const e=it,{editor:o}=this,n=o[e(240)][e(247)](p),i=n[e(260)]();i&&ot[e(239)](t)&&o[e(256)][e(251)](o=>{const s=e;o[s(246)](s(241),t,i),n[s(243)](o)})}}const ct=ut;function lt(){const t=["1992624wjEhpp","plugins","refresh","value","footnotesListStart","isEnabled","9864LCqryI","getFootnotesDefinitionsObjectElement","change","setAttribute","2363097IdsHjd","26jSwppy","4361tmYXnZ","_updateFootnotesCounters","getAttribute","12251DHFEzy","20LTuSRC","isInteger","model","91gpYTcI","3818488BEqiaJ","10vGRgmL","6285818XkZEtD","9ExsoXz","execute","663540XPpwMa","get"];return(lt=function(){return t})()}function ut(t,e){const o=lt();return(ut=function(t,e){return o[t-=331]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(627175===-parseInt(e(355))/1*(parseInt(e(351))/2)+-parseInt(e(350))/3+parseInt(e(356))/4*(parseInt(e(338))/5)+parseInt(e(346))/6*(parseInt(e(352))/7)+-parseInt(e(333))/8*(-parseInt(e(336))/9)+parseInt(e(334))/10*(parseInt(e(335))/11)+parseInt(e(340))/12*(-parseInt(e(332))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ft extends t.Command{[ct(342)](){const t=ct,{editor:e}=this,o=e[t(341)][t(339)](p)[t(347)]();this[t(345)]=!!o,this[t(343)]=o?.[t(354)](t(344))??null}[ct(337)]({value:t}){const e=ct,{editor:o}=this,n=o[e(341)][e(339)](p),i=n[e(347)]();i&&Number[e(357)](t)&&o[e(331)][e(348)](o=>{const s=e;o[s(349)](s(344),t,i),n[s(353)](o)})}}const dt=pt;function pt(t,e){const o=mt();return(pt=function(t,e){return o[t-=468]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(572642===parseInt(e(493))/1+-parseInt(e(501))/2*(parseInt(e(499))/3)+parseInt(e(566))/4+-parseInt(e(533))/5+parseInt(e(557))/6+-parseInt(e(468))/7+parseInt(e(505))/8*(parseInt(e(470))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(mt);class ht extends t.Plugin{static get[dt(479)](){return dt(565)}static get[dt(487)](){return[v,p]}static get[dt(503)](){return!0}static get[dt(546)](){return!0}[dt(494)](){const t=dt,{editor:e}=this;e[t(537)][t(516)](t(481),t(495)),e[t(537)][t(516)](t(508),1),e[t(559)][t(523)](t(560),new at(e)),e[t(559)][t(523)](t(483),new ft(e)),this[t(480)](),this[t(522)](),this[t(540)](),this[t(564)]()}[dt(480)](){const t=dt,{editor:e}=this,{schema:o}=e[t(485)];o[t(475)](t(498),{allowAttributes:[t(491),t(473)]})}[dt(522)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(492)](t(488))[t(523)](e=>{const o=t;e.on(o(513),(t,e,n)=>{const s=o,r=e[s(507)],a=e[s(504)]?.[s(550)];r[s(545)](s(484))&&a?.is(s(529),s(498))&&(function(t,e,o,n){const i=s;if(!n[i(497)](e,i(473)))return;let r=1;const a=o[i(555)][i(556)](t,{attributes:i(518)});if(a){const e=Number[i(553)](t[i(496)](i(518)),10);Number[i(535)](e)||(r=e)}!a&&e[i(539)](i(473))||o[i(561)][i(528)](i(473),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(497)](e,i(491)))return;let r=i(495),a=!1;if(o[i(555)][i(556)](t,{attributes:i(543)})){const e={1:i(495),a:i(472),A:i(476),i:i(489),I:i(510)}[t[i(496)](i(543))];e&&(r=e),a=!0}o[i(555)][i(556)](t,{styles:i(536)})&&(r=function(t){const e=i;switch(t){case e(472):return e(471);case e(476):return e(502);default:return t}}(t[i(527)](i(536))),a=!0),!a&&e[i(539)](i(491))||o[i(561)][i(528)](i(491),r,e)}(r,a,n,i))})}),o[t(492)](t(469))[t(523)](e=>{const o=t;e.on(o(519),(t,e,n)=>{const i=o;if(!n[i(555)][i(556)](e[i(531)],t[i(538)]))return;const s=gt(e[i(531)],n[i(520)]),{attributeNewValue:r}=e;null==r||1===r?n[i(561)][i(477)](i(518),s):n[i(561)][i(528)](i(518),String(r),s)}),e.on(o(524),(t,e,n)=>{const i=o;if(!n[i(555)][i(556)](e[i(531)],t[i(538)]))return;const s=gt(e[i(531)],n[i(520)]),{attributeNewValue:r}=e;r&&i(495)!==r?n[i(561)][i(542)](i(536),r,s):n[i(561)][i(506)](i(536),s)})})}[dt(564)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(525)][t(515)](p),i=this[t(509)](),s=this[t(521)]();o[t(551)][t(534)](e=>{const r=t,a=o[r(551)][r(526)][r(490)]();let c=!1;for(const t of a){if(r(562)!==t[r(543)]||r(563)===t[r(538)])continue;const n=o[r(486)](t[r(512)][r(530)]);for(const t of n[r(517)]())t.is(r(529),r(498))&&(!t[r(539)](r(473))&&o[r(532)][r(497)](t,r(473))&&(e[r(528)](r(473),s,t),c=!0),!t[r(539)](r(491))&&o[r(532)][r(497)](t,r(491))&&(e[r(528)](r(491),i,t),c=!0))}return c&&n[r(500)](e),c})}[dt(540)](){const t=dt,{editor:e}=this;e[t(525)][t(515)](p)[t(511)](e=>this[t(541)](e))}[dt(509)](){const t=dt;return this[t(547)][t(537)][t(515)](t(481))}[dt(521)](){const t=dt;return this[t(547)][t(537)][t(515)](t(508))}[dt(541)]({container:t,value:e,digits:o}){const n=dt,i=t[n(496)](n(491)),s=t[n(496)](n(473)),r=Math[n(567)](e)+(s??1)-1;switch(i){case n(558):return function(t,e){const o=n;return String(t)[o(478)](e,"0")}(r,Math[n(544)](2,o));case n(472):case n(471):return wt(r,!1);case n(476):case n(502):return wt(r,!0);case n(489):return bt(r,!1);case n(510):return bt(r,!0);default:return String(r)}}}function mt(){const t=["registerPostFixer","isNaN","list-style-type","config","name","hasAttribute","_defineFormatter","_formatFootnoteListValue","setStyle","type","max","hasClass","isPremiumPlugin","editor","toUpperCase","getChildren","parent","document","fromCharCode","parseInt","find","consumable","consume","2019474cIIkbM","decimal-leading-zero","commands","footnotesStyle","writer","insert","$text","_definePostfixer","FootnotesPropertiesEditing","2800280QZdTBz","floor","5274122lZtXmJ","downcast","9JzghBG","lower-latin","lower-alpha","footnotesListStart","toLowerCase","extend","upper-alpha","removeAttribute","padStart","pluginName","_defineSchema","footnotes.footnotesProperties.defaultListStyle","toViewElement","footnotesStart","footnotes-list","model","createRangeOn","requires","upcast","lower-roman","getChanges","footnotesListStyle","for","134929PGMWZf","init","decimal","getAttribute","checkAttribute","footnotesDefinitions","1584333GtxhVw","_updateFootnotesCounters","2nwbPDI","upper-latin","isOfficialPlugin","modelCursor","12179200MDZQKu","removeStyle","viewItem","footnotes.footnotesProperties.defaultStartIndex","_getDefaultListStyle","upper-roman","setFootnoteFormatter","position","element:ol","from","get","define","getItems","start","attribute:footnotesListStart:footnotesDefinitions","mapper","_getDefaultStartIndex","_defineConverters","add","attribute:footnotesListStyle:footnotesDefinitions","plugins","differ","getStyle","setAttribute","element","nodeAfter","item","schema","4198895LcZrSj"];return(mt=function(){return t})()}function gt(t,e){const o=dt,n=e[o(482)](t);return Array[o(514)](n[o(549)]())[o(554)](t=>t.is(o(529),"ol")&&t[o(545)](o(484)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(552)](97+t)+n,i=Math[o(567)]((i-1)/26)}return e?n[o(548)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(474)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=q(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=U();N()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon: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 V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Tt();return(xt=function(t,e){return o[t-=103]})(t,e)}!function(t){for(var e=xt,o=t();;)try{if(459567===parseInt(e(107))/1+parseInt(e(105))/2+-parseInt(e(117))/3*(-parseInt(e(114))/4)+parseInt(e(113))/5*(parseInt(e(115))/6)+parseInt(e(109))/7*(-parseInt(e(111))/8)+parseInt(e(116))/9+-parseInt(e(104))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt);class Et extends t.Plugin{static get[Ft(103)](){return Ft(108)}static get[Ft(106)](){return[ht,Ct]}static get[Ft(112)](){return!0}static get[Ft(110)](){return!0}}function Tt(){var t=["FootnotesProperties","168RKiQCx","isPremiumPlugin","215984GxeERg","isOfficialPlugin","4575VhtsDI","284XQzdUY","4848wDmyir","4943673DExaXa","31047vlxbqy","pluginName","14733060xEgxmo","933562OxXTWf","requires","90648yuFZlV"];return(Tt=function(){return t})()}function St(){var t=["972zlaCwO","527787UZNzkp","132494tIjavd","345023OekXgA","1053afbgXb","10bLmdsi","23459FQuqUV","46590GwDvGG","80KQVczb","75760HXBHPK"];return(St=function(){return t})()}function Pt(t,e){var o=St();return(Pt=function(t,e){return o[t-=398]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(102303===-parseInt(e(407))/1+parseInt(e(403))/2+parseInt(e(405))/3*(parseInt(e(401))/4)+parseInt(e(399))/5*(-parseInt(e(398))/6)+parseInt(e(404))/7+-parseInt(e(400))/8+parseInt(e(402))/9*(parseInt(e(406))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x5f50d0,Command as _0x372ec6}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x248ec1,isWidget as _0x707746,toWidgetEditable as _0x4a0271,WidgetToolbarRepository as _0x35ffbd}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0xa355a6,logWarning as _0x3a4308,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x1ed646,ClickObserver as _0x4c48c0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x35ca89}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x4ade2d,ButtonView as _0x43cdb0,View as _0x2b1a1c,ViewCollection as _0x5d9d51,FocusCycler as _0xff7b38,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x4257e1,BalloonPanelView as _0x3042ff,createDropdown as _0x1dde47}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x41f08a,IconListStyleDecimal as _0x8acc55,IconListStyleDecimalLeadingZero as _0x3300f2,IconListStyleLowerRoman as _0x2706db,IconListStyleUpperRoman as _0x485fb4,IconListStyleLowerLatin as _0x562257,IconListStyleUpperLatin as _0x9252bc}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x48f448,_0xa6be8d){this['_model']=_0x48f448,this['_elementName']=_0xa6be8d['elementName'],this['_getElementKey']=_0xa6be8d['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x4912e8){const _0x210253=new Set(),_0x420c57=new Map();for(const _0x5978e0 of _0x4912e8){if('insert'===_0x5978e0['type']&&'$text'!==_0x5978e0['name']&&_0x5978e0['position']['nodeAfter']){const _0x180fd1=this['_model']['createRangeOn'](_0x5978e0['position']['nodeAfter']);for(const _0x33538a of _0x180fd1['getItems']()){if(!_0x33538a['is']('element',this['_elementName']))continue;const _0x20e5f5=this['_getElementKey'](_0x33538a);_0x420c57['has'](_0x20e5f5)||_0x420c57['set'](_0x20e5f5,[]),_0x420c57['get'](_0x20e5f5)['push'](_0x33538a);}}if('remove'===_0x5978e0['type']&&_0x5978e0['name']===this['_elementName']){const _0x3036d4=this['_getElementKey']({'getAttribute':_0xcd5548=>_0x5978e0['attributes']['get'](_0xcd5548)});_0x210253['add'](_0x3036d4);}}for(const [_0x82586d,_0x14090c]of this['_trackedElements'])'$graveyard'===_0x14090c['root']['rootName']&&_0x210253['add'](_0x82586d);for(const _0x3f7037 of _0x210253)this['_trackedElements']['delete'](_0x3f7037);for(const [_0x186983,_0x51592e]of _0x420c57)this['_trackedElements']['set'](_0x186983,_0x51592e[_0x51592e['length']-0x1]);const _0x11da43=new Set();for(const [_0xa5acf,_0xe04f31]of _0x420c57)_0x210253['has'](_0xa5acf)&&(_0x11da43['add'](_0xe04f31[0x0]),_0xe04f31['length']>0x1?_0x420c57['set'](_0xa5acf,_0xe04f31['slice'](0x1)):_0x420c57['delete'](_0xa5acf),_0x210253['delete'](_0xa5acf));return{'removed':Array['from'](_0x210253),'inserted':Array['from'](_0x420c57['values']())['flat'](),'moved':Array['from'](_0x11da43)};}}class f extends _0x5f50d0{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x308e10){super(_0x308e10),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x388630=>_0x388630['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x50a67f=>_0x50a67f['getAttribute']('footnoteId')});}['init'](){const {editor:_0x48faf7}=this,{model:_0x3f2b06,data:_0x3cfa37}=_0x48faf7;_0x3f2b06['document']['registerPostFixer'](_0x55ebb6=>{const _0x484689=_0x3f2b06['document']['differ']['getChanges']();let _0x2f8baf=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x55ebb6,_0x484689)&&(_0x2f8baf=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x55ebb6,_0x484689)&&(_0x2f8baf=!0x0),this['_handleFootnoteReferencesChanges'](_0x55ebb6,_0x484689)&&(_0x2f8baf=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x55ebb6)&&(_0x2f8baf=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x55ebb6)&&(_0x2f8baf=!0x0),this['_sortFootnoteDefinitions'](_0x55ebb6)&&(_0x2f8baf=!0x0),_0x2f8baf;}),this['listenTo'](_0x3f2b06['document'],'change:data',()=>{_0x3f2b06['enqueueChange']({'isUndoable':!0x1},_0x52c3d3=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x52c3d3);});},{'priority':'low'}),this['listenTo'](_0x3cfa37,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x54834b){return this['_footnotes']['find'](_0x2e8a10=>_0x2e8a10['id']===_0x54834b)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x2cccdb){this['_footnoteFormatter']=_0x2cccdb;}['_updateFootnotesCounters'](_0x46b826,_0x2ff28e=0x0){let _0x30b9dc=!0x1;for(let _0x39eb45=_0x2ff28e;_0x39eb45<this['_footnotes']['length'];_0x39eb45++)this['_updateFootnoteRefCounter'](_0x46b826,_0x39eb45)&&(_0x30b9dc=!0x0);return _0x30b9dc;}['_insertEmptyFootnotesDefinitionsContainer'](_0x106d8c,_0x52855e){const _0x54aef0=_0x106d8c['createElement']('footnotesDefinitions',{});return _0x106d8c['append'](_0x54aef0,_0x52855e),this['_footnotesDefinitions']=_0x54aef0,_0x54aef0;}['_ensureFootnotesDefinitionsContainerExists'](_0x39d809){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x264442=this['_footnotes'][0x0]['reference']['root'],_0x3440d4=this['_insertEmptyFootnotesDefinitionsContainer'](_0x39d809,_0x264442);for(const _0x2555bd of this['_footnotes'])_0x2555bd['definition']['parent']||_0x39d809['insert'](_0x2555bd['definition'],_0x3440d4,'end');this['_updateFootnotesCounters'](_0x39d809);}['_handleFootnotesDefinitionsObjectChanges'](_0x5e73aa,_0x4876b0){let _0x2b9b8a=!0x1;const {inserted:_0x29316e,removed:_0x5f47b2,moved:_0x4585e1}=this['_footnoteDefsContainerTracker']['getChanges'](_0x4876b0);if(_0x4585e1['length']&&(this['_footnotesDefinitions']=_0x4585e1[0x0]),_0x29316e['length']){if(_0x29316e['length']>0x1||this['_footnotesDefinitions']&&_0x29316e['some'](_0x16f9ba=>_0x16f9ba!==this['_footnotesDefinitions'])){const _0x5623db=_0x5e73aa['createElement']('footnotesDefinitions',{}),_0x2d6754=[];this['_footnotesDefinitions']&&_0x2d6754['push'](this['_footnotesDefinitions']),_0x2d6754['push'](..._0x29316e),_0x5e73aa['insert'](_0x5623db,_0x2d6754[0x0],'before');for(const _0x519eb7 of _0x2d6754)_0x5e73aa['move'](_0x5e73aa['createRangeIn'](_0x519eb7),_0x5e73aa['createPositionAt'](_0x5623db,'end')),_0x5e73aa['remove'](_0x519eb7);this['_footnotesDefinitions']=_0x5623db,this['_updateFootnotesCounters'](_0x5e73aa),_0x2b9b8a=!0x0;}else this['_footnotesDefinitions']=_0x29316e[0x0];}if(_0x5f47b2['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x377a8d of this['_footnotes'])_0x5e73aa['remove'](_0x377a8d['reference']),_0x2b9b8a=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x2b9b8a;}['_handleFootnoteDefinitionsChanges'](_0x56c079,_0x36f7cc){let _0x54c822=!0x1;const _0x1fbdef=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x303f4c,moved:_0x5a1ad7}=this['_footnoteDefsTracker']['getChanges'](_0x36f7cc);for(const _0x2aa2a4 of[..._0x5a1ad7,..._0x303f4c]){const _0x185c43=_0x2aa2a4['getAttribute']('footnoteId'),_0x3185b6=this['getFootnote'](_0x185c43);_0x3185b6&&(_0x3185b6['definition']=_0x2aa2a4),_(_0x56c079,_0x1fbdef,_0x2aa2a4)&&(_0x54c822=!0x0);}return _0x54c822;}['_handleFootnoteReferencesChanges'](_0x3bf5ce,_0x2640ab){let _0x310ecc=!0x1;const {removed:_0x1500cb,inserted:_0xecf4b5,moved:_0x11504a}=this['_footnoteRefsTracker']['getChanges'](_0x2640ab);for(const _0x2013dd of _0x1500cb)this['_handleRemoveFootnoteReferenceById'](_0x3bf5ce,_0x2013dd)&&(_0x310ecc=!0x0);for(const _0x1588aa of _0xecf4b5)this['_handleInsertedFootnoteReference'](_0x3bf5ce,_0x1588aa)&&(_0x310ecc=!0x0);for(const _0x2f333d of _0x11504a)this['_handleMovedFootnoteReference'](_0x3bf5ce,_0x2f333d)&&(_0x310ecc=!0x0);return _0x310ecc;}['_handleFootnotesDefinitionsObjectSync'](_0x23569c){if(!this['_footnotesDefinitions'])return!0x1;let _0x4978ff=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x5362c8=[];for(const _0x6c5a75 of this['_footnotesDefinitions']['getChildren']()){const _0x10bb89=_0x6c5a75['getAttribute']('footnoteId');this['getFootnote'](_0x10bb89)||(_0x5362c8['unshift'](_0x6c5a75),_0x4978ff=!0x0);}for(const _0x213cd8 of _0x5362c8)_0x23569c['remove'](_0x213cd8);}const _0x338b5f=new Set(),_0x26eb29=[];for(const _0x1b55a6 of this['_footnotesDefinitions']['getChildren']()){const _0x4fcf6c=_0x1b55a6['getAttribute']('footnoteId');_0x338b5f['has'](_0x4fcf6c)?(_0x26eb29['unshift'](_0x1b55a6),_0x4978ff=!0x0):_0x338b5f['add'](_0x4fcf6c);}for(const _0x5f09f0 of _0x26eb29)_0x23569c['remove'](_0x5f09f0);return this['_footnotesDefinitions']['childCount']||(_0x23569c['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x4978ff=!0x0),_0x4978ff;}['_handleInsertedFootnoteReference'](_0x433c97,_0x219393){if(this['_footnotes']['find'](_0x5c7fb6=>_0x5c7fb6['reference']===_0x219393))return!0x1;let _0x4726b7=!0x1;const _0x398c9c=_0x219393['getAttribute']('footnoteId'),_0xfa4c11=this['_footnotes']['findIndex'](_0x4cbb92=>_0x4cbb92['id']===_0x398c9c);-0x1!==_0xfa4c11&&(_0x433c97['remove'](this['_footnotes'][_0xfa4c11]['reference']),this['_footnotes']['splice'](_0xfa4c11,0x1),_0x4726b7=!0x0);let _0x366171=this['_footnotesDefinitions']?function(_0x973bd2,_0x240d1d){for(const _0x5d5308 of _0x973bd2['getChildren']())if(_0x5d5308['getAttribute']('footnoteId')===_0x240d1d)return _0x5d5308;return null;}(this['_footnotesDefinitions'],_0x398c9c):null;_0x366171||(_0x366171=_0x433c97['createElement']('footnoteDefinition',{'footnoteId':_0x398c9c}),this['_footnotesDefinitions']&&(_0x433c97['insert'](_0x366171,this['_footnotesDefinitions'],'end'),_0x4726b7=!0x0));const _0x5de85b={'id':_0x398c9c,'reference':_0x219393,'definition':_0x366171},_0x322272=I(this['editor']['model'],this['_footnotes'],_0x219393);this['_footnotes']['splice'](_0x322272,0x0,_0x5de85b);let _0xa8008a=_0x322272;return-0x1!==_0xfa4c11&&(_0xa8008a=Math['min'](_0x322272,_0xfa4c11)),this['_updateFootnotesCounters'](_0x433c97,_0xa8008a)&&(_0x4726b7=!0x0),_0x4726b7;}['_handleRemoveFootnoteReferenceById'](_0x483a92,_0xd924f8){const _0x56d479=this['_footnotes']['findIndex'](_0x24dbbd=>_0x24dbbd['id']===_0xd924f8);if(-0x1===_0x56d479)return!0x1;let _0x9b33dc=!0x1;const _0x3bf1d5=this['_footnotes'][_0x56d479];return'$graveyard'!==_0x3bf1d5['definition']['root']['rootName']&&(_0x483a92['remove'](_0x3bf1d5['definition']),_0x9b33dc=!0x0),this['_footnotes']['splice'](_0x56d479,0x1),this['_updateFootnotesCounters'](_0x483a92,_0x56d479)&&(_0x9b33dc=!0x0),_0x9b33dc;}['_handleMovedFootnoteReference'](_0x4b46a7,_0x472c83){const _0x525d57=_0x472c83['getAttribute']('footnoteId'),_0x242bb3=this['_footnotes']['findIndex'](_0x2e6ecf=>_0x2e6ecf['id']===_0x525d57),_0x3d15a8=this['_footnotes'][_0x242bb3];let _0x1ef2c6=!0x1;_0x3d15a8['reference']=_0x472c83,this['_footnotes']['splice'](_0x242bb3,0x1);const _0x8fb42b=I(this['editor']['model'],this['_footnotes'],_0x472c83);return this['_footnotes']['splice'](_0x8fb42b,0x0,_0x3d15a8),this['_updateFootnotesCounters'](_0x4b46a7,Math['min'](_0x242bb3,_0x8fb42b))&&(_0x1ef2c6=!0x0),_0x1ef2c6;}['_updateFootnoteRefCounter'](_0x35fd01,_0x14c549){if(!this['_footnotesDefinitions'])return!0x1;const _0x5b99c2=this['_footnotes'][_0x14c549];let _0x1262b8;return _0x1262b8=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x5b99c2,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x14c549+0x1}):String(_0x14c549+0x1),_0x5b99c2['reference']['getAttribute']('footnoteCounter')!=_0x1262b8&&(_0x35fd01['setAttribute']('footnoteCounter',_0x1262b8,_0x5b99c2['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x13f3a7){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x3193d5,_0x1da32e){if(_0x3193d5['length']!==_0x1da32e['length'])return!0x1;for(let _0x2941e9=0x0;_0x2941e9<_0x3193d5['length'];_0x2941e9++)if(_0x3193d5[_0x2941e9]!==_0x1da32e[_0x2941e9])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x1965ac=>_0x1965ac['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x1291e2=>_0x1291e2['getAttribute']('footnoteId'))))return!0x1;let _0x1dc070=!0x1;for(let _0xab8349=0x0;_0xab8349<this['_footnotes']['length'];_0xab8349++){const _0x4fcff1=this['_footnotes'][_0xab8349],_0x52e364=_0x13f3a7['createPositionBefore'](_0x4fcff1['definition']),_0x467a1a=_0x13f3a7['createPositionAt'](this['_footnotesDefinitions'],_0xab8349);_0x52e364['isEqual'](_0x467a1a)||(_0x13f3a7['move'](_0x13f3a7['createRangeOn'](_0x4fcff1['definition']),_0x467a1a),_0x1dc070=!0x0);}return _0x1dc070;}['_ensureFootnotesReferencesHaveProperOrder'](_0x17021f){if(!this['_footnotes']['length'])return!0x1;const {model:_0x183893}=this['editor'];let _0x381f74=!0x1;for(let _0x29b955=0x0;_0x29b955<this['_footnotes']['length']-0x1;_0x29b955++){const _0x140b32=this['_footnotes'][_0x29b955],_0x21621a=this['_footnotes'][_0x29b955+0x1],_0x55e0d6=_0x183893['createPositionBefore'](_0x140b32['reference']),_0x2bb6b5=_0x183893['createPositionBefore'](_0x21621a['reference']);'after'===_0x55e0d6['compareWith'](_0x2bb6b5)&&(this['_handleMovedFootnoteReference'](_0x17021f,_0x140b32['reference']),_0x29b955=-0x1,_0x381f74=!0x0);}return _0x381f74;}}function _(_0x587cc0,_0x278601,_0x4e221f){if(_0x4e221f['childCount'])return!0x1;const _0x44f8f3=_0x278601?'paragraph':'footnoteInlineContent';return _0x587cc0['insert'](_0x587cc0['createElement'](_0x44f8f3),_0x4e221f),!0x0;}function I(_0x13b4ce,_0x375f30,_0x2fabde){if(0x0===_0x375f30['length'])return 0x0;const _0x1a4c97=_0x13b4ce['createPositionBefore'](_0x2fabde);for(let _0xc41515=0x0;_0xc41515<_0x375f30['length'];_0xc41515++){const _0x569e84=_0x375f30[_0xc41515],_0x4903f3=_0x13b4ce['createPositionBefore'](_0x569e84['reference']);if('before'===_0x1a4c97['compareWith'](_0x4903f3))return _0xc41515;}const _0x257380=_0x2fabde['root'];let _0x5cb864=-0x1;for(let _0x15874b=_0x375f30['length']-0x1;_0x15874b>=0x0;_0x15874b--)if(_0x375f30[_0x15874b]['reference']['root']===_0x257380){_0x5cb864=_0x15874b;break;}if(-0x1!==_0x5cb864)return _0x5cb864+0x1;const _0xd26bb9=_0x13b4ce['document']['getRootNames'](),_0x1849b4=_0xd26bb9['indexOf'](_0x257380['rootName']),_0x5e83a8=_0xd26bb9[_0x1849b4+0x1];if(_0x5e83a8){for(let _0x250d98=0x0;_0x250d98<_0x375f30['length'];_0x250d98++)if(_0x375f30[_0x250d98]['reference']['root']['rootName']===_0x5e83a8)return _0x250d98;}return _0x375f30['length'];}class m extends _0x372ec6{['refresh'](){const _0x42016d=this['editor']['model']['document']['selection'],_0x516653=this['_getPositionToInsertFootnote'](_0x42016d);this['isEnabled']=!!_0x516653;}['execute'](_0xf670fe){const {editor:_0x5151de}=this,{model:_0x37682b}=_0x5151de,{selection:_0x46fddd}=_0x37682b['document'],_0x20bad2=this['_getPositionToInsertFootnote'](_0x46fddd);if(!_0x20bad2)return;const _0x35f96a=_0x5151de['plugins']['get']('FootnotesEditing'),_0x4a20e4=_0xf670fe?.['footnoteId']??_0xa355a6();!function(_0x4eaa33){return'string'==typeof _0x4eaa33&&_0x4eaa33['length']>0x0&&!/\s/['test'](_0x4eaa33)&&!/^\d/['test'](_0x4eaa33);}(_0x4a20e4)?_0x3a4308('insert-footnote-command-executed-with-invalid-id'):(_0x37682b['change'](_0x111426=>{const _0x510554=_0x111426['createElement']('footnoteRef',{'footnoteId':_0x4a20e4});_0x37682b['insertObject'](_0x510554,_0x20bad2,null);}),_0x35f96a['_moveSelectionToFootnoteDefinition'](_0x4a20e4));}['_getPositionToInsertFootnote'](_0x155d8a){const {model:_0x1f67da}=this['editor'],{schema:_0x110f97}=_0x1f67da,_0x1998c4=_0x155d8a['getFirstRange']();for(const _0x4af1f5 of _0x1998c4['getItems']())if(_0x110f97['isBlock'](_0x4af1f5)||_0x110f97['isObject'](_0x4af1f5))return null;const _0x1e79be=_0x1998c4['end'];return _0x110f97['checkChild'](_0x1e79be,'footnoteRef')?_0x1e79be:null;}}class r extends _0x5f50d0{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x32cc7e}=this;_0x32cc7e['config']['define']('footnotes.multiBlock',!0x0),_0x32cc7e['commands']['add']('insertFootnote',new m(_0x32cc7e)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3fb8f9){const _0x1a0d16=_0x3a275a([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x262176=0x47a28506,_0x3e0eec=0x47a5f916^_0x262176,_0x42aef6=window[_0x3a275a([0x44,0x61,0x74,0x65])][_0x3a275a([0x6e,0x6f,0x77])](),_0x4217dc=_0x3fb8f9[_0x3a275a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47c76e=new window[(_0x3a275a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5fccb7=>{_0x4217dc[_0x3a275a([0x6f,0x6e,0x63,0x65])](_0x3a275a([0x72,0x65,0x61,0x64,0x79]),_0x5fccb7);}),_0x293c82={[_0x3a275a([0x6b,0x74,0x79])]:_0x3a275a([0x45,0x43]),[_0x3a275a([0x75,0x73,0x65])]:_0x3a275a([0x73,0x69,0x67]),[_0x3a275a([0x63,0x72,0x76])]:_0x3a275a([0x50,0x2d,0x32,0x35,0x36]),[_0x3a275a([0x78])]:_0x3a275a([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3a275a([0x79])]:_0x3a275a([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3a275a([0x61,0x6c,0x67])]:_0x3a275a([0x45,0x53,0x32,0x35,0x36])},_0x47161c=_0x4217dc[_0x3a275a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3a275a([0x67,0x65,0x74])](_0x3a275a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x14042f(){let _0x3d20a9,_0x209d7f=null,_0x44ee68=null;try{if(_0x47161c==_0x3a275a([0x47,0x50,0x4c]))return _0x3a275a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3d20a9=_0x353d9f(),!_0x3d20a9)return _0x3a275a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3d20a9[_0x3a275a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x44ee68=_0x4c0986(_0x3d20a9[_0x3a275a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3d20a9[_0x3a275a([0x6a,0x74,0x69])])),await _0x22d62f()?_0x567afd()?_0x11bd14()?_0x3a275a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4d1932()?(_0x3d20a9[_0x3a275a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3a275a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x209d7f=_0x375008(_0x3a275a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3d20a9[_0x3a275a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3a275a([0x74,0x72,0x69,0x61,0x6c])&&(_0x209d7f=_0x375008(_0x3a275a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x39db12()):_0x3a275a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3a275a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3a275a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3a275a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x11bd14(){const _0xc9f6fa=[_0x3a275a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3a275a([0x74,0x72,0x69,0x61,0x6c])][_0x3a275a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d20a9[_0x3a275a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x42aef6/0x3e8:0xe10*_0x3e0eec;return _0x3d20a9[_0x3a275a([0x65,0x78,0x70])]<_0xc9f6fa;}function _0x567afd(){const _0x490c35=_0x3d20a9[_0x3a275a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x490c35&&(!!_0x490c35[_0x3a275a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a275a([0x2a]))||!!_0x490c35[_0x3a275a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a275a([0x46,0x4f,0x4f])));}function _0x4d1932(){const _0x3711c0=_0x3d20a9[_0x3a275a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3711c0||0x0==_0x3711c0[_0x3a275a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2293a4}=new URL(window[_0x3a275a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3711c0[_0x3a275a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2293a4))return!0x0;const _0x590bd7=_0x2293a4[_0x3a275a([0x73,0x70,0x6c,0x69,0x74])](_0x3a275a([0x2e]));return _0x3711c0[_0x3a275a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5bfdf2=>_0x5bfdf2[_0x3a275a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a275a([0x2a])))[_0x3a275a([0x6d,0x61,0x70])](_0x118af7=>_0x118af7[_0x3a275a([0x73,0x70,0x6c,0x69,0x74])](_0x3a275a([0x2e])))[_0x3a275a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xdf35d7=>_0xdf35d7[_0x3a275a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x590bd7[_0x3a275a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a275a([0x6d,0x61,0x70])](_0x17590d=>Array(_0x590bd7[_0x3a275a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x17590d[_0x3a275a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a275a([0x66,0x69,0x6c,0x6c])](_0x17590d[0x0]===_0x3a275a([0x2a])?_0x3a275a([0x2a]):'')[_0x3a275a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x17590d))[_0x3a275a([0x73,0x6f,0x6d,0x65])](_0x3e40bc=>_0x590bd7[_0x3a275a([0x65,0x76,0x65,0x72,0x79])]((_0x1de54b,_0x405c6c)=>_0x3e40bc[_0x405c6c]===_0x1de54b||_0x3e40bc[_0x405c6c]===_0x3a275a([0x2a])));}function _0x39db12(){return _0x209d7f&&_0x44ee68?new window[(_0x3a275a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4be2b5,_0x380187)=>{_0x209d7f[_0x3a275a([0x74,0x68,0x65,0x6e])](_0x4be2b5,_0x380187),_0x44ee68[_0x3a275a([0x74,0x68,0x65,0x6e])](_0x4bb991=>{_0x4bb991!=_0x3a275a([0x56,0x61,0x6c,0x69,0x64])&&_0x4be2b5(_0x4bb991);},_0x380187);}):_0x209d7f||_0x44ee68||_0x3a275a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c0986(_0x453653,_0x2859bf){return new window[(_0x3a275a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ee8c7=>{if(_0x4c7a50())return _0x4ee8c7(_0x3a275a([0x56,0x61,0x6c,0x69,0x64]));_0x1c28b8(),_0x4217dc[_0x3a275a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3a275a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b2553=!0x1;const _0x42cd55=_0xa355a6();function _0x59ce19(_0x18c7cc){return!!_0x18c7cc&&(typeof _0x18c7cc===_0x3a275a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x18c7cc===_0x3a275a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x18c7cc[_0x3a275a([0x74,0x68,0x65,0x6e])]===_0x3a275a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x18c7cc[_0x3a275a([0x63,0x61,0x74,0x63,0x68])]===_0x3a275a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x12b972(_0x2ce0ee){_0xff0bf9(_0x2ce0ee)[_0x3a275a([0x74,0x68,0x65,0x6e])](_0x14e7eb=>{if(!_0x14e7eb||_0x14e7eb[_0x3a275a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3a275a([0x6f,0x6b]))return _0x3a275a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x935180(_0x402678(_0x42cd55+_0x2859bf))!=_0x14e7eb[_0x3a275a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3a275a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3a275a([0x56,0x61,0x6c,0x69,0x64]);})[_0x3a275a([0x74,0x68,0x65,0x6e])](_0x3c4115=>(_0x3ee4da(),_0x3c4115),()=>{const _0x1d8311=_0x2a8345();return null==_0x1d8311?(_0x3ee4da(),_0x3a275a([0x56,0x61,0x6c,0x69,0x64])):_0x3a275a(_0x42aef6-_0x1d8311>(0x63ae0106^_0x262176)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3a275a([0x74,0x68,0x65,0x6e])](_0x4ee8c7)[_0x3a275a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ee8c7(_0x3a275a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6f3780=0x47946b86^_0x262176;function _0x3ee4da(){const _0x5e1a51=_0x3a275a([0x6c,0x6c,0x63,0x74,0x2d])+_0x935180(_0x402678(_0x453653)),_0xfab2b1=_0x345f6a(_0x935180(window[_0x3a275a([0x4d,0x61,0x74,0x68])][_0x3a275a([0x63,0x65,0x69,0x6c])](_0x42aef6/_0x6f3780)));window[_0x3a275a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a275a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e1a51,_0xfab2b1);}function _0x2a8345(){const _0x5cf9bf=_0x3a275a([0x6c,0x6c,0x63,0x74,0x2d])+_0x935180(_0x402678(_0x453653)),_0x365ab3=window[_0x3a275a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a275a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5cf9bf);return _0x365ab3?window[_0x3a275a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x345f6a(_0x365ab3),0x10)*_0x6f3780:null;}function _0xff0bf9(_0x210e08){return new window[(_0x3a275a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5eec91,_0x1a23c9)=>{_0x210e08[_0x3a275a([0x74,0x68,0x65,0x6e])](_0x5eec91,_0x1a23c9),window[_0x3a275a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1a23c9,0x47a351c6^_0x262176);});}}_0x4217dc[_0x3a275a([0x6f,0x6e])](_0x3a275a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3473ba,_0x2c48e2)=>{if(_0x2c48e2[0x0]!=_0x453653)return _0x4ee8c7(_0x3a275a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2c48e2[0x1]={..._0x2c48e2[0x1],[_0x3a275a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x42cd55};},{[_0x3a275a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a275a([0x68,0x69,0x67,0x68])}),_0x4217dc[_0x3a275a([0x6f,0x6e])](_0x3a275a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1ad9bb=>{_0x59ce19(_0x1ad9bb[_0x3a275a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b2553=!0x0,_0x12b972(_0x1ad9bb[_0x3a275a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3a275a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a275a([0x6c,0x6f,0x77])}),_0x47c76e[_0x3a275a([0x74,0x68,0x65,0x6e])](()=>{_0x2b2553||_0x4ee8c7(_0x3a275a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c7a50(){return _0x4217dc[_0x3a275a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a275a([0x76,0x69,0x65,0x77])][_0x3a275a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3a275a([0x61,0x75,0x74,0x6f]);}function _0x1c28b8(){_0x4217dc[_0x3a275a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a275a([0x76,0x69,0x65,0x77])][_0x3a275a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a275a([0x61,0x75,0x74,0x6f]);}}function _0x375008(_0x2c10f5){const _0x5932aa=[new window[(_0x3a275a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1053be=>setTimeout(_0x1053be,0x47abbbca^_0x262176)),_0x47c76e[_0x3a275a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3a275a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31c477=>{let _0x58e99e=0x0;_0x4217dc[_0x3a275a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a275a([0x6f,0x6e])](_0x3a275a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4eec7f,_0x33ed15)=>{_0x33ed15[0x0][_0x3a275a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x58e99e++,_0x58e99e==(0x47a284fe^_0x262176)&&(_0x31c477(),_0x4eec7f[_0x3a275a([0x6f,0x66,0x66])]());});}))];return window[_0x3a275a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a275a([0x72,0x61,0x63,0x65])](_0x5932aa)[_0x3a275a([0x74,0x68,0x65,0x6e])](()=>_0x2c10f5);}async function _0x348ab7(){await _0x47c76e,_0x4217dc[_0x3a275a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a275a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3425c3,_0x4217dc[_0x3a275a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a275a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3425c3,_0x4217dc[_0x3a275a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3a275a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e16d7(_0x345f51){const _0x1d08c8=_0x3d6724();_0x4217dc[_0x1d08c8]=_0x3a275a([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x345f51,_0x345f51!=_0x3a275a([0x56,0x61,0x6c,0x69,0x64])&&_0x348ab7();}function _0x3d6724(){const _0x408421=window[_0x3a275a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3a275a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3a275a([0x6e,0x6f,0x77])]())[_0x3a275a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3a275a([0x2e]),'');let _0x1673a4=_0x3a275a([0x75]);for(let _0x3e9cd3=0x0;_0x3e9cd3<_0x408421[_0x3a275a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e9cd3+=0x2){let _0x451ff7=window[_0x3a275a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x408421[_0x3a275a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e9cd3,_0x3e9cd3+0x2));_0x451ff7>=_0x1a0d16[_0x3a275a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x451ff7-=_0x1a0d16[_0x3a275a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1673a4+=_0x1a0d16[_0x451ff7];}return _0x1673a4;}function _0x353d9f(){const _0x54dc8e=_0x47161c[_0x3a275a([0x73,0x70,0x6c,0x69,0x74])](_0x3a275a([0x2e]));if(0x3!=_0x54dc8e[_0x3a275a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x561aae(_0x54dc8e[0x1]);function _0x561aae(_0x7f388){const _0xe7e948=_0x11b8ee(_0x7f388);return _0xe7e948&&_0x44be0f()?_0xe7e948:null;function _0x44be0f(){const _0x7fabad=_0xe7e948[_0x3a275a([0x6a,0x74,0x69])],_0xf80a6c=window[_0x3a275a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7fabad[_0x3a275a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7fabad[_0x3a275a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x428e65={..._0xe7e948,[_0x3a275a([0x6a,0x74,0x69])]:_0x7fabad[_0x3a275a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x7fabad[_0x3a275a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x428e65[_0x3a275a([0x76,0x63])],_0x402678(_0x428e65)==_0xf80a6c;}}}async function _0x22d62f(){let _0x57491b=!0x0;try{const _0x4cba2c=_0x47161c[_0x3a275a([0x73,0x70,0x6c,0x69,0x74])](_0x3a275a([0x2e])),[_0x252bff,_0x3d4b4f,_0x1cff0f]=_0x4cba2c;return _0x11e05f(_0x252bff),await _0x52334c(_0x252bff,_0x3d4b4f,_0x1cff0f),_0x57491b;}catch{return!0x1;}function _0x11e05f(_0x2586de){const _0x2dbae6=_0x11b8ee(_0x2586de);_0x2dbae6&&_0x2dbae6[_0x3a275a([0x61,0x6c,0x67])]==_0x3a275a([0x45,0x53,0x32,0x35,0x36])||(_0x57491b=!0x1);}async function _0x52334c(_0x5b4409,_0x2df12d,_0x3b23db){const _0x456cf1=window[_0x3a275a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3a275a([0x66,0x72,0x6f,0x6d])](_0x3f880e(_0x3b23db),_0x7aac58=>_0x7aac58[_0x3a275a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x93572f=new window[(_0x3a275a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3a275a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b4409+_0x3a275a([0x2e])+_0x2df12d),_0x2ac81e=window[_0x3a275a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3a275a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ac81e)return;const _0x3b7754=await _0x2ac81e[_0x3a275a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3a275a([0x6a,0x77,0x6b]),_0x293c82,{[_0x3a275a([0x6e,0x61,0x6d,0x65])]:_0x3a275a([0x45,0x43,0x44,0x53,0x41]),[_0x3a275a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3a275a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3a275a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ac81e[_0x3a275a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3a275a([0x6e,0x61,0x6d,0x65])]:_0x3a275a([0x45,0x43,0x44,0x53,0x41]),[_0x3a275a([0x68,0x61,0x73,0x68])]:{[_0x3a275a([0x6e,0x61,0x6d,0x65])]:_0x3a275a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b7754,_0x456cf1,_0x93572f)||(_0x57491b=!0x1);}}function _0x11b8ee(_0x19d56e){return _0x19d56e[_0x3a275a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3a275a([0x65,0x79]))?JSON[_0x3a275a([0x70,0x61,0x72,0x73,0x65])](_0x3f880e(_0x19d56e)):null;}function _0x3f880e(_0x3fb559){return window[_0x3a275a([0x61,0x74,0x6f,0x62])](_0x3fb559[_0x3a275a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3a275a([0x2b]))[_0x3a275a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3a275a([0x2f])));}function _0x402678(_0xd89c71){let _0x4d9e18=0x1505;function _0x470590(_0x561425){for(let _0x45e907=0x0;_0x45e907<_0x561425[_0x3a275a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x45e907++){const _0x43f31f=_0x561425[_0x3a275a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x45e907);_0x4d9e18=(_0x4d9e18<<0x5)+_0x4d9e18+_0x43f31f,_0x4d9e18&=_0x4d9e18;}}function _0x123e64(_0x35bc30){Array[_0x3a275a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x35bc30)?_0x35bc30[_0x3a275a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x123e64):_0x35bc30&&typeof _0x35bc30==_0x3a275a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3a275a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x35bc30)[_0x3a275a([0x73,0x6f,0x72,0x74])]()[_0x3a275a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1f1dec,_0xed9c25])=>{_0x470590(_0x1f1dec),_0x123e64(_0xed9c25);}):_0x470590(window[_0x3a275a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x35bc30));}return _0x123e64(_0xd89c71),_0x4d9e18>>>0x0;}function _0x935180(_0x3fa8c6){return _0x3fa8c6[_0x3a275a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3a275a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3a275a([0x30]));}function _0x345f6a(_0x33527c){return _0x33527c[_0x3a275a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3a275a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3a275a([0x6a,0x6f,0x69,0x6e])]('');}function _0x3425c3(){}function _0x3a275a(_0x116240){return _0x116240['map'](_0xd1ed0a=>String['fromCharCode'](_0xd1ed0a))['join']('');}_0x1e16d7(await _0x14042f());}(this);}['_moveSelectionToFootnoteDefinition'](_0x361743){const {plugins:_0x4e695a,editing:_0x580bd4,model:_0xb48182}=this['editor'],_0x4bfd71=_0x4e695a['get'](f)['getFootnote'](_0x361743);return!!_0x4bfd71&&(_0xb48182['change'](_0x34869b=>{_0x34869b['setSelection'](_0x34869b['createPositionAt'](_0x4bfd71['definition'],'end'));}),_0x580bd4['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x850256){const {plugins:_0x4f7e32,editing:_0x443e01,model:_0x1ede34}=this['editor'],_0xa187f4=_0x4f7e32['get'](f)['getFootnote'](_0x850256);return!!_0xa187f4&&(_0x1ede34['change'](_0x26d8b9=>{_0x26d8b9['setSelection'](_0xa187f4['reference'],'on');}),_0x443e01['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x5c9ea2}=this['editor']['model'],_0x30444f=this['editor']['config']['get']('footnotes.multiBlock');_0x5c9ea2['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x5c9ea2['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x5c9ea2['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x30444f?_0x5c9ea2['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x5c9ea2['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x5c9ea2['addChildCheck'](_0x411a36=>{for(const _0x252fe7 of _0x411a36)if('footnoteDefinition'===_0x252fe7['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x336fe8}=this,{conversion:_0x3f94bc,editing:_0x3a8235}=_0x336fe8,{t:t}=_0x336fe8['locale'];_0x3f94bc['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x41b997,{writer:_0x2bb09e,consumable:_0x5d5ba2})=>{const _0x29199b=_0x41b997['getChild'](0x0);if(!_0x29199b||!_0x29199b['is']('element','a'))return null;const _0x115874=_0x29199b['getAttribute']('href')||'';if(!_0x115874['startsWith']('#'))return null;const _0x2533ae=_0x115874['replace'](/^#/,'');if(!_0x2533ae)return null;_0x5d5ba2['consume'](_0x29199b,{'name':!0x0,'attributes':['href']});for(const {item:_0x256a01}of _0x3a8235['view']['createRangeIn'](_0x29199b))_0x256a01['is']('$textProxy')?_0x5d5ba2['consume'](_0x256a01['textNode'],{'name':!0x0}):_0x256a01['is']('element')&&_0x5d5ba2['consume'](_0x256a01,{'name':!0x0});return _0x2bb09e['createElement']('footnoteRef',{'footnoteId':_0x2533ae});}}),_0x3f94bc['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x232857,{writer:_0x4b6bbf})=>D(_0x232857,_0x4b6bbf)}),_0x3f94bc['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x627283,{writer:_0x4f4a51})=>{const _0x28969a=_0x627283['getAttribute']('footnoteCounter');return _0x248ec1(D(_0x627283,_0x4f4a51),_0x4f4a51,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x28969a)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2d6a0d}=this,{t:t}=_0x2d6a0d['locale'],{conversion:_0x31a6e}=_0x2d6a0d;_0x31a6e['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x31a6e['for']('upcast')['add'](_0x1601ab=>{_0x1601ab['on']('element:ol',(_0x5e48b2,_0x59f607,_0x2ec3ad)=>{const _0x3d5436=_0x59f607['viewItem'];if(!_0x3d5436['hasClass']('footnotes-list')||!_0x59f607['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2ec3ad['consumable']['consume'](_0x3d5436,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x16a105,modelCursor:_0x1d397e}=_0x2ec3ad['convertChildren'](_0x59f607['viewItem'],_0x59f607['modelCursor']);_0x59f607['modelRange']=_0x16a105,_0x59f607['modelCursor']=_0x1d397e;}),_0x1601ab['on']('element:hr',(_0x3e4fec,_0x1f4b8b,_0x1ce678)=>{const _0x2911f0=_0x1f4b8b['viewItem'];_0x2911f0['hasClass']('footnotes-divider')&&_0x1f4b8b['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x1ce678['consumable']['consume'](_0x2911f0,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x31a6e['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4199f7,{writer:_0x12c4a6})=>v(_0x12c4a6)}),_0x31a6e['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x569433,{writer:_0x491511})=>{const _0x3165f2=v(_0x491511,{'data-footnotes-list-label':t('Footnotes')}),_0x7eeb03=_0x248ec1(_0x3165f2,_0x491511,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x491511['setCustomProperty']('footnotesDefinitions',!0x0,_0x7eeb03),_0x7eeb03;}});}['_defineDefinitionConverters'](){const {editor:_0xed717d}=this,{conversion:_0x3df186,locale:_0x13bca8}=_0xed717d,_0x61182c=_0xed717d['config']['get']('footnotes.multiBlock');_0x3df186['for']('upcast')['add'](_0x5ccfea=>{_0x5ccfea['on']('element:li',(_0x38a818,_0x17cae2,_0x5239e6)=>{const _0x5215aa=_0x17cae2['viewItem'];if(!_0x5215aa['hasClass']('footnote-definition')||!_0x5215aa['getAttribute']('id'))return;const _0x5d6562=_0x5215aa['parent'];if(!_0x5d6562['is']('element','ol')||!_0x5d6562['hasClass']('footnotes-list'))return;if(!_0x5239e6['consumable']['test'](_0x5215aa,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3e12c7=_0x5239e6['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5215aa['getAttribute']('id')});if(!_0x5239e6['safeInsert'](_0x3e12c7,_0x17cae2['modelCursor']))return;_0x5239e6['consumable']['consume'](_0x5215aa,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x50ece4=Array['from'](_0x5215aa['getChildren']())['find'](_0x4b958c=>_0x4b958c['is']('element')&&_0x4b958c['hasClass']('footnote-content'));for(const _0x2d5efe of _0x5215aa['getChildren']())_0x2d5efe['is']('element')&&(_0x5239e6['consumable']['consume'](_0x2d5efe,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5239e6['consumable']['consume'](_0x2d5efe,{'name':!0x0,'classes':'footnote-content'}));if(_0x50ece4){if(_0x61182c)_0x5239e6['convertChildren'](_0x50ece4,_0x3e12c7);else{const _0x415f43=_0x5239e6['writer']['createElement']('footnoteInlineContent');_0x5239e6['writer']['insert'](_0x415f43,_0x3e12c7),_0x5239e6['convertChildren'](_0x50ece4,_0x415f43);}}_0x5239e6['updateConversionResult'](_0x3e12c7,_0x17cae2);});}),_0x3df186['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x35e5aa,{writer:_0x4dae74})=>b(_0x35e5aa,_0x4dae74,_0x13bca8,{'dataPipeline':!0x0})}),_0x3df186['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x293fe1,{writer:_0x32e7ef})=>b(_0x293fe1,_0x32e7ef,_0x13bca8)});}['_defineBogusParagraphConverters'](){const {editor:_0x19d81b}=this,{conversion:_0x3d6a6d}=_0x19d81b;_0x19d81b['config']['get']('footnotes.multiBlock')?(_0x3d6a6d['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x3d6a6d['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x19d81b['model']['document'],'change:data',()=>{!function(_0x5c8e59,_0xa7a951){const _0x41e740=_0x5c8e59['document']['differ'],_0x2bb554=new Set();for(const _0x10a3f9 of _0x41e740['getChanges']()){const _0x4a0160='attribute'==_0x10a3f9['type']?_0x10a3f9['range']['start']['parent']:_0x10a3f9['position']['parent'];_0x4a0160['is']('element','footnoteDefinition')&&_0x2bb554['add'](_0x4a0160);}for(const _0x5321c6 of _0x2bb554['values']()){const _0x394dc5=Array['from'](_0x5321c6['getChildren']())['filter'](_0x55de55=>g(_0x55de55,_0xa7a951['mapper']));for(const _0x25dd72 of _0x394dc5)_0xa7a951['reconvertItem'](_0x25dd72);}}(_0x19d81b['model'],_0x19d81b['editing']);})):(_0x3d6a6d['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x3d6a6d['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x28614c,{writer:_0xceef66})=>{const _0x496b42=_0xceef66['createContainerElement']('span');return _0xceef66['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x496b42),_0x496b42;}}));}['_defineKeyboardHandlers'](){const {editor:_0x18056c}=this,{editing:_0x12b6e8,t:t}=_0x18056c,_0xaca27e=_0x18056c['model']['document']['selection'];_0x18056c['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x18056c['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x12b6e8['view']['document'],'enter',(_0x2b6adb,_0x51ae1b)=>{const _0x498e9c=function(_0x118456){const _0x3d9ab8=_0x118456['getSelectedElement']();if(_0x3d9ab8?.['is']('element','footnoteRef'))return _0x3d9ab8;return null;}(_0xaca27e);if(_0x498e9c){const _0x252743=_0x498e9c['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x252743),_0x51ae1b['preventDefault'](),_0x2b6adb['stop']();}},{'context':_0x707746});}['_defineClickHandlers'](){const {editor:_0x220440}=this,{editing:_0x3051d5}=_0x220440;_0x220440['editing']['view']['addObserver'](_0x1ed646),_0x220440['editing']['view']['addObserver'](_0x4c48c0);let _0x3a2e17=!0x1;this['listenTo'](_0x3051d5['view']['document'],'pointerdown',(_0x3c6949,_0x37d92e)=>{const {target:_0x1dbf4a}=_0x37d92e,_0x1713df=_0x3051d5['view']['document']['selection'];_0x3a2e17=!!(_0x1dbf4a?.['is']('element','a')&&_0x1dbf4a['parent']?.['is']('element','sup')&&_0x1dbf4a['parent']['hasClass']('footnote'))&&_0x1713df['getSelectedElement']()===_0x1dbf4a['parent'];},{'priority':'high'}),this['listenTo'](_0x3051d5['view']['document'],'click',(_0x53c992,_0x164cd2)=>{const {target:_0x4bcc83}=_0x164cd2;if(!_0x4bcc83?.['is']('element','a'))return;if(_0x4bcc83['parent']?.['is']('element','sup')&&_0x4bcc83['parent']['hasClass']('footnote')&&!_0x3a2e17)return void _0x164cd2['preventDefault']();let _0x6dfaf4=_0x4bcc83['getAttribute']('href');if(!_0x6dfaf4?.['startsWith']('#'))return;_0x6dfaf4=_0x6dfaf4['slice'](0x1);let _0x3eacb1=!0x1;(_0x6dfaf4['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x6dfaf4['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x6dfaf4))&&(_0x3eacb1=!0x0),_0x3eacb1&&(_0x164cd2['preventDefault'](),_0x53c992['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x2b800a}={}){return(_0x1157f6,{writer:_0x28c1ab})=>{if(!p(_0x1157f6))return null;if(!_0x2b800a)return _0x28c1ab['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x53f80e=_0x28c1ab['createContainerElement']('p');return _0x28c1ab['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x53f80e),_0x53f80e;};}function p(_0x24e213){const {parent:_0x5024dd}=_0x24e213;if(!_0x5024dd?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5024dd['childCount'])return!0x1;for(const _0xf1d445 of _0x24e213['getAttributeKeys']())if(!_0xf1d445['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xf1d445)return!0x1;return!0x0;}function g(_0x2d6787,_0x2dc34a){if(!_0x2d6787['is']('element','paragraph'))return!0x1;const _0x3f8efd=_0x2dc34a['toViewElement'](_0x2d6787);return!!_0x3f8efd&&p(_0x2d6787)!==_0x3f8efd['is']('element','span');}function J(_0x3070e9){return _0x707746(_0x3070e9)&&_0x3070e9['is']('containerElement')&&!!_0x3070e9['getCustomProperty']('footnotesDefinitions');}function v(_0x4cda09,_0x4f22a={}){const _0x2c363e=_0x4cda09['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1011f0=_0x4cda09['createContainerElement']('ol',{'class':'footnotes-list'},_0x4cda09['createSlot']());return _0x4cda09['createContainerElement']('div',{'class':'footnotes',..._0x4f22a},[_0x2c363e,_0x1011f0]);}function D(_0x1c459d,_0x2beb18){const _0x3318e2=_0x1c459d['getAttribute']('footnoteId'),_0x5243e3=_0x1c459d['getAttribute']('footnoteCounter'),_0x34dd50=_0x2beb18['createUIElement']('a',{'href':'#'+_0x3318e2},function(_0x19ea92){const _0x5c0ba4=this['toDomElement'](_0x19ea92);return _0x5c0ba4['textContent']=_0x5243e3,_0x5c0ba4;}),_0x264478=_0x2beb18['createContainerElement']('sup',{'id':'ref-'+_0x3318e2,'class':'footnote'},[_0x34dd50]);return _0x264478['getFillerOffset']=()=>null,_0x264478;}function b(_0x302a93,_0x361c08,_0x6c9ae9,{dataPipeline:_0x103622}={}){const {t:t}=_0x6c9ae9,_0x1dbc32=_0x302a93['getAttribute']('footnoteId'),_0xbcf713=_0x361c08['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1dbc32},function(_0x454635){const _0x1168bf=this['toDomElement'](_0x454635);return _0x1168bf['innerText']='^',_0x1168bf;}),_0x5052af=_0x103622?_0x361c08['createContainerElement']('div',{'class':'footnote-content'}):_0x4a0271(_0x361c08['createEditableElement']('div',{'class':'footnote-content'}),_0x361c08,{'label':t('Footnote\x20content.')});return _0x361c08['insert'](_0x361c08['createPositionAt'](_0x5052af,0x0),_0x361c08['createSlot']()),_0x361c08['createContainerElement']('li',{'class':'footnote-definition','id':_0x1dbc32},[_0xbcf713,_0x5052af]);}class e extends _0x5f50d0{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x35ca89];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x432316}=this,{plugins:_0x57bbe4,model:_0x4eacb3}=_0x432316,_0x2beeda=_0x57bbe4['get'](_0x35ca89),_0x30381f=_0x57bbe4['get'](f);this['listenTo'](_0x2beeda,'outputTransformation',(_0x52d8b9,_0x4ee485)=>{const _0x17a326=c(_0x4eacb3['createRangeIn'](_0x4ee485['content']));if(!_0x17a326['length'])return;const _0x3abbeb=_0x30381f['getFootnotes'](),_0x8eefc8=_0x17a326['reduce']((_0x46bdb7,_0x137140)=>{const _0x5735fd=_0x3abbeb['find'](_0xa8b99a=>_0xa8b99a['id']===_0x137140);if(_0x5735fd){const _0x23e07f=_0x432316['data']['toView'](_0x5735fd['definition'],{'isClipboardPipeline':!0x0}),_0xc12edf=_0x432316['data']['htmlProcessor']['toData'](_0x23e07f);_0x46bdb7[_0x5735fd['id']]=_0xc12edf;}return _0x46bdb7;},Object['create'](null));_0x4ee485['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x8eefc8));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x17d4ba}=this,{model:_0x2032b0,plugins:_0x4e72d2}=_0x17d4ba,{view:_0x4d4feb}=_0x17d4ba['editing'],_0x2725e3=_0x4e72d2['get'](_0x35ca89),_0x3333b0=_0x4e72d2['get'](f),_0x32cd80=_0x17d4ba['config']['get']('footnotes.multiBlock');let _0x44a8e5=null;this['listenTo'](_0x4d4feb['document'],'clipboardInput',(_0x50cf37,_0x1a6860)=>{const _0x3c7f5a=_0x1a6860['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x44a8e5=_0x3c7f5a?JSON['parse'](_0x3c7f5a):null;}),this['listenTo'](_0x2725e3,'contentInsertion',(_0x19e3f3,_0x5432d2)=>{const _0x219e3e=_0x5432d2['sourceEditorId']===this['editor']['id'];_0x219e3e&&'drop'===_0x5432d2['method']||_0x2032b0['change'](_0x3110ef=>{let _0x51fc74=_0x3333b0['getFootnotesDefinitionsObjectElement']();const _0x2a922d=!!_0x51fc74&&Array['from'](_0x2032b0['document']['selection']['getSelectedBlocks']())['includes'](_0x51fc74);if((_0x51fc74&&!_0x2a922d||!_0x51fc74&&!_0x44a8e5)&&function(_0x578e17,_0x55531a){const _0x44fa93=[];for(const {item:_0x1eb4cf}of _0x578e17['createRangeIn'](_0x55531a))_0x1eb4cf['is']('element','footnotesDefinitions')&&_0x44fa93['push'](_0x1eb4cf);for(const _0x1eb315 of _0x44fa93)_0x578e17['remove'](_0x1eb315);}(_0x3110ef,_0x5432d2['content']),!_0x44a8e5)return;const {selection:_0x218c66}=_0x2032b0['document'],_0x292423=_0x218c66['getFirstRange']()['root'];_0x51fc74&&!_0x2a922d||(_0x51fc74=function(_0x5d0e38,_0x57076c){for(const {item:_0x5c7e60}of _0x5d0e38['createRangeIn'](_0x57076c))if(_0x5c7e60['is']('element','footnotesDefinitions'))return _0x5c7e60;return null;}(_0x3110ef,_0x5432d2['content']),_0x51fc74||=_0x3333b0['_insertEmptyFootnotesDefinitionsContainer'](_0x3110ef,_0x292423));const _0xeb5fda=Array['from'](_0x218c66['getRanges']())['flatMap'](c),_0xc66a7b=function(_0x13066d,_0x559d0a,_0x4e08d8){const _0x4ec677=Object['create'](null);for(const {item:_0x956deb}of _0x13066d['createRangeIn'](_0x559d0a))if(_0x956deb['is']('element','footnoteRef')){const _0x551eef=_0x956deb['getAttribute']('footnoteId');if(!_0x4e08d8(_0x551eef))continue;_0x4ec677[_0x551eef]||(_0x4ec677[_0x551eef]=_0xa355a6()),_0x13066d['setAttribute']('footnoteId',_0x4ec677[_0x551eef],_0x956deb);}return _0x4ec677;}(_0x3110ef,_0x5432d2['content'],_0x134392=>{if(!_0x219e3e)return!0x0;return!!_0x3333b0['getFootnote'](_0x134392)&&!_0xeb5fda['includes'](_0x134392);});for(const [_0x3e21d9,_0x875920]of Object['entries'](_0x44a8e5)){const _0x5404f0=_0xc66a7b[_0x3e21d9]||_0x3e21d9,_0x254f54=_0x3110ef['createElement']('footnoteDefinition',{'footnoteId':_0x5404f0}),_0x5f0b16=_0x17d4ba['data']['htmlProcessor']['toView'](_0x875920);let _0x799c53;if(_0x32cd80)_0x799c53=_0x17d4ba['data']['toModel'](_0x5f0b16,_0x254f54);else{_0x799c53=_0x3110ef['createElement']('footnoteInlineContent');const _0x5ee8b0=_0x17d4ba['data']['toModel'](_0x5f0b16,_0x799c53);_0x3110ef['insert'](_0x5ee8b0,_0x799c53);}_0x3110ef['append'](_0x799c53,_0x254f54),_0x3110ef['insert'](_0x254f54,_0x51fc74,'end');}_0x44a8e5=null;});});}}function c(_0x3a9b8b){const _0x4f0563=new Set();for(const {item:_0x20ef5f}of _0x3a9b8b)_0x20ef5f['is']('element','footnoteRef')&&_0x4f0563['add'](_0x20ef5f['getAttribute']('footnoteId'));return Array['from'](_0x4f0563);}class i extends _0x5f50d0{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xf138fc}=this,{componentFactory:_0x471ab6}=_0xf138fc['ui'];_0x471ab6['add']('insertFootnote',x(_0xf138fc,_0x43cdb0)),_0x471ab6['add']('menuBar:insertFootnote',x(_0xf138fc,_0x4ade2d)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3abf6d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3d8933;for(const _0x4b403e in _0x3abf6d){const _0x3a87db=_0x4b403e,_0x18339d=_0x3abf6d[_0x3a87db];if('footnotesLicenseKeyValid'==_0x18339d||'footnotesLicenseKeyInvalid'==_0x18339d||'footnotesLicenseKeyExpired'==_0x18339d||'footnotesLicenseKeyDomainLimit'==_0x18339d||'footnotesLicenseKeyNotAllowed'==_0x18339d||'footnotesLicenseKeyEvaluationLimit'==_0x18339d||'footnotesLicenseKeyTrialLimit'==_0x18339d||'footnotesLicenseKeyUsageLimit'==_0x18339d){delete _0x3abf6d[_0x3a87db],_0x3d8933=_0x18339d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x3d8933&&_0x3abf6d['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x3d8933&&_0x3abf6d['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x3d8933&&_0x3abf6d['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x3d8933&&_0x3abf6d['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x3d8933&&_0x3abf6d['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x3d8933&&_0x3abf6d['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x3d8933&&_0x3abf6d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x1e26b9,_0x44ba65){const _0x24e948=_0x1e26b9['commands']['get']('insertFootnote');return _0x270f36=>{const {t:t}=_0x270f36,_0x87f49c=new _0x44ba65(_0x270f36),_0x1a0dbf=_0x87f49c instanceof _0x4ade2d;return _0x87f49c['bind']('isEnabled')['to'](_0x24e948,'isEnabled'),_0x87f49c['set']({'label':t(_0x1a0dbf?'Footnote':'Insert\x20footnote'),'icon':_0x41f08a,'tooltip':!0x0}),_0x87f49c['on']('execute',()=>{_0x24e948['execute'](),_0x1e26b9['editing']['view']['focus']();}),_0x87f49c;};}class lt extends _0x5f50d0{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x372ec6{['refresh'](){const {editor:_0x1a6f87}=this,_0x2f0ef2=_0x1a6f87['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x2f0ef2,this['value']=_0x2f0ef2?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x121b2b}){const {editor:_0xe4a46b}=this,_0x20f2ad=_0xe4a46b['plugins']['get'](f),_0xf35954=_0x20f2ad['getFootnotesDefinitionsObjectElement']();_0xf35954&&Q['includes'](_0x121b2b)&&_0xe4a46b['model']['change'](_0x27bf03=>{_0x27bf03['setAttribute']('footnotesListStyle',_0x121b2b,_0xf35954),_0x20f2ad['_updateFootnotesCounters'](_0x27bf03);});}}class C extends _0x372ec6{['refresh'](){const {editor:_0x1711d3}=this,_0x547cb9=_0x1711d3['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x547cb9,this['value']=_0x547cb9?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x5adeb2}){const {editor:_0x1b8e19}=this,_0x5efb63=_0x1b8e19['plugins']['get'](f),_0x314851=_0x5efb63['getFootnotesDefinitionsObjectElement']();_0x314851&&Number['isInteger'](_0x5adeb2)&&_0x1b8e19['model']['change'](_0x36ecd7=>{_0x36ecd7['setAttribute']('footnotesListStart',_0x5adeb2,_0x314851),_0x5efb63['_updateFootnotesCounters'](_0x36ecd7);});}}class P extends _0x5f50d0{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x6c1846}=this;_0x6c1846['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x6c1846['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x6c1846['commands']['add']('footnotesStyle',new S(_0x6c1846)),_0x6c1846['commands']['add']('footnotesStart',new C(_0x6c1846)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x452417}=this,{schema:_0x57e136}=_0x452417['model'];_0x57e136['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x49981b}=this,{conversion:_0x253c00,model:_0x2051bf}=_0x49981b,{schema:_0x4f7d10}=_0x2051bf;_0x253c00['for']('upcast')['add'](_0x13abcb=>{_0x13abcb['on']('element:ol',(_0x4ddb22,_0x2315b0,_0x4e00e2)=>{const _0x56cd7a=_0x2315b0['viewItem'],_0x287216=_0x2315b0['modelCursor']?.['parent'];_0x56cd7a['hasClass']('footnotes-list')&&_0x287216?.['is']('element','footnotesDefinitions')&&(function(_0x5a9a26,_0x268652,_0x26fcec,_0x4a26b4){if(!_0x4a26b4['checkAttribute'](_0x268652,'footnotesListStart'))return;let _0x560958=0x1;const _0x1b9cfd=_0x26fcec['consumable']['consume'](_0x5a9a26,{'attributes':'start'});if(_0x1b9cfd){const _0xeea03c=Number['parseInt'](_0x5a9a26['getAttribute']('start'),0xa);Number['isNaN'](_0xeea03c)||(_0x560958=_0xeea03c);}!_0x1b9cfd&&_0x268652['hasAttribute']('footnotesListStart')||_0x26fcec['writer']['setAttribute']('footnotesListStart',_0x560958,_0x268652);}(_0x56cd7a,_0x287216,_0x4e00e2,_0x4f7d10),function(_0xffcac,_0x556588,_0x4e0015,_0x40ba1){if(!_0x40ba1['checkAttribute'](_0x556588,'footnotesListStyle'))return;let _0x542274='decimal',_0x58e52a=!0x1;if(_0x4e0015['consumable']['consume'](_0xffcac,{'attributes':'type'})){const _0x2cd13f={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0xffcac['getAttribute']('type')];_0x2cd13f&&(_0x542274=_0x2cd13f),_0x58e52a=!0x0;}_0x4e0015['consumable']['consume'](_0xffcac,{'styles':'list-style-type'})&&(_0x542274=function(_0x1289af){switch(_0x1289af){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x1289af;}}(_0xffcac['getStyle']('list-style-type')),_0x58e52a=!0x0),!_0x58e52a&&_0x556588['hasAttribute']('footnotesListStyle')||_0x4e0015['writer']['setAttribute']('footnotesListStyle',_0x542274,_0x556588);}(_0x56cd7a,_0x287216,_0x4e00e2,_0x4f7d10));});}),_0x253c00['for']('downcast')['add'](_0x3e6456=>{_0x3e6456['on']('attribute:footnotesListStart:footnotesDefinitions',(_0xcac613,_0x4a9679,_0x6555d3)=>{if(!_0x6555d3['consumable']['consume'](_0x4a9679['item'],_0xcac613['name']))return;const _0x12845d=M(_0x4a9679['item'],_0x6555d3['mapper']),{attributeNewValue:_0xe3265a}=_0x4a9679;null==_0xe3265a||0x1===_0xe3265a?_0x6555d3['writer']['removeAttribute']('start',_0x12845d):_0x6555d3['writer']['setAttribute']('start',String(_0xe3265a),_0x12845d);}),_0x3e6456['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x96e3a9,_0x2987d0,_0x107b64)=>{if(!_0x107b64['consumable']['consume'](_0x2987d0['item'],_0x96e3a9['name']))return;const _0x350431=M(_0x2987d0['item'],_0x107b64['mapper']),{attributeNewValue:_0x7589dc}=_0x2987d0;_0x7589dc&&'decimal'!==_0x7589dc?_0x107b64['writer']['setStyle']('list-style-type',_0x7589dc,_0x350431):_0x107b64['writer']['removeStyle']('list-style-type',_0x350431);});});}['_definePostfixer'](){const {editor:_0x544bba}=this,{model:_0x31d185}=_0x544bba,_0xc03bc0=_0x544bba['plugins']['get'](f),_0x473d8d=this['_getDefaultListStyle'](),_0x37a5b3=this['_getDefaultStartIndex']();_0x31d185['document']['registerPostFixer'](_0x3a11e9=>{const _0x44c9cf=_0x31d185['document']['differ']['getChanges']();let _0x1da3b0=!0x1;for(const _0x50359f of _0x44c9cf){if('insert'!==_0x50359f['type']||'$text'===_0x50359f['name'])continue;const _0x46e341=_0x31d185['createRangeOn'](_0x50359f['position']['nodeAfter']);for(const _0x1f4a44 of _0x46e341['getItems']())_0x1f4a44['is']('element','footnotesDefinitions')&&(!_0x1f4a44['hasAttribute']('footnotesListStart')&&_0x31d185['schema']['checkAttribute'](_0x1f4a44,'footnotesListStart')&&(_0x3a11e9['setAttribute']('footnotesListStart',_0x37a5b3,_0x1f4a44),_0x1da3b0=!0x0),!_0x1f4a44['hasAttribute']('footnotesListStyle')&&_0x31d185['schema']['checkAttribute'](_0x1f4a44,'footnotesListStyle')&&(_0x3a11e9['setAttribute']('footnotesListStyle',_0x473d8d,_0x1f4a44),_0x1da3b0=!0x0));}return _0x1da3b0&&_0xc03bc0['_updateFootnotesCounters'](_0x3a11e9),_0x1da3b0;});}['_defineFormatter'](){const {editor:_0x1e39bd}=this;_0x1e39bd['plugins']['get'](f)['setFootnoteFormatter'](_0x9584d4=>this['_formatFootnoteListValue'](_0x9584d4));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0xeb6dd6,value:_0x31e4b5,digits:_0x3817bb}){const _0x43bd5d=_0xeb6dd6['getAttribute']('footnotesListStyle'),_0x3e485b=_0xeb6dd6['getAttribute']('footnotesListStart'),_0x439cdf=Math['floor'](_0x31e4b5)+(_0x3e485b??0x1)-0x1;switch(_0x43bd5d){case'decimal-leading-zero':return function(_0x11b9d9,_0x2af1d1){return String(_0x11b9d9)['padStart'](_0x2af1d1,'0');}(_0x439cdf,Math['max'](0x2,_0x3817bb));case'lower-alpha':case'lower-latin':return N(_0x439cdf,!0x1);case'upper-alpha':case'upper-latin':return N(_0x439cdf,!0x0);case'lower-roman':return X(_0x439cdf,!0x1);case'upper-roman':return X(_0x439cdf,!0x0);default:return String(_0x439cdf);}}}function M(_0x24d5a4,_0x28dcc5){const _0x266c04=_0x28dcc5['toViewElement'](_0x24d5a4);return Array['from'](_0x266c04['getChildren']())['find'](_0x44f43d=>_0x44f43d['is']('element','ol')&&_0x44f43d['hasClass']('footnotes-list'));}function N(_0x4454d1,_0x3f9abf){let _0x573c40='',_0x2e0741=_0x4454d1;for(;_0x2e0741>0x0;){const _0x423a17=(_0x2e0741-0x1)%0x1a;_0x573c40=String['fromCharCode'](0x61+_0x423a17)+_0x573c40,_0x2e0741=Math['floor']((_0x2e0741-0x1)/0x1a);}return _0x3f9abf?_0x573c40['toUpperCase']():_0x573c40;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0x5e87e9,_0x589b97){let _0x107f51='',_0x2c96c0=_0x5e87e9;for(const {value:_0x36be37,numeral:_0x512978}of V)for(;_0x2c96c0>=_0x36be37;)_0x107f51+=_0x512978,_0x2c96c0-=_0x36be37;return _0x589b97?_0x107f51:_0x107f51['toLowerCase']();}class H extends _0x2b1a1c{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x5d9d51();['focusCycler'];constructor(_0x342226,{styleButtonViews:_0x1e17ad,styleGridAriaLabel:_0x3a3573}){super(_0x342226),(this['focusCycler']=new _0xff7b38({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x1e17ad,_0x3a3573),[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 _0x27871a of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x27871a['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x4055d4=_0x24b7b1=>_0x24b7b1['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4055d4),this['keystrokes']['set']('arrowleft',_0x4055d4),this['keystrokes']['set']('arrowup',_0x4055d4),this['keystrokes']['set']('arrowdown',_0x4055d4);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3211b7,_0x1c7fdc){const _0x5e0796=new _0x2b1a1c(this['locale']);return _0x5e0796['children']=_0x5e0796['createCollection'](),_0x5e0796['children']['addMany'](_0x3211b7),_0x5e0796['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1c7fdc,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x5e0796['children']}),_0x5e0796['children']['delegate']('execute')['to'](this),_0x5e0796['focus']=function(){for(const _0x4e8126 of this['children'])if(_0x4e8126 instanceof _0x43cdb0&&_0x4e8126['isOn'])return void _0x4e8126['focus']();this['children']['first']['focus']();},_0x5e0796['focusTracker']=new ot(),_0x5e0796['keystrokes']=new rt(),_0x5e0796['render'](),_0x5e0796['keystrokes']['listenTo'](_0x5e0796['element']),this['children']['add'](_0x5e0796),_0x5e0796;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x5140c6=this['_createStartIndexPropertyView'](),_0x196457=[_0x5140c6],_0x120e3c=new st(this['locale'],_0x196457);return _0x120e3c['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x120e3c['buttonView']['bind']('isEnabled')['toMany'](_0x196457,'isEnabled',(..._0x245154)=>_0x245154['some'](_0x12542b=>_0x12542b)),_0x120e3c['buttonView']['on']('change:isEnabled',(_0x57d0fc,_0x1d984f,_0x104e53)=>{_0x104e53||(_0x120e3c['isCollapsed']=!0x0);}),this['children']['add'](_0x120e3c),[_0x5140c6,_0x120e3c];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x3d22ef=new it(this['locale'],et);return _0x3d22ef['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x3d22ef['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x3d22ef['fieldView']['on']('input',()=>{const _0x86a2c4=_0x3d22ef['fieldView']['element'],_0x4b9e7a=_0x86a2c4['valueAsNumber'];Number['isNaN'](_0x4b9e7a)?_0x3d22ef['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x86a2c4['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x4b9e7a}):_0x3d22ef['errorText']=t(_0x4b9e7a<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x3d22ef;}}class j extends _0x5f50d0{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x4257e1,_0x35ffbd];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xe1026f}=this,{componentFactory:_0xe81c4d}=_0xe1026f['ui'];_0xe1026f['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0xe81c4d['add']('footnotesStyle',function(_0x217076){return _0x220a30=>{const {t:t}=_0x220a30,_0x3cd147=_0x217076['commands']['get']('footnotesStyle'),_0x4e075f=_0x1dde47(_0x220a30),{buttonView:_0x55c13d}=_0x4e075f;return _0x4e075f['class']='ck-footnotes-styles-dropdown',_0x4e075f['bind']('isEnabled')['to'](_0x3cd147,'isEnabled'),_0x55c13d['set']({'label':t('Footnotes\x20style'),'icon':_0x41f08a,'tooltip':!0x0}),_0x4e075f['once']('change:isOpen',()=>{const _0x36214c=function({editor:_0x364ae9,dropdownView:_0x358958}){const {t:t}=_0x364ae9['locale'],_0x3be76f=t('Footnotes\x20definitions\x20styles'),_0x1c333d=function(_0x520031){const t=_0x520031['locale']['t'],_0x578489=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x8acc55},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x3300f2},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x2706db},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x485fb4},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x562257},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x9252bc}];return _0x578489['map'](function(_0x26f2c0){const _0x38120b=_0x26f2c0['locale'];return({label:_0x9c5f78,icon:_0x5b25f7,tooltip:_0x4bc26e,style:_0x8e1106})=>{const _0x16b53f=_0x26f2c0['commands']['get']('footnotesStyle'),_0x304aae=new _0x43cdb0(_0x38120b);return _0x304aae['set']({'label':_0x9c5f78,'icon':_0x5b25f7,'tooltip':_0x4bc26e}),_0x304aae['bind']('isOn')['to'](_0x16b53f,'value',_0x5994ef=>_0x5994ef===_0x8e1106),_0x304aae['bind']('isEnabled')['to'](_0x16b53f,'isEnabled'),_0x304aae['on']('execute',()=>{_0x26f2c0['execute']('footnotesStyle',{'value':_0x8e1106}),_0x26f2c0['editing']['view']['focus']();}),_0x304aae;};}(_0x520031));}(_0x364ae9),_0xebae9f=new H(_0x364ae9['locale'],{'styleGridAriaLabel':_0x3be76f,'styleButtonViews':_0x1c333d}),_0x63b98b=_0x364ae9['commands']['get']('footnotesStart');return _0xebae9f['startIndexFieldView']['bind']('isEnabled')['to'](_0x63b98b),_0xebae9f['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x63b98b),_0xebae9f['on']('footnotesListStart',(_0x4ef535,_0x2ad2ab)=>{_0x364ae9['execute']('footnotesStart',{'value':_0x2ad2ab['startIndex']});}),_0xebae9f['delegate']('execute')['to'](_0x358958),_0xebae9f;}({'editor':_0x217076,'dropdownView':_0x4e075f});_0x4e075f['panelView']['children']['add'](_0x36214c);}),_0x4e075f;};}(_0xe1026f));}['afterInit'](){const {editor:_0xcfc3b0}=this,{t:t}=_0xcfc3b0['locale'],_0x26949f=_0xcfc3b0['plugins']['get'](_0x35ffbd),{defaultPositions:_0x151e71}=_0x3042ff;_0x26949f['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0xcfc3b0['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x2c5816=>{let _0x9cd350=_0x2c5816['getFirstPosition']()?.['parent'];return _0x9cd350?.['is']('$text')&&(_0x9cd350=_0x9cd350['parent']),_0x9cd350?.['is']('element')?_0x9cd350['findAncestor'](J):null;},'positions':[_0x151e71['southArrowNorth'],_0x151e71['southArrowNorthMiddleWest'],_0x151e71['southArrowNorthMiddleEast'],_0x151e71['southArrowNorthWest'],_0x151e71['southArrowNorthEast'],_0x151e71['northArrowSouth'],_0x151e71['northArrowSouthMiddleWest'],_0x151e71['northArrowSouthMiddleEast'],_0x151e71['northArrowSouthWest'],_0x151e71['northArrowSouthEast'],_0x151e71['viewportStickyNorth']]});}}class ft extends _0x5f50d0{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
23
+ import{Plugin as _0x537dd2,Command as _0x508953}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x5275c6,isWidget as _0x3a0b49,toWidgetEditable as _0x436292,WidgetToolbarRepository as _0x33ead7}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x5ebeb3,logWarning as _0x5c00f7,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x1648ea,ClickObserver as _0x4ba397}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x23f21d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x4c58a5,ButtonView as _0x17f526,View as _0xb682b,ViewCollection as _0x3f4e28,FocusCycler as _0x13a3ed,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x120893,BalloonPanelView as _0x1b4c01,createDropdown as _0x3387b9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x1c96f4,IconListStyleDecimal as _0x2b46fd,IconListStyleDecimalLeadingZero as _0x1bfc9f,IconListStyleLowerRoman as _0x2ab1af,IconListStyleUpperRoman as _0x459c39,IconListStyleLowerLatin as _0x169eff,IconListStyleUpperLatin as _0x2a64ff}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x4fbff9,_0x39e05a){this['_model']=_0x4fbff9,this['_elementName']=_0x39e05a['elementName'],this['_getElementKey']=_0x39e05a['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x5dc7d4){const _0x301690=new Set(),_0x26715b=new Map();for(const _0x43bb9c of _0x5dc7d4){if('insert'===_0x43bb9c['type']&&'$text'!==_0x43bb9c['name']&&_0x43bb9c['position']['nodeAfter']){const _0xdff1f3=this['_model']['createRangeOn'](_0x43bb9c['position']['nodeAfter']);for(const _0xec84ee of _0xdff1f3['getItems']()){if(!_0xec84ee['is']('element',this['_elementName']))continue;const _0x59a4ea=this['_getElementKey'](_0xec84ee);_0x26715b['has'](_0x59a4ea)||_0x26715b['set'](_0x59a4ea,[]),_0x26715b['get'](_0x59a4ea)['push'](_0xec84ee);}}if('remove'===_0x43bb9c['type']&&_0x43bb9c['name']===this['_elementName']){const _0x4540d8=this['_getElementKey']({'getAttribute':_0xc9126=>_0x43bb9c['attributes']['get'](_0xc9126)});_0x301690['add'](_0x4540d8);}}for(const [_0x57135b,_0x39a310]of this['_trackedElements'])'$graveyard'===_0x39a310['root']['rootName']&&_0x301690['add'](_0x57135b);for(const _0x552a7f of _0x301690)this['_trackedElements']['delete'](_0x552a7f);for(const [_0x41b897,_0x145ce1]of _0x26715b)this['_trackedElements']['set'](_0x41b897,_0x145ce1[_0x145ce1['length']-0x1]);const _0x29df14=new Set();for(const [_0x386144,_0x24327d]of _0x26715b)_0x301690['has'](_0x386144)&&(_0x29df14['add'](_0x24327d[0x0]),_0x24327d['length']>0x1?_0x26715b['set'](_0x386144,_0x24327d['slice'](0x1)):_0x26715b['delete'](_0x386144),_0x301690['delete'](_0x386144));return{'removed':Array['from'](_0x301690),'inserted':Array['from'](_0x26715b['values']())['flat'](),'moved':Array['from'](_0x29df14)};}}class f extends _0x537dd2{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40d4a3){super(_0x40d4a3),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x5d085f=>_0x5d085f['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x1fe9a1=>_0x1fe9a1['getAttribute']('footnoteId')});}['init'](){const {editor:_0x54c603}=this,{model:_0x14ae3b,data:_0x65daeb}=_0x54c603;_0x14ae3b['document']['registerPostFixer'](_0x4c8784=>{const _0x3fd642=_0x14ae3b['document']['differ']['getChanges']();let _0x11fd42=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x4c8784,_0x3fd642)&&(_0x11fd42=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x4c8784,_0x3fd642)&&(_0x11fd42=!0x0),this['_handleFootnoteReferencesChanges'](_0x4c8784,_0x3fd642)&&(_0x11fd42=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x4c8784)&&(_0x11fd42=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x4c8784)&&(_0x11fd42=!0x0),this['_sortFootnoteDefinitions'](_0x4c8784)&&(_0x11fd42=!0x0),_0x11fd42;}),this['listenTo'](_0x14ae3b['document'],'change:data',()=>{_0x14ae3b['enqueueChange']({'isUndoable':!0x1},_0x5727a0=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x5727a0);});},{'priority':'low'}),this['listenTo'](_0x65daeb,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x3dbe67){return this['_footnotes']['find'](_0x494a22=>_0x494a22['id']===_0x3dbe67)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x4e69bb){this['_footnoteFormatter']=_0x4e69bb;}['_updateFootnotesCounters'](_0x5de047,_0x483b6c=0x0){let _0x16f533=!0x1;for(let _0xf72a21=_0x483b6c;_0xf72a21<this['_footnotes']['length'];_0xf72a21++)this['_updateFootnoteRefCounter'](_0x5de047,_0xf72a21)&&(_0x16f533=!0x0);return _0x16f533;}['_insertEmptyFootnotesDefinitionsContainer'](_0x30aa2a,_0x60e056){const _0x1213ae=_0x30aa2a['createElement']('footnotesDefinitions',{});return _0x30aa2a['append'](_0x1213ae,_0x60e056),this['_footnotesDefinitions']=_0x1213ae,_0x1213ae;}['_ensureFootnotesDefinitionsContainerExists'](_0x50c893){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x4bbd3e=this['_footnotes'][0x0]['reference']['root'],_0x2c8464=this['_insertEmptyFootnotesDefinitionsContainer'](_0x50c893,_0x4bbd3e);for(const _0x1e77cc of this['_footnotes'])_0x1e77cc['definition']['parent']||_0x50c893['insert'](_0x1e77cc['definition'],_0x2c8464,'end');this['_updateFootnotesCounters'](_0x50c893);}['_handleFootnotesDefinitionsObjectChanges'](_0x5a27b9,_0x35932f){let _0x5e53eb=!0x1;const {inserted:_0x5286f6,removed:_0x2935f1,moved:_0x42b0b9}=this['_footnoteDefsContainerTracker']['getChanges'](_0x35932f);if(_0x42b0b9['length']&&(this['_footnotesDefinitions']=_0x42b0b9[0x0]),_0x5286f6['length']){if(_0x5286f6['length']>0x1||this['_footnotesDefinitions']&&_0x5286f6['some'](_0x1fe55f=>_0x1fe55f!==this['_footnotesDefinitions'])){const _0x4674c5=_0x5a27b9['createElement']('footnotesDefinitions',{}),_0x4b57c4=[];this['_footnotesDefinitions']&&_0x4b57c4['push'](this['_footnotesDefinitions']),_0x4b57c4['push'](..._0x5286f6),_0x5a27b9['insert'](_0x4674c5,_0x4b57c4[0x0],'before');for(const _0x5e3be2 of _0x4b57c4)_0x5a27b9['move'](_0x5a27b9['createRangeIn'](_0x5e3be2),_0x5a27b9['createPositionAt'](_0x4674c5,'end')),_0x5a27b9['remove'](_0x5e3be2);this['_footnotesDefinitions']=_0x4674c5,this['_updateFootnotesCounters'](_0x5a27b9),_0x5e53eb=!0x0;}else this['_footnotesDefinitions']=_0x5286f6[0x0];}if(_0x2935f1['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x33b435 of this['_footnotes'])_0x5a27b9['remove'](_0x33b435['reference']),_0x5e53eb=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5e53eb;}['_handleFootnoteDefinitionsChanges'](_0x48a87e,_0xcf4e1d){let _0x588157=!0x1;const _0x51eb86=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x5bc6b8,moved:_0x47b247}=this['_footnoteDefsTracker']['getChanges'](_0xcf4e1d);for(const _0x474886 of[..._0x47b247,..._0x5bc6b8]){const _0x152838=_0x474886['getAttribute']('footnoteId'),_0xf50660=this['getFootnote'](_0x152838);_0xf50660&&(_0xf50660['definition']=_0x474886),_(_0x48a87e,_0x51eb86,_0x474886)&&(_0x588157=!0x0);}return _0x588157;}['_handleFootnoteReferencesChanges'](_0x12e493,_0x13b525){let _0x578602=!0x1;const {removed:_0x295732,inserted:_0x25c3da,moved:_0xcff3d7}=this['_footnoteRefsTracker']['getChanges'](_0x13b525);for(const _0x4c76d6 of _0x295732)this['_handleRemoveFootnoteReferenceById'](_0x12e493,_0x4c76d6)&&(_0x578602=!0x0);for(const _0x2c99d0 of _0x25c3da)this['_handleInsertedFootnoteReference'](_0x12e493,_0x2c99d0)&&(_0x578602=!0x0);for(const _0x258822 of _0xcff3d7)this['_handleMovedFootnoteReference'](_0x12e493,_0x258822)&&(_0x578602=!0x0);return _0x578602;}['_handleFootnotesDefinitionsObjectSync'](_0x379ac6){if(!this['_footnotesDefinitions'])return!0x1;let _0x6b18db=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x17bcea=[];for(const _0xf2b067 of this['_footnotesDefinitions']['getChildren']()){const _0x2266ee=_0xf2b067['getAttribute']('footnoteId');this['getFootnote'](_0x2266ee)||(_0x17bcea['unshift'](_0xf2b067),_0x6b18db=!0x0);}for(const _0x5d01b4 of _0x17bcea)_0x379ac6['remove'](_0x5d01b4);}const _0x2e5e2a=new Set(),_0x1a2e6f=[];for(const _0x229690 of this['_footnotesDefinitions']['getChildren']()){const _0x43c4bd=_0x229690['getAttribute']('footnoteId');_0x2e5e2a['has'](_0x43c4bd)?(_0x1a2e6f['unshift'](_0x229690),_0x6b18db=!0x0):_0x2e5e2a['add'](_0x43c4bd);}for(const _0x12dba2 of _0x1a2e6f)_0x379ac6['remove'](_0x12dba2);return this['_footnotesDefinitions']['childCount']||(_0x379ac6['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x6b18db=!0x0),_0x6b18db;}['_handleInsertedFootnoteReference'](_0x14b892,_0x42eeba){if(this['_footnotes']['find'](_0x24f1e2=>_0x24f1e2['reference']===_0x42eeba))return!0x1;let _0x375f9c=!0x1;const _0x43dd65=_0x42eeba['getAttribute']('footnoteId'),_0x4a606a=this['_footnotes']['findIndex'](_0x1f9e7b=>_0x1f9e7b['id']===_0x43dd65);-0x1!==_0x4a606a&&(_0x14b892['remove'](this['_footnotes'][_0x4a606a]['reference']),this['_footnotes']['splice'](_0x4a606a,0x1),_0x375f9c=!0x0);let _0x22f326=this['_footnotesDefinitions']?function(_0x304d08,_0xcc5c5b){for(const _0x267558 of _0x304d08['getChildren']())if(_0x267558['getAttribute']('footnoteId')===_0xcc5c5b)return _0x267558;return null;}(this['_footnotesDefinitions'],_0x43dd65):null;_0x22f326||(_0x22f326=_0x14b892['createElement']('footnoteDefinition',{'footnoteId':_0x43dd65}),this['_footnotesDefinitions']&&(_0x14b892['insert'](_0x22f326,this['_footnotesDefinitions'],'end'),_0x375f9c=!0x0));const _0x59f0de={'id':_0x43dd65,'reference':_0x42eeba,'definition':_0x22f326},_0x2e061d=I(this['editor']['model'],this['_footnotes'],_0x42eeba);this['_footnotes']['splice'](_0x2e061d,0x0,_0x59f0de);let _0x426bb6=_0x2e061d;return-0x1!==_0x4a606a&&(_0x426bb6=Math['min'](_0x2e061d,_0x4a606a)),this['_updateFootnotesCounters'](_0x14b892,_0x426bb6)&&(_0x375f9c=!0x0),_0x375f9c;}['_handleRemoveFootnoteReferenceById'](_0x273c98,_0x5e8345){const _0x80b3a6=this['_footnotes']['findIndex'](_0x5ea2ca=>_0x5ea2ca['id']===_0x5e8345);if(-0x1===_0x80b3a6)return!0x1;let _0x1eb502=!0x1;const _0x280932=this['_footnotes'][_0x80b3a6];return'$graveyard'!==_0x280932['definition']['root']['rootName']&&(_0x273c98['remove'](_0x280932['definition']),_0x1eb502=!0x0),this['_footnotes']['splice'](_0x80b3a6,0x1),this['_updateFootnotesCounters'](_0x273c98,_0x80b3a6)&&(_0x1eb502=!0x0),_0x1eb502;}['_handleMovedFootnoteReference'](_0x2b1fef,_0x5bd5e){const _0x1ac65a=_0x5bd5e['getAttribute']('footnoteId'),_0x154558=this['_footnotes']['findIndex'](_0x10b55c=>_0x10b55c['id']===_0x1ac65a),_0x24f229=this['_footnotes'][_0x154558];let _0x4dc944=!0x1;_0x24f229['reference']=_0x5bd5e,this['_footnotes']['splice'](_0x154558,0x1);const _0xea11b=I(this['editor']['model'],this['_footnotes'],_0x5bd5e);return this['_footnotes']['splice'](_0xea11b,0x0,_0x24f229),this['_updateFootnotesCounters'](_0x2b1fef,Math['min'](_0x154558,_0xea11b))&&(_0x4dc944=!0x0),_0x4dc944;}['_updateFootnoteRefCounter'](_0x506ab5,_0x1a5da1){if(!this['_footnotesDefinitions'])return!0x1;const _0x10c637=this['_footnotes'][_0x1a5da1];let _0x14831a;return _0x14831a=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x10c637,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x1a5da1+0x1}):String(_0x1a5da1+0x1),_0x10c637['reference']['getAttribute']('footnoteCounter')!=_0x14831a&&(_0x506ab5['setAttribute']('footnoteCounter',_0x14831a,_0x10c637['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x3c4c54){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x106ecd,_0x5c10a1){if(_0x106ecd['length']!==_0x5c10a1['length'])return!0x1;for(let _0x214d1d=0x0;_0x214d1d<_0x106ecd['length'];_0x214d1d++)if(_0x106ecd[_0x214d1d]!==_0x5c10a1[_0x214d1d])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x5e6f0f=>_0x5e6f0f['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x4fec8b=>_0x4fec8b['getAttribute']('footnoteId'))))return!0x1;let _0x373615=!0x1;for(let _0x5895a1=0x0;_0x5895a1<this['_footnotes']['length'];_0x5895a1++){const _0x105b55=this['_footnotes'][_0x5895a1],_0x2a2381=_0x3c4c54['createPositionBefore'](_0x105b55['definition']),_0x356ccc=_0x3c4c54['createPositionAt'](this['_footnotesDefinitions'],_0x5895a1);_0x2a2381['isEqual'](_0x356ccc)||(_0x3c4c54['move'](_0x3c4c54['createRangeOn'](_0x105b55['definition']),_0x356ccc),_0x373615=!0x0);}return _0x373615;}['_ensureFootnotesReferencesHaveProperOrder'](_0x412eac){if(!this['_footnotes']['length'])return!0x1;const {model:_0x21679d}=this['editor'];let _0x38ca1d=!0x1;for(let _0x43c786=0x0;_0x43c786<this['_footnotes']['length']-0x1;_0x43c786++){const _0x262919=this['_footnotes'][_0x43c786],_0x59bafa=this['_footnotes'][_0x43c786+0x1],_0x12dd60=_0x21679d['createPositionBefore'](_0x262919['reference']),_0x5bf926=_0x21679d['createPositionBefore'](_0x59bafa['reference']);'after'===_0x12dd60['compareWith'](_0x5bf926)&&(this['_handleMovedFootnoteReference'](_0x412eac,_0x262919['reference']),_0x43c786=-0x1,_0x38ca1d=!0x0);}return _0x38ca1d;}}function _(_0x5c65ca,_0x181ab6,_0x143263){if(_0x143263['childCount'])return!0x1;const _0x407a02=_0x181ab6?'paragraph':'footnoteInlineContent';return _0x5c65ca['insert'](_0x5c65ca['createElement'](_0x407a02),_0x143263),!0x0;}function I(_0x2b907a,_0x4a6fb5,_0x3d3f0f){if(0x0===_0x4a6fb5['length'])return 0x0;const _0x49cca1=_0x2b907a['createPositionBefore'](_0x3d3f0f);for(let _0x298a25=0x0;_0x298a25<_0x4a6fb5['length'];_0x298a25++){const _0x45e0a7=_0x4a6fb5[_0x298a25],_0x1586fe=_0x2b907a['createPositionBefore'](_0x45e0a7['reference']);if('before'===_0x49cca1['compareWith'](_0x1586fe))return _0x298a25;}const _0x542402=_0x3d3f0f['root'];let _0x4c2463=-0x1;for(let _0x5543ce=_0x4a6fb5['length']-0x1;_0x5543ce>=0x0;_0x5543ce--)if(_0x4a6fb5[_0x5543ce]['reference']['root']===_0x542402){_0x4c2463=_0x5543ce;break;}if(-0x1!==_0x4c2463)return _0x4c2463+0x1;const _0x48a8b7=_0x2b907a['document']['getRootNames'](),_0x4d7428=_0x48a8b7['indexOf'](_0x542402['rootName']),_0x2e7595=_0x48a8b7[_0x4d7428+0x1];if(_0x2e7595){for(let _0x3c3ef6=0x0;_0x3c3ef6<_0x4a6fb5['length'];_0x3c3ef6++)if(_0x4a6fb5[_0x3c3ef6]['reference']['root']['rootName']===_0x2e7595)return _0x3c3ef6;}return _0x4a6fb5['length'];}class m extends _0x508953{['refresh'](){const _0x42f94a=this['editor']['model']['document']['selection'],_0x344e0c=this['_getPositionToInsertFootnote'](_0x42f94a);this['isEnabled']=!!_0x344e0c;}['execute'](_0x204801){const {editor:_0x2d566b}=this,{model:_0x3ae17f}=_0x2d566b,{selection:_0x2c6258}=_0x3ae17f['document'],_0x2b65ce=this['_getPositionToInsertFootnote'](_0x2c6258);if(!_0x2b65ce)return;const _0x1337cf=_0x2d566b['plugins']['get']('FootnotesEditing'),_0x23c46b=_0x204801?.['footnoteId']??_0x5ebeb3();!function(_0x1cb473){return'string'==typeof _0x1cb473&&_0x1cb473['length']>0x0&&!/\s/['test'](_0x1cb473)&&!/^\d/['test'](_0x1cb473);}(_0x23c46b)?_0x5c00f7('insert-footnote-command-executed-with-invalid-id'):(_0x3ae17f['change'](_0x48355b=>{const _0x2d5408=_0x48355b['createElement']('footnoteRef',{'footnoteId':_0x23c46b});_0x3ae17f['insertObject'](_0x2d5408,_0x2b65ce,null);}),_0x1337cf['_moveSelectionToFootnoteDefinition'](_0x23c46b));}['_getPositionToInsertFootnote'](_0x5dccef){const {model:_0x3c1627}=this['editor'],{schema:_0x161c13}=_0x3c1627,_0x379323=_0x5dccef['getFirstRange']();for(const _0x5d5cdb of _0x379323['getItems']())if(_0x161c13['isBlock'](_0x5d5cdb)||_0x161c13['isObject'](_0x5d5cdb))return null;const _0x42a7d9=_0x379323['end'];return _0x161c13['checkChild'](_0x42a7d9,'footnoteRef')?_0x42a7d9:null;}}class r extends _0x537dd2{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x281f14}=this;_0x281f14['config']['define']('footnotes.multiBlock',!0x0),_0x281f14['commands']['add']('insertFootnote',new m(_0x281f14)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x2c1c29){const _0x1f694d=_0x26ccb0([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x4d6ea5=0x47a28506,_0x4cabcc=0x47a5f92e^_0x4d6ea5,_0x306952=window[_0x26ccb0([0x44,0x61,0x74,0x65])][_0x26ccb0([0x6e,0x6f,0x77])](),_0xbda61=_0x2c1c29[_0x26ccb0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xecaf0f=new window[(_0x26ccb0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45d0e9=>{_0xbda61[_0x26ccb0([0x6f,0x6e,0x63,0x65])](_0x26ccb0([0x72,0x65,0x61,0x64,0x79]),_0x45d0e9);}),_0x5e6b0a={[_0x26ccb0([0x6b,0x74,0x79])]:_0x26ccb0([0x45,0x43]),[_0x26ccb0([0x75,0x73,0x65])]:_0x26ccb0([0x73,0x69,0x67]),[_0x26ccb0([0x63,0x72,0x76])]:_0x26ccb0([0x50,0x2d,0x32,0x35,0x36]),[_0x26ccb0([0x78])]:_0x26ccb0([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x26ccb0([0x79])]:_0x26ccb0([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x26ccb0([0x61,0x6c,0x67])]:_0x26ccb0([0x45,0x53,0x32,0x35,0x36])},_0x1e0744=_0xbda61[_0x26ccb0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x26ccb0([0x67,0x65,0x74])](_0x26ccb0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x106d7f(){let _0x437b0f,_0x49bdc2=null,_0x3d64d0=null;try{if(_0x1e0744==_0x26ccb0([0x47,0x50,0x4c]))return _0x26ccb0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x437b0f=_0x5be443(),!_0x437b0f)return _0x26ccb0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x437b0f[_0x26ccb0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d64d0=_0x30e913(_0x437b0f[_0x26ccb0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x437b0f[_0x26ccb0([0x6a,0x74,0x69])])),await _0x439ac5()?_0x52bcaa()?_0x3a0683()?_0x26ccb0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40ffd3()?(_0x437b0f[_0x26ccb0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x26ccb0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x49bdc2=_0x501d1c(_0x26ccb0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x437b0f[_0x26ccb0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x26ccb0([0x74,0x72,0x69,0x61,0x6c])&&(_0x49bdc2=_0x501d1c(_0x26ccb0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2a7fd2()):_0x26ccb0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x26ccb0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x26ccb0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x26ccb0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3a0683(){const _0x241cc3=[_0x26ccb0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x26ccb0([0x74,0x72,0x69,0x61,0x6c])][_0x26ccb0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x437b0f[_0x26ccb0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x306952/0x3e8:0xe10*_0x4cabcc;return _0x437b0f[_0x26ccb0([0x65,0x78,0x70])]<_0x241cc3;}function _0x52bcaa(){const _0x500e36=_0x437b0f[_0x26ccb0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x500e36&&(!!_0x500e36[_0x26ccb0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26ccb0([0x2a]))||!!_0x500e36[_0x26ccb0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26ccb0([0x46,0x4f,0x4f])));}function _0x40ffd3(){const _0x444766=_0x437b0f[_0x26ccb0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x444766||0x0==_0x444766[_0x26ccb0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xb8e2c5}=new URL(window[_0x26ccb0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x444766[_0x26ccb0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb8e2c5))return!0x0;const _0x1279b6=_0xb8e2c5[_0x26ccb0([0x73,0x70,0x6c,0x69,0x74])](_0x26ccb0([0x2e]));return _0x444766[_0x26ccb0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1290e2=>_0x1290e2[_0x26ccb0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26ccb0([0x2a])))[_0x26ccb0([0x6d,0x61,0x70])](_0xb2c46c=>_0xb2c46c[_0x26ccb0([0x73,0x70,0x6c,0x69,0x74])](_0x26ccb0([0x2e])))[_0x26ccb0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x556236=>_0x556236[_0x26ccb0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1279b6[_0x26ccb0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x26ccb0([0x6d,0x61,0x70])](_0x53d046=>Array(_0x1279b6[_0x26ccb0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x53d046[_0x26ccb0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x26ccb0([0x66,0x69,0x6c,0x6c])](_0x53d046[0x0]===_0x26ccb0([0x2a])?_0x26ccb0([0x2a]):'')[_0x26ccb0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x53d046))[_0x26ccb0([0x73,0x6f,0x6d,0x65])](_0x5b67fe=>_0x1279b6[_0x26ccb0([0x65,0x76,0x65,0x72,0x79])]((_0x221c34,_0x1f9843)=>_0x5b67fe[_0x1f9843]===_0x221c34||_0x5b67fe[_0x1f9843]===_0x26ccb0([0x2a])));}function _0x2a7fd2(){return _0x49bdc2&&_0x3d64d0?new window[(_0x26ccb0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28b970,_0x51a7c0)=>{_0x49bdc2[_0x26ccb0([0x74,0x68,0x65,0x6e])](_0x28b970,_0x51a7c0),_0x3d64d0[_0x26ccb0([0x74,0x68,0x65,0x6e])](_0x11cb8c=>{_0x11cb8c!=_0x26ccb0([0x56,0x61,0x6c,0x69,0x64])&&_0x28b970(_0x11cb8c);},_0x51a7c0);}):_0x49bdc2||_0x3d64d0||_0x26ccb0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x30e913(_0x84dd41,_0x2c27e9){return new window[(_0x26ccb0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x527301=>{if(_0x2c3dda())return _0x527301(_0x26ccb0([0x56,0x61,0x6c,0x69,0x64]));_0x4f3ab4(),_0xbda61[_0x26ccb0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x26ccb0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x19cd2b=!0x1;const _0x2043e0=_0x5ebeb3();function _0xd27e3f(_0xcb2083){return!!_0xcb2083&&(typeof _0xcb2083===_0x26ccb0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xcb2083===_0x26ccb0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xcb2083[_0x26ccb0([0x74,0x68,0x65,0x6e])]===_0x26ccb0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xcb2083[_0x26ccb0([0x63,0x61,0x74,0x63,0x68])]===_0x26ccb0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2eace4(_0xec85c6){_0x586563(_0xec85c6)[_0x26ccb0([0x74,0x68,0x65,0x6e])](_0x354ac3=>{if(!_0x354ac3||_0x354ac3[_0x26ccb0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x26ccb0([0x6f,0x6b]))return _0x26ccb0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b94d5(_0x2d799e(_0x2043e0+_0x2c27e9))!=_0x354ac3[_0x26ccb0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x26ccb0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x26ccb0([0x56,0x61,0x6c,0x69,0x64]);})[_0x26ccb0([0x74,0x68,0x65,0x6e])](_0x38fae5=>(_0x4b9cef(),_0x38fae5),()=>{const _0xa44994=_0x13b2b2();return null==_0xa44994?(_0x4b9cef(),_0x26ccb0([0x56,0x61,0x6c,0x69,0x64])):_0x26ccb0(_0x306952-_0xa44994>(0x63ae0106^_0x4d6ea5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x26ccb0([0x74,0x68,0x65,0x6e])](_0x527301)[_0x26ccb0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x527301(_0x26ccb0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4364ce=0x47946b86^_0x4d6ea5;function _0x4b9cef(){const _0x4487d0=_0x26ccb0([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b94d5(_0x2d799e(_0x84dd41)),_0x1c0d2d=_0x5c0eaf(_0x5b94d5(window[_0x26ccb0([0x4d,0x61,0x74,0x68])][_0x26ccb0([0x63,0x65,0x69,0x6c])](_0x306952/_0x4364ce)));window[_0x26ccb0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x26ccb0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4487d0,_0x1c0d2d);}function _0x13b2b2(){const _0x3d439b=_0x26ccb0([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b94d5(_0x2d799e(_0x84dd41)),_0x45379c=window[_0x26ccb0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x26ccb0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d439b);return _0x45379c?window[_0x26ccb0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c0eaf(_0x45379c),0x10)*_0x4364ce:null;}function _0x586563(_0x23858a){return new window[(_0x26ccb0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x376874,_0x37ec79)=>{_0x23858a[_0x26ccb0([0x74,0x68,0x65,0x6e])](_0x376874,_0x37ec79),window[_0x26ccb0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x37ec79,0x47a351c6^_0x4d6ea5);});}}_0xbda61[_0x26ccb0([0x6f,0x6e])](_0x26ccb0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x593e8c,_0x26fd32)=>{if(_0x26fd32[0x0]!=_0x84dd41)return _0x527301(_0x26ccb0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26fd32[0x1]={..._0x26fd32[0x1],[_0x26ccb0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2043e0};},{[_0x26ccb0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x26ccb0([0x68,0x69,0x67,0x68])}),_0xbda61[_0x26ccb0([0x6f,0x6e])](_0x26ccb0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xe89f95=>{_0xd27e3f(_0xe89f95[_0x26ccb0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x19cd2b=!0x0,_0x2eace4(_0xe89f95[_0x26ccb0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x26ccb0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x26ccb0([0x6c,0x6f,0x77])}),_0xecaf0f[_0x26ccb0([0x74,0x68,0x65,0x6e])](()=>{_0x19cd2b||_0x527301(_0x26ccb0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c3dda(){return _0xbda61[_0x26ccb0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26ccb0([0x76,0x69,0x65,0x77])][_0x26ccb0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x26ccb0([0x61,0x75,0x74,0x6f]);}function _0x4f3ab4(){_0xbda61[_0x26ccb0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26ccb0([0x76,0x69,0x65,0x77])][_0x26ccb0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x26ccb0([0x61,0x75,0x74,0x6f]);}}function _0x501d1c(_0xc5135){const _0x2cfd5b=[new window[(_0x26ccb0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25dfb7=>setTimeout(_0x25dfb7,0x47abbbca^_0x4d6ea5)),_0xecaf0f[_0x26ccb0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x26ccb0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x200e06=>{let _0x25a3fc=0x0;_0xbda61[_0x26ccb0([0x6d,0x6f,0x64,0x65,0x6c])][_0x26ccb0([0x6f,0x6e])](_0x26ccb0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2fc71c,_0x3a4920)=>{_0x3a4920[0x0][_0x26ccb0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x25a3fc++,_0x25a3fc==(0x47a284fe^_0x4d6ea5)&&(_0x200e06(),_0x2fc71c[_0x26ccb0([0x6f,0x66,0x66])]());});}))];return window[_0x26ccb0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x26ccb0([0x72,0x61,0x63,0x65])](_0x2cfd5b)[_0x26ccb0([0x74,0x68,0x65,0x6e])](()=>_0xc5135);}async function _0x2e1479(){await _0xecaf0f,_0xbda61[_0x26ccb0([0x6d,0x6f,0x64,0x65,0x6c])][_0x26ccb0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2cb174,_0xbda61[_0x26ccb0([0x6d,0x6f,0x64,0x65,0x6c])][_0x26ccb0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2cb174,_0xbda61[_0x26ccb0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x26ccb0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x11dcd4(_0x209806){const _0x237959=_0x49c42c();_0xbda61[_0x237959]=_0x26ccb0([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x209806,_0x209806!=_0x26ccb0([0x56,0x61,0x6c,0x69,0x64])&&_0x2e1479();}function _0x49c42c(){const _0x4f913b=window[_0x26ccb0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x26ccb0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x26ccb0([0x6e,0x6f,0x77])]())[_0x26ccb0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x26ccb0([0x2e]),'');let _0x3c8299=_0x26ccb0([0x75]);for(let _0x2feebb=0x0;_0x2feebb<_0x4f913b[_0x26ccb0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2feebb+=0x2){let _0x754715=window[_0x26ccb0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f913b[_0x26ccb0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2feebb,_0x2feebb+0x2));_0x754715>=_0x1f694d[_0x26ccb0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x754715-=_0x1f694d[_0x26ccb0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c8299+=_0x1f694d[_0x754715];}return _0x3c8299;}function _0x5be443(){const _0x4e8a5f=_0x1e0744[_0x26ccb0([0x73,0x70,0x6c,0x69,0x74])](_0x26ccb0([0x2e]));if(0x3!=_0x4e8a5f[_0x26ccb0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1dbda1(_0x4e8a5f[0x1]);function _0x1dbda1(_0x302be8){const _0x24306b=_0x53773e(_0x302be8);return _0x24306b&&_0x465262()?_0x24306b:null;function _0x465262(){const _0x54f57a=_0x24306b[_0x26ccb0([0x6a,0x74,0x69])],_0x249572=window[_0x26ccb0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54f57a[_0x26ccb0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54f57a[_0x26ccb0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f760f={..._0x24306b,[_0x26ccb0([0x6a,0x74,0x69])]:_0x54f57a[_0x26ccb0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x54f57a[_0x26ccb0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f760f[_0x26ccb0([0x76,0x63])],_0x2d799e(_0x4f760f)==_0x249572;}}}async function _0x439ac5(){let _0x59082b=!0x0;try{const _0x1c7738=_0x1e0744[_0x26ccb0([0x73,0x70,0x6c,0x69,0x74])](_0x26ccb0([0x2e])),[_0x5de3e8,_0x2b08de,_0x5ae768]=_0x1c7738;return _0x16f0fe(_0x5de3e8),await _0x5aa681(_0x5de3e8,_0x2b08de,_0x5ae768),_0x59082b;}catch{return!0x1;}function _0x16f0fe(_0x5ebf5a){const _0x4f65d2=_0x53773e(_0x5ebf5a);_0x4f65d2&&_0x4f65d2[_0x26ccb0([0x61,0x6c,0x67])]==_0x26ccb0([0x45,0x53,0x32,0x35,0x36])||(_0x59082b=!0x1);}async function _0x5aa681(_0x1be6ec,_0x461d8b,_0x4b09d0){const _0x497a93=window[_0x26ccb0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x26ccb0([0x66,0x72,0x6f,0x6d])](_0x2ac2c3(_0x4b09d0),_0x242030=>_0x242030[_0x26ccb0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32f4ca=new window[(_0x26ccb0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x26ccb0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1be6ec+_0x26ccb0([0x2e])+_0x461d8b),_0x5182cc=window[_0x26ccb0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x26ccb0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5182cc)return;const _0x13c903=await _0x5182cc[_0x26ccb0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x26ccb0([0x6a,0x77,0x6b]),_0x5e6b0a,{[_0x26ccb0([0x6e,0x61,0x6d,0x65])]:_0x26ccb0([0x45,0x43,0x44,0x53,0x41]),[_0x26ccb0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x26ccb0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x26ccb0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5182cc[_0x26ccb0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x26ccb0([0x6e,0x61,0x6d,0x65])]:_0x26ccb0([0x45,0x43,0x44,0x53,0x41]),[_0x26ccb0([0x68,0x61,0x73,0x68])]:{[_0x26ccb0([0x6e,0x61,0x6d,0x65])]:_0x26ccb0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x13c903,_0x497a93,_0x32f4ca)||(_0x59082b=!0x1);}}function _0x53773e(_0x45d937){return _0x45d937[_0x26ccb0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x26ccb0([0x65,0x79]))?JSON[_0x26ccb0([0x70,0x61,0x72,0x73,0x65])](_0x2ac2c3(_0x45d937)):null;}function _0x2ac2c3(_0x5a8d9d){return window[_0x26ccb0([0x61,0x74,0x6f,0x62])](_0x5a8d9d[_0x26ccb0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x26ccb0([0x2b]))[_0x26ccb0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x26ccb0([0x2f])));}function _0x2d799e(_0x1bb2b4){let _0x3af6a0=0x1505;function _0x38ad02(_0x155468){for(let _0x565ed9=0x0;_0x565ed9<_0x155468[_0x26ccb0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x565ed9++){const _0x3738e0=_0x155468[_0x26ccb0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x565ed9);_0x3af6a0=(_0x3af6a0<<0x5)+_0x3af6a0+_0x3738e0,_0x3af6a0&=_0x3af6a0;}}function _0x197fd0(_0x5ed7db){Array[_0x26ccb0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5ed7db)?_0x5ed7db[_0x26ccb0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x197fd0):_0x5ed7db&&typeof _0x5ed7db==_0x26ccb0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x26ccb0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5ed7db)[_0x26ccb0([0x73,0x6f,0x72,0x74])]()[_0x26ccb0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x58b712,_0x2850f0])=>{_0x38ad02(_0x58b712),_0x197fd0(_0x2850f0);}):_0x38ad02(window[_0x26ccb0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5ed7db));}return _0x197fd0(_0x1bb2b4),_0x3af6a0>>>0x0;}function _0x5b94d5(_0x3ab5e1){return _0x3ab5e1[_0x26ccb0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x26ccb0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x26ccb0([0x30]));}function _0x5c0eaf(_0x14ab23){return _0x14ab23[_0x26ccb0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x26ccb0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x26ccb0([0x6a,0x6f,0x69,0x6e])]('');}function _0x2cb174(){}function _0x26ccb0(_0x28a0ac){return _0x28a0ac['map'](_0x1ea9af=>String['fromCharCode'](_0x1ea9af))['join']('');}_0x11dcd4(await _0x106d7f());}(this);}['_moveSelectionToFootnoteDefinition'](_0x25b3f2){const {plugins:_0x4641a6,editing:_0x1af5e1,model:_0x5a6224}=this['editor'],_0x2310fb=_0x4641a6['get'](f)['getFootnote'](_0x25b3f2);return!!_0x2310fb&&(_0x5a6224['change'](_0xa504f6=>{_0xa504f6['setSelection'](_0xa504f6['createPositionAt'](_0x2310fb['definition'],'end'));}),_0x1af5e1['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x8cffb4){const {plugins:_0x42f4d0,editing:_0x31bddf,model:_0x16245d}=this['editor'],_0x5f1c1f=_0x42f4d0['get'](f)['getFootnote'](_0x8cffb4);return!!_0x5f1c1f&&(_0x16245d['change'](_0x291cc4=>{_0x291cc4['setSelection'](_0x5f1c1f['reference'],'on');}),_0x31bddf['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4cc55e}=this['editor']['model'],_0x2f2b62=this['editor']['config']['get']('footnotes.multiBlock');_0x4cc55e['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4cc55e['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4cc55e['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2f2b62?_0x4cc55e['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4cc55e['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4cc55e['addChildCheck'](_0x172269=>{for(const _0x43edfb of _0x172269)if('footnoteDefinition'===_0x43edfb['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5a785f}=this,{conversion:_0x524b9f,editing:_0x43bb5b}=_0x5a785f,{t:t}=_0x5a785f['locale'];_0x524b9f['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xbdb3a,{writer:_0x48308d,consumable:_0x6b28e8})=>{const _0x5f1533=_0xbdb3a['getChild'](0x0);if(!_0x5f1533||!_0x5f1533['is']('element','a'))return null;const _0x468d5a=_0x5f1533['getAttribute']('href')||'';if(!_0x468d5a['startsWith']('#'))return null;const _0x26ccbb=_0x468d5a['replace'](/^#/,'');if(!_0x26ccbb)return null;_0x6b28e8['consume'](_0x5f1533,{'name':!0x0,'attributes':['href']});for(const {item:_0x2879ae}of _0x43bb5b['view']['createRangeIn'](_0x5f1533))_0x2879ae['is']('$textProxy')?_0x6b28e8['consume'](_0x2879ae['textNode'],{'name':!0x0}):_0x2879ae['is']('element')&&_0x6b28e8['consume'](_0x2879ae,{'name':!0x0});return _0x48308d['createElement']('footnoteRef',{'footnoteId':_0x26ccbb});}}),_0x524b9f['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x14d7b5,{writer:_0x1fb254})=>D(_0x14d7b5,_0x1fb254)}),_0x524b9f['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x121a14,{writer:_0x11dab7})=>{const _0x5a3ec2=_0x121a14['getAttribute']('footnoteCounter');return _0x5275c6(D(_0x121a14,_0x11dab7),_0x11dab7,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x5a3ec2)});}});}['_defineDefinitionsConverters'](){const {editor:_0x1ba594}=this,{t:t}=_0x1ba594['locale'],{conversion:_0x1107dd}=_0x1ba594;_0x1107dd['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x1107dd['for']('upcast')['add'](_0x32f40b=>{_0x32f40b['on']('element:ol',(_0x3f7245,_0x39e873,_0x3317f4)=>{const _0xd774db=_0x39e873['viewItem'];if(!_0xd774db['hasClass']('footnotes-list')||!_0x39e873['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3317f4['consumable']['consume'](_0xd774db,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x539701,modelCursor:_0x2b555c}=_0x3317f4['convertChildren'](_0x39e873['viewItem'],_0x39e873['modelCursor']);_0x39e873['modelRange']=_0x539701,_0x39e873['modelCursor']=_0x2b555c;}),_0x32f40b['on']('element:hr',(_0x3cf878,_0x4f941e,_0x5491f4)=>{const _0x2878a3=_0x4f941e['viewItem'];_0x2878a3['hasClass']('footnotes-divider')&&_0x4f941e['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5491f4['consumable']['consume'](_0x2878a3,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x1107dd['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1f5ee2,{writer:_0x47f512})=>v(_0x47f512)}),_0x1107dd['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2cc391,{writer:_0x196ffe})=>{const _0x4c33f2=v(_0x196ffe,{'data-footnotes-list-label':t('Footnotes')}),_0x1b195e=_0x5275c6(_0x4c33f2,_0x196ffe,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x196ffe['setCustomProperty']('footnotesDefinitions',!0x0,_0x1b195e),_0x1b195e;}});}['_defineDefinitionConverters'](){const {editor:_0x3c68ac}=this,{conversion:_0x46eb37,locale:_0x1ab345}=_0x3c68ac,_0x206479=_0x3c68ac['config']['get']('footnotes.multiBlock');_0x46eb37['for']('upcast')['add'](_0x5302a3=>{_0x5302a3['on']('element:li',(_0x531c87,_0x5de19a,_0x46835d)=>{const _0xebd2eb=_0x5de19a['viewItem'];if(!_0xebd2eb['hasClass']('footnote-definition')||!_0xebd2eb['getAttribute']('id'))return;const _0x15c404=_0xebd2eb['parent'];if(!_0x15c404['is']('element','ol')||!_0x15c404['hasClass']('footnotes-list'))return;if(!_0x46835d['consumable']['test'](_0xebd2eb,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x371c4d=_0x46835d['writer']['createElement']('footnoteDefinition',{'footnoteId':_0xebd2eb['getAttribute']('id')});if(!_0x46835d['safeInsert'](_0x371c4d,_0x5de19a['modelCursor']))return;_0x46835d['consumable']['consume'](_0xebd2eb,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x152b8d=Array['from'](_0xebd2eb['getChildren']())['find'](_0x57ca06=>_0x57ca06['is']('element')&&_0x57ca06['hasClass']('footnote-content'));for(const _0x467d73 of _0xebd2eb['getChildren']())_0x467d73['is']('element')&&(_0x46835d['consumable']['consume'](_0x467d73,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x46835d['consumable']['consume'](_0x467d73,{'name':!0x0,'classes':'footnote-content'}));if(_0x152b8d){if(_0x206479)_0x46835d['convertChildren'](_0x152b8d,_0x371c4d);else{const _0x3d050c=_0x46835d['writer']['createElement']('footnoteInlineContent');_0x46835d['writer']['insert'](_0x3d050c,_0x371c4d),_0x46835d['convertChildren'](_0x152b8d,_0x3d050c);}}_0x46835d['updateConversionResult'](_0x371c4d,_0x5de19a);});}),_0x46eb37['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5d96a0,{writer:_0x1a536c})=>b(_0x5d96a0,_0x1a536c,_0x1ab345,{'dataPipeline':!0x0})}),_0x46eb37['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x118731,{writer:_0x598358})=>b(_0x118731,_0x598358,_0x1ab345)});}['_defineBogusParagraphConverters'](){const {editor:_0x286514}=this,{conversion:_0x585f0c}=_0x286514;_0x286514['config']['get']('footnotes.multiBlock')?(_0x585f0c['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x585f0c['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x286514['model']['document'],'change:data',()=>{!function(_0x1a0776,_0x5d8557){const _0x881273=_0x1a0776['document']['differ'],_0x5defb4=new Set();for(const _0x46e0c7 of _0x881273['getChanges']()){const _0x51767d='attribute'==_0x46e0c7['type']?_0x46e0c7['range']['start']['parent']:_0x46e0c7['position']['parent'];_0x51767d['is']('element','footnoteDefinition')&&_0x5defb4['add'](_0x51767d);}for(const _0x4ca0cf of _0x5defb4['values']()){const _0x2b9820=Array['from'](_0x4ca0cf['getChildren']())['filter'](_0x75e553=>g(_0x75e553,_0x5d8557['mapper']));for(const _0x1bc7bb of _0x2b9820)_0x5d8557['reconvertItem'](_0x1bc7bb);}}(_0x286514['model'],_0x286514['editing']);})):(_0x585f0c['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x585f0c['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x17823e,{writer:_0x217e4b})=>{const _0x443ec0=_0x217e4b['createContainerElement']('span');return _0x217e4b['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x443ec0),_0x443ec0;}}));}['_defineKeyboardHandlers'](){const {editor:_0x3f9858}=this,{editing:_0x43834e,t:t}=_0x3f9858,_0x4c2531=_0x3f9858['model']['document']['selection'];_0x3f9858['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x3f9858['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x43834e['view']['document'],'enter',(_0x569647,_0x45e524)=>{const _0x29cff2=function(_0x431213){const _0x130ab2=_0x431213['getSelectedElement']();if(_0x130ab2?.['is']('element','footnoteRef'))return _0x130ab2;return null;}(_0x4c2531);if(_0x29cff2){const _0x5bbda5=_0x29cff2['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5bbda5),_0x45e524['preventDefault'](),_0x569647['stop']();}},{'context':_0x3a0b49});}['_defineClickHandlers'](){const {editor:_0x5be212}=this,{editing:_0x44041b}=_0x5be212;_0x5be212['editing']['view']['addObserver'](_0x1648ea),_0x5be212['editing']['view']['addObserver'](_0x4ba397);let _0x5124b6=!0x1;this['listenTo'](_0x44041b['view']['document'],'pointerdown',(_0x4b0789,_0x532124)=>{const {target:_0xd096e8}=_0x532124,_0x254cdb=_0x44041b['view']['document']['selection'];_0x5124b6=!!(_0xd096e8?.['is']('element','a')&&_0xd096e8['parent']?.['is']('element','sup')&&_0xd096e8['parent']['hasClass']('footnote'))&&_0x254cdb['getSelectedElement']()===_0xd096e8['parent'];},{'priority':'high'}),this['listenTo'](_0x44041b['view']['document'],'click',(_0x3bf6b1,_0x552ba7)=>{const {target:_0x2d9517}=_0x552ba7;if(!_0x2d9517?.['is']('element','a'))return;if(_0x2d9517['parent']?.['is']('element','sup')&&_0x2d9517['parent']['hasClass']('footnote')&&!_0x5124b6)return void _0x552ba7['preventDefault']();let _0xa4038=_0x2d9517['getAttribute']('href');if(!_0xa4038?.['startsWith']('#'))return;_0xa4038=_0xa4038['slice'](0x1);let _0x27e24b=!0x1;(_0xa4038['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0xa4038['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0xa4038))&&(_0x27e24b=!0x0),_0x27e24b&&(_0x552ba7['preventDefault'](),_0x3bf6b1['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x4757a5}={}){return(_0x589b8e,{writer:_0x56cd29})=>{if(!p(_0x589b8e))return null;if(!_0x4757a5)return _0x56cd29['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x407486=_0x56cd29['createContainerElement']('p');return _0x56cd29['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x407486),_0x407486;};}function p(_0x531e0e){const {parent:_0x22ebaa}=_0x531e0e;if(!_0x22ebaa?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x22ebaa['childCount'])return!0x1;for(const _0x28f3c7 of _0x531e0e['getAttributeKeys']())if(!_0x28f3c7['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x28f3c7)return!0x1;return!0x0;}function g(_0xf8b109,_0x23fbb3){if(!_0xf8b109['is']('element','paragraph'))return!0x1;const _0x26dd08=_0x23fbb3['toViewElement'](_0xf8b109);return!!_0x26dd08&&p(_0xf8b109)!==_0x26dd08['is']('element','span');}function J(_0x13562c){return _0x3a0b49(_0x13562c)&&_0x13562c['is']('containerElement')&&!!_0x13562c['getCustomProperty']('footnotesDefinitions');}function v(_0x479865,_0x47f632={}){const _0x1c09d3=_0x479865['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x47d4e3=_0x479865['createContainerElement']('ol',{'class':'footnotes-list'},_0x479865['createSlot']());return _0x479865['createContainerElement']('div',{'class':'footnotes',..._0x47f632},[_0x1c09d3,_0x47d4e3]);}function D(_0x3f704d,_0x3cafcb){const _0x512725=_0x3f704d['getAttribute']('footnoteId'),_0x568d8b=_0x3f704d['getAttribute']('footnoteCounter'),_0x1f190e=_0x3cafcb['createUIElement']('a',{'href':'#'+_0x512725},function(_0x536c55){const _0x497543=this['toDomElement'](_0x536c55);return _0x497543['textContent']=_0x568d8b,_0x497543;}),_0x4fa9f9=_0x3cafcb['createContainerElement']('sup',{'id':'ref-'+_0x512725,'class':'footnote'},[_0x1f190e]);return _0x4fa9f9['getFillerOffset']=()=>null,_0x4fa9f9;}function b(_0x562753,_0x177d94,_0x2d4c14,{dataPipeline:_0x168785}={}){const {t:t}=_0x2d4c14,_0x48bf4f=_0x562753['getAttribute']('footnoteId'),_0xd3c5e1=_0x177d94['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x48bf4f},function(_0x2d3193){const _0x533c73=this['toDomElement'](_0x2d3193);return _0x533c73['innerText']='^',_0x533c73;}),_0x4e30e3=_0x168785?_0x177d94['createContainerElement']('div',{'class':'footnote-content'}):_0x436292(_0x177d94['createEditableElement']('div',{'class':'footnote-content'}),_0x177d94,{'label':t('Footnote\x20content.')});return _0x177d94['insert'](_0x177d94['createPositionAt'](_0x4e30e3,0x0),_0x177d94['createSlot']()),_0x177d94['createContainerElement']('li',{'class':'footnote-definition','id':_0x48bf4f},[_0xd3c5e1,_0x4e30e3]);}class e extends _0x537dd2{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x23f21d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x23dbea}=this,{plugins:_0x4d4928,model:_0x25788c}=_0x23dbea,_0x336f31=_0x4d4928['get'](_0x23f21d),_0xa57b2f=_0x4d4928['get'](f);this['listenTo'](_0x336f31,'outputTransformation',(_0x3c1ce6,_0x29db1b)=>{const _0x3d23ca=c(_0x25788c['createRangeIn'](_0x29db1b['content']));if(!_0x3d23ca['length'])return;const _0x30e288=_0xa57b2f['getFootnotes'](),_0x3ce319=_0x3d23ca['reduce']((_0x44f970,_0x1157af)=>{const _0x10ea27=_0x30e288['find'](_0x29df95=>_0x29df95['id']===_0x1157af);if(_0x10ea27){const _0x3824bf=_0x23dbea['data']['toView'](_0x10ea27['definition'],{'isClipboardPipeline':!0x0}),_0x1ae821=_0x23dbea['data']['htmlProcessor']['toData'](_0x3824bf);_0x44f970[_0x10ea27['id']]=_0x1ae821;}return _0x44f970;},Object['create'](null));_0x29db1b['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x3ce319));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x93bd67}=this,{model:_0xaa2938,plugins:_0x322dac}=_0x93bd67,{view:_0x5aee69}=_0x93bd67['editing'],_0x54cd68=_0x322dac['get'](_0x23f21d),_0x20a478=_0x322dac['get'](f),_0x2b650a=_0x93bd67['config']['get']('footnotes.multiBlock');let _0x4d0ee5=null;this['listenTo'](_0x5aee69['document'],'clipboardInput',(_0x12af87,_0x3ba0fa)=>{const _0x3e03f0=_0x3ba0fa['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x4d0ee5=_0x3e03f0?JSON['parse'](_0x3e03f0):null;}),this['listenTo'](_0x54cd68,'contentInsertion',(_0x1ee492,_0x5057d4)=>{const _0x331515=_0x5057d4['sourceEditorId']===this['editor']['id'];_0x331515&&'drop'===_0x5057d4['method']||_0xaa2938['change'](_0x1f71ad=>{let _0x5b81b5=_0x20a478['getFootnotesDefinitionsObjectElement']();const _0x5cee82=!!_0x5b81b5&&Array['from'](_0xaa2938['document']['selection']['getSelectedBlocks']())['includes'](_0x5b81b5);if((_0x5b81b5&&!_0x5cee82||!_0x5b81b5&&!_0x4d0ee5)&&function(_0x2760c8,_0x1ef7d7){const _0xf5866d=[];for(const {item:_0x55ccf2}of _0x2760c8['createRangeIn'](_0x1ef7d7))_0x55ccf2['is']('element','footnotesDefinitions')&&_0xf5866d['push'](_0x55ccf2);for(const _0x32154b of _0xf5866d)_0x2760c8['remove'](_0x32154b);}(_0x1f71ad,_0x5057d4['content']),!_0x4d0ee5)return;const {selection:_0x4af866}=_0xaa2938['document'],_0x4488af=_0x4af866['getFirstRange']()['root'];_0x5b81b5&&!_0x5cee82||(_0x5b81b5=function(_0x3ca845,_0x3d2079){for(const {item:_0x5a92de}of _0x3ca845['createRangeIn'](_0x3d2079))if(_0x5a92de['is']('element','footnotesDefinitions'))return _0x5a92de;return null;}(_0x1f71ad,_0x5057d4['content']),_0x5b81b5||=_0x20a478['_insertEmptyFootnotesDefinitionsContainer'](_0x1f71ad,_0x4488af));const _0x318fa6=Array['from'](_0x4af866['getRanges']())['flatMap'](c),_0x4bdf3a=function(_0xeeec1,_0x366490,_0x14e404){const _0x302446=Object['create'](null);for(const {item:_0x5179cc}of _0xeeec1['createRangeIn'](_0x366490))if(_0x5179cc['is']('element','footnoteRef')){const _0x2a3ab0=_0x5179cc['getAttribute']('footnoteId');if(!_0x14e404(_0x2a3ab0))continue;_0x302446[_0x2a3ab0]||(_0x302446[_0x2a3ab0]=_0x5ebeb3()),_0xeeec1['setAttribute']('footnoteId',_0x302446[_0x2a3ab0],_0x5179cc);}return _0x302446;}(_0x1f71ad,_0x5057d4['content'],_0x562e90=>{if(!_0x331515)return!0x0;return!!_0x20a478['getFootnote'](_0x562e90)&&!_0x318fa6['includes'](_0x562e90);});for(const [_0xfdc8a2,_0x4fc8a1]of Object['entries'](_0x4d0ee5)){const _0x1ff87e=_0x4bdf3a[_0xfdc8a2]||_0xfdc8a2,_0x49fa0f=_0x1f71ad['createElement']('footnoteDefinition',{'footnoteId':_0x1ff87e}),_0x1d7b0d=_0x93bd67['data']['htmlProcessor']['toView'](_0x4fc8a1);let _0x5249ce;if(_0x2b650a)_0x5249ce=_0x93bd67['data']['toModel'](_0x1d7b0d,_0x49fa0f);else{_0x5249ce=_0x1f71ad['createElement']('footnoteInlineContent');const _0x13459d=_0x93bd67['data']['toModel'](_0x1d7b0d,_0x5249ce);_0x1f71ad['insert'](_0x13459d,_0x5249ce);}_0x1f71ad['append'](_0x5249ce,_0x49fa0f),_0x1f71ad['insert'](_0x49fa0f,_0x5b81b5,'end');}_0x4d0ee5=null;});});}}function c(_0x266eec){const _0x2a4ef8=new Set();for(const {item:_0x219de1}of _0x266eec)_0x219de1['is']('element','footnoteRef')&&_0x2a4ef8['add'](_0x219de1['getAttribute']('footnoteId'));return Array['from'](_0x2a4ef8);}class i extends _0x537dd2{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xade714}=this,{componentFactory:_0x565f56}=_0xade714['ui'];_0x565f56['add']('insertFootnote',x(_0xade714,_0x17f526)),_0x565f56['add']('menuBar:insertFootnote',x(_0xade714,_0x4c58a5)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3b636d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2d3571;for(const _0x39d3f5 in _0x3b636d){const _0x4c6b1a=_0x39d3f5,_0x5d2daa=_0x3b636d[_0x4c6b1a];if('footnotesLicenseKeyValid'==_0x5d2daa||'footnotesLicenseKeyInvalid'==_0x5d2daa||'footnotesLicenseKeyExpired'==_0x5d2daa||'footnotesLicenseKeyDomainLimit'==_0x5d2daa||'footnotesLicenseKeyNotAllowed'==_0x5d2daa||'footnotesLicenseKeyEvaluationLimit'==_0x5d2daa||'footnotesLicenseKeyTrialLimit'==_0x5d2daa||'footnotesLicenseKeyUsageLimit'==_0x5d2daa){delete _0x3b636d[_0x4c6b1a],_0x2d3571=_0x5d2daa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x2d3571&&_0x3b636d['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x2d3571&&_0x3b636d['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x2d3571&&_0x3b636d['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x2d3571&&_0x3b636d['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x2d3571&&_0x3b636d['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x2d3571&&_0x3b636d['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x2d3571&&_0x3b636d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x101df3,_0x3da8a7){const _0x3f2b46=_0x101df3['commands']['get']('insertFootnote');return _0x18f7ee=>{const {t:t}=_0x18f7ee,_0x2991be=new _0x3da8a7(_0x18f7ee),_0x4e4024=_0x2991be instanceof _0x4c58a5;return _0x2991be['bind']('isEnabled')['to'](_0x3f2b46,'isEnabled'),_0x2991be['set']({'label':t(_0x4e4024?'Footnote':'Insert\x20footnote'),'icon':_0x1c96f4,'tooltip':!0x0}),_0x2991be['on']('execute',()=>{_0x3f2b46['execute'](),_0x101df3['editing']['view']['focus']();}),_0x2991be;};}class lt extends _0x537dd2{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x508953{['refresh'](){const {editor:_0x1ccf9a}=this,_0x952e2e=_0x1ccf9a['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x952e2e,this['value']=_0x952e2e?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x436fbd}){const {editor:_0xd664c5}=this,_0x3958ab=_0xd664c5['plugins']['get'](f),_0x5ba7e9=_0x3958ab['getFootnotesDefinitionsObjectElement']();_0x5ba7e9&&Q['includes'](_0x436fbd)&&_0xd664c5['model']['change'](_0x8580f1=>{_0x8580f1['setAttribute']('footnotesListStyle',_0x436fbd,_0x5ba7e9),_0x3958ab['_updateFootnotesCounters'](_0x8580f1);});}}class C extends _0x508953{['refresh'](){const {editor:_0x564735}=this,_0x3340b1=_0x564735['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3340b1,this['value']=_0x3340b1?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x5a8455}){const {editor:_0x53f72e}=this,_0x5d1b3c=_0x53f72e['plugins']['get'](f),_0x23c764=_0x5d1b3c['getFootnotesDefinitionsObjectElement']();_0x23c764&&Number['isInteger'](_0x5a8455)&&_0x53f72e['model']['change'](_0x4f1b4d=>{_0x4f1b4d['setAttribute']('footnotesListStart',_0x5a8455,_0x23c764),_0x5d1b3c['_updateFootnotesCounters'](_0x4f1b4d);});}}class P extends _0x537dd2{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4b6374}=this;_0x4b6374['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x4b6374['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x4b6374['commands']['add']('footnotesStyle',new S(_0x4b6374)),_0x4b6374['commands']['add']('footnotesStart',new C(_0x4b6374)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x5cf95f}=this,{schema:_0x33dd64}=_0x5cf95f['model'];_0x33dd64['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x26a3e1}=this,{conversion:_0x303608,model:_0x4c0d3d}=_0x26a3e1,{schema:_0x21a994}=_0x4c0d3d;_0x303608['for']('upcast')['add'](_0xc2403f=>{_0xc2403f['on']('element:ol',(_0x3f98aa,_0x4f1c0f,_0x81833c)=>{const _0x5bfefc=_0x4f1c0f['viewItem'],_0x35d390=_0x4f1c0f['modelCursor']?.['parent'];_0x5bfefc['hasClass']('footnotes-list')&&_0x35d390?.['is']('element','footnotesDefinitions')&&(function(_0x41b292,_0x2eddf6,_0x5c96db,_0x4874d9){if(!_0x4874d9['checkAttribute'](_0x2eddf6,'footnotesListStart'))return;let _0x322d0d=0x1;const _0x10d9d3=_0x5c96db['consumable']['consume'](_0x41b292,{'attributes':'start'});if(_0x10d9d3){const _0x429994=Number['parseInt'](_0x41b292['getAttribute']('start'),0xa);Number['isNaN'](_0x429994)||(_0x322d0d=_0x429994);}!_0x10d9d3&&_0x2eddf6['hasAttribute']('footnotesListStart')||_0x5c96db['writer']['setAttribute']('footnotesListStart',_0x322d0d,_0x2eddf6);}(_0x5bfefc,_0x35d390,_0x81833c,_0x21a994),function(_0x4df64d,_0x53e34e,_0x1bc413,_0x540fcb){if(!_0x540fcb['checkAttribute'](_0x53e34e,'footnotesListStyle'))return;let _0x5f50e4='decimal',_0x5ca707=!0x1;if(_0x1bc413['consumable']['consume'](_0x4df64d,{'attributes':'type'})){const _0xd51a6e={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x4df64d['getAttribute']('type')];_0xd51a6e&&(_0x5f50e4=_0xd51a6e),_0x5ca707=!0x0;}_0x1bc413['consumable']['consume'](_0x4df64d,{'styles':'list-style-type'})&&(_0x5f50e4=function(_0x34c247){switch(_0x34c247){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x34c247;}}(_0x4df64d['getStyle']('list-style-type')),_0x5ca707=!0x0),!_0x5ca707&&_0x53e34e['hasAttribute']('footnotesListStyle')||_0x1bc413['writer']['setAttribute']('footnotesListStyle',_0x5f50e4,_0x53e34e);}(_0x5bfefc,_0x35d390,_0x81833c,_0x21a994));});}),_0x303608['for']('downcast')['add'](_0x18e366=>{_0x18e366['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x35fb68,_0x180ddd,_0x24ffc8)=>{if(!_0x24ffc8['consumable']['consume'](_0x180ddd['item'],_0x35fb68['name']))return;const _0x3a3b0f=M(_0x180ddd['item'],_0x24ffc8['mapper']),{attributeNewValue:_0x45c3d8}=_0x180ddd;null==_0x45c3d8||0x1===_0x45c3d8?_0x24ffc8['writer']['removeAttribute']('start',_0x3a3b0f):_0x24ffc8['writer']['setAttribute']('start',String(_0x45c3d8),_0x3a3b0f);}),_0x18e366['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x173d67,_0x5b41f1,_0x20ae2a)=>{if(!_0x20ae2a['consumable']['consume'](_0x5b41f1['item'],_0x173d67['name']))return;const _0x12ff67=M(_0x5b41f1['item'],_0x20ae2a['mapper']),{attributeNewValue:_0x345ee5}=_0x5b41f1;_0x345ee5&&'decimal'!==_0x345ee5?_0x20ae2a['writer']['setStyle']('list-style-type',_0x345ee5,_0x12ff67):_0x20ae2a['writer']['removeStyle']('list-style-type',_0x12ff67);});});}['_definePostfixer'](){const {editor:_0x325ad5}=this,{model:_0x47a4fa}=_0x325ad5,_0x1dd9d1=_0x325ad5['plugins']['get'](f),_0x3f6f5d=this['_getDefaultListStyle'](),_0x4e82cb=this['_getDefaultStartIndex']();_0x47a4fa['document']['registerPostFixer'](_0x2d356e=>{const _0x76eb11=_0x47a4fa['document']['differ']['getChanges']();let _0xc2c70f=!0x1;for(const _0x293cba of _0x76eb11){if('insert'!==_0x293cba['type']||'$text'===_0x293cba['name'])continue;const _0x592610=_0x47a4fa['createRangeOn'](_0x293cba['position']['nodeAfter']);for(const _0x43ea3d of _0x592610['getItems']())_0x43ea3d['is']('element','footnotesDefinitions')&&(!_0x43ea3d['hasAttribute']('footnotesListStart')&&_0x47a4fa['schema']['checkAttribute'](_0x43ea3d,'footnotesListStart')&&(_0x2d356e['setAttribute']('footnotesListStart',_0x4e82cb,_0x43ea3d),_0xc2c70f=!0x0),!_0x43ea3d['hasAttribute']('footnotesListStyle')&&_0x47a4fa['schema']['checkAttribute'](_0x43ea3d,'footnotesListStyle')&&(_0x2d356e['setAttribute']('footnotesListStyle',_0x3f6f5d,_0x43ea3d),_0xc2c70f=!0x0));}return _0xc2c70f&&_0x1dd9d1['_updateFootnotesCounters'](_0x2d356e),_0xc2c70f;});}['_defineFormatter'](){const {editor:_0x3190d9}=this;_0x3190d9['plugins']['get'](f)['setFootnoteFormatter'](_0x5e1309=>this['_formatFootnoteListValue'](_0x5e1309));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x3b4fb2,value:_0x5a7a76,digits:_0x10f9d9}){const _0x6df8b5=_0x3b4fb2['getAttribute']('footnotesListStyle'),_0x9c0d15=_0x3b4fb2['getAttribute']('footnotesListStart'),_0x1fe4ca=Math['floor'](_0x5a7a76)+(_0x9c0d15??0x1)-0x1;switch(_0x6df8b5){case'decimal-leading-zero':return function(_0x44b49a,_0x167d37){return String(_0x44b49a)['padStart'](_0x167d37,'0');}(_0x1fe4ca,Math['max'](0x2,_0x10f9d9));case'lower-alpha':case'lower-latin':return N(_0x1fe4ca,!0x1);case'upper-alpha':case'upper-latin':return N(_0x1fe4ca,!0x0);case'lower-roman':return X(_0x1fe4ca,!0x1);case'upper-roman':return X(_0x1fe4ca,!0x0);default:return String(_0x1fe4ca);}}}function M(_0x500a84,_0x1bd12c){const _0x37ab98=_0x1bd12c['toViewElement'](_0x500a84);return Array['from'](_0x37ab98['getChildren']())['find'](_0x4805bc=>_0x4805bc['is']('element','ol')&&_0x4805bc['hasClass']('footnotes-list'));}function N(_0x1df5f0,_0x17ccb2){let _0x11db8f='',_0x3a6766=_0x1df5f0;for(;_0x3a6766>0x0;){const _0x5027f5=(_0x3a6766-0x1)%0x1a;_0x11db8f=String['fromCharCode'](0x61+_0x5027f5)+_0x11db8f,_0x3a6766=Math['floor']((_0x3a6766-0x1)/0x1a);}return _0x17ccb2?_0x11db8f['toUpperCase']():_0x11db8f;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0x1554f8,_0x5e96a7){let _0x3a0421='',_0x3866ff=_0x1554f8;for(const {value:_0x19aab0,numeral:_0x210e3b}of V)for(;_0x3866ff>=_0x19aab0;)_0x3a0421+=_0x210e3b,_0x3866ff-=_0x19aab0;return _0x5e96a7?_0x3a0421:_0x3a0421['toLowerCase']();}class H extends _0xb682b{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x3f4e28();['focusCycler'];constructor(_0x2463b4,{styleButtonViews:_0x1e4175,styleGridAriaLabel:_0x492809}){super(_0x2463b4),(this['focusCycler']=new _0x13a3ed({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x1e4175,_0x492809),[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 _0x2ed9bc of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x2ed9bc['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x257572=_0x401fd9=>_0x401fd9['stopPropagation']();this['keystrokes']['set']('arrowright',_0x257572),this['keystrokes']['set']('arrowleft',_0x257572),this['keystrokes']['set']('arrowup',_0x257572),this['keystrokes']['set']('arrowdown',_0x257572);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x4a527a,_0x331734){const _0x5ea876=new _0xb682b(this['locale']);return _0x5ea876['children']=_0x5ea876['createCollection'](),_0x5ea876['children']['addMany'](_0x4a527a),_0x5ea876['setTemplate']({'tag':'div','attributes':{'aria-label':_0x331734,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x5ea876['children']}),_0x5ea876['children']['delegate']('execute')['to'](this),_0x5ea876['focus']=function(){for(const _0x501bcb of this['children'])if(_0x501bcb instanceof _0x17f526&&_0x501bcb['isOn'])return void _0x501bcb['focus']();this['children']['first']['focus']();},_0x5ea876['focusTracker']=new ot(),_0x5ea876['keystrokes']=new rt(),_0x5ea876['render'](),_0x5ea876['keystrokes']['listenTo'](_0x5ea876['element']),this['children']['add'](_0x5ea876),_0x5ea876;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x2a9de4=this['_createStartIndexPropertyView'](),_0xfcc4d0=[_0x2a9de4],_0x146172=new st(this['locale'],_0xfcc4d0);return _0x146172['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x146172['buttonView']['bind']('isEnabled')['toMany'](_0xfcc4d0,'isEnabled',(..._0xbfa029)=>_0xbfa029['some'](_0xc83a09=>_0xc83a09)),_0x146172['buttonView']['on']('change:isEnabled',(_0x3bcc1f,_0x29d60f,_0x1aa5d0)=>{_0x1aa5d0||(_0x146172['isCollapsed']=!0x0);}),this['children']['add'](_0x146172),[_0x2a9de4,_0x146172];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x5d6ccd=new it(this['locale'],et);return _0x5d6ccd['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x5d6ccd['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x5d6ccd['fieldView']['on']('input',()=>{const _0x177b41=_0x5d6ccd['fieldView']['element'],_0x408529=_0x177b41['valueAsNumber'];Number['isNaN'](_0x408529)?_0x5d6ccd['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x177b41['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x408529}):_0x5d6ccd['errorText']=t(_0x408529<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x5d6ccd;}}class j extends _0x537dd2{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x120893,_0x33ead7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5cc614}=this,{componentFactory:_0x122471}=_0x5cc614['ui'];_0x5cc614['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x122471['add']('footnotesStyle',function(_0x49fa24){return _0x2dd0a0=>{const {t:t}=_0x2dd0a0,_0x284d7b=_0x49fa24['commands']['get']('footnotesStyle'),_0x193a8d=_0x3387b9(_0x2dd0a0),{buttonView:_0x15affd}=_0x193a8d;return _0x193a8d['class']='ck-footnotes-styles-dropdown',_0x193a8d['bind']('isEnabled')['to'](_0x284d7b,'isEnabled'),_0x15affd['set']({'label':t('Footnotes\x20style'),'icon':_0x1c96f4,'tooltip':!0x0}),_0x193a8d['once']('change:isOpen',()=>{const _0x123d2a=function({editor:_0x149448,dropdownView:_0x4585f5}){const {t:t}=_0x149448['locale'],_0x270bf5=t('Footnotes\x20definitions\x20styles'),_0x203d05=function(_0x5f5dd3){const t=_0x5f5dd3['locale']['t'],_0x40554b=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x2b46fd},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x1bfc9f},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x2ab1af},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x459c39},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x169eff},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x2a64ff}];return _0x40554b['map'](function(_0x1d0f33){const _0xe3a4b4=_0x1d0f33['locale'];return({label:_0x4c8fc3,icon:_0x5eec87,tooltip:_0x1fb673,style:_0x3ef20a})=>{const _0x57a440=_0x1d0f33['commands']['get']('footnotesStyle'),_0x30cdc1=new _0x17f526(_0xe3a4b4);return _0x30cdc1['set']({'label':_0x4c8fc3,'icon':_0x5eec87,'tooltip':_0x1fb673}),_0x30cdc1['bind']('isOn')['to'](_0x57a440,'value',_0x3d68c3=>_0x3d68c3===_0x3ef20a),_0x30cdc1['bind']('isEnabled')['to'](_0x57a440,'isEnabled'),_0x30cdc1['on']('execute',()=>{_0x1d0f33['execute']('footnotesStyle',{'value':_0x3ef20a}),_0x1d0f33['editing']['view']['focus']();}),_0x30cdc1;};}(_0x5f5dd3));}(_0x149448),_0x55ace1=new H(_0x149448['locale'],{'styleGridAriaLabel':_0x270bf5,'styleButtonViews':_0x203d05}),_0x304ab8=_0x149448['commands']['get']('footnotesStart');return _0x55ace1['startIndexFieldView']['bind']('isEnabled')['to'](_0x304ab8),_0x55ace1['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x304ab8),_0x55ace1['on']('footnotesListStart',(_0x178b9e,_0x515dcb)=>{_0x149448['execute']('footnotesStart',{'value':_0x515dcb['startIndex']});}),_0x55ace1['delegate']('execute')['to'](_0x4585f5),_0x55ace1;}({'editor':_0x49fa24,'dropdownView':_0x193a8d});_0x193a8d['panelView']['children']['add'](_0x123d2a);}),_0x193a8d;};}(_0x5cc614));}['afterInit'](){const {editor:_0x3579c3}=this,{t:t}=_0x3579c3['locale'],_0x5e7be0=_0x3579c3['plugins']['get'](_0x33ead7),{defaultPositions:_0x477815}=_0x1b4c01;_0x5e7be0['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x3579c3['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x56e7e7=>{let _0x2c61b3=_0x56e7e7['getFirstPosition']()?.['parent'];return _0x2c61b3?.['is']('$text')&&(_0x2c61b3=_0x2c61b3['parent']),_0x2c61b3?.['is']('element')?_0x2c61b3['findAncestor'](J):null;},'positions':[_0x477815['southArrowNorth'],_0x477815['southArrowNorthMiddleWest'],_0x477815['southArrowNorthMiddleEast'],_0x477815['southArrowNorthWest'],_0x477815['southArrowNorthEast'],_0x477815['northArrowSouth'],_0x477815['northArrowSouthMiddleWest'],_0x477815['northArrowSouthMiddleEast'],_0x477815['northArrowSouthWest'],_0x477815['northArrowSouthEast'],_0x477815['viewportStickyNorth']]});}}class ft extends _0x537dd2{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-footnotes",
3
- "version": "0.0.0-nightly-next-20251216.0",
3
+ "version": "0.0.0-nightly-next-20251217.0",
4
4
  "description": "The footnotes feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -23,14 +23,14 @@
23
23
  "type": "module",
24
24
  "main": "src/index.js",
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20251216.0",
27
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20251216.0",
28
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-next-20251216.0",
29
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20251216.0",
30
- "@ckeditor/ckeditor5-widget": "0.0.0-nightly-next-20251216.0",
31
- "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-next-20251216.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20251216.0",
33
- "ckeditor5": "0.0.0-nightly-next-20251216.0"
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20251217.0",
27
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20251217.0",
28
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-next-20251217.0",
29
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20251217.0",
30
+ "@ckeditor/ckeditor5-widget": "0.0.0-nightly-next-20251217.0",
31
+ "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-next-20251217.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20251217.0",
33
+ "ckeditor5": "0.0.0-nightly-next-20251217.0"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (http://cksource.com/)",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x4e69fc}from'ckeditor5/src/core.js';import{isWidget as _0x2f0975,toWidget as _0x5381bf,toWidgetEditable as _0x1d6c5f}from'ckeditor5/src/widget.js';import{uid as _0x2fde9d}from'ckeditor5/src/utils.js';import{PointerObserver as _0x1c4793,ClickObserver as _0x10d0be}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x204428}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x39cf2c}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x4e69fc{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x204428];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x77f750}=this;_0x77f750['config']['define']('footnotes.multiBlock',!0x0),_0x77f750['commands']['add']('insertFootnote',new _0x39cf2c(_0x77f750)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x2b0d13){const _0x501e20=_0x995a61([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x1b071d=0x47a28506,_0x149e88=0x47a5f916^_0x1b071d,_0xaaf703=window[_0x995a61([0x44,0x61,0x74,0x65])][_0x995a61([0x6e,0x6f,0x77])](),_0x346c91=_0x2b0d13[_0x995a61([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2175b8=new window[(_0x995a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f0580=>{_0x346c91[_0x995a61([0x6f,0x6e,0x63,0x65])](_0x995a61([0x72,0x65,0x61,0x64,0x79]),_0x3f0580);}),_0x253395={[_0x995a61([0x6b,0x74,0x79])]:_0x995a61([0x45,0x43]),[_0x995a61([0x75,0x73,0x65])]:_0x995a61([0x73,0x69,0x67]),[_0x995a61([0x63,0x72,0x76])]:_0x995a61([0x50,0x2d,0x32,0x35,0x36]),[_0x995a61([0x78])]:_0x995a61([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x995a61([0x79])]:_0x995a61([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x995a61([0x61,0x6c,0x67])]:_0x995a61([0x45,0x53,0x32,0x35,0x36])},_0x507999=_0x346c91[_0x995a61([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x995a61([0x67,0x65,0x74])](_0x995a61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x41c764(){let _0x20a160,_0x3a89ed=null,_0x2c7df2=null;try{if(_0x507999==_0x995a61([0x47,0x50,0x4c]))return _0x995a61([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x20a160=_0x49a7b6(),!_0x20a160)return _0x995a61([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x20a160[_0x995a61([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2c7df2=_0x16c6f4(_0x20a160[_0x995a61([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x20a160[_0x995a61([0x6a,0x74,0x69])])),await _0x46fe4f()?_0x53beb2()?_0x3927bc()?_0x995a61([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x6c0949()?(_0x20a160[_0x995a61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x995a61([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a89ed=_0x42250c(_0x995a61([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x20a160[_0x995a61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x995a61([0x74,0x72,0x69,0x61,0x6c])&&(_0x3a89ed=_0x42250c(_0x995a61([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x488f2c()):_0x995a61([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x995a61([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x995a61([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x995a61([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3927bc(){const _0x2f6062=[_0x995a61([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x995a61([0x74,0x72,0x69,0x61,0x6c])][_0x995a61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20a160[_0x995a61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xaaf703/0x3e8:0xe10*_0x149e88;return _0x20a160[_0x995a61([0x65,0x78,0x70])]<_0x2f6062;}function _0x53beb2(){const _0x2c1b78=_0x20a160[_0x995a61([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2c1b78&&(!!_0x2c1b78[_0x995a61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x995a61([0x2a]))||!!_0x2c1b78[_0x995a61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x995a61([0x46,0x4f,0x4f])));}function _0x6c0949(){const _0x4237d8=_0x20a160[_0x995a61([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4237d8||0x0==_0x4237d8[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x25f732}=new URL(window[_0x995a61([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4237d8[_0x995a61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25f732))return!0x0;const _0xa7bc73=_0x25f732[_0x995a61([0x73,0x70,0x6c,0x69,0x74])](_0x995a61([0x2e]));return _0x4237d8[_0x995a61([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e1177=>_0x1e1177[_0x995a61([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x995a61([0x2a])))[_0x995a61([0x6d,0x61,0x70])](_0x3c47f2=>_0x3c47f2[_0x995a61([0x73,0x70,0x6c,0x69,0x74])](_0x995a61([0x2e])))[_0x995a61([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b5e27=>_0x4b5e27[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xa7bc73[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x995a61([0x6d,0x61,0x70])](_0x21841b=>Array(_0xa7bc73[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x21841b[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x995a61([0x66,0x69,0x6c,0x6c])](_0x21841b[0x0]===_0x995a61([0x2a])?_0x995a61([0x2a]):'')[_0x995a61([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x21841b))[_0x995a61([0x73,0x6f,0x6d,0x65])](_0x112577=>_0xa7bc73[_0x995a61([0x65,0x76,0x65,0x72,0x79])]((_0x3d977e,_0x596765)=>_0x112577[_0x596765]===_0x3d977e||_0x112577[_0x596765]===_0x995a61([0x2a])));}function _0x488f2c(){return _0x3a89ed&&_0x2c7df2?new window[(_0x995a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x322294,_0x4ee689)=>{_0x3a89ed[_0x995a61([0x74,0x68,0x65,0x6e])](_0x322294,_0x4ee689),_0x2c7df2[_0x995a61([0x74,0x68,0x65,0x6e])](_0x509015=>{_0x509015!=_0x995a61([0x56,0x61,0x6c,0x69,0x64])&&_0x322294(_0x509015);},_0x4ee689);}):_0x3a89ed||_0x2c7df2||_0x995a61([0x56,0x61,0x6c,0x69,0x64]);}}function _0x16c6f4(_0x5dc36e,_0x2679d3){return new window[(_0x995a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bca33=>{if(_0x46a5a7())return _0x3bca33(_0x995a61([0x56,0x61,0x6c,0x69,0x64]));_0x46b7f6(),_0x346c91[_0x995a61([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x995a61([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3dc407=!0x1;const _0x3743a7=_0x2fde9d();function _0x5ed772(_0x2988f4){return!!_0x2988f4&&(typeof _0x2988f4===_0x995a61([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2988f4===_0x995a61([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2988f4[_0x995a61([0x74,0x68,0x65,0x6e])]===_0x995a61([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2988f4[_0x995a61([0x63,0x61,0x74,0x63,0x68])]===_0x995a61([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x52cbcc(_0x35ce49){_0x22f4aa(_0x35ce49)[_0x995a61([0x74,0x68,0x65,0x6e])](_0x4fa4d2=>{if(!_0x4fa4d2||_0x4fa4d2[_0x995a61([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x995a61([0x6f,0x6b]))return _0x995a61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f8811(_0x13db6a(_0x3743a7+_0x2679d3))!=_0x4fa4d2[_0x995a61([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x995a61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x995a61([0x56,0x61,0x6c,0x69,0x64]);})[_0x995a61([0x74,0x68,0x65,0x6e])](_0x4cf2f9=>(_0x30e8b0(),_0x4cf2f9),()=>{const _0x4f326e=_0xcfffac();return null==_0x4f326e?(_0x30e8b0(),_0x995a61([0x56,0x61,0x6c,0x69,0x64])):_0x995a61(_0xaaf703-_0x4f326e>(0x63ae0106^_0x1b071d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x995a61([0x74,0x68,0x65,0x6e])](_0x3bca33)[_0x995a61([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3bca33(_0x995a61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e291b=0x47946b86^_0x1b071d;function _0x30e8b0(){const _0x1ed16d=_0x995a61([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f8811(_0x13db6a(_0x5dc36e)),_0x3589a7=_0x5d33a4(_0x2f8811(window[_0x995a61([0x4d,0x61,0x74,0x68])][_0x995a61([0x63,0x65,0x69,0x6c])](_0xaaf703/_0x5e291b)));window[_0x995a61([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x995a61([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ed16d,_0x3589a7);}function _0xcfffac(){const _0x432998=_0x995a61([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f8811(_0x13db6a(_0x5dc36e)),_0x9700fc=window[_0x995a61([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x995a61([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x432998);return _0x9700fc?window[_0x995a61([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d33a4(_0x9700fc),0x10)*_0x5e291b:null;}function _0x22f4aa(_0x8c638){return new window[(_0x995a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b8206,_0x67506a)=>{_0x8c638[_0x995a61([0x74,0x68,0x65,0x6e])](_0x3b8206,_0x67506a),window[_0x995a61([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x67506a,0x47a351c6^_0x1b071d);});}}_0x346c91[_0x995a61([0x6f,0x6e])](_0x995a61([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e6033,_0x5c6e74)=>{if(_0x5c6e74[0x0]!=_0x5dc36e)return _0x3bca33(_0x995a61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c6e74[0x1]={..._0x5c6e74[0x1],[_0x995a61([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3743a7};},{[_0x995a61([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x995a61([0x68,0x69,0x67,0x68])}),_0x346c91[_0x995a61([0x6f,0x6e])](_0x995a61([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3bf478=>{_0x5ed772(_0x3bf478[_0x995a61([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3dc407=!0x0,_0x52cbcc(_0x3bf478[_0x995a61([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x995a61([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x995a61([0x6c,0x6f,0x77])}),_0x2175b8[_0x995a61([0x74,0x68,0x65,0x6e])](()=>{_0x3dc407||_0x3bca33(_0x995a61([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x46a5a7(){return _0x346c91[_0x995a61([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x995a61([0x76,0x69,0x65,0x77])][_0x995a61([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x995a61([0x61,0x75,0x74,0x6f]);}function _0x46b7f6(){_0x346c91[_0x995a61([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x995a61([0x76,0x69,0x65,0x77])][_0x995a61([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x995a61([0x61,0x75,0x74,0x6f]);}}function _0x42250c(_0x407e39){const _0x281a55=[new window[(_0x995a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4228f6=>setTimeout(_0x4228f6,0x47abbbca^_0x1b071d)),_0x2175b8[_0x995a61([0x74,0x68,0x65,0x6e])](()=>new window[(_0x995a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x429269=>{let _0x2b1c1a=0x0;_0x346c91[_0x995a61([0x6d,0x6f,0x64,0x65,0x6c])][_0x995a61([0x6f,0x6e])](_0x995a61([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x57eae5,_0x191e19)=>{_0x191e19[0x0][_0x995a61([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2b1c1a++,_0x2b1c1a==(0x47a284fe^_0x1b071d)&&(_0x429269(),_0x57eae5[_0x995a61([0x6f,0x66,0x66])]());});}))];return window[_0x995a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x995a61([0x72,0x61,0x63,0x65])](_0x281a55)[_0x995a61([0x74,0x68,0x65,0x6e])](()=>_0x407e39);}async function _0x175c3b(){await _0x2175b8,_0x346c91[_0x995a61([0x6d,0x6f,0x64,0x65,0x6c])][_0x995a61([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xcf747f,_0x346c91[_0x995a61([0x6d,0x6f,0x64,0x65,0x6c])][_0x995a61([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xcf747f,_0x346c91[_0x995a61([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x995a61([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x550135(_0x5f09b1){const _0x16e9e9=_0x6a62e8();_0x346c91[_0x16e9e9]=_0x995a61([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5f09b1,_0x5f09b1!=_0x995a61([0x56,0x61,0x6c,0x69,0x64])&&_0x175c3b();}function _0x6a62e8(){const _0x34d947=window[_0x995a61([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x995a61([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x995a61([0x6e,0x6f,0x77])]())[_0x995a61([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x995a61([0x2e]),'');let _0x5d9e9c=_0x995a61([0x75]);for(let _0x3d69ae=0x0;_0x3d69ae<_0x34d947[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d69ae+=0x2){let _0x513075=window[_0x995a61([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34d947[_0x995a61([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d69ae,_0x3d69ae+0x2));_0x513075>=_0x501e20[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x513075-=_0x501e20[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d9e9c+=_0x501e20[_0x513075];}return _0x5d9e9c;}function _0x49a7b6(){const _0x11d2cd=_0x507999[_0x995a61([0x73,0x70,0x6c,0x69,0x74])](_0x995a61([0x2e]));if(0x3!=_0x11d2cd[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x193892(_0x11d2cd[0x1]);function _0x193892(_0x418cfb){const _0x39e60a=_0x487ca0(_0x418cfb);return _0x39e60a&&_0x1cf438()?_0x39e60a:null;function _0x1cf438(){const _0x25d01a=_0x39e60a[_0x995a61([0x6a,0x74,0x69])],_0x439ebb=window[_0x995a61([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25d01a[_0x995a61([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25d01a[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x190a37={..._0x39e60a,[_0x995a61([0x6a,0x74,0x69])]:_0x25d01a[_0x995a61([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x25d01a[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x190a37[_0x995a61([0x76,0x63])],_0x13db6a(_0x190a37)==_0x439ebb;}}}async function _0x46fe4f(){let _0xa5eb24=!0x0;try{const _0x3f6b20=_0x507999[_0x995a61([0x73,0x70,0x6c,0x69,0x74])](_0x995a61([0x2e])),[_0x384f3e,_0x12e582,_0x48aa8c]=_0x3f6b20;return _0x8aa998(_0x384f3e),await _0x196746(_0x384f3e,_0x12e582,_0x48aa8c),_0xa5eb24;}catch{return!0x1;}function _0x8aa998(_0x152f73){const _0x36d572=_0x487ca0(_0x152f73);_0x36d572&&_0x36d572[_0x995a61([0x61,0x6c,0x67])]==_0x995a61([0x45,0x53,0x32,0x35,0x36])||(_0xa5eb24=!0x1);}async function _0x196746(_0x491655,_0x5cb976,_0x50fb1e){const _0x5bc368=window[_0x995a61([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x995a61([0x66,0x72,0x6f,0x6d])](_0x2acc26(_0x50fb1e),_0x4528a1=>_0x4528a1[_0x995a61([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x410cf5=new window[(_0x995a61([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x995a61([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x491655+_0x995a61([0x2e])+_0x5cb976),_0x3edebd=window[_0x995a61([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x995a61([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3edebd)return;const _0x577a4c=await _0x3edebd[_0x995a61([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x995a61([0x6a,0x77,0x6b]),_0x253395,{[_0x995a61([0x6e,0x61,0x6d,0x65])]:_0x995a61([0x45,0x43,0x44,0x53,0x41]),[_0x995a61([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x995a61([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x995a61([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3edebd[_0x995a61([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x995a61([0x6e,0x61,0x6d,0x65])]:_0x995a61([0x45,0x43,0x44,0x53,0x41]),[_0x995a61([0x68,0x61,0x73,0x68])]:{[_0x995a61([0x6e,0x61,0x6d,0x65])]:_0x995a61([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x577a4c,_0x5bc368,_0x410cf5)||(_0xa5eb24=!0x1);}}function _0x487ca0(_0x37df0c){return _0x37df0c[_0x995a61([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x995a61([0x65,0x79]))?JSON[_0x995a61([0x70,0x61,0x72,0x73,0x65])](_0x2acc26(_0x37df0c)):null;}function _0x2acc26(_0x56c23b){return window[_0x995a61([0x61,0x74,0x6f,0x62])](_0x56c23b[_0x995a61([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x995a61([0x2b]))[_0x995a61([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x995a61([0x2f])));}function _0x13db6a(_0x138a52){let _0x493fa5=0x1505;function _0x1b31af(_0x2c3737){for(let _0x36b69e=0x0;_0x36b69e<_0x2c3737[_0x995a61([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36b69e++){const _0x1c5d39=_0x2c3737[_0x995a61([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x36b69e);_0x493fa5=(_0x493fa5<<0x5)+_0x493fa5+_0x1c5d39,_0x493fa5&=_0x493fa5;}}function _0x1fcd17(_0x49e320){Array[_0x995a61([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x49e320)?_0x49e320[_0x995a61([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1fcd17):_0x49e320&&typeof _0x49e320==_0x995a61([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x995a61([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x49e320)[_0x995a61([0x73,0x6f,0x72,0x74])]()[_0x995a61([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5bf33b,_0x594ecb])=>{_0x1b31af(_0x5bf33b),_0x1fcd17(_0x594ecb);}):_0x1b31af(window[_0x995a61([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x49e320));}return _0x1fcd17(_0x138a52),_0x493fa5>>>0x0;}function _0x2f8811(_0x585829){return _0x585829[_0x995a61([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x995a61([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x995a61([0x30]));}function _0x5d33a4(_0x248b27){return _0x248b27[_0x995a61([0x73,0x70,0x6c,0x69,0x74])]('')[_0x995a61([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x995a61([0x6a,0x6f,0x69,0x6e])]('');}function _0xcf747f(){}function _0x995a61(_0x5f251d){return _0x5f251d['map'](_0x3215b1=>String['fromCharCode'](_0x3215b1))['join']('');}_0x550135(await _0x41c764());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4fe492){const {plugins:_0x1e172e,editing:_0x4606aa,model:_0x501dd4}=this['editor'],_0xe27d53=_0x1e172e['get'](_0x204428)['getFootnote'](_0x4fe492);return!!_0xe27d53&&(_0x501dd4['change'](_0x233d86=>{_0x233d86['setSelection'](_0x233d86['createPositionAt'](_0xe27d53['definition'],'end'));}),_0x4606aa['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3ba139){const {plugins:_0x753a11,editing:_0x222d35,model:_0x486f9e}=this['editor'],_0x5ec602=_0x753a11['get'](_0x204428)['getFootnote'](_0x3ba139);return!!_0x5ec602&&(_0x486f9e['change'](_0x26482c=>{_0x26482c['setSelection'](_0x5ec602['reference'],'on');}),_0x222d35['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x292195}=this['editor']['model'],_0x2a1db8=this['editor']['config']['get']('footnotes.multiBlock');_0x292195['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x292195['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x292195['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2a1db8?_0x292195['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x292195['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x292195['addChildCheck'](_0x5d76ea=>{for(const _0x282eb7 of _0x5d76ea)if('footnoteDefinition'===_0x282eb7['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x591b77}=this,{conversion:_0x516d81,editing:_0x2ad633}=_0x591b77,{t:t}=_0x591b77['locale'];_0x516d81['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x42dcb3,{writer:_0x573459,consumable:_0x3f29f1})=>{const _0x211106=_0x42dcb3['getChild'](0x0);if(!_0x211106||!_0x211106['is']('element','a'))return null;const _0x35ec58=_0x211106['getAttribute']('href')||'';if(!_0x35ec58['startsWith']('#'))return null;const _0x12c7d0=_0x35ec58['replace'](/^#/,'');if(!_0x12c7d0)return null;_0x3f29f1['consume'](_0x211106,{'name':!0x0,'attributes':['href']});for(const {item:_0x20113d}of _0x2ad633['view']['createRangeIn'](_0x211106))_0x20113d['is']('$textProxy')?_0x3f29f1['consume'](_0x20113d['textNode'],{'name':!0x0}):_0x20113d['is']('element')&&_0x3f29f1['consume'](_0x20113d,{'name':!0x0});return _0x573459['createElement']('footnoteRef',{'footnoteId':_0x12c7d0});}}),_0x516d81['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x513fbe,{writer:_0x5cb549})=>D(_0x513fbe,_0x5cb549)}),_0x516d81['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4b3501,{writer:_0x1da7ef})=>{const _0x156d24=_0x4b3501['getAttribute']('footnoteCounter');return _0x5381bf(D(_0x4b3501,_0x1da7ef),_0x1da7ef,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x156d24)});}});}['_defineDefinitionsConverters'](){const {editor:_0x10c89a}=this,{t:t}=_0x10c89a['locale'],{conversion:_0x5884d7}=_0x10c89a;_0x5884d7['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5884d7['for']('upcast')['add'](_0x54bc43=>{_0x54bc43['on']('element:ol',(_0x176940,_0x2d6b93,_0x34bd65)=>{const _0x330606=_0x2d6b93['viewItem'];if(!_0x330606['hasClass']('footnotes-list')||!_0x2d6b93['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x34bd65['consumable']['consume'](_0x330606,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x434677,modelCursor:_0x12bde9}=_0x34bd65['convertChildren'](_0x2d6b93['viewItem'],_0x2d6b93['modelCursor']);_0x2d6b93['modelRange']=_0x434677,_0x2d6b93['modelCursor']=_0x12bde9;}),_0x54bc43['on']('element:hr',(_0x49aad5,_0x26340e,_0x233233)=>{const _0x51c642=_0x26340e['viewItem'];_0x51c642['hasClass']('footnotes-divider')&&_0x26340e['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x233233['consumable']['consume'](_0x51c642,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5884d7['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x214db3,{writer:_0x44b309})=>v(_0x44b309)}),_0x5884d7['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x20fdd7,{writer:_0x2c87d0})=>{const _0x15a197=v(_0x2c87d0,{'data-footnotes-list-label':t('Footnotes')}),_0xc89f9d=_0x5381bf(_0x15a197,_0x2c87d0,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2c87d0['setCustomProperty']('footnotesDefinitions',!0x0,_0xc89f9d),_0xc89f9d;}});}['_defineDefinitionConverters'](){const {editor:_0x5e2f7a}=this,{conversion:_0xb0eaad,locale:_0x1264e8}=_0x5e2f7a,_0x502079=_0x5e2f7a['config']['get']('footnotes.multiBlock');_0xb0eaad['for']('upcast')['add'](_0x35cc13=>{_0x35cc13['on']('element:li',(_0x3f228c,_0x570b38,_0x1dc939)=>{const _0xcda13c=_0x570b38['viewItem'];if(!_0xcda13c['hasClass']('footnote-definition')||!_0xcda13c['getAttribute']('id'))return;const _0x4f6123=_0xcda13c['parent'];if(!_0x4f6123['is']('element','ol')||!_0x4f6123['hasClass']('footnotes-list'))return;if(!_0x1dc939['consumable']['test'](_0xcda13c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1f2d92=_0x1dc939['writer']['createElement']('footnoteDefinition',{'footnoteId':_0xcda13c['getAttribute']('id')});if(!_0x1dc939['safeInsert'](_0x1f2d92,_0x570b38['modelCursor']))return;_0x1dc939['consumable']['consume'](_0xcda13c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x3ba414=Array['from'](_0xcda13c['getChildren']())['find'](_0x7c5839=>_0x7c5839['is']('element')&&_0x7c5839['hasClass']('footnote-content'));for(const _0x3263ac of _0xcda13c['getChildren']())_0x3263ac['is']('element')&&(_0x1dc939['consumable']['consume'](_0x3263ac,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1dc939['consumable']['consume'](_0x3263ac,{'name':!0x0,'classes':'footnote-content'}));if(_0x3ba414){if(_0x502079)_0x1dc939['convertChildren'](_0x3ba414,_0x1f2d92);else{const _0x3f480c=_0x1dc939['writer']['createElement']('footnoteInlineContent');_0x1dc939['writer']['insert'](_0x3f480c,_0x1f2d92),_0x1dc939['convertChildren'](_0x3ba414,_0x3f480c);}}_0x1dc939['updateConversionResult'](_0x1f2d92,_0x570b38);});}),_0xb0eaad['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x78e8e2,{writer:_0x4df8be})=>b(_0x78e8e2,_0x4df8be,_0x1264e8,{'dataPipeline':!0x0})}),_0xb0eaad['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1dd79c,{writer:_0xa10318})=>b(_0x1dd79c,_0xa10318,_0x1264e8)});}['_defineBogusParagraphConverters'](){const {editor:_0x2bd6b2}=this,{conversion:_0x2546c2}=_0x2bd6b2;_0x2bd6b2['config']['get']('footnotes.multiBlock')?(_0x2546c2['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x2546c2['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x2bd6b2['model']['document'],'change:data',()=>{!function(_0x9b82f9,_0x194bc0){const _0x2de902=_0x9b82f9['document']['differ'],_0x22fa0e=new Set();for(const _0x5c1ad1 of _0x2de902['getChanges']()){const _0xcd16ad='attribute'==_0x5c1ad1['type']?_0x5c1ad1['range']['start']['parent']:_0x5c1ad1['position']['parent'];_0xcd16ad['is']('element','footnoteDefinition')&&_0x22fa0e['add'](_0xcd16ad);}for(const _0x5dce99 of _0x22fa0e['values']()){const _0x44721c=Array['from'](_0x5dce99['getChildren']())['filter'](_0x471336=>g(_0x471336,_0x194bc0['mapper']));for(const _0x33553c of _0x44721c)_0x194bc0['reconvertItem'](_0x33553c);}}(_0x2bd6b2['model'],_0x2bd6b2['editing']);})):(_0x2546c2['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x2546c2['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5a3664,{writer:_0x336340})=>{const _0x5402dc=_0x336340['createContainerElement']('span');return _0x336340['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5402dc),_0x5402dc;}}));}['_defineKeyboardHandlers'](){const {editor:_0x753733}=this,{editing:_0x37f49b,t:t}=_0x753733,_0x35d347=_0x753733['model']['document']['selection'];_0x753733['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x753733['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x37f49b['view']['document'],'enter',(_0xb64409,_0x53f9c8)=>{const _0x10bc7e=function(_0x2e4c73){const _0x36813c=_0x2e4c73['getSelectedElement']();if(_0x36813c?.['is']('element','footnoteRef'))return _0x36813c;return null;}(_0x35d347);if(_0x10bc7e){const _0x4b91aa=_0x10bc7e['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4b91aa),_0x53f9c8['preventDefault'](),_0xb64409['stop']();}},{'context':_0x2f0975});}['_defineClickHandlers'](){const {editor:_0x1edaf1}=this,{editing:_0xf7b79e}=_0x1edaf1;_0x1edaf1['editing']['view']['addObserver'](_0x1c4793),_0x1edaf1['editing']['view']['addObserver'](_0x10d0be);let _0x40cf29=!0x1;this['listenTo'](_0xf7b79e['view']['document'],'pointerdown',(_0x19033d,_0x1e6e62)=>{const {target:_0x3a4720}=_0x1e6e62,_0xdec53b=_0xf7b79e['view']['document']['selection'];_0x40cf29=!!(_0x3a4720?.['is']('element','a')&&_0x3a4720['parent']?.['is']('element','sup')&&_0x3a4720['parent']['hasClass']('footnote'))&&_0xdec53b['getSelectedElement']()===_0x3a4720['parent'];},{'priority':'high'}),this['listenTo'](_0xf7b79e['view']['document'],'click',(_0x20c119,_0x373c38)=>{const {target:_0x15fc5f}=_0x373c38;if(!_0x15fc5f?.['is']('element','a'))return;if(_0x15fc5f['parent']?.['is']('element','sup')&&_0x15fc5f['parent']['hasClass']('footnote')&&!_0x40cf29)return void _0x373c38['preventDefault']();let _0x14d8be=_0x15fc5f['getAttribute']('href');if(!_0x14d8be?.['startsWith']('#'))return;_0x14d8be=_0x14d8be['slice'](0x1);let _0x3b6285=!0x1;(_0x14d8be['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x14d8be['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x14d8be))&&(_0x3b6285=!0x0),_0x3b6285&&(_0x373c38['preventDefault'](),_0x20c119['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x1e5bd0}={}){return(_0x5c41d5,{writer:_0x148abd})=>{if(!p(_0x5c41d5))return null;if(!_0x1e5bd0)return _0x148abd['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4c1ff7=_0x148abd['createContainerElement']('p');return _0x148abd['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4c1ff7),_0x4c1ff7;};}function p(_0x45626d){const {parent:_0x2f3597}=_0x45626d;if(!_0x2f3597?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2f3597['childCount'])return!0x1;for(const _0x2b002f of _0x45626d['getAttributeKeys']())if(!_0x2b002f['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x2b002f)return!0x1;return!0x0;}function g(_0x11e41f,_0x1a875f){if(!_0x11e41f['is']('element','paragraph'))return!0x1;const _0x31be2e=_0x1a875f['toViewElement'](_0x11e41f);return!!_0x31be2e&&p(_0x11e41f)!==_0x31be2e['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x4e8285){return _0x2f0975(_0x4e8285)&&_0x4e8285['is']('containerElement')&&!!_0x4e8285['getCustomProperty']('footnotesDefinitions');}function v(_0x3cabcb,_0x33bfc6={}){const _0x2427a1=_0x3cabcb['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x387c84=_0x3cabcb['createContainerElement']('ol',{'class':'footnotes-list'},_0x3cabcb['createSlot']());return _0x3cabcb['createContainerElement']('div',{'class':'footnotes',..._0x33bfc6},[_0x2427a1,_0x387c84]);}function D(_0x35ddbf,_0x20092a){const _0x46b182=_0x35ddbf['getAttribute']('footnoteId'),_0x2719b1=_0x35ddbf['getAttribute']('footnoteCounter'),_0x3485c5=_0x20092a['createUIElement']('a',{'href':'#'+_0x46b182},function(_0x5a3c78){const _0x55bb8d=this['toDomElement'](_0x5a3c78);return _0x55bb8d['textContent']=_0x2719b1,_0x55bb8d;}),_0x309bb8=_0x20092a['createContainerElement']('sup',{'id':'ref-'+_0x46b182,'class':'footnote'},[_0x3485c5]);return _0x309bb8['getFillerOffset']=()=>null,_0x309bb8;}function b(_0x1c54e5,_0x4d43f8,_0x3ee125,{dataPipeline:_0x14a443}={}){const {t:t}=_0x3ee125,_0x375045=_0x1c54e5['getAttribute']('footnoteId'),_0x3f37a4=_0x4d43f8['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x375045},function(_0x161720){const _0x5f38f9=this['toDomElement'](_0x161720);return _0x5f38f9['innerText']='^',_0x5f38f9;}),_0x3ff73a=_0x14a443?_0x4d43f8['createContainerElement']('div',{'class':'footnote-content'}):_0x1d6c5f(_0x4d43f8['createEditableElement']('div',{'class':'footnote-content'}),_0x4d43f8,{'label':t('Footnote\x20content.')});return _0x4d43f8['insert'](_0x4d43f8['createPositionAt'](_0x3ff73a,0x0),_0x4d43f8['createSlot']()),_0x4d43f8['createContainerElement']('li',{'class':'footnote-definition','id':_0x375045},[_0x3f37a4,_0x3ff73a]);}
23
+ import{Plugin as _0x7ae1f8}from'ckeditor5/src/core.js';import{isWidget as _0x1d1a5c,toWidget as _0x21fd0a,toWidgetEditable as _0x202532}from'ckeditor5/src/widget.js';import{uid as _0x393333}from'ckeditor5/src/utils.js';import{PointerObserver as _0x440c0e,ClickObserver as _0x231ca5}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x39f242}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x58aac4}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x7ae1f8{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x39f242];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2ff9a7}=this;_0x2ff9a7['config']['define']('footnotes.multiBlock',!0x0),_0x2ff9a7['commands']['add']('insertFootnote',new _0x58aac4(_0x2ff9a7)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x2bdf80){const _0x2d81c7=_0x29dfd3([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x3f45ca=0x47a28506,_0x474826=0x47a5f92e^_0x3f45ca,_0x38aeef=window[_0x29dfd3([0x44,0x61,0x74,0x65])][_0x29dfd3([0x6e,0x6f,0x77])](),_0x5a7714=_0x2bdf80[_0x29dfd3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19b2ef=new window[(_0x29dfd3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d073a=>{_0x5a7714[_0x29dfd3([0x6f,0x6e,0x63,0x65])](_0x29dfd3([0x72,0x65,0x61,0x64,0x79]),_0x1d073a);}),_0x3ad0c1={[_0x29dfd3([0x6b,0x74,0x79])]:_0x29dfd3([0x45,0x43]),[_0x29dfd3([0x75,0x73,0x65])]:_0x29dfd3([0x73,0x69,0x67]),[_0x29dfd3([0x63,0x72,0x76])]:_0x29dfd3([0x50,0x2d,0x32,0x35,0x36]),[_0x29dfd3([0x78])]:_0x29dfd3([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x29dfd3([0x79])]:_0x29dfd3([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x29dfd3([0x61,0x6c,0x67])]:_0x29dfd3([0x45,0x53,0x32,0x35,0x36])},_0x2492cc=_0x5a7714[_0x29dfd3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x29dfd3([0x67,0x65,0x74])](_0x29dfd3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5286b8(){let _0x5affc7,_0x3eaaaf=null,_0x5a7ff0=null;try{if(_0x2492cc==_0x29dfd3([0x47,0x50,0x4c]))return _0x29dfd3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5affc7=_0x12f79f(),!_0x5affc7)return _0x29dfd3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5affc7[_0x29dfd3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a7ff0=_0x1e60be(_0x5affc7[_0x29dfd3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5affc7[_0x29dfd3([0x6a,0x74,0x69])])),await _0x3137eb()?_0x5b79fa()?_0x38650e()?_0x29dfd3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x102b0b()?(_0x5affc7[_0x29dfd3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29dfd3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3eaaaf=_0x2c1dd8(_0x29dfd3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5affc7[_0x29dfd3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29dfd3([0x74,0x72,0x69,0x61,0x6c])&&(_0x3eaaaf=_0x2c1dd8(_0x29dfd3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x867422()):_0x29dfd3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x29dfd3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x29dfd3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x29dfd3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x38650e(){const _0x34e146=[_0x29dfd3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x29dfd3([0x74,0x72,0x69,0x61,0x6c])][_0x29dfd3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5affc7[_0x29dfd3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x38aeef/0x3e8:0xe10*_0x474826;return _0x5affc7[_0x29dfd3([0x65,0x78,0x70])]<_0x34e146;}function _0x5b79fa(){const _0x2cb13e=_0x5affc7[_0x29dfd3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2cb13e&&(!!_0x2cb13e[_0x29dfd3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29dfd3([0x2a]))||!!_0x2cb13e[_0x29dfd3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29dfd3([0x46,0x4f,0x4f])));}function _0x102b0b(){const _0x275bdd=_0x5affc7[_0x29dfd3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x275bdd||0x0==_0x275bdd[_0x29dfd3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x19d551}=new URL(window[_0x29dfd3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x275bdd[_0x29dfd3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19d551))return!0x0;const _0x4439b1=_0x19d551[_0x29dfd3([0x73,0x70,0x6c,0x69,0x74])](_0x29dfd3([0x2e]));return _0x275bdd[_0x29dfd3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a3994=>_0x3a3994[_0x29dfd3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29dfd3([0x2a])))[_0x29dfd3([0x6d,0x61,0x70])](_0x3f7497=>_0x3f7497[_0x29dfd3([0x73,0x70,0x6c,0x69,0x74])](_0x29dfd3([0x2e])))[_0x29dfd3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29dcec=>_0x29dcec[_0x29dfd3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4439b1[_0x29dfd3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x29dfd3([0x6d,0x61,0x70])](_0x321d63=>Array(_0x4439b1[_0x29dfd3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x321d63[_0x29dfd3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x29dfd3([0x66,0x69,0x6c,0x6c])](_0x321d63[0x0]===_0x29dfd3([0x2a])?_0x29dfd3([0x2a]):'')[_0x29dfd3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x321d63))[_0x29dfd3([0x73,0x6f,0x6d,0x65])](_0x41c4d7=>_0x4439b1[_0x29dfd3([0x65,0x76,0x65,0x72,0x79])]((_0x2b9ff1,_0x58ed39)=>_0x41c4d7[_0x58ed39]===_0x2b9ff1||_0x41c4d7[_0x58ed39]===_0x29dfd3([0x2a])));}function _0x867422(){return _0x3eaaaf&&_0x5a7ff0?new window[(_0x29dfd3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1650b1,_0x2dd2a6)=>{_0x3eaaaf[_0x29dfd3([0x74,0x68,0x65,0x6e])](_0x1650b1,_0x2dd2a6),_0x5a7ff0[_0x29dfd3([0x74,0x68,0x65,0x6e])](_0x1ad829=>{_0x1ad829!=_0x29dfd3([0x56,0x61,0x6c,0x69,0x64])&&_0x1650b1(_0x1ad829);},_0x2dd2a6);}):_0x3eaaaf||_0x5a7ff0||_0x29dfd3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e60be(_0x58a488,_0x1a80d3){return new window[(_0x29dfd3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a39c3=>{if(_0xfdd35d())return _0x4a39c3(_0x29dfd3([0x56,0x61,0x6c,0x69,0x64]));_0x321a8f(),_0x5a7714[_0x29dfd3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x29dfd3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2fcba9=!0x1;const _0x4a0bba=_0x393333();function _0x276ad7(_0x2b12a3){return!!_0x2b12a3&&(typeof _0x2b12a3===_0x29dfd3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b12a3===_0x29dfd3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b12a3[_0x29dfd3([0x74,0x68,0x65,0x6e])]===_0x29dfd3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b12a3[_0x29dfd3([0x63,0x61,0x74,0x63,0x68])]===_0x29dfd3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3d55b4(_0x55e9b8){_0x4a26dd(_0x55e9b8)[_0x29dfd3([0x74,0x68,0x65,0x6e])](_0x50b736=>{if(!_0x50b736||_0x50b736[_0x29dfd3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x29dfd3([0x6f,0x6b]))return _0x29dfd3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x49586f(_0x3339ff(_0x4a0bba+_0x1a80d3))!=_0x50b736[_0x29dfd3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x29dfd3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x29dfd3([0x56,0x61,0x6c,0x69,0x64]);})[_0x29dfd3([0x74,0x68,0x65,0x6e])](_0x20925c=>(_0x3c038d(),_0x20925c),()=>{const _0x37af3c=_0x2135aa();return null==_0x37af3c?(_0x3c038d(),_0x29dfd3([0x56,0x61,0x6c,0x69,0x64])):_0x29dfd3(_0x38aeef-_0x37af3c>(0x63ae0106^_0x3f45ca)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x29dfd3([0x74,0x68,0x65,0x6e])](_0x4a39c3)[_0x29dfd3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4a39c3(_0x29dfd3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1b1034=0x47946b86^_0x3f45ca;function _0x3c038d(){const _0x329ea1=_0x29dfd3([0x6c,0x6c,0x63,0x74,0x2d])+_0x49586f(_0x3339ff(_0x58a488)),_0x2cc0d0=_0x47d9a7(_0x49586f(window[_0x29dfd3([0x4d,0x61,0x74,0x68])][_0x29dfd3([0x63,0x65,0x69,0x6c])](_0x38aeef/_0x1b1034)));window[_0x29dfd3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29dfd3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x329ea1,_0x2cc0d0);}function _0x2135aa(){const _0x4b04c9=_0x29dfd3([0x6c,0x6c,0x63,0x74,0x2d])+_0x49586f(_0x3339ff(_0x58a488)),_0x2b7a89=window[_0x29dfd3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29dfd3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b04c9);return _0x2b7a89?window[_0x29dfd3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47d9a7(_0x2b7a89),0x10)*_0x1b1034:null;}function _0x4a26dd(_0x175f85){return new window[(_0x29dfd3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x511de0,_0x7999ab)=>{_0x175f85[_0x29dfd3([0x74,0x68,0x65,0x6e])](_0x511de0,_0x7999ab),window[_0x29dfd3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x7999ab,0x47a351c6^_0x3f45ca);});}}_0x5a7714[_0x29dfd3([0x6f,0x6e])](_0x29dfd3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x47d785,_0x2b1fab)=>{if(_0x2b1fab[0x0]!=_0x58a488)return _0x4a39c3(_0x29dfd3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2b1fab[0x1]={..._0x2b1fab[0x1],[_0x29dfd3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4a0bba};},{[_0x29dfd3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29dfd3([0x68,0x69,0x67,0x68])}),_0x5a7714[_0x29dfd3([0x6f,0x6e])](_0x29dfd3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x404adb=>{_0x276ad7(_0x404adb[_0x29dfd3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2fcba9=!0x0,_0x3d55b4(_0x404adb[_0x29dfd3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x29dfd3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29dfd3([0x6c,0x6f,0x77])}),_0x19b2ef[_0x29dfd3([0x74,0x68,0x65,0x6e])](()=>{_0x2fcba9||_0x4a39c3(_0x29dfd3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xfdd35d(){return _0x5a7714[_0x29dfd3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29dfd3([0x76,0x69,0x65,0x77])][_0x29dfd3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x29dfd3([0x61,0x75,0x74,0x6f]);}function _0x321a8f(){_0x5a7714[_0x29dfd3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29dfd3([0x76,0x69,0x65,0x77])][_0x29dfd3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29dfd3([0x61,0x75,0x74,0x6f]);}}function _0x2c1dd8(_0x22739e){const _0x2e14e0=[new window[(_0x29dfd3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34d4e3=>setTimeout(_0x34d4e3,0x47abbbca^_0x3f45ca)),_0x19b2ef[_0x29dfd3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x29dfd3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc2d5a2=>{let _0x4fbaa7=0x0;_0x5a7714[_0x29dfd3([0x6d,0x6f,0x64,0x65,0x6c])][_0x29dfd3([0x6f,0x6e])](_0x29dfd3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5e2b4f,_0x45d6ae)=>{_0x45d6ae[0x0][_0x29dfd3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4fbaa7++,_0x4fbaa7==(0x47a284fe^_0x3f45ca)&&(_0xc2d5a2(),_0x5e2b4f[_0x29dfd3([0x6f,0x66,0x66])]());});}))];return window[_0x29dfd3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29dfd3([0x72,0x61,0x63,0x65])](_0x2e14e0)[_0x29dfd3([0x74,0x68,0x65,0x6e])](()=>_0x22739e);}async function _0x42a625(){await _0x19b2ef,_0x5a7714[_0x29dfd3([0x6d,0x6f,0x64,0x65,0x6c])][_0x29dfd3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b399c,_0x5a7714[_0x29dfd3([0x6d,0x6f,0x64,0x65,0x6c])][_0x29dfd3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b399c,_0x5a7714[_0x29dfd3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x29dfd3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d3a47(_0x4c8a26){const _0x267a8f=_0x4596da();_0x5a7714[_0x267a8f]=_0x29dfd3([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c8a26,_0x4c8a26!=_0x29dfd3([0x56,0x61,0x6c,0x69,0x64])&&_0x42a625();}function _0x4596da(){const _0x1cd307=window[_0x29dfd3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x29dfd3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x29dfd3([0x6e,0x6f,0x77])]())[_0x29dfd3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x29dfd3([0x2e]),'');let _0x43dd28=_0x29dfd3([0x75]);for(let _0x4a36af=0x0;_0x4a36af<_0x1cd307[_0x29dfd3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a36af+=0x2){let _0x5e8334=window[_0x29dfd3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cd307[_0x29dfd3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a36af,_0x4a36af+0x2));_0x5e8334>=_0x2d81c7[_0x29dfd3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e8334-=_0x2d81c7[_0x29dfd3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x43dd28+=_0x2d81c7[_0x5e8334];}return _0x43dd28;}function _0x12f79f(){const _0x25b14f=_0x2492cc[_0x29dfd3([0x73,0x70,0x6c,0x69,0x74])](_0x29dfd3([0x2e]));if(0x3!=_0x25b14f[_0x29dfd3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1bd579(_0x25b14f[0x1]);function _0x1bd579(_0x358aab){const _0x428304=_0x2d5080(_0x358aab);return _0x428304&&_0x5ba5f9()?_0x428304:null;function _0x5ba5f9(){const _0x38c676=_0x428304[_0x29dfd3([0x6a,0x74,0x69])],_0x2faa24=window[_0x29dfd3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38c676[_0x29dfd3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38c676[_0x29dfd3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x30c722={..._0x428304,[_0x29dfd3([0x6a,0x74,0x69])]:_0x38c676[_0x29dfd3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x38c676[_0x29dfd3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x30c722[_0x29dfd3([0x76,0x63])],_0x3339ff(_0x30c722)==_0x2faa24;}}}async function _0x3137eb(){let _0x15a8c5=!0x0;try{const _0x3a3495=_0x2492cc[_0x29dfd3([0x73,0x70,0x6c,0x69,0x74])](_0x29dfd3([0x2e])),[_0x559ceb,_0x23a27f,_0x5b7e57]=_0x3a3495;return _0x5e4d52(_0x559ceb),await _0x3f00ab(_0x559ceb,_0x23a27f,_0x5b7e57),_0x15a8c5;}catch{return!0x1;}function _0x5e4d52(_0x36de4d){const _0x58e94d=_0x2d5080(_0x36de4d);_0x58e94d&&_0x58e94d[_0x29dfd3([0x61,0x6c,0x67])]==_0x29dfd3([0x45,0x53,0x32,0x35,0x36])||(_0x15a8c5=!0x1);}async function _0x3f00ab(_0x36bf5b,_0x2d537d,_0x22ef54){const _0x487c19=window[_0x29dfd3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x29dfd3([0x66,0x72,0x6f,0x6d])](_0x4c95a7(_0x22ef54),_0x53cee9=>_0x53cee9[_0x29dfd3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xeeac47=new window[(_0x29dfd3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x29dfd3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x36bf5b+_0x29dfd3([0x2e])+_0x2d537d),_0x1dd8d2=window[_0x29dfd3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x29dfd3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1dd8d2)return;const _0x284305=await _0x1dd8d2[_0x29dfd3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x29dfd3([0x6a,0x77,0x6b]),_0x3ad0c1,{[_0x29dfd3([0x6e,0x61,0x6d,0x65])]:_0x29dfd3([0x45,0x43,0x44,0x53,0x41]),[_0x29dfd3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x29dfd3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x29dfd3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1dd8d2[_0x29dfd3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x29dfd3([0x6e,0x61,0x6d,0x65])]:_0x29dfd3([0x45,0x43,0x44,0x53,0x41]),[_0x29dfd3([0x68,0x61,0x73,0x68])]:{[_0x29dfd3([0x6e,0x61,0x6d,0x65])]:_0x29dfd3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x284305,_0x487c19,_0xeeac47)||(_0x15a8c5=!0x1);}}function _0x2d5080(_0x430bab){return _0x430bab[_0x29dfd3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x29dfd3([0x65,0x79]))?JSON[_0x29dfd3([0x70,0x61,0x72,0x73,0x65])](_0x4c95a7(_0x430bab)):null;}function _0x4c95a7(_0x32ee5b){return window[_0x29dfd3([0x61,0x74,0x6f,0x62])](_0x32ee5b[_0x29dfd3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x29dfd3([0x2b]))[_0x29dfd3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x29dfd3([0x2f])));}function _0x3339ff(_0x6bde93){let _0x566e61=0x1505;function _0x5ec6b2(_0x57df4b){for(let _0x5428c8=0x0;_0x5428c8<_0x57df4b[_0x29dfd3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5428c8++){const _0x3f17f6=_0x57df4b[_0x29dfd3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5428c8);_0x566e61=(_0x566e61<<0x5)+_0x566e61+_0x3f17f6,_0x566e61&=_0x566e61;}}function _0x100839(_0x1db34c){Array[_0x29dfd3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1db34c)?_0x1db34c[_0x29dfd3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x100839):_0x1db34c&&typeof _0x1db34c==_0x29dfd3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x29dfd3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1db34c)[_0x29dfd3([0x73,0x6f,0x72,0x74])]()[_0x29dfd3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2890a2,_0x561fd9])=>{_0x5ec6b2(_0x2890a2),_0x100839(_0x561fd9);}):_0x5ec6b2(window[_0x29dfd3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1db34c));}return _0x100839(_0x6bde93),_0x566e61>>>0x0;}function _0x49586f(_0x528490){return _0x528490[_0x29dfd3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x29dfd3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x29dfd3([0x30]));}function _0x47d9a7(_0x282c27){return _0x282c27[_0x29dfd3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x29dfd3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x29dfd3([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b399c(){}function _0x29dfd3(_0x4ec107){return _0x4ec107['map'](_0x28f02e=>String['fromCharCode'](_0x28f02e))['join']('');}_0x3d3a47(await _0x5286b8());}(this);}['_moveSelectionToFootnoteDefinition'](_0x567e8f){const {plugins:_0x4bb236,editing:_0x39c0fb,model:_0x4a5cba}=this['editor'],_0x29cf2e=_0x4bb236['get'](_0x39f242)['getFootnote'](_0x567e8f);return!!_0x29cf2e&&(_0x4a5cba['change'](_0x3baf62=>{_0x3baf62['setSelection'](_0x3baf62['createPositionAt'](_0x29cf2e['definition'],'end'));}),_0x39c0fb['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5572e4){const {plugins:_0x54ef6c,editing:_0x47b3ab,model:_0xf9faeb}=this['editor'],_0x3924b4=_0x54ef6c['get'](_0x39f242)['getFootnote'](_0x5572e4);return!!_0x3924b4&&(_0xf9faeb['change'](_0x41e14d=>{_0x41e14d['setSelection'](_0x3924b4['reference'],'on');}),_0x47b3ab['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x1ba3de}=this['editor']['model'],_0x1913c7=this['editor']['config']['get']('footnotes.multiBlock');_0x1ba3de['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x1ba3de['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x1ba3de['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x1913c7?_0x1ba3de['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x1ba3de['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x1ba3de['addChildCheck'](_0x4ed152=>{for(const _0x34cc9a of _0x4ed152)if('footnoteDefinition'===_0x34cc9a['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x4dbb7c}=this,{conversion:_0x23af4e,editing:_0x4fbf5c}=_0x4dbb7c,{t:t}=_0x4dbb7c['locale'];_0x23af4e['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xfd6982,{writer:_0x4ee6d5,consumable:_0x1e22af})=>{const _0x38d37a=_0xfd6982['getChild'](0x0);if(!_0x38d37a||!_0x38d37a['is']('element','a'))return null;const _0x5cc4df=_0x38d37a['getAttribute']('href')||'';if(!_0x5cc4df['startsWith']('#'))return null;const _0x3187ec=_0x5cc4df['replace'](/^#/,'');if(!_0x3187ec)return null;_0x1e22af['consume'](_0x38d37a,{'name':!0x0,'attributes':['href']});for(const {item:_0x2048aa}of _0x4fbf5c['view']['createRangeIn'](_0x38d37a))_0x2048aa['is']('$textProxy')?_0x1e22af['consume'](_0x2048aa['textNode'],{'name':!0x0}):_0x2048aa['is']('element')&&_0x1e22af['consume'](_0x2048aa,{'name':!0x0});return _0x4ee6d5['createElement']('footnoteRef',{'footnoteId':_0x3187ec});}}),_0x23af4e['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x521f4a,{writer:_0x2058d6})=>D(_0x521f4a,_0x2058d6)}),_0x23af4e['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x523456,{writer:_0x4308df})=>{const _0x3c6949=_0x523456['getAttribute']('footnoteCounter');return _0x21fd0a(D(_0x523456,_0x4308df),_0x4308df,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x3c6949)});}});}['_defineDefinitionsConverters'](){const {editor:_0x530a28}=this,{t:t}=_0x530a28['locale'],{conversion:_0x556cc2}=_0x530a28;_0x556cc2['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x556cc2['for']('upcast')['add'](_0x17d030=>{_0x17d030['on']('element:ol',(_0x20d087,_0x138745,_0x27a0a3)=>{const _0xd36fac=_0x138745['viewItem'];if(!_0xd36fac['hasClass']('footnotes-list')||!_0x138745['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x27a0a3['consumable']['consume'](_0xd36fac,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x15dbd8,modelCursor:_0x347a28}=_0x27a0a3['convertChildren'](_0x138745['viewItem'],_0x138745['modelCursor']);_0x138745['modelRange']=_0x15dbd8,_0x138745['modelCursor']=_0x347a28;}),_0x17d030['on']('element:hr',(_0x5d819c,_0x203758,_0x4149d3)=>{const _0x21cb05=_0x203758['viewItem'];_0x21cb05['hasClass']('footnotes-divider')&&_0x203758['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4149d3['consumable']['consume'](_0x21cb05,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x556cc2['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x308fd3,{writer:_0x1c92db})=>v(_0x1c92db)}),_0x556cc2['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1058b5,{writer:_0x1806cc})=>{const _0x3fd260=v(_0x1806cc,{'data-footnotes-list-label':t('Footnotes')}),_0x4d5a5b=_0x21fd0a(_0x3fd260,_0x1806cc,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1806cc['setCustomProperty']('footnotesDefinitions',!0x0,_0x4d5a5b),_0x4d5a5b;}});}['_defineDefinitionConverters'](){const {editor:_0x4106b3}=this,{conversion:_0x5d6647,locale:_0x5cb66f}=_0x4106b3,_0x3dd203=_0x4106b3['config']['get']('footnotes.multiBlock');_0x5d6647['for']('upcast')['add'](_0x8f9532=>{_0x8f9532['on']('element:li',(_0x4130d1,_0x598dbc,_0xa7579e)=>{const _0x45ba8f=_0x598dbc['viewItem'];if(!_0x45ba8f['hasClass']('footnote-definition')||!_0x45ba8f['getAttribute']('id'))return;const _0xa78fc=_0x45ba8f['parent'];if(!_0xa78fc['is']('element','ol')||!_0xa78fc['hasClass']('footnotes-list'))return;if(!_0xa7579e['consumable']['test'](_0x45ba8f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1b2dba=_0xa7579e['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x45ba8f['getAttribute']('id')});if(!_0xa7579e['safeInsert'](_0x1b2dba,_0x598dbc['modelCursor']))return;_0xa7579e['consumable']['consume'](_0x45ba8f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5c5b34=Array['from'](_0x45ba8f['getChildren']())['find'](_0x52da2a=>_0x52da2a['is']('element')&&_0x52da2a['hasClass']('footnote-content'));for(const _0x6074d8 of _0x45ba8f['getChildren']())_0x6074d8['is']('element')&&(_0xa7579e['consumable']['consume'](_0x6074d8,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0xa7579e['consumable']['consume'](_0x6074d8,{'name':!0x0,'classes':'footnote-content'}));if(_0x5c5b34){if(_0x3dd203)_0xa7579e['convertChildren'](_0x5c5b34,_0x1b2dba);else{const _0x543ff1=_0xa7579e['writer']['createElement']('footnoteInlineContent');_0xa7579e['writer']['insert'](_0x543ff1,_0x1b2dba),_0xa7579e['convertChildren'](_0x5c5b34,_0x543ff1);}}_0xa7579e['updateConversionResult'](_0x1b2dba,_0x598dbc);});}),_0x5d6647['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4de9e9,{writer:_0x2efc6b})=>b(_0x4de9e9,_0x2efc6b,_0x5cb66f,{'dataPipeline':!0x0})}),_0x5d6647['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x247f23,{writer:_0x8b1c57})=>b(_0x247f23,_0x8b1c57,_0x5cb66f)});}['_defineBogusParagraphConverters'](){const {editor:_0x355279}=this,{conversion:_0x1f7ab2}=_0x355279;_0x355279['config']['get']('footnotes.multiBlock')?(_0x1f7ab2['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x1f7ab2['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x355279['model']['document'],'change:data',()=>{!function(_0x206885,_0x409fcb){const _0x5f43b5=_0x206885['document']['differ'],_0x16c4c5=new Set();for(const _0x57c704 of _0x5f43b5['getChanges']()){const _0x45694e='attribute'==_0x57c704['type']?_0x57c704['range']['start']['parent']:_0x57c704['position']['parent'];_0x45694e['is']('element','footnoteDefinition')&&_0x16c4c5['add'](_0x45694e);}for(const _0x463a41 of _0x16c4c5['values']()){const _0x36dfb8=Array['from'](_0x463a41['getChildren']())['filter'](_0x1ca2ac=>g(_0x1ca2ac,_0x409fcb['mapper']));for(const _0x1f5208 of _0x36dfb8)_0x409fcb['reconvertItem'](_0x1f5208);}}(_0x355279['model'],_0x355279['editing']);})):(_0x1f7ab2['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x1f7ab2['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x24bee0,{writer:_0x2fb72d})=>{const _0x35089a=_0x2fb72d['createContainerElement']('span');return _0x2fb72d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x35089a),_0x35089a;}}));}['_defineKeyboardHandlers'](){const {editor:_0x113569}=this,{editing:_0x2bfde1,t:t}=_0x113569,_0x4bfb4f=_0x113569['model']['document']['selection'];_0x113569['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x113569['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x2bfde1['view']['document'],'enter',(_0x43cb23,_0x409f03)=>{const _0x250616=function(_0x42fe2a){const _0x11b479=_0x42fe2a['getSelectedElement']();if(_0x11b479?.['is']('element','footnoteRef'))return _0x11b479;return null;}(_0x4bfb4f);if(_0x250616){const _0x55c58b=_0x250616['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x55c58b),_0x409f03['preventDefault'](),_0x43cb23['stop']();}},{'context':_0x1d1a5c});}['_defineClickHandlers'](){const {editor:_0x427862}=this,{editing:_0x54a65d}=_0x427862;_0x427862['editing']['view']['addObserver'](_0x440c0e),_0x427862['editing']['view']['addObserver'](_0x231ca5);let _0x1101b6=!0x1;this['listenTo'](_0x54a65d['view']['document'],'pointerdown',(_0x565b8d,_0x31831a)=>{const {target:_0x390898}=_0x31831a,_0x2b7e15=_0x54a65d['view']['document']['selection'];_0x1101b6=!!(_0x390898?.['is']('element','a')&&_0x390898['parent']?.['is']('element','sup')&&_0x390898['parent']['hasClass']('footnote'))&&_0x2b7e15['getSelectedElement']()===_0x390898['parent'];},{'priority':'high'}),this['listenTo'](_0x54a65d['view']['document'],'click',(_0x110e17,_0x23c208)=>{const {target:_0x43ac31}=_0x23c208;if(!_0x43ac31?.['is']('element','a'))return;if(_0x43ac31['parent']?.['is']('element','sup')&&_0x43ac31['parent']['hasClass']('footnote')&&!_0x1101b6)return void _0x23c208['preventDefault']();let _0x528cb8=_0x43ac31['getAttribute']('href');if(!_0x528cb8?.['startsWith']('#'))return;_0x528cb8=_0x528cb8['slice'](0x1);let _0x3c240a=!0x1;(_0x528cb8['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x528cb8['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x528cb8))&&(_0x3c240a=!0x0),_0x3c240a&&(_0x23c208['preventDefault'](),_0x110e17['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x410954}={}){return(_0x22a907,{writer:_0x3fef0d})=>{if(!p(_0x22a907))return null;if(!_0x410954)return _0x3fef0d['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4121d0=_0x3fef0d['createContainerElement']('p');return _0x3fef0d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4121d0),_0x4121d0;};}function p(_0x469aa3){const {parent:_0x9baf43}=_0x469aa3;if(!_0x9baf43?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x9baf43['childCount'])return!0x1;for(const _0xf01146 of _0x469aa3['getAttributeKeys']())if(!_0xf01146['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xf01146)return!0x1;return!0x0;}function g(_0x186969,_0x24c862){if(!_0x186969['is']('element','paragraph'))return!0x1;const _0x2aca1b=_0x24c862['toViewElement'](_0x186969);return!!_0x2aca1b&&p(_0x186969)!==_0x2aca1b['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x4bb920){return _0x1d1a5c(_0x4bb920)&&_0x4bb920['is']('containerElement')&&!!_0x4bb920['getCustomProperty']('footnotesDefinitions');}function v(_0x43e4e0,_0x573592={}){const _0x432f6b=_0x43e4e0['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x25b53d=_0x43e4e0['createContainerElement']('ol',{'class':'footnotes-list'},_0x43e4e0['createSlot']());return _0x43e4e0['createContainerElement']('div',{'class':'footnotes',..._0x573592},[_0x432f6b,_0x25b53d]);}function D(_0x484809,_0x465674){const _0x46a6c6=_0x484809['getAttribute']('footnoteId'),_0x20b6ea=_0x484809['getAttribute']('footnoteCounter'),_0x144c04=_0x465674['createUIElement']('a',{'href':'#'+_0x46a6c6},function(_0x1fd184){const _0x295ef4=this['toDomElement'](_0x1fd184);return _0x295ef4['textContent']=_0x20b6ea,_0x295ef4;}),_0x3e4f97=_0x465674['createContainerElement']('sup',{'id':'ref-'+_0x46a6c6,'class':'footnote'},[_0x144c04]);return _0x3e4f97['getFillerOffset']=()=>null,_0x3e4f97;}function b(_0x3e2332,_0x235399,_0x875d7,{dataPipeline:_0x42e163}={}){const {t:t}=_0x875d7,_0x16d4fa=_0x3e2332['getAttribute']('footnoteId'),_0xdce97a=_0x235399['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x16d4fa},function(_0xfd32fc){const _0x256b8f=this['toDomElement'](_0xfd32fc);return _0x256b8f['innerText']='^',_0x256b8f;}),_0x390297=_0x42e163?_0x235399['createContainerElement']('div',{'class':'footnote-content'}):_0x202532(_0x235399['createEditableElement']('div',{'class':'footnote-content'}),_0x235399,{'label':t('Footnote\x20content.')});return _0x235399['insert'](_0x235399['createPositionAt'](_0x390297,0x0),_0x235399['createSlot']()),_0x235399['createContainerElement']('li',{'class':'footnote-definition','id':_0x16d4fa},[_0xdce97a,_0x390297]);}