@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251121.0 → 0.0.0-nightly-20251123.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:()=>$,FootnotesClipboard:()=>A,FootnotesEditing:()=>I,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["$text","558573ZVQJVJ","has","4639590Ddmnzb","from","reset","_model","flat","remove","7386yHavnz","10uKkJqK","type","_trackedElements","push","767522uMIPrW","$graveyard","1465ozprox","createRangeOn","add","_elementName","getElementKey","slice","set","39XwjnvB","rootName","insert","getItems","_getElementKey","8rAOsFW","elementName","length","delete","root","9XVldGd","1419sRuvhZ","values","name","50057HMrrrO","nodeAfter","element","14424wZkXpX","8QOstxy","attributes","clear","get","2407748NZlpiX","position","getChanges"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=287]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(335985===parseInt(e(327))/1*(parseInt(e(300))/2)+-parseInt(e(291))/3*(parseInt(e(318))/4)+-parseInt(e(306))/5*(-parseInt(e(299))/6)+-parseInt(e(304))/7*(parseInt(e(331))/8)+-parseInt(e(323))/9*(parseInt(e(293))/10)+-parseInt(e(324))/11*(-parseInt(e(330))/12)+-parseInt(e(313))/13*(-parseInt(e(287))/14))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(296)];[r(309)];[r(317)];[r(302)]=new Map;constructor(t,e){const o=r;this[o(296)]=t,this[o(309)]=e[o(319)],this[o(317)]=e[o(310)]}[r(295)](){const t=r;this[t(302)][t(333)]()}[r(289)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(315)===i[e(301)]&&e(290)!==i[e(326)]&&i[e(288)][e(328)]){const t=this[e(296)][e(307)](i[e(288)][e(328)]);for(const o of t[e(316)]()){if(!o.is(e(329),this[e(309)]))continue;const t=this[e(317)](o);n[e(292)](t)||n[e(312)](t,[]),n[e(334)](t)[e(303)](o)}}if(e(298)===i[e(301)]&&i[e(326)]===this[e(309)]){const t=this[e(317)]({getAttribute:t=>i[e(332)][e(334)](t)});o[e(308)](t)}}for(const[t,n]of this[e(302)])e(305)===n[e(322)][e(314)]&&o[e(308)](t);for(const t of o)this[e(302)][e(321)](t);for(const[t,o]of n)this[e(302)][e(312)](t,o[o[e(320)]-1]);const i=new Set;for(const[t,s]of n)o[e(292)](t)&&(i[e(308)](s[0]),s[e(320)]>1?n[e(312)](t,s[e(311)](1)):n[e(321)](t),o[e(321)](t));return{removed:Array[e(294)](o),inserted:Array[e(294)](n[e(325)]())[e(297)](),moved:Array[e(294)](i)}}}const u=h;function f(){const t=["footnoteRef","setFootnoteFormatter","footnotesDefinitions","4pPhrCx","push","after","remove","footnotes.multiBlock","$graveyard","_handleFootnotesDefinitionsObjectChanges","isEqual","_ensureFootnotesDefinitionsContainerExists","footnoteDefinition","getChanges","138005WqBTGg","get","_footnotesDefinitions","_insertEmptyFootnotesDefinitionsContainer","footnoteInlineContent","editor","3722787PUPlCC","find","compareWith","childCount","high","model","document","getFootnotesDefinitionsObjectElement","31224zPvWTx","move","config","reference","set","min","getFootnote","differ","from","footnoteId","add","indexOf","init","change:data","map","pluginName","_footnoteRefsTracker","_handleRemoveFootnoteReferenceById","end","createRangeOn","some","_updateFootnotesCounters","singleton","paragraph","getFootnotes","_handleFootnoteReferencesChanges","_sortFootnoteDefinitions","enqueueChange","createPositionBefore","976620OMcTAX","_footnoteDefsTracker","parent","setAttribute","createRangeIn","registerPostFixer","footnoteCounter","insert","isPremiumPlugin","_handleInsertedFootnoteReference","_handleFootnoteDefinitionsChanges","isOfficialPlugin","definition","listenTo","rootName","root","has","FootnotesTracker","findIndex","3KYvsRb","unshift","_footnotes","low","_ensureFootnotesReferencesHaveProperOrder","getRootNames","getChildren","_footnoteDefsContainerTracker","append","getAttribute","createPositionAt","_handleMovedFootnoteReference","_handleFootnotesDefinitionsObjectSync","reset","81766hBaMZh","splice","1016035YMsNrD","length","getFootnotesFormatter","createElement","before","_footnoteFormatter","56315OctbiW","_updateFootnoteRefCounter"];return(f=function(){return t})()}!function(t){const e=h,o=t();for(;;)try{if(127080===parseInt(e(437))/1+parseInt(e(413))/2*(parseInt(e(399))/3)+parseInt(e(426))/4*(parseInt(e(415))/5)+parseInt(e(380))/6+-parseInt(e(421))/7+parseInt(e(451))/8+-parseInt(e(443))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(401)]=[];[u(439)]=null;[u(420)]=null;[u(406)];[u(467)];[u(381)];static get[u(466)](){return u(397)}static get[u(391)](){return!0}static get[u(388)](){return!0}constructor(t){const e=u;super(t),this[e(406)]=new l(this[e(442)][e(448)],{elementName:e(425),getElementKey:()=>e(473)}),this[e(467)]=new l(this[e(442)][e(448)],{elementName:e(423),getElementKey:t=>t[e(408)](e(460))}),this[e(381)]=new l(this[e(442)][e(448)],{elementName:e(435),getElementKey:t=>t[e(408)](e(460))})}[u(463)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(449)][t(385)](e=>{const n=t,i=o[n(449)][n(458)][n(436)]();let s=!1;return this[n(432)](e,i)&&(s=!0),this[n(390)](e,i)&&(s=!0),this[n(476)](e,i)&&(s=!0),this[n(403)](e)&&(s=!0),this[n(411)](e)&&(s=!0),this[n(477)](e)&&(s=!0),s}),this[t(393)](o[t(449)],t(464),()=>{const e=t;o[e(378)]({isUndoable:!1},t=>{this[e(434)](t)})},{priority:t(402)}),this[t(393)](n,t(455),()=>{const e=t;this[e(401)]=[],this[e(406)][e(412)](),this[e(467)][e(412)](),this[e(381)][e(412)]()},{priority:t(447)})}[u(450)](){return this[u(439)]}[u(457)](t){const e=u;return this[e(401)][e(444)](e=>e.id===t)||null}[u(475)](){const t=u;return Array[t(459)](this[t(401)])}[u(417)](){return this[u(420)]}[u(424)](t){this[u(420)]=t}[u(472)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(401)][o(416)];i++)this[o(422)](t,i)&&(n=!0);return n}[u(440)](t,e){const o=u,n=t[o(418)](o(425),{});return t[o(407)](n,e),this[o(439)]=n,n}[u(434)](t){const e=u;if(!this[e(401)][e(416)]||this[e(439)])return;const o=this[e(401)][0][e(454)][e(395)],n=this[e(440)](t,o);for(const o of this[e(401)])o[e(392)][e(382)]||t[e(387)](o[e(392)],n,e(469));this[e(472)](t)}[u(432)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(406)][o(436)](e);if(r[o(416)]&&(this[o(439)]=r[0]),i[o(416)])if(i[o(416)]>1||this[o(439)]&&i[o(471)](t=>t!==this[o(439)])){const e=t[o(418)](o(425),{}),s=[];this[o(439)]&&s[o(427)](this[o(439)]),s[o(427)](...i),t[o(387)](e,s[0],o(419));for(const n of s)t[o(452)](t[o(384)](n),t[o(409)](e,o(469))),t[o(429)](n);this[o(439)]=e,this[o(472)](t),n=!0}else this[o(439)]=i[0];if(s[o(416)]&&o(431)===this[o(439)]?.[o(395)][o(394)]){for(const e of this[o(401)])t[o(429)](e[o(454)]),n=!0;this[o(401)]=[],this[o(439)]=null}return n}[u(390)](t,e){const o=u;let n=!1;const i=this[o(442)][o(453)][o(438)](o(430)),{inserted:s,moved:r}=this[o(381)][o(436)](e);for(const e of[...r,...s]){const s=e[o(408)](o(460)),r=this[o(457)](s);r&&(r[o(392)]=e),p(t,i,e)&&(n=!0)}return n}[u(476)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(467)][o(436)](e);for(const e of i)this[o(468)](t,e)&&(n=!0);for(const e of s)this[o(389)](t,e)&&(n=!0);for(const e of r)this[o(410)](t,e)&&(n=!0);return n}[u(411)](t){const e=u;if(!this[e(439)])return!1;let o=!1;if(this[e(439)][e(446)]!==this[e(401)][e(416)]){const n=[];for(const t of this[e(439)][e(405)]()){const i=t[e(408)](e(460));this[e(457)](i)||(n[e(400)](t),o=!0)}for(const o of n)t[e(429)](o)}const n=new Set,i=[];for(const t of this[e(439)][e(405)]()){const s=t[e(408)](e(460));n[e(396)](s)?(i[e(400)](t),o=!0):n[e(461)](s)}for(const o of i)t[e(429)](o);return this[e(439)][e(446)]||(t[e(429)](this[e(439)]),this[e(439)]=null,o=!0),o}[u(389)](t,e){const o=u;if(this[o(401)][o(444)](t=>t[o(454)]===e))return!1;let n=!1;const i=e[o(408)](o(460)),s=this[o(401)][o(398)](t=>t.id===i);-1!==s&&(t[o(429)](this[o(401)][s][o(454)]),this[o(401)][o(414)](s,1),n=!0);let r=this[o(439)]?function(t,e){const n=o;for(const o of t[n(405)]())if(o[n(408)](n(460))===e)return o;return null}(this[o(439)],i):null;r||(r=t[o(418)](o(435),{footnoteId:i}),this[o(439)]&&(t[o(387)](r,this[o(439)],o(469)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(442)][o(448)],this[o(401)],e);this[o(401)][o(414)](c,0,a);let l=c;return-1!==s&&(l=Math[o(456)](c,s)),this[o(472)](t,l)&&(n=!0),n}[u(468)](t,e){const o=u,n=this[o(401)][o(398)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(401)][n];return o(431)!==s[o(392)][o(395)][o(394)]&&(t[o(429)](s[o(392)]),i=!0),this[o(401)][o(414)](n,1),this[o(472)](t,n)&&(i=!0),i}[u(410)](t,e){const o=u,n=e[o(408)](o(460)),i=this[o(401)][o(398)](t=>t.id===n),s=this[o(401)][i];let r=!1;s[o(454)]=e,this[o(401)][o(414)](i,1);const a=m(this[o(442)][o(448)],this[o(401)],e);return this[o(401)][o(414)](a,0,s),this[o(472)](t,Math[o(456)](i,a))&&(r=!0),r}[u(422)](t,e){const o=u;if(!this[o(439)])return!1;const n=this[o(401)][e];let i;return i=this[o(420)]?this[o(420)]({footnote:n,container:this[o(439)],digits:String(this[o(401)][o(416)])[o(416)],value:e+1}):String(e+1),n[o(454)][o(408)](o(386))!=i&&(t[o(383)](o(386),i,n[o(454)]),!0)}[u(477)](t){const e=u;if(!this[e(439)]||this[e(401)][e(416)]<2)return!1;if(function(t,o){const n=e;if(t[n(416)]!==o[n(416)])return!1;for(let e=0;e<t[n(416)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(401)][e(465)](t=>t.id),Array[e(459)](this[e(439)][e(405)]())[e(465)](t=>t[e(408)](e(460)))))return!1;let o=!1;for(let n=0;n<this[e(401)][e(416)];n++){const i=this[e(401)][n],s=t[e(379)](i[e(392)]),r=t[e(409)](this[e(439)],n);s[e(433)](r)||(t[e(452)](t[e(470)](i[e(392)]),r),o=!0)}return o}[u(403)](t){const e=u;if(!this[e(401)][e(416)])return!1;const{model:o}=this[e(442)];let n=!1;for(let i=0;i<this[e(401)][e(416)]-1;i++){const s=this[e(401)][i],r=this[e(401)][i+1],a=o[e(379)](s[e(454)]),c=o[e(379)](r[e(454)]);e(428)===a[e(445)](c)&&(this[e(410)](t,s[e(454)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(446)])return!1;const i=n(e?474:441);return t[n(387)](t[n(418)](i),o),!0}function h(t,e){const o=f();return(h=function(t,e){return o[t-=378]})(t,e)}function m(t,e,o){const n=u;if(0===e[n(416)])return 0;const i=t[n(379)](o);for(let o=0;o<e[n(416)];o++){const s=e[o],r=t[n(379)](s[n(454)]);if(n(419)===i[n(445)](r))return o}const s=o[n(395)];let r=-1;for(let t=e[n(416)]-1;t>=0;t--)if(e[t][n(454)][n(395)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(449)][n(404)](),c=a[n(462)](s[n(394)]),l=a[c+1];if(l)for(let t=0;t<e[n(416)];t++)if(e[t][n(454)][n(395)][n(394)]===l)return t;return e[n(416)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=323]})(t,e)}function y(){const t=["_getPositionToInsertFootnote","selection","getFirstRange","isBlock","insert-footnote-command-executed-with-invalid-id","5cAuSzW","createElement","1658448bNgimd","FootnotesEditing","366777xsiNhf","string","footnoteId","getItems","length","test","editor","change","plugins","3108252MDpblI","368DAQpUP","7216530wFFjSa","document","655304WflGWV","footnoteRef","3124962dPLitI","execute","3219416foHJqU","refresh","end","isEnabled","model","insertObject","get","isObject","checkChild","_moveSelectionToFootnoteDefinition"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(605409===parseInt(e(341))/1+parseInt(e(326))/2+parseInt(e(343))/3+-parseInt(e(345))/4*(parseInt(e(324))/5)+parseInt(e(339))/6+-parseInt(e(337))/7+-parseInt(e(338))/8*(parseInt(e(328))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(346)](){const t=g,e=this[t(334)][t(349)][t(340)][t(356)],o=this[t(355)](e);this[t(348)]=!!o}[g(344)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(340)],r=this[e(355)](s);if(!r)return;const a=o[e(336)][e(351)](e(327)),c=t?.[e(330)]??(0,i.uid)();!function(t){const o=e;return o(329)==typeof t&&t[o(332)]>0&&!/\s/[o(333)](t)&&!/^\d/[o(333)](t)}(c)?(0,i.logWarning)(e(323)):(n[e(335)](t=>{const o=e,i=t[o(325)](o(342),{footnoteId:c});n[o(350)](i,r,null)}),a[e(354)](c))}[g(355)](t){const e=g,{model:o}=this[e(334)],{schema:n}=o,i=t[e(357)]();for(const t of i[e(331)]())if(n[e(358)](t)||n[e(352)](t))return null;const s=i[e(347)];return n[e(353)](s,e(342))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=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:1763683200;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(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>P(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)(P(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>E(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>E(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:v()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function P(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function E(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);const T=_;function D(){const t=["from","editing","6685146wQvVNR","getFootnote","change","content","definition","clipboardInput","root","getRanges","stringify","listenTo","element","add","setAttribute","toData","2613804CeRupZ","contentInsertion","init","reduce","7024easVPR","includes","parse","pluginName","editor","insert","footnoteRef","toModel","isOfficialPlugin","getAttribute","getFootnotes","toView","sourceEditorId","5005770OLVkVG","getFirstRange","createRangeIn","flatMap","isPremiumPlugin","_insertEmptyFootnotesDefinitionsContainer","setData","end","_handlePasteFootnotesDefinitions","getData","footnoteId","getFootnotesDefinitionsObjectElement","getSelectedBlocks","drop","dataTransfer","outputTransformation","append","htmlProcessor","142cDbCpn","find","10740249vtpZVI","footnoteDefinition","application/ckeditor5-footnotes","footnotesDefinitions","push","remove","length","method","selection","createElement","entries","12460pHRZXn","11559FFNcPP","document","create","get","FootnotesClipboard","_handleCopyFootnotesDefinitions","5462646CprBzA","requires","_defineClipboardIntegration","data"];return(D=function(){return t})()}function _(t,e){const o=D();return(_=function(t,e){return o[t-=321]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(987598===-parseInt(e(329))/1*(parseInt(e(390))/2)+parseInt(e(335))/3+-parseInt(e(355))/4+-parseInt(e(372))/5+-parseInt(e(341))/6+parseInt(e(328))/7*(parseInt(e(359))/8)+parseInt(e(392))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class A extends t.Plugin{static get[T(362)](){return T(333)}static get[T(336)](){return[I,S.ClipboardPipeline]}static get[T(367)](){return!0}static get[T(376)](){return!0}[T(357)](){this[T(337)]()}[T(337)](){const t=T;this[t(334)](),this[t(380)]()}[T(334)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(332)](S.ClipboardPipeline),s=o[t(332)](d);this[t(350)](i,t(387),(o,i)=>{const r=t,a=L(n[r(374)](i[r(344)]));if(!a[r(323)])return;const c=s[r(369)](),l=a[r(358)]((t,o)=>{const n=r,i=c[n(391)](t=>t.id===o);if(i){const o=e[n(338)][n(370)](i[n(345)],{isClipboardPipeline:!0}),s=e[n(338)][n(389)][n(354)](o);t[i.id]=s}return t},Object[r(331)](null));i[r(386)][r(378)](r(394),JSON[r(349)](l))})}[T(380)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(340)],r=n[t(332)](S.ClipboardPipeline),a=n[t(332)](d);let c=null;this[t(350)](s[t(330)],t(346),(e,o)=>{const n=t,i=o[n(386)][n(381)](n(394));c=i?JSON[n(361)](i):null}),this[t(350)](r,t(356),(n,s)=>{const r=t,l=s[r(371)]===this[r(363)].id;l&&r(385)===s[r(324)]||o[r(343)](t=>{const n=r;let u=a[n(383)]();const f=!!u&&Array[n(339)](o[n(330)][n(325)][n(384)]())[n(360)](u);if((u&&!f||!u&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(374)](e))n.is(o(351),o(395))&&i[o(321)](n);for(const e of i)t[o(322)](e)}(t,s[n(344)]),!c)return;const{selection:d}=o[n(330)],p=d[n(373)]()[n(347)];u&&!f||(u=function(t,e){const o=n;for(const{item:n}of t[o(374)](e))if(n.is(o(351),o(395)))return n;return null}(t,s[n(344)]),u||=a[n(377)](t,p));const h=Array[n(339)](d[n(348)]())[n(375)](L),m=function(t,e,o){const s=n,r=Object[s(331)](null);for(const{item:n}of t[s(374)](e))if(n.is(s(351),s(365))){const e=n[s(368)](s(382));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(353)](s(382),r[e],n)}return r}(t,s[n(344)],t=>{const e=n;return!l||!!a[e(342)](t)&&!h[e(360)](t)});for(const[o,i]of Object[n(327)](c)){const s=m[o]||o,r=t[n(326)](n(393),{footnoteId:s}),a=e[n(338)][n(389)][n(370)](i),c=e[n(338)][n(366)](a,r);t[n(388)](c,r),t[n(364)](r,u,n(379))}c=null})})}}function L(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(351),e(365))&&o[e(352)](n[e(368)](e(382)));return Array[e(339)](o)}var N=o(311),R=o(355),V=o(929),O=o.n(V),K=o(297),M=o.n(K),j=o(102),B=o.n(j),W=o(123),U=o.n(W),z=o(741),H=o.n(z),X=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=U(),G.insert=B().bind(null,"head"),G.domAPI=M(),G.insertStyleElement=H();O()(X.A,G);X.A&&X.A.locals&&X.A.locals;class q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",J(t,N.ButtonView)),e.add("menuBar:insertFootnote",J(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function J(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Z=Y;function Y(t,e){var o=Q();return(Y=function(t,e){return o[t-=151]})(t,e)}function Q(){var t=["pluginName","258256KhWDBb","requires","6500480mCtFLU","45966OXUaFy","isOfficialPlugin","2989650NKYcCW","33JEJxLC","1667619qldrsF","isPremiumPlugin","4elpxpm","780726IfJdsU","994NIUnfm","Footnotes","10gdMFuE","289113GRwGHJ","432EyiGHK"];return(Q=function(){return t})()}!function(t){for(var e=Y,o=t();;)try{if(727191===parseInt(e(159))/1+parseInt(e(166))/2*(-parseInt(e(155))/3)+parseInt(e(158))/4*(parseInt(e(154))/5)+-parseInt(e(152))/6*(-parseInt(e(160))/7)+parseInt(e(151))/8+-parseInt(e(156))/9*(parseInt(e(162))/10)+parseInt(e(163))/11*(-parseInt(e(164))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Q);class $ extends t.Plugin{static get[Z(165)](){return Z(161)}static get[Z(167)](){return[I,A,q]}static get[Z(153)](){return!0}static get[Z(157)](){return!0}}function tt(){const t=["upper-latin","1337016YUCNLh","lower-alpha","5xOyMnK","upper-roman","60003EBwblL","8iCQDHa","883172GYIaUw","1017604vyRgKi","126rSYgbx","lower-latin","decimal","3144057RcSyYE","1139352UvVCWS","lower-roman","1563930NkjmKP","decimal-leading-zero","upper-alpha"];return(tt=function(){return t})()}function et(t,e){const o=tt();return(et=function(t,e){return o[t-=461]})(t,e)}const ot=et;!function(t){const e=et,o=t();for(;;)try{if(348133===-parseInt(e(472))/1+-parseInt(e(475))/2+-parseInt(e(462))/3+-parseInt(e(474))/4*(parseInt(e(470))/5)+-parseInt(e(468))/6+-parseInt(e(461))/7*(parseInt(e(473))/8)+parseInt(e(476))/9*(parseInt(e(464))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);const nt=[ot(478),ot(465),ot(477),ot(467),ot(469),ot(466),ot(463),ot(471)];function it(t,e){const o=st();return(it=function(t,e){return o[t-=106]})(t,e)}function st(){const t=["isEnabled","refresh","104sYTRrG","7126IZPxMm","plugins","getFootnotesDefinitionsObjectElement","value","34MZtWrA","model","17970glyhcN","1027638cBhQnQ","913CXwmLX","getAttribute","_updateFootnotesCounters","12474DugpQl","206616zNdINu","20LluYrG","execute","774486dhShGB","footnotesListStyle","98128cZQqmN","includes","change","get","setAttribute"];return(st=function(){return t})()}const rt=it;!function(t){const e=it,o=t();for(;;)try{if(157999===-parseInt(e(114))/1*(parseInt(e(121))/2)+parseInt(e(125))/3+-parseInt(e(127))/4*(-parseInt(e(123))/5)+-parseInt(e(122))/6+parseInt(e(110))/7*(parseInt(e(109))/8)+-parseInt(e(117))/9+parseInt(e(116))/10*(parseInt(e(118))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class at extends t.Command{[rt(108)](){const t=rt,{editor:e}=this,o=e[t(111)][t(130)](d)[t(112)]();this[t(107)]=!!o,this[t(113)]=o?.[t(119)](t(126))??null}[rt(124)]({value:t}){const e=rt,{editor:o}=this,n=o[e(111)][e(130)](d),i=n[e(112)]();i&&nt[e(128)](t)&&o[e(115)][e(129)](o=>{const s=e;o[s(106)](s(126),t,i),n[s(120)](o)})}}const ct=lt;function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=262]})(t,e)}!function(t){const e=lt,o=t();for(;;)try{if(803346===parseInt(e(267))/1*(-parseInt(e(277))/2)+-parseInt(e(280))/3+parseInt(e(273))/4+parseInt(e(274))/5*(parseInt(e(278))/6)+parseInt(e(265))/7*(parseInt(e(268))/8)+-parseInt(e(282))/9*(parseInt(e(262))/10)+parseInt(e(276))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class ut extends t.Command{[ct(266)](){const t=ct,{editor:e}=this,o=e[t(275)][t(279)](d)[t(271)]();this[t(272)]=!!o,this[t(286)]=o?.[t(263)](t(285))??null}[ct(283)]({value:t}){const e=ct,{editor:o}=this,n=o[e(275)][e(279)](d),i=n[e(271)]();i&&Number[e(269)](t)&&o[e(281)][e(270)](o=>{const s=e;o[s(284)](s(285),t,i),n[s(264)](o)})}}function ft(){const t=["1405dIhzFL","plugins","8356128WLTKIT","194kXFLNk","32196SaTFfw","get","1556442Rjigcm","model","1179WdtugJ","execute","setAttribute","footnotesListStart","value","73760AQUnXD","getAttribute","_updateFootnotesCounters","3389603FMVuJG","refresh","7127DufNnN","8xhIIcW","isInteger","change","getFootnotesDefinitionsObjectElement","isEnabled","912048PMHnrM"];return(ft=function(){return t})()}function dt(t,e){const o=yt();return(dt=function(t,e){return o[t-=253]})(t,e)}const pt=dt;!function(t){const e=dt,o=t();for(;;)try{if(346239===-parseInt(e(331))/1+-parseInt(e(275))/2+parseInt(e(266))/3*(-parseInt(e(336))/4)+-parseInt(e(326))/5*(parseInt(e(262))/6)+parseInt(e(296))/7+-parseInt(e(328))/8*(-parseInt(e(338))/9)+-parseInt(e(280))/10*(-parseInt(e(306))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(yt);class ht extends t.Plugin{static get[pt(279)](){return pt(299)}static get[pt(320)](){return[I,d]}static get[pt(351)](){return!0}static get[pt(259)](){return!0}[pt(312)](){const t=pt,{editor:e}=this;e[t(309)][t(288)](t(302),t(349)),e[t(309)][t(288)](t(260),1),e[t(330)][t(340)](t(272),new at(e)),e[t(330)][t(340)](t(339),new ut(e)),this[t(264)](),this[t(273)](),this[t(292)](),this[t(318)]()}[pt(264)](){const t=pt,{editor:e}=this,{schema:o}=e[t(281)];o[t(267)](t(278),{allowAttributes:[t(308),t(257)]})}[pt(273)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(343)](t(346))[t(340)](e=>{const o=t;e.on(o(291),(t,e,n)=>{const s=o,r=e[s(274)],a=e[s(261)]?.[s(325)];r[s(344)](s(341))&&a?.is(s(255),s(278))&&(function(t,e,o,n){const i=s;if(!n[i(337)](e,i(257)))return;let r=1;const a=o[i(334)][i(276)](t,{attributes:i(283)});if(a){const e=Number[i(268)](t[i(263)](i(283)),10);Number[i(335)](e)||(r=e)}!a&&e[i(353)](i(257))||o[i(317)][i(287)](i(257),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(337)](e,i(308)))return;let r=i(349),a=!1;if(o[i(334)][i(276)](t,{attributes:i(294)})){const e={1:i(349),a:i(277),A:i(324),i:i(289),I:i(315)}[t[i(263)](i(294))];e&&(r=e),a=!0}o[i(334)][i(276)](t,{styles:i(354)})&&(r=t[i(352)](i(354)),a=!0),!a&&e[i(353)](i(308))||o[i(317)][i(287)](i(308),r,e)}(r,a,n,i))})}),o[t(343)](t(305))[t(340)](e=>{const o=t;e.on(o(285),(t,e,n)=>{const i=o;if(!n[i(334)][i(276)](e[i(293)],t[i(304)]))return;const s=mt(e[i(293)],n[i(332)]),{attributeNewValue:r}=e;null==r||1===r?n[i(317)][i(284)](i(283),s):n[i(317)][i(287)](i(283),String(r),s)}),e.on(o(303),(t,e,n)=>{const i=o;if(!n[i(334)][i(276)](e[i(293)],t[i(304)]))return;const s=mt(e[i(293)],n[i(332)]),{attributeNewValue:r}=e;r&&i(349)!==r?n[i(317)][i(307)](i(354),r,s):n[i(317)][i(298)](i(354),s)})})}[pt(318)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(295)][t(347)](d),i=this[t(313)](),s=this[t(314)]();o[t(271)][t(256)](e=>{const r=t,a=o[r(271)][r(311)][r(265)]();let c=!1;for(const t of a){if(r(297)!==t[r(294)]||r(327)===t[r(304)])continue;const n=o[r(300)](t[r(286)][r(350)]);for(const t of n[r(301)]())t.is(r(255),r(278))&&(!t[r(353)](r(257))&&o[r(345)][r(337)](t,r(257))&&(e[r(287)](r(257),s,t),c=!0),!t[r(353)](r(308))&&o[r(345)][r(337)](t,r(308))&&(e[r(287)](r(308),i,t),c=!0))}return c&&n[r(316)](e),c})}[pt(292)](){const t=pt,{editor:e}=this;e[t(295)][t(347)](d)[t(253)](e=>this[t(282)](e))}[pt(313)](){const t=pt;return this[t(258)][t(309)][t(347)](t(302))}[pt(314)](){const t=pt;return this[t(258)][t(309)][t(347)](t(260))}[pt(282)]({container:t,value:e,digits:o}){const n=pt,i=t[n(263)](n(308)),s=t[n(263)](n(257)),r=Math[n(333)](e)+(s??1)-1;switch(i){case n(269):return function(t,e){const o=n;return String(t)[o(323)](e,"0")}(r,Math[n(319)](2,o));case n(277):case n(342):return gt(r,!1);case n(324):case n(254):return gt(r,!0);case n(289):return bt(r,!1);case n(315):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=pt,n=e[o(322)](t);return Array[o(270)](n[o(329)]())[o(321)](t=>t.is(o(255),"ol")&&t[o(344)](o(341)))}function gt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(290)](97+t)+n,i=Math[o(333)]((i-1)/26)}return e?n[o(348)]():n}const wt=[{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 yt(){const t=["getAttribute","_defineSchema","getChanges","3aCeIeX","extend","parseInt","decimal-leading-zero","from","document","footnotesStyle","_defineConverters","viewItem","1038540TqNJcQ","consume","lower-alpha","footnotesDefinitions","pluginName","12105440aFEhCh","model","_formatFootnoteListValue","start","removeAttribute","attribute:footnotesListStart:footnotesDefinitions","position","setAttribute","define","lower-roman","fromCharCode","element:ol","_defineFormatter","item","type","plugins","393358tNaHsR","insert","removeStyle","FootnotesPropertiesEditing","createRangeOn","getItems","footnotes.footnotesProperties.defaultListStyle","attribute:footnotesListStyle:footnotesDefinitions","name","downcast","11vtJWmh","setStyle","footnotesListStyle","config","toLowerCase","differ","init","_getDefaultListStyle","_getDefaultStartIndex","upper-roman","_updateFootnotesCounters","writer","_definePostfixer","max","requires","find","toViewElement","padStart","upper-alpha","parent","10XhoRNq","$text","4936016SBGFkO","getChildren","commands","463990fkRtbg","mapper","floor","consumable","isNaN","566156RharKo","checkAttribute","9XMUFgJ","footnotesStart","add","footnotes-list","lower-latin","for","hasClass","schema","upcast","get","toUpperCase","decimal","nodeAfter","isOfficialPlugin","getStyle","hasAttribute","list-style-type","setFootnoteFormatter","upper-latin","element","registerPostFixer","footnotesListStart","editor","isPremiumPlugin","footnotes.footnotesProperties.defaultStartIndex","modelCursor","1238106yXgBWS"];return(yt=function(){return t})()}function bt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of wt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(310)]()}class It extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var vt=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=U(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=H();O()(vt.A,kt);vt.A&&vt.A.locals&&vt.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon: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 N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=Pt;function xt(){var t=["10ZPYPJG","205326PIdfKc","2173941ZGkDCw","isOfficialPlugin","425YxRdnc","4338531ioPnfx","pluginName","4664IqntGO","70RRlYao","FootnotesProperties","153xXflwc","767152SNLOuI","isPremiumPlugin","84DOTwEC","396504SmuNGZ","requires","10536dZJbbD"];return(xt=function(){return t})()}function Pt(t,e){var o=xt();return(Pt=function(t,e){return o[t-=264]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(434820===-parseInt(e(279))/1*(parseInt(e(276))/2)+-parseInt(e(266))/3+parseInt(e(268))/4*(-parseInt(e(273))/5)+-parseInt(e(270))/6*(-parseInt(e(277))/7)+-parseInt(e(280))/8+parseInt(e(274))/9*(-parseInt(e(269))/10)+-parseInt(e(271))/11*(-parseInt(e(265))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Et extends t.Plugin{static get[Ft(275)](){return Ft(278)}static get[Ft(267)](){return[ht,Ct]}static get[Ft(272)](){return!0}static get[Ft(264)](){return!0}}function St(t,e){var o=Tt();return(St=function(t,e){return o[t-=122]})(t,e)}function Tt(){var t=["40ysuEGc","6ZPcMLK","599384EYNdtL","6hxVpkP","11100kJzrpm","9SYbaRI","280510VgKRwE","3866048pPqYKR","30206iPIeup","991341VLptqz","363650yVjgdX","3552135CgyCMt"];return(Tt=function(){return t})()}!function(t){for(var e=St,o=t();;)try{if(495915===parseInt(e(128))/1+-parseInt(e(133))/2*(-parseInt(e(122))/3)+parseInt(e(126))/4+parseInt(e(130))/5*(parseInt(e(132))/6)+parseInt(e(129))/7*(-parseInt(e(131))/8)+parseInt(e(124))/9*(parseInt(e(125))/10)+parseInt(e(127))/11*(-parseInt(e(123))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(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:()=>Q,FootnotesClipboard:()=>A,FootnotesEditing:()=>I,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>G,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["$text","558573ZVQJVJ","has","4639590Ddmnzb","from","reset","_model","flat","remove","7386yHavnz","10uKkJqK","type","_trackedElements","push","767522uMIPrW","$graveyard","1465ozprox","createRangeOn","add","_elementName","getElementKey","slice","set","39XwjnvB","rootName","insert","getItems","_getElementKey","8rAOsFW","elementName","length","delete","root","9XVldGd","1419sRuvhZ","values","name","50057HMrrrO","nodeAfter","element","14424wZkXpX","8QOstxy","attributes","clear","get","2407748NZlpiX","position","getChanges"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=287]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(335985===parseInt(e(327))/1*(parseInt(e(300))/2)+-parseInt(e(291))/3*(parseInt(e(318))/4)+-parseInt(e(306))/5*(-parseInt(e(299))/6)+-parseInt(e(304))/7*(parseInt(e(331))/8)+-parseInt(e(323))/9*(parseInt(e(293))/10)+-parseInt(e(324))/11*(-parseInt(e(330))/12)+-parseInt(e(313))/13*(-parseInt(e(287))/14))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(296)];[r(309)];[r(317)];[r(302)]=new Map;constructor(t,e){const o=r;this[o(296)]=t,this[o(309)]=e[o(319)],this[o(317)]=e[o(310)]}[r(295)](){const t=r;this[t(302)][t(333)]()}[r(289)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(315)===i[e(301)]&&e(290)!==i[e(326)]&&i[e(288)][e(328)]){const t=this[e(296)][e(307)](i[e(288)][e(328)]);for(const o of t[e(316)]()){if(!o.is(e(329),this[e(309)]))continue;const t=this[e(317)](o);n[e(292)](t)||n[e(312)](t,[]),n[e(334)](t)[e(303)](o)}}if(e(298)===i[e(301)]&&i[e(326)]===this[e(309)]){const t=this[e(317)]({getAttribute:t=>i[e(332)][e(334)](t)});o[e(308)](t)}}for(const[t,n]of this[e(302)])e(305)===n[e(322)][e(314)]&&o[e(308)](t);for(const t of o)this[e(302)][e(321)](t);for(const[t,o]of n)this[e(302)][e(312)](t,o[o[e(320)]-1]);const i=new Set;for(const[t,s]of n)o[e(292)](t)&&(i[e(308)](s[0]),s[e(320)]>1?n[e(312)](t,s[e(311)](1)):n[e(321)](t),o[e(321)](t));return{removed:Array[e(294)](o),inserted:Array[e(294)](n[e(325)]())[e(297)](),moved:Array[e(294)](i)}}}const u=h;function f(){const t=["footnoteRef","setFootnoteFormatter","footnotesDefinitions","4pPhrCx","push","after","remove","footnotes.multiBlock","$graveyard","_handleFootnotesDefinitionsObjectChanges","isEqual","_ensureFootnotesDefinitionsContainerExists","footnoteDefinition","getChanges","138005WqBTGg","get","_footnotesDefinitions","_insertEmptyFootnotesDefinitionsContainer","footnoteInlineContent","editor","3722787PUPlCC","find","compareWith","childCount","high","model","document","getFootnotesDefinitionsObjectElement","31224zPvWTx","move","config","reference","set","min","getFootnote","differ","from","footnoteId","add","indexOf","init","change:data","map","pluginName","_footnoteRefsTracker","_handleRemoveFootnoteReferenceById","end","createRangeOn","some","_updateFootnotesCounters","singleton","paragraph","getFootnotes","_handleFootnoteReferencesChanges","_sortFootnoteDefinitions","enqueueChange","createPositionBefore","976620OMcTAX","_footnoteDefsTracker","parent","setAttribute","createRangeIn","registerPostFixer","footnoteCounter","insert","isPremiumPlugin","_handleInsertedFootnoteReference","_handleFootnoteDefinitionsChanges","isOfficialPlugin","definition","listenTo","rootName","root","has","FootnotesTracker","findIndex","3KYvsRb","unshift","_footnotes","low","_ensureFootnotesReferencesHaveProperOrder","getRootNames","getChildren","_footnoteDefsContainerTracker","append","getAttribute","createPositionAt","_handleMovedFootnoteReference","_handleFootnotesDefinitionsObjectSync","reset","81766hBaMZh","splice","1016035YMsNrD","length","getFootnotesFormatter","createElement","before","_footnoteFormatter","56315OctbiW","_updateFootnoteRefCounter"];return(f=function(){return t})()}!function(t){const e=h,o=t();for(;;)try{if(127080===parseInt(e(437))/1+parseInt(e(413))/2*(parseInt(e(399))/3)+parseInt(e(426))/4*(parseInt(e(415))/5)+parseInt(e(380))/6+-parseInt(e(421))/7+parseInt(e(451))/8+-parseInt(e(443))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(401)]=[];[u(439)]=null;[u(420)]=null;[u(406)];[u(467)];[u(381)];static get[u(466)](){return u(397)}static get[u(391)](){return!0}static get[u(388)](){return!0}constructor(t){const e=u;super(t),this[e(406)]=new l(this[e(442)][e(448)],{elementName:e(425),getElementKey:()=>e(473)}),this[e(467)]=new l(this[e(442)][e(448)],{elementName:e(423),getElementKey:t=>t[e(408)](e(460))}),this[e(381)]=new l(this[e(442)][e(448)],{elementName:e(435),getElementKey:t=>t[e(408)](e(460))})}[u(463)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(449)][t(385)](e=>{const n=t,i=o[n(449)][n(458)][n(436)]();let s=!1;return this[n(432)](e,i)&&(s=!0),this[n(390)](e,i)&&(s=!0),this[n(476)](e,i)&&(s=!0),this[n(403)](e)&&(s=!0),this[n(411)](e)&&(s=!0),this[n(477)](e)&&(s=!0),s}),this[t(393)](o[t(449)],t(464),()=>{const e=t;o[e(378)]({isUndoable:!1},t=>{this[e(434)](t)})},{priority:t(402)}),this[t(393)](n,t(455),()=>{const e=t;this[e(401)]=[],this[e(406)][e(412)](),this[e(467)][e(412)](),this[e(381)][e(412)]()},{priority:t(447)})}[u(450)](){return this[u(439)]}[u(457)](t){const e=u;return this[e(401)][e(444)](e=>e.id===t)||null}[u(475)](){const t=u;return Array[t(459)](this[t(401)])}[u(417)](){return this[u(420)]}[u(424)](t){this[u(420)]=t}[u(472)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(401)][o(416)];i++)this[o(422)](t,i)&&(n=!0);return n}[u(440)](t,e){const o=u,n=t[o(418)](o(425),{});return t[o(407)](n,e),this[o(439)]=n,n}[u(434)](t){const e=u;if(!this[e(401)][e(416)]||this[e(439)])return;const o=this[e(401)][0][e(454)][e(395)],n=this[e(440)](t,o);for(const o of this[e(401)])o[e(392)][e(382)]||t[e(387)](o[e(392)],n,e(469));this[e(472)](t)}[u(432)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(406)][o(436)](e);if(r[o(416)]&&(this[o(439)]=r[0]),i[o(416)])if(i[o(416)]>1||this[o(439)]&&i[o(471)](t=>t!==this[o(439)])){const e=t[o(418)](o(425),{}),s=[];this[o(439)]&&s[o(427)](this[o(439)]),s[o(427)](...i),t[o(387)](e,s[0],o(419));for(const n of s)t[o(452)](t[o(384)](n),t[o(409)](e,o(469))),t[o(429)](n);this[o(439)]=e,this[o(472)](t),n=!0}else this[o(439)]=i[0];if(s[o(416)]&&o(431)===this[o(439)]?.[o(395)][o(394)]){for(const e of this[o(401)])t[o(429)](e[o(454)]),n=!0;this[o(401)]=[],this[o(439)]=null}return n}[u(390)](t,e){const o=u;let n=!1;const i=this[o(442)][o(453)][o(438)](o(430)),{inserted:s,moved:r}=this[o(381)][o(436)](e);for(const e of[...r,...s]){const s=e[o(408)](o(460)),r=this[o(457)](s);r&&(r[o(392)]=e),p(t,i,e)&&(n=!0)}return n}[u(476)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(467)][o(436)](e);for(const e of i)this[o(468)](t,e)&&(n=!0);for(const e of s)this[o(389)](t,e)&&(n=!0);for(const e of r)this[o(410)](t,e)&&(n=!0);return n}[u(411)](t){const e=u;if(!this[e(439)])return!1;let o=!1;if(this[e(439)][e(446)]!==this[e(401)][e(416)]){const n=[];for(const t of this[e(439)][e(405)]()){const i=t[e(408)](e(460));this[e(457)](i)||(n[e(400)](t),o=!0)}for(const o of n)t[e(429)](o)}const n=new Set,i=[];for(const t of this[e(439)][e(405)]()){const s=t[e(408)](e(460));n[e(396)](s)?(i[e(400)](t),o=!0):n[e(461)](s)}for(const o of i)t[e(429)](o);return this[e(439)][e(446)]||(t[e(429)](this[e(439)]),this[e(439)]=null,o=!0),o}[u(389)](t,e){const o=u;if(this[o(401)][o(444)](t=>t[o(454)]===e))return!1;let n=!1;const i=e[o(408)](o(460)),s=this[o(401)][o(398)](t=>t.id===i);-1!==s&&(t[o(429)](this[o(401)][s][o(454)]),this[o(401)][o(414)](s,1),n=!0);let r=this[o(439)]?function(t,e){const n=o;for(const o of t[n(405)]())if(o[n(408)](n(460))===e)return o;return null}(this[o(439)],i):null;r||(r=t[o(418)](o(435),{footnoteId:i}),this[o(439)]&&(t[o(387)](r,this[o(439)],o(469)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(442)][o(448)],this[o(401)],e);this[o(401)][o(414)](c,0,a);let l=c;return-1!==s&&(l=Math[o(456)](c,s)),this[o(472)](t,l)&&(n=!0),n}[u(468)](t,e){const o=u,n=this[o(401)][o(398)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(401)][n];return o(431)!==s[o(392)][o(395)][o(394)]&&(t[o(429)](s[o(392)]),i=!0),this[o(401)][o(414)](n,1),this[o(472)](t,n)&&(i=!0),i}[u(410)](t,e){const o=u,n=e[o(408)](o(460)),i=this[o(401)][o(398)](t=>t.id===n),s=this[o(401)][i];let r=!1;s[o(454)]=e,this[o(401)][o(414)](i,1);const a=m(this[o(442)][o(448)],this[o(401)],e);return this[o(401)][o(414)](a,0,s),this[o(472)](t,Math[o(456)](i,a))&&(r=!0),r}[u(422)](t,e){const o=u;if(!this[o(439)])return!1;const n=this[o(401)][e];let i;return i=this[o(420)]?this[o(420)]({footnote:n,container:this[o(439)],digits:String(this[o(401)][o(416)])[o(416)],value:e+1}):String(e+1),n[o(454)][o(408)](o(386))!=i&&(t[o(383)](o(386),i,n[o(454)]),!0)}[u(477)](t){const e=u;if(!this[e(439)]||this[e(401)][e(416)]<2)return!1;if(function(t,o){const n=e;if(t[n(416)]!==o[n(416)])return!1;for(let e=0;e<t[n(416)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(401)][e(465)](t=>t.id),Array[e(459)](this[e(439)][e(405)]())[e(465)](t=>t[e(408)](e(460)))))return!1;let o=!1;for(let n=0;n<this[e(401)][e(416)];n++){const i=this[e(401)][n],s=t[e(379)](i[e(392)]),r=t[e(409)](this[e(439)],n);s[e(433)](r)||(t[e(452)](t[e(470)](i[e(392)]),r),o=!0)}return o}[u(403)](t){const e=u;if(!this[e(401)][e(416)])return!1;const{model:o}=this[e(442)];let n=!1;for(let i=0;i<this[e(401)][e(416)]-1;i++){const s=this[e(401)][i],r=this[e(401)][i+1],a=o[e(379)](s[e(454)]),c=o[e(379)](r[e(454)]);e(428)===a[e(445)](c)&&(this[e(410)](t,s[e(454)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(446)])return!1;const i=n(e?474:441);return t[n(387)](t[n(418)](i),o),!0}function h(t,e){const o=f();return(h=function(t,e){return o[t-=378]})(t,e)}function m(t,e,o){const n=u;if(0===e[n(416)])return 0;const i=t[n(379)](o);for(let o=0;o<e[n(416)];o++){const s=e[o],r=t[n(379)](s[n(454)]);if(n(419)===i[n(445)](r))return o}const s=o[n(395)];let r=-1;for(let t=e[n(416)]-1;t>=0;t--)if(e[t][n(454)][n(395)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(449)][n(404)](),c=a[n(462)](s[n(394)]),l=a[c+1];if(l)for(let t=0;t<e[n(416)];t++)if(e[t][n(454)][n(395)][n(394)]===l)return t;return e[n(416)]}const g=y;function w(){const t=["isBlock","isEnabled","_getPositionToInsertFootnote","1129992vrrpMj","plugins","change","_moveSelectionToFootnoteDefinition","string","getItems","get","model","refresh","302724lqHQRZ","1740984lIxpIM","length","FootnotesEditing","end","editor","7436JCNDUl","footnoteId","getFirstRange","selection","256FRsTVb","document","28040EvPcxG","createElement","insert-footnote-command-executed-with-invalid-id","isObject","insertObject","test","34550AiyaHP","91DPsZKu","2037524pdqPxG","1zjGsUB","execute","checkChild","7481637uCAEMC","footnoteRef"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=433]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(533042===parseInt(e(457))/1*(parseInt(e(456))/2)+parseInt(e(437))/3+-parseInt(e(446))/4*(parseInt(e(448))/5)+-parseInt(e(436))/6*(-parseInt(e(455))/7)+parseInt(e(465))/8+parseInt(e(460))/9+parseInt(e(454))/10*(-parseInt(e(442))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(435)](){const t=g,e=this[t(441)][t(434)][t(447)][t(445)],o=this[t(464)](e);this[t(463)]=!!o}[g(458)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(447)],r=this[e(464)](s);if(!r)return;const a=o[e(466)][e(433)](e(439)),c=t?.[e(443)]??(0,i.uid)();!function(t){const o=e;return o(469)==typeof t&&t[o(438)]>0&&!/\s/[o(453)](t)&&!/^\d/[o(453)](t)}(c)?(0,i.logWarning)(e(450)):(n[e(467)](t=>{const o=e,i=t[o(449)](o(461),{footnoteId:c});n[o(452)](i,r,null)}),a[e(468)](c))}[g(464)](t){const e=g,{model:o}=this[e(441)],{schema:n}=o,i=t[e(444)]();for(const t of i[e(470)]())if(n[e(462)](t)||n[e(451)](t))return null;const s=i[e(440)];return n[e(459)](s,e(461))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=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:1763856e3;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(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>P(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)(P(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>E(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>E(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:v()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function P(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function E(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);const T=D;function _(){const t=["from","editing","6685146wQvVNR","getFootnote","change","content","definition","clipboardInput","root","getRanges","stringify","listenTo","element","add","setAttribute","toData","2613804CeRupZ","contentInsertion","init","reduce","7024easVPR","includes","parse","pluginName","editor","insert","footnoteRef","toModel","isOfficialPlugin","getAttribute","getFootnotes","toView","sourceEditorId","5005770OLVkVG","getFirstRange","createRangeIn","flatMap","isPremiumPlugin","_insertEmptyFootnotesDefinitionsContainer","setData","end","_handlePasteFootnotesDefinitions","getData","footnoteId","getFootnotesDefinitionsObjectElement","getSelectedBlocks","drop","dataTransfer","outputTransformation","append","htmlProcessor","142cDbCpn","find","10740249vtpZVI","footnoteDefinition","application/ckeditor5-footnotes","footnotesDefinitions","push","remove","length","method","selection","createElement","entries","12460pHRZXn","11559FFNcPP","document","create","get","FootnotesClipboard","_handleCopyFootnotesDefinitions","5462646CprBzA","requires","_defineClipboardIntegration","data"];return(_=function(){return t})()}function D(t,e){const o=_();return(D=function(t,e){return o[t-=321]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(987598===-parseInt(e(329))/1*(parseInt(e(390))/2)+parseInt(e(335))/3+-parseInt(e(355))/4+-parseInt(e(372))/5+-parseInt(e(341))/6+parseInt(e(328))/7*(parseInt(e(359))/8)+parseInt(e(392))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class A extends t.Plugin{static get[T(362)](){return T(333)}static get[T(336)](){return[I,S.ClipboardPipeline]}static get[T(367)](){return!0}static get[T(376)](){return!0}[T(357)](){this[T(337)]()}[T(337)](){const t=T;this[t(334)](),this[t(380)]()}[T(334)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(332)](S.ClipboardPipeline),s=o[t(332)](d);this[t(350)](i,t(387),(o,i)=>{const r=t,a=L(n[r(374)](i[r(344)]));if(!a[r(323)])return;const c=s[r(369)](),l=a[r(358)]((t,o)=>{const n=r,i=c[n(391)](t=>t.id===o);if(i){const o=e[n(338)][n(370)](i[n(345)],{isClipboardPipeline:!0}),s=e[n(338)][n(389)][n(354)](o);t[i.id]=s}return t},Object[r(331)](null));i[r(386)][r(378)](r(394),JSON[r(349)](l))})}[T(380)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(340)],r=n[t(332)](S.ClipboardPipeline),a=n[t(332)](d);let c=null;this[t(350)](s[t(330)],t(346),(e,o)=>{const n=t,i=o[n(386)][n(381)](n(394));c=i?JSON[n(361)](i):null}),this[t(350)](r,t(356),(n,s)=>{const r=t,l=s[r(371)]===this[r(363)].id;l&&r(385)===s[r(324)]||o[r(343)](t=>{const n=r;let u=a[n(383)]();const f=!!u&&Array[n(339)](o[n(330)][n(325)][n(384)]())[n(360)](u);if((u&&!f||!u&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(374)](e))n.is(o(351),o(395))&&i[o(321)](n);for(const e of i)t[o(322)](e)}(t,s[n(344)]),!c)return;const{selection:d}=o[n(330)],p=d[n(373)]()[n(347)];u&&!f||(u=function(t,e){const o=n;for(const{item:n}of t[o(374)](e))if(n.is(o(351),o(395)))return n;return null}(t,s[n(344)]),u||=a[n(377)](t,p));const h=Array[n(339)](d[n(348)]())[n(375)](L),m=function(t,e,o){const s=n,r=Object[s(331)](null);for(const{item:n}of t[s(374)](e))if(n.is(s(351),s(365))){const e=n[s(368)](s(382));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(353)](s(382),r[e],n)}return r}(t,s[n(344)],t=>{const e=n;return!l||!!a[e(342)](t)&&!h[e(360)](t)});for(const[o,i]of Object[n(327)](c)){const s=m[o]||o,r=t[n(326)](n(393),{footnoteId:s}),a=e[n(338)][n(389)][n(370)](i),c=e[n(338)][n(366)](a,r);t[n(388)](c,r),t[n(364)](r,u,n(379))}c=null})})}}function L(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(351),e(365))&&o[e(352)](n[e(368)](e(382)));return Array[e(339)](o)}var R=o(311),V=o(355),N=o(929),O=o.n(N),K=o(297),M=o.n(K),j=o(102),B=o.n(j),U=o(123),W=o.n(U),z=o(741),H=o.n(z),X=o(728),q={attributes:{"data-cke":!0}};q.setAttributes=W(),q.insert=B().bind(null,"head"),q.domAPI=M(),q.insertStyleElement=H();O()(X.A,q);X.A&&X.A.locals&&X.A.locals;class G extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",J(t,R.ButtonView)),e.add("menuBar:insertFootnote",J(t,R.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function J(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof R.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Z=Y;function Y(t,e){var o=$();return(Y=function(t,e){return o[t-=151]})(t,e)}function $(){var t=["pluginName","258256KhWDBb","requires","6500480mCtFLU","45966OXUaFy","isOfficialPlugin","2989650NKYcCW","33JEJxLC","1667619qldrsF","isPremiumPlugin","4elpxpm","780726IfJdsU","994NIUnfm","Footnotes","10gdMFuE","289113GRwGHJ","432EyiGHK"];return($=function(){return t})()}!function(t){for(var e=Y,o=t();;)try{if(727191===parseInt(e(159))/1+parseInt(e(166))/2*(-parseInt(e(155))/3)+parseInt(e(158))/4*(parseInt(e(154))/5)+-parseInt(e(152))/6*(-parseInt(e(160))/7)+parseInt(e(151))/8+-parseInt(e(156))/9*(parseInt(e(162))/10)+parseInt(e(163))/11*(-parseInt(e(164))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Q extends t.Plugin{static get[Z(165)](){return Z(161)}static get[Z(167)](){return[I,A,G]}static get[Z(153)](){return!0}static get[Z(157)](){return!0}}function tt(){const t=["upper-latin","1337016YUCNLh","lower-alpha","5xOyMnK","upper-roman","60003EBwblL","8iCQDHa","883172GYIaUw","1017604vyRgKi","126rSYgbx","lower-latin","decimal","3144057RcSyYE","1139352UvVCWS","lower-roman","1563930NkjmKP","decimal-leading-zero","upper-alpha"];return(tt=function(){return t})()}function et(t,e){const o=tt();return(et=function(t,e){return o[t-=461]})(t,e)}const ot=et;!function(t){const e=et,o=t();for(;;)try{if(348133===-parseInt(e(472))/1+-parseInt(e(475))/2+-parseInt(e(462))/3+-parseInt(e(474))/4*(parseInt(e(470))/5)+-parseInt(e(468))/6+-parseInt(e(461))/7*(parseInt(e(473))/8)+parseInt(e(476))/9*(parseInt(e(464))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);const nt=[ot(478),ot(465),ot(477),ot(467),ot(469),ot(466),ot(463),ot(471)],it=rt;function st(){const t=["23660XSoVHj","1339672NBmKTO","1486riuLgd","execute","change","2294946XxznRT","5721pXnGSs","value","1494EkdXgR","getAttribute","isEnabled","138094bUdUNa","3768PGlJot","includes","model","1396685FxsKTl","refresh","get","8Lfocwc","footnotesListStyle","14yKfebw","setAttribute","_updateFootnotesCounters","1211501erzdjH","getFootnotesDefinitionsObjectElement","plugins"];return(st=function(){return t})()}function rt(t,e){const o=st();return(rt=function(t,e){return o[t-=386]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(762063===-parseInt(e(396))/1+parseInt(e(401))/2*(-parseInt(e(405))/3)+parseInt(e(391))/4*(parseInt(e(388))/5)+-parseInt(e(404))/6+parseInt(e(393))/7*(-parseInt(e(400))/8)+parseInt(e(407))/9*(-parseInt(e(399))/10)+parseInt(e(410))/11*(parseInt(e(411))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class at extends t.Command{[it(389)](){const t=it,{editor:e}=this,o=e[t(398)][t(390)](d)[t(397)]();this[t(409)]=!!o,this[t(406)]=o?.[t(408)](t(392))??null}[it(402)]({value:t}){const e=it,{editor:o}=this,n=o[e(398)][e(390)](d),i=n[e(397)]();i&&nt[e(386)](t)&&o[e(387)][e(403)](o=>{const s=e;o[s(394)](s(392),t,i),n[s(395)](o)})}}const ct=lt;function lt(t,e){const o=ut();return(lt=function(t,e){return o[t-=338]})(t,e)}function ut(){const t=["execute","refresh","footnotesListStart","isEnabled","216979cKfRRJ","1883520pBeWXL","isInteger","model","change","get","getAttribute","29238ZVdirP","value","45ajTaqh","_updateFootnotesCounters","getFootnotesDefinitionsObjectElement","50412ysspsm","plugins","8nzMITh","71245nqXWyQ","setAttribute","230274eulUMK","421468TAfalu","20vWPaSU"];return(ut=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(130512===-parseInt(e(357))/1+-parseInt(e(361))/2*(-parseInt(e(354))/3)+-parseInt(e(360))/4+-parseInt(e(351))/5*(parseInt(e(349))/6)+parseInt(e(342))/7*(-parseInt(e(356))/8)+parseInt(e(359))/9+parseInt(e(343))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class ft extends t.Command{[ct(339)](){const t=ct,{editor:e}=this,o=e[t(355)][t(347)](d)[t(353)]();this[t(341)]=!!o,this[t(350)]=o?.[t(348)](t(340))??null}[ct(338)]({value:t}){const e=ct,{editor:o}=this,n=o[e(355)][e(347)](d),i=n[e(353)]();i&&Number[e(344)](t)&&o[e(345)][e(346)](o=>{const s=e;o[s(358)](s(340),t,i),n[s(352)](o)})}}function dt(t,e){const o=yt();return(dt=function(t,e){return o[t-=253]})(t,e)}const pt=dt;!function(t){const e=dt,o=t();for(;;)try{if(346239===-parseInt(e(331))/1+-parseInt(e(275))/2+parseInt(e(266))/3*(-parseInt(e(336))/4)+-parseInt(e(326))/5*(parseInt(e(262))/6)+parseInt(e(296))/7+-parseInt(e(328))/8*(-parseInt(e(338))/9)+-parseInt(e(280))/10*(-parseInt(e(306))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(yt);class ht extends t.Plugin{static get[pt(279)](){return pt(299)}static get[pt(320)](){return[I,d]}static get[pt(351)](){return!0}static get[pt(259)](){return!0}[pt(312)](){const t=pt,{editor:e}=this;e[t(309)][t(288)](t(302),t(349)),e[t(309)][t(288)](t(260),1),e[t(330)][t(340)](t(272),new at(e)),e[t(330)][t(340)](t(339),new ft(e)),this[t(264)](),this[t(273)](),this[t(292)](),this[t(318)]()}[pt(264)](){const t=pt,{editor:e}=this,{schema:o}=e[t(281)];o[t(267)](t(278),{allowAttributes:[t(308),t(257)]})}[pt(273)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(343)](t(346))[t(340)](e=>{const o=t;e.on(o(291),(t,e,n)=>{const s=o,r=e[s(274)],a=e[s(261)]?.[s(325)];r[s(344)](s(341))&&a?.is(s(255),s(278))&&(function(t,e,o,n){const i=s;if(!n[i(337)](e,i(257)))return;let r=1;const a=o[i(334)][i(276)](t,{attributes:i(283)});if(a){const e=Number[i(268)](t[i(263)](i(283)),10);Number[i(335)](e)||(r=e)}!a&&e[i(353)](i(257))||o[i(317)][i(287)](i(257),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(337)](e,i(308)))return;let r=i(349),a=!1;if(o[i(334)][i(276)](t,{attributes:i(294)})){const e={1:i(349),a:i(277),A:i(324),i:i(289),I:i(315)}[t[i(263)](i(294))];e&&(r=e),a=!0}o[i(334)][i(276)](t,{styles:i(354)})&&(r=t[i(352)](i(354)),a=!0),!a&&e[i(353)](i(308))||o[i(317)][i(287)](i(308),r,e)}(r,a,n,i))})}),o[t(343)](t(305))[t(340)](e=>{const o=t;e.on(o(285),(t,e,n)=>{const i=o;if(!n[i(334)][i(276)](e[i(293)],t[i(304)]))return;const s=mt(e[i(293)],n[i(332)]),{attributeNewValue:r}=e;null==r||1===r?n[i(317)][i(284)](i(283),s):n[i(317)][i(287)](i(283),String(r),s)}),e.on(o(303),(t,e,n)=>{const i=o;if(!n[i(334)][i(276)](e[i(293)],t[i(304)]))return;const s=mt(e[i(293)],n[i(332)]),{attributeNewValue:r}=e;r&&i(349)!==r?n[i(317)][i(307)](i(354),r,s):n[i(317)][i(298)](i(354),s)})})}[pt(318)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(295)][t(347)](d),i=this[t(313)](),s=this[t(314)]();o[t(271)][t(256)](e=>{const r=t,a=o[r(271)][r(311)][r(265)]();let c=!1;for(const t of a){if(r(297)!==t[r(294)]||r(327)===t[r(304)])continue;const n=o[r(300)](t[r(286)][r(350)]);for(const t of n[r(301)]())t.is(r(255),r(278))&&(!t[r(353)](r(257))&&o[r(345)][r(337)](t,r(257))&&(e[r(287)](r(257),s,t),c=!0),!t[r(353)](r(308))&&o[r(345)][r(337)](t,r(308))&&(e[r(287)](r(308),i,t),c=!0))}return c&&n[r(316)](e),c})}[pt(292)](){const t=pt,{editor:e}=this;e[t(295)][t(347)](d)[t(253)](e=>this[t(282)](e))}[pt(313)](){const t=pt;return this[t(258)][t(309)][t(347)](t(302))}[pt(314)](){const t=pt;return this[t(258)][t(309)][t(347)](t(260))}[pt(282)]({container:t,value:e,digits:o}){const n=pt,i=t[n(263)](n(308)),s=t[n(263)](n(257)),r=Math[n(333)](e)+(s??1)-1;switch(i){case n(269):return function(t,e){const o=n;return String(t)[o(323)](e,"0")}(r,Math[n(319)](2,o));case n(277):case n(342):return gt(r,!1);case n(324):case n(254):return gt(r,!0);case n(289):return bt(r,!1);case n(315):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=pt,n=e[o(322)](t);return Array[o(270)](n[o(329)]())[o(321)](t=>t.is(o(255),"ol")&&t[o(344)](o(341)))}function gt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(290)](97+t)+n,i=Math[o(333)]((i-1)/26)}return e?n[o(348)]():n}const wt=[{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 yt(){const t=["getAttribute","_defineSchema","getChanges","3aCeIeX","extend","parseInt","decimal-leading-zero","from","document","footnotesStyle","_defineConverters","viewItem","1038540TqNJcQ","consume","lower-alpha","footnotesDefinitions","pluginName","12105440aFEhCh","model","_formatFootnoteListValue","start","removeAttribute","attribute:footnotesListStart:footnotesDefinitions","position","setAttribute","define","lower-roman","fromCharCode","element:ol","_defineFormatter","item","type","plugins","393358tNaHsR","insert","removeStyle","FootnotesPropertiesEditing","createRangeOn","getItems","footnotes.footnotesProperties.defaultListStyle","attribute:footnotesListStyle:footnotesDefinitions","name","downcast","11vtJWmh","setStyle","footnotesListStyle","config","toLowerCase","differ","init","_getDefaultListStyle","_getDefaultStartIndex","upper-roman","_updateFootnotesCounters","writer","_definePostfixer","max","requires","find","toViewElement","padStart","upper-alpha","parent","10XhoRNq","$text","4936016SBGFkO","getChildren","commands","463990fkRtbg","mapper","floor","consumable","isNaN","566156RharKo","checkAttribute","9XMUFgJ","footnotesStart","add","footnotes-list","lower-latin","for","hasClass","schema","upcast","get","toUpperCase","decimal","nodeAfter","isOfficialPlugin","getStyle","hasAttribute","list-style-type","setFootnoteFormatter","upper-latin","element","registerPostFixer","footnotesListStart","editor","isPremiumPlugin","footnotes.footnotesProperties.defaultStartIndex","modelCursor","1238106yXgBWS"];return(yt=function(){return t})()}function bt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of wt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(310)]()}class It extends R.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new R.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new R.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,R.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new R.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof R.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new R.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new R.LabeledFieldView(this.locale,R.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var vt=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=W(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=H();O()(vt.A,kt);vt.A&&vt.A.locals&&vt.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[R.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,R.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:V.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new R.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=R.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=Pt;function xt(){var t=["10ZPYPJG","205326PIdfKc","2173941ZGkDCw","isOfficialPlugin","425YxRdnc","4338531ioPnfx","pluginName","4664IqntGO","70RRlYao","FootnotesProperties","153xXflwc","767152SNLOuI","isPremiumPlugin","84DOTwEC","396504SmuNGZ","requires","10536dZJbbD"];return(xt=function(){return t})()}function Pt(t,e){var o=xt();return(Pt=function(t,e){return o[t-=264]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(434820===-parseInt(e(279))/1*(parseInt(e(276))/2)+-parseInt(e(266))/3+parseInt(e(268))/4*(-parseInt(e(273))/5)+-parseInt(e(270))/6*(-parseInt(e(277))/7)+-parseInt(e(280))/8+parseInt(e(274))/9*(-parseInt(e(269))/10)+-parseInt(e(271))/11*(-parseInt(e(265))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Et extends t.Plugin{static get[Ft(275)](){return Ft(278)}static get[Ft(267)](){return[ht,Ct]}static get[Ft(272)](){return!0}static get[Ft(264)](){return!0}}function St(t,e){var o=Tt();return(St=function(t,e){return o[t-=122]})(t,e)}function Tt(){var t=["40ysuEGc","6ZPcMLK","599384EYNdtL","6hxVpkP","11100kJzrpm","9SYbaRI","280510VgKRwE","3866048pPqYKR","30206iPIeup","991341VLptqz","363650yVjgdX","3552135CgyCMt"];return(Tt=function(){return t})()}!function(t){for(var e=St,o=t();;)try{if(495915===parseInt(e(128))/1+-parseInt(e(133))/2*(-parseInt(e(122))/3)+parseInt(e(126))/4+parseInt(e(130))/5*(parseInt(e(132))/6)+parseInt(e(129))/7*(-parseInt(e(131))/8)+parseInt(e(124))/9*(parseInt(e(125))/10)+parseInt(e(127))/11*(-parseInt(e(123))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(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 _0x2de1fc,Command as _0x16d21d}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x3d3a52,isWidget as _0x70a053,toWidgetEditable as _0x3cff8e,WidgetToolbarRepository as _0x184412}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x1137ee,logWarning as _0x2db519,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0xb1f581,ClickObserver as _0x2cac24}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x313a74}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x153377,ButtonView as _0x4d49cb,View as _0x1997c0,ViewCollection as _0x47f0a5,FocusCycler as _0x5659cf,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x4cdb44,BalloonPanelView as _0x423a59,createDropdown as _0x2db7d9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x81cbe2,IconListStyleDecimal as _0x121ceb,IconListStyleDecimalLeadingZero as _0x5c85d6,IconListStyleLowerRoman as _0xb5df0d,IconListStyleUpperRoman as _0x160762,IconListStyleLowerLatin as _0x996717,IconListStyleUpperLatin as _0x1e2f21}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x16a03c,_0x4cd69f){this['_model']=_0x16a03c,this['_elementName']=_0x4cd69f['elementName'],this['_getElementKey']=_0x4cd69f['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x3467a3){const _0x56b161=new Set(),_0x4be195=new Map();for(const _0x4e6a70 of _0x3467a3){if('insert'===_0x4e6a70['type']&&'$text'!==_0x4e6a70['name']&&_0x4e6a70['position']['nodeAfter']){const _0x377958=this['_model']['createRangeOn'](_0x4e6a70['position']['nodeAfter']);for(const _0x16b717 of _0x377958['getItems']()){if(!_0x16b717['is']('element',this['_elementName']))continue;const _0x1f6ea4=this['_getElementKey'](_0x16b717);_0x4be195['has'](_0x1f6ea4)||_0x4be195['set'](_0x1f6ea4,[]),_0x4be195['get'](_0x1f6ea4)['push'](_0x16b717);}}if('remove'===_0x4e6a70['type']&&_0x4e6a70['name']===this['_elementName']){const _0x2003c0=this['_getElementKey']({'getAttribute':_0x910808=>_0x4e6a70['attributes']['get'](_0x910808)});_0x56b161['add'](_0x2003c0);}}for(const [_0x2ac8e1,_0x543c35]of this['_trackedElements'])'$graveyard'===_0x543c35['root']['rootName']&&_0x56b161['add'](_0x2ac8e1);for(const _0x2300a8 of _0x56b161)this['_trackedElements']['delete'](_0x2300a8);for(const [_0x1e432b,_0x21f050]of _0x4be195)this['_trackedElements']['set'](_0x1e432b,_0x21f050[_0x21f050['length']-0x1]);const _0x4715e7=new Set();for(const [_0x331280,_0x4640d0]of _0x4be195)_0x56b161['has'](_0x331280)&&(_0x4715e7['add'](_0x4640d0[0x0]),_0x4640d0['length']>0x1?_0x4be195['set'](_0x331280,_0x4640d0['slice'](0x1)):_0x4be195['delete'](_0x331280),_0x56b161['delete'](_0x331280));return{'removed':Array['from'](_0x56b161),'inserted':Array['from'](_0x4be195['values']())['flat'](),'moved':Array['from'](_0x4715e7)};}}class c extends _0x2de1fc{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20d040){super(_0x20d040),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x5ef615=>_0x5ef615['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x46b807=>_0x46b807['getAttribute']('footnoteId')});}['init'](){const {editor:_0x349b80}=this,{model:_0x52b456,data:_0x2561b4}=_0x349b80;_0x52b456['document']['registerPostFixer'](_0x4e4427=>{const _0x5c2519=_0x52b456['document']['differ']['getChanges']();let _0x52b47d=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x4e4427,_0x5c2519)&&(_0x52b47d=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x4e4427,_0x5c2519)&&(_0x52b47d=!0x0),this['_handleFootnoteReferencesChanges'](_0x4e4427,_0x5c2519)&&(_0x52b47d=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x4e4427)&&(_0x52b47d=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x4e4427)&&(_0x52b47d=!0x0),this['_sortFootnoteDefinitions'](_0x4e4427)&&(_0x52b47d=!0x0),_0x52b47d;}),this['listenTo'](_0x52b456['document'],'change:data',()=>{_0x52b456['enqueueChange']({'isUndoable':!0x1},_0x16e08e=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x16e08e);});},{'priority':'low'}),this['listenTo'](_0x2561b4,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x4f4186){return this['_footnotes']['find'](_0x1b30ce=>_0x1b30ce['id']===_0x4f4186)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x2e8405){this['_footnoteFormatter']=_0x2e8405;}['_updateFootnotesCounters'](_0x1c32f8,_0x5cb57d=0x0){let _0x1a248d=!0x1;for(let _0x45495f=_0x5cb57d;_0x45495f<this['_footnotes']['length'];_0x45495f++)this['_updateFootnoteRefCounter'](_0x1c32f8,_0x45495f)&&(_0x1a248d=!0x0);return _0x1a248d;}['_insertEmptyFootnotesDefinitionsContainer'](_0x244c60,_0x2f0b69){const _0x4b8832=_0x244c60['createElement']('footnotesDefinitions',{});return _0x244c60['append'](_0x4b8832,_0x2f0b69),this['_footnotesDefinitions']=_0x4b8832,_0x4b8832;}['_ensureFootnotesDefinitionsContainerExists'](_0x41c770){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x18a293=this['_footnotes'][0x0]['reference']['root'],_0x5c1d81=this['_insertEmptyFootnotesDefinitionsContainer'](_0x41c770,_0x18a293);for(const _0x1f1d6c of this['_footnotes'])_0x1f1d6c['definition']['parent']||_0x41c770['insert'](_0x1f1d6c['definition'],_0x5c1d81,'end');this['_updateFootnotesCounters'](_0x41c770);}['_handleFootnotesDefinitionsObjectChanges'](_0x563005,_0x3bc31f){let _0x584854=!0x1;const {inserted:_0x3729c9,removed:_0x151f99,moved:_0x27689c}=this['_footnoteDefsContainerTracker']['getChanges'](_0x3bc31f);if(_0x27689c['length']&&(this['_footnotesDefinitions']=_0x27689c[0x0]),_0x3729c9['length']){if(_0x3729c9['length']>0x1||this['_footnotesDefinitions']&&_0x3729c9['some'](_0xc22e12=>_0xc22e12!==this['_footnotesDefinitions'])){const _0x2a8c9b=_0x563005['createElement']('footnotesDefinitions',{}),_0x22c22c=[];this['_footnotesDefinitions']&&_0x22c22c['push'](this['_footnotesDefinitions']),_0x22c22c['push'](..._0x3729c9),_0x563005['insert'](_0x2a8c9b,_0x22c22c[0x0],'before');for(const _0x221e3a of _0x22c22c)_0x563005['move'](_0x563005['createRangeIn'](_0x221e3a),_0x563005['createPositionAt'](_0x2a8c9b,'end')),_0x563005['remove'](_0x221e3a);this['_footnotesDefinitions']=_0x2a8c9b,this['_updateFootnotesCounters'](_0x563005),_0x584854=!0x0;}else this['_footnotesDefinitions']=_0x3729c9[0x0];}if(_0x151f99['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x375d53 of this['_footnotes'])_0x563005['remove'](_0x375d53['reference']),_0x584854=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x584854;}['_handleFootnoteDefinitionsChanges'](_0x10fbcb,_0x323d53){let _0x4395ac=!0x1;const _0x548319=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x228d45,moved:_0x50c438}=this['_footnoteDefsTracker']['getChanges'](_0x323d53);for(const _0x1c9cbd of[..._0x50c438,..._0x228d45]){const _0x433999=_0x1c9cbd['getAttribute']('footnoteId'),_0x1eb3f5=this['getFootnote'](_0x433999);_0x1eb3f5&&(_0x1eb3f5['definition']=_0x1c9cbd),_(_0x10fbcb,_0x548319,_0x1c9cbd)&&(_0x4395ac=!0x0);}return _0x4395ac;}['_handleFootnoteReferencesChanges'](_0x227ec6,_0x1611fd){let _0x10d34=!0x1;const {removed:_0x5c8c64,inserted:_0x272b1b,moved:_0x3f2c84}=this['_footnoteRefsTracker']['getChanges'](_0x1611fd);for(const _0x41cc3a of _0x5c8c64)this['_handleRemoveFootnoteReferenceById'](_0x227ec6,_0x41cc3a)&&(_0x10d34=!0x0);for(const _0x306550 of _0x272b1b)this['_handleInsertedFootnoteReference'](_0x227ec6,_0x306550)&&(_0x10d34=!0x0);for(const _0x4572c5 of _0x3f2c84)this['_handleMovedFootnoteReference'](_0x227ec6,_0x4572c5)&&(_0x10d34=!0x0);return _0x10d34;}['_handleFootnotesDefinitionsObjectSync'](_0x552bde){if(!this['_footnotesDefinitions'])return!0x1;let _0x354171=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x25c138=[];for(const _0xa7af2a of this['_footnotesDefinitions']['getChildren']()){const _0x572d43=_0xa7af2a['getAttribute']('footnoteId');this['getFootnote'](_0x572d43)||(_0x25c138['unshift'](_0xa7af2a),_0x354171=!0x0);}for(const _0x46c13f of _0x25c138)_0x552bde['remove'](_0x46c13f);}const _0x497845=new Set(),_0x30c773=[];for(const _0x555551 of this['_footnotesDefinitions']['getChildren']()){const _0x5df2d3=_0x555551['getAttribute']('footnoteId');_0x497845['has'](_0x5df2d3)?(_0x30c773['unshift'](_0x555551),_0x354171=!0x0):_0x497845['add'](_0x5df2d3);}for(const _0x2e9246 of _0x30c773)_0x552bde['remove'](_0x2e9246);return this['_footnotesDefinitions']['childCount']||(_0x552bde['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x354171=!0x0),_0x354171;}['_handleInsertedFootnoteReference'](_0x3ad52f,_0x43e373){if(this['_footnotes']['find'](_0x1627d7=>_0x1627d7['reference']===_0x43e373))return!0x1;let _0x310178=!0x1;const _0x1c558a=_0x43e373['getAttribute']('footnoteId'),_0x28777c=this['_footnotes']['findIndex'](_0x464ac3=>_0x464ac3['id']===_0x1c558a);-0x1!==_0x28777c&&(_0x3ad52f['remove'](this['_footnotes'][_0x28777c]['reference']),this['_footnotes']['splice'](_0x28777c,0x1),_0x310178=!0x0);let _0x3628dc=this['_footnotesDefinitions']?function(_0xb6814f,_0x88a303){for(const _0x39e79d of _0xb6814f['getChildren']())if(_0x39e79d['getAttribute']('footnoteId')===_0x88a303)return _0x39e79d;return null;}(this['_footnotesDefinitions'],_0x1c558a):null;_0x3628dc||(_0x3628dc=_0x3ad52f['createElement']('footnoteDefinition',{'footnoteId':_0x1c558a}),this['_footnotesDefinitions']&&(_0x3ad52f['insert'](_0x3628dc,this['_footnotesDefinitions'],'end'),_0x310178=!0x0));const _0x71baca={'id':_0x1c558a,'reference':_0x43e373,'definition':_0x3628dc},_0x114cdd=I(this['editor']['model'],this['_footnotes'],_0x43e373);this['_footnotes']['splice'](_0x114cdd,0x0,_0x71baca);let _0x203383=_0x114cdd;return-0x1!==_0x28777c&&(_0x203383=Math['min'](_0x114cdd,_0x28777c)),this['_updateFootnotesCounters'](_0x3ad52f,_0x203383)&&(_0x310178=!0x0),_0x310178;}['_handleRemoveFootnoteReferenceById'](_0x3b8b3e,_0x45728c){const _0x14a841=this['_footnotes']['findIndex'](_0x3bb6ba=>_0x3bb6ba['id']===_0x45728c);if(-0x1===_0x14a841)return!0x1;let _0x5e37f5=!0x1;const _0x4c9f37=this['_footnotes'][_0x14a841];return'$graveyard'!==_0x4c9f37['definition']['root']['rootName']&&(_0x3b8b3e['remove'](_0x4c9f37['definition']),_0x5e37f5=!0x0),this['_footnotes']['splice'](_0x14a841,0x1),this['_updateFootnotesCounters'](_0x3b8b3e,_0x14a841)&&(_0x5e37f5=!0x0),_0x5e37f5;}['_handleMovedFootnoteReference'](_0x15db93,_0x7b103f){const _0x5238cd=_0x7b103f['getAttribute']('footnoteId'),_0x18f7d4=this['_footnotes']['findIndex'](_0x8a4716=>_0x8a4716['id']===_0x5238cd),_0x19c0c8=this['_footnotes'][_0x18f7d4];let _0x3b1702=!0x1;_0x19c0c8['reference']=_0x7b103f,this['_footnotes']['splice'](_0x18f7d4,0x1);const _0x2c5110=I(this['editor']['model'],this['_footnotes'],_0x7b103f);return this['_footnotes']['splice'](_0x2c5110,0x0,_0x19c0c8),this['_updateFootnotesCounters'](_0x15db93,Math['min'](_0x18f7d4,_0x2c5110))&&(_0x3b1702=!0x0),_0x3b1702;}['_updateFootnoteRefCounter'](_0x309c96,_0x4f7c2d){if(!this['_footnotesDefinitions'])return!0x1;const _0x1c2fd3=this['_footnotes'][_0x4f7c2d];let _0x109d76;return _0x109d76=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x1c2fd3,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x4f7c2d+0x1}):String(_0x4f7c2d+0x1),_0x1c2fd3['reference']['getAttribute']('footnoteCounter')!=_0x109d76&&(_0x309c96['setAttribute']('footnoteCounter',_0x109d76,_0x1c2fd3['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x5639d8){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0xeca10,_0x41e63f){if(_0xeca10['length']!==_0x41e63f['length'])return!0x1;for(let _0x7451e5=0x0;_0x7451e5<_0xeca10['length'];_0x7451e5++)if(_0xeca10[_0x7451e5]!==_0x41e63f[_0x7451e5])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x5d26bf=>_0x5d26bf['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x5e4e52=>_0x5e4e52['getAttribute']('footnoteId'))))return!0x1;let _0x4c3cdb=!0x1;for(let _0x3ad133=0x0;_0x3ad133<this['_footnotes']['length'];_0x3ad133++){const _0x494c91=this['_footnotes'][_0x3ad133],_0x27b022=_0x5639d8['createPositionBefore'](_0x494c91['definition']),_0x222430=_0x5639d8['createPositionAt'](this['_footnotesDefinitions'],_0x3ad133);_0x27b022['isEqual'](_0x222430)||(_0x5639d8['move'](_0x5639d8['createRangeOn'](_0x494c91['definition']),_0x222430),_0x4c3cdb=!0x0);}return _0x4c3cdb;}['_ensureFootnotesReferencesHaveProperOrder'](_0x5ab4af){if(!this['_footnotes']['length'])return!0x1;const {model:_0x34778e}=this['editor'];let _0x145696=!0x1;for(let _0x51a579=0x0;_0x51a579<this['_footnotes']['length']-0x1;_0x51a579++){const _0x3e57c5=this['_footnotes'][_0x51a579],_0x500213=this['_footnotes'][_0x51a579+0x1],_0x48deb8=_0x34778e['createPositionBefore'](_0x3e57c5['reference']),_0x27ed7f=_0x34778e['createPositionBefore'](_0x500213['reference']);'after'===_0x48deb8['compareWith'](_0x27ed7f)&&(this['_handleMovedFootnoteReference'](_0x5ab4af,_0x3e57c5['reference']),_0x51a579=-0x1,_0x145696=!0x0);}return _0x145696;}}function _(_0x5e394a,_0x1ff70e,_0x39b716){if(_0x39b716['childCount'])return!0x1;const _0x4a1151=_0x1ff70e?'paragraph':'footnoteInlineContent';return _0x5e394a['insert'](_0x5e394a['createElement'](_0x4a1151),_0x39b716),!0x0;}function I(_0x5435b2,_0x4c76da,_0x51a180){if(0x0===_0x4c76da['length'])return 0x0;const _0x58a417=_0x5435b2['createPositionBefore'](_0x51a180);for(let _0x1463c0=0x0;_0x1463c0<_0x4c76da['length'];_0x1463c0++){const _0x5ab25f=_0x4c76da[_0x1463c0],_0x2f7fc7=_0x5435b2['createPositionBefore'](_0x5ab25f['reference']);if('before'===_0x58a417['compareWith'](_0x2f7fc7))return _0x1463c0;}const _0x2d896d=_0x51a180['root'];let _0x20733d=-0x1;for(let _0x30e554=_0x4c76da['length']-0x1;_0x30e554>=0x0;_0x30e554--)if(_0x4c76da[_0x30e554]['reference']['root']===_0x2d896d){_0x20733d=_0x30e554;break;}if(-0x1!==_0x20733d)return _0x20733d+0x1;const _0x559003=_0x5435b2['document']['getRootNames'](),_0x35ba04=_0x559003['indexOf'](_0x2d896d['rootName']),_0x28821e=_0x559003[_0x35ba04+0x1];if(_0x28821e){for(let _0x56e4e7=0x0;_0x56e4e7<_0x4c76da['length'];_0x56e4e7++)if(_0x4c76da[_0x56e4e7]['reference']['root']['rootName']===_0x28821e)return _0x56e4e7;}return _0x4c76da['length'];}class m extends _0x16d21d{['refresh'](){const _0x2949e7=this['editor']['model']['document']['selection'],_0x17f77e=this['_getPositionToInsertFootnote'](_0x2949e7);this['isEnabled']=!!_0x17f77e;}['execute'](_0xe3daae){const {editor:_0x21a53c}=this,{model:_0x495562}=_0x21a53c,{selection:_0x375cba}=_0x495562['document'],_0x4dc025=this['_getPositionToInsertFootnote'](_0x375cba);if(!_0x4dc025)return;const _0x3a530a=_0x21a53c['plugins']['get']('FootnotesEditing'),_0x3e8797=_0xe3daae?.['footnoteId']??_0x1137ee();!function(_0xac1676){return'string'==typeof _0xac1676&&_0xac1676['length']>0x0&&!/\s/['test'](_0xac1676)&&!/^\d/['test'](_0xac1676);}(_0x3e8797)?_0x2db519('insert-footnote-command-executed-with-invalid-id'):(_0x495562['change'](_0x5c3e2f=>{const _0x5dc776=_0x5c3e2f['createElement']('footnoteRef',{'footnoteId':_0x3e8797});_0x495562['insertObject'](_0x5dc776,_0x4dc025,null);}),_0x3a530a['_moveSelectionToFootnoteDefinition'](_0x3e8797));}['_getPositionToInsertFootnote'](_0xae8713){const {model:_0x74bd62}=this['editor'],{schema:_0x36c491}=_0x74bd62,_0x42452a=_0xae8713['getFirstRange']();for(const _0x2230f7 of _0x42452a['getItems']())if(_0x36c491['isBlock'](_0x2230f7)||_0x36c491['isObject'](_0x2230f7))return null;const _0x16c4fe=_0x42452a['end'];return _0x36c491['checkChild'](_0x16c4fe,'footnoteRef')?_0x16c4fe:null;}}class r extends _0x2de1fc{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x204a22}=this;_0x204a22['config']['define']('footnotes.multiBlock',!0x0),_0x204a22['commands']['add']('insertFootnote',new m(_0x204a22)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x43b382){const _0x15c18b=_0x3363c6([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]),_0x4fd094=0x47a28506,_0x561283=0x47a5fcbe^_0x4fd094,_0xec96d=window[_0x3363c6([0x44,0x61,0x74,0x65])][_0x3363c6([0x6e,0x6f,0x77])](),_0x5378ee=_0x43b382[_0x3363c6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe9c57=new window[(_0x3363c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bf052=>{_0x5378ee[_0x3363c6([0x6f,0x6e,0x63,0x65])](_0x3363c6([0x72,0x65,0x61,0x64,0x79]),_0x1bf052);}),_0x52890e={[_0x3363c6([0x6b,0x74,0x79])]:_0x3363c6([0x45,0x43]),[_0x3363c6([0x75,0x73,0x65])]:_0x3363c6([0x73,0x69,0x67]),[_0x3363c6([0x63,0x72,0x76])]:_0x3363c6([0x50,0x2d,0x32,0x35,0x36]),[_0x3363c6([0x78])]:_0x3363c6([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]),[_0x3363c6([0x79])]:_0x3363c6([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]),[_0x3363c6([0x61,0x6c,0x67])]:_0x3363c6([0x45,0x53,0x32,0x35,0x36])},_0x670193=_0x5378ee[_0x3363c6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3363c6([0x67,0x65,0x74])](_0x3363c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x351afc(){let _0x572fc2,_0x5a91a5=null,_0x597fd2=null;try{if(_0x670193==_0x3363c6([0x47,0x50,0x4c]))return _0x3363c6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x572fc2=_0x3d36e2(),!_0x572fc2)return _0x3363c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x572fc2[_0x3363c6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x597fd2=_0x17cfa3(_0x572fc2[_0x3363c6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x572fc2[_0x3363c6([0x6a,0x74,0x69])])),await _0x3687d4()?_0x14b07a()?_0x40a6e3()?_0x3363c6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a0b59()?(_0x572fc2[_0x3363c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3363c6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5a91a5=_0x6d5c8d(_0x3363c6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x572fc2[_0x3363c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3363c6([0x74,0x72,0x69,0x61,0x6c])&&(_0x5a91a5=_0x6d5c8d(_0x3363c6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1aaa39()):_0x3363c6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3363c6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3363c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3363c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x40a6e3(){const _0x5f3a56=[_0x3363c6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3363c6([0x74,0x72,0x69,0x61,0x6c])][_0x3363c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x572fc2[_0x3363c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xec96d/0x3e8:0xe10*_0x561283;return _0x572fc2[_0x3363c6([0x65,0x78,0x70])]<_0x5f3a56;}function _0x14b07a(){const _0x49f282=_0x572fc2[_0x3363c6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x49f282&&(!!_0x49f282[_0x3363c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3363c6([0x2a]))||!!_0x49f282[_0x3363c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3363c6([0x46,0x4f,0x4f])));}function _0x4a0b59(){const _0x45e68a=_0x572fc2[_0x3363c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x45e68a||0x0==_0x45e68a[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x476108}=new URL(window[_0x3363c6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x45e68a[_0x3363c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x476108))return!0x0;const _0x5ec34f=_0x476108[_0x3363c6([0x73,0x70,0x6c,0x69,0x74])](_0x3363c6([0x2e]));return _0x45e68a[_0x3363c6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10d934=>_0x10d934[_0x3363c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3363c6([0x2a])))[_0x3363c6([0x6d,0x61,0x70])](_0x3dc420=>_0x3dc420[_0x3363c6([0x73,0x70,0x6c,0x69,0x74])](_0x3363c6([0x2e])))[_0x3363c6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x522107=>_0x522107[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5ec34f[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3363c6([0x6d,0x61,0x70])](_0x3a4e04=>Array(_0x5ec34f[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3a4e04[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3363c6([0x66,0x69,0x6c,0x6c])](_0x3a4e04[0x0]===_0x3363c6([0x2a])?_0x3363c6([0x2a]):'')[_0x3363c6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3a4e04))[_0x3363c6([0x73,0x6f,0x6d,0x65])](_0x45f920=>_0x5ec34f[_0x3363c6([0x65,0x76,0x65,0x72,0x79])]((_0x441fc1,_0x599878)=>_0x45f920[_0x599878]===_0x441fc1||_0x45f920[_0x599878]===_0x3363c6([0x2a])));}function _0x1aaa39(){return _0x5a91a5&&_0x597fd2?new window[(_0x3363c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28fbd1,_0x2660f8)=>{_0x5a91a5[_0x3363c6([0x74,0x68,0x65,0x6e])](_0x28fbd1,_0x2660f8),_0x597fd2[_0x3363c6([0x74,0x68,0x65,0x6e])](_0x108346=>{_0x108346!=_0x3363c6([0x56,0x61,0x6c,0x69,0x64])&&_0x28fbd1(_0x108346);},_0x2660f8);}):_0x5a91a5||_0x597fd2||_0x3363c6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x17cfa3(_0x2396f9,_0x466624){return new window[(_0x3363c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cd1a2=>{if(_0x1b2498())return _0x5cd1a2(_0x3363c6([0x56,0x61,0x6c,0x69,0x64]));_0x560ce7(),_0x5378ee[_0x3363c6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3363c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b8906=!0x1;const _0x3aea05=_0x1137ee();function _0x4ed8c0(_0xb1d6cb){return!!_0xb1d6cb&&(typeof _0xb1d6cb===_0x3363c6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb1d6cb===_0x3363c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb1d6cb[_0x3363c6([0x74,0x68,0x65,0x6e])]===_0x3363c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb1d6cb[_0x3363c6([0x63,0x61,0x74,0x63,0x68])]===_0x3363c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x115d20(_0x2d6112){_0xb9969d(_0x2d6112)[_0x3363c6([0x74,0x68,0x65,0x6e])](_0x471c5c=>{if(!_0x471c5c||_0x471c5c[_0x3363c6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3363c6([0x6f,0x6b]))return _0x3363c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x149832(_0x2e4c9d(_0x3aea05+_0x466624))!=_0x471c5c[_0x3363c6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3363c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3363c6([0x56,0x61,0x6c,0x69,0x64]);})[_0x3363c6([0x74,0x68,0x65,0x6e])](_0x30dbaa=>(_0x484333(),_0x30dbaa),()=>{const _0x518cfc=_0x2b36db();return null==_0x518cfc?(_0x484333(),_0x3363c6([0x56,0x61,0x6c,0x69,0x64])):_0x3363c6(_0xec96d-_0x518cfc>(0x63ae0106^_0x4fd094)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3363c6([0x74,0x68,0x65,0x6e])](_0x5cd1a2)[_0x3363c6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5cd1a2(_0x3363c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b6a4d=0x47946b86^_0x4fd094;function _0x484333(){const _0x53a50d=_0x3363c6([0x6c,0x6c,0x63,0x74,0x2d])+_0x149832(_0x2e4c9d(_0x2396f9)),_0x3eb4c2=_0x17be5c(_0x149832(window[_0x3363c6([0x4d,0x61,0x74,0x68])][_0x3363c6([0x63,0x65,0x69,0x6c])](_0xec96d/_0x5b6a4d)));window[_0x3363c6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3363c6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53a50d,_0x3eb4c2);}function _0x2b36db(){const _0x94b06d=_0x3363c6([0x6c,0x6c,0x63,0x74,0x2d])+_0x149832(_0x2e4c9d(_0x2396f9)),_0x38f0ad=window[_0x3363c6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3363c6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x94b06d);return _0x38f0ad?window[_0x3363c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17be5c(_0x38f0ad),0x10)*_0x5b6a4d:null;}function _0xb9969d(_0x1f7f21){return new window[(_0x3363c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f160e,_0x1ad9dd)=>{_0x1f7f21[_0x3363c6([0x74,0x68,0x65,0x6e])](_0x2f160e,_0x1ad9dd),window[_0x3363c6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ad9dd,0x47a351c6^_0x4fd094);});}}_0x5378ee[_0x3363c6([0x6f,0x6e])](_0x3363c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1357a4,_0x12ad02)=>{if(_0x12ad02[0x0]!=_0x2396f9)return _0x5cd1a2(_0x3363c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12ad02[0x1]={..._0x12ad02[0x1],[_0x3363c6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3aea05};},{[_0x3363c6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3363c6([0x68,0x69,0x67,0x68])}),_0x5378ee[_0x3363c6([0x6f,0x6e])](_0x3363c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x594961=>{_0x4ed8c0(_0x594961[_0x3363c6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b8906=!0x0,_0x115d20(_0x594961[_0x3363c6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3363c6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3363c6([0x6c,0x6f,0x77])}),_0xe9c57[_0x3363c6([0x74,0x68,0x65,0x6e])](()=>{_0x4b8906||_0x5cd1a2(_0x3363c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b2498(){return _0x5378ee[_0x3363c6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3363c6([0x76,0x69,0x65,0x77])][_0x3363c6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3363c6([0x61,0x75,0x74,0x6f]);}function _0x560ce7(){_0x5378ee[_0x3363c6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3363c6([0x76,0x69,0x65,0x77])][_0x3363c6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3363c6([0x61,0x75,0x74,0x6f]);}}function _0x6d5c8d(_0x2afc53){const _0x57ac07=[new window[(_0x3363c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20131d=>setTimeout(_0x20131d,0x47abbbca^_0x4fd094)),_0xe9c57[_0x3363c6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3363c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x177ea0=>{let _0x4fa366=0x0;_0x5378ee[_0x3363c6([0x6d,0x6f,0x64,0x65,0x6c])][_0x3363c6([0x6f,0x6e])](_0x3363c6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d2f5b,_0x2b26b8)=>{_0x2b26b8[0x0][_0x3363c6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4fa366++,_0x4fa366==(0x47a284fe^_0x4fd094)&&(_0x177ea0(),_0x4d2f5b[_0x3363c6([0x6f,0x66,0x66])]());});}))];return window[_0x3363c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3363c6([0x72,0x61,0x63,0x65])](_0x57ac07)[_0x3363c6([0x74,0x68,0x65,0x6e])](()=>_0x2afc53);}async function _0x417c6f(){await _0xe9c57,_0x5378ee[_0x3363c6([0x6d,0x6f,0x64,0x65,0x6c])][_0x3363c6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x426af4,_0x5378ee[_0x3363c6([0x6d,0x6f,0x64,0x65,0x6c])][_0x3363c6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x426af4,_0x5378ee[_0x3363c6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3363c6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x16222a(_0x1220cb){const _0x5b7e56=_0x21cae1();_0x5378ee[_0x5b7e56]=_0x3363c6([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1220cb,_0x1220cb!=_0x3363c6([0x56,0x61,0x6c,0x69,0x64])&&_0x417c6f();}function _0x21cae1(){const _0xe65367=window[_0x3363c6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3363c6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3363c6([0x6e,0x6f,0x77])]())[_0x3363c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3363c6([0x2e]),'');let _0x2344c1=_0x3363c6([0x75]);for(let _0x172e18=0x0;_0x172e18<_0xe65367[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x172e18+=0x2){let _0x43af96=window[_0x3363c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe65367[_0x3363c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x172e18,_0x172e18+0x2));_0x43af96>=_0x15c18b[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x43af96-=_0x15c18b[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2344c1+=_0x15c18b[_0x43af96];}return _0x2344c1;}function _0x3d36e2(){const _0x3380b0=_0x670193[_0x3363c6([0x73,0x70,0x6c,0x69,0x74])](_0x3363c6([0x2e]));if(0x3!=_0x3380b0[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x588694(_0x3380b0[0x1]);function _0x588694(_0x4f02f7){const _0xeaaedb=_0x56bc7f(_0x4f02f7);return _0xeaaedb&&_0x190339()?_0xeaaedb:null;function _0x190339(){const _0x50b1c6=_0xeaaedb[_0x3363c6([0x6a,0x74,0x69])],_0x541933=window[_0x3363c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50b1c6[_0x3363c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50b1c6[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x37dcd2={..._0xeaaedb,[_0x3363c6([0x6a,0x74,0x69])]:_0x50b1c6[_0x3363c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x50b1c6[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x37dcd2[_0x3363c6([0x76,0x63])],_0x2e4c9d(_0x37dcd2)==_0x541933;}}}async function _0x3687d4(){let _0x2fc2c4=!0x0;try{const _0x36c0c3=_0x670193[_0x3363c6([0x73,0x70,0x6c,0x69,0x74])](_0x3363c6([0x2e])),[_0x4f73b3,_0x13c5e2,_0x123056]=_0x36c0c3;return _0x14a7c9(_0x4f73b3),await _0x48f58b(_0x4f73b3,_0x13c5e2,_0x123056),_0x2fc2c4;}catch{return!0x1;}function _0x14a7c9(_0x44bfd2){const _0x544db1=_0x56bc7f(_0x44bfd2);_0x544db1&&_0x544db1[_0x3363c6([0x61,0x6c,0x67])]==_0x3363c6([0x45,0x53,0x32,0x35,0x36])||(_0x2fc2c4=!0x1);}async function _0x48f58b(_0x4c8ee3,_0x4a54e7,_0x3d7d62){const _0x779128=window[_0x3363c6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3363c6([0x66,0x72,0x6f,0x6d])](_0x258576(_0x3d7d62),_0x465400=>_0x465400[_0x3363c6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x118662=new window[(_0x3363c6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3363c6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4c8ee3+_0x3363c6([0x2e])+_0x4a54e7),_0x43418b=window[_0x3363c6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3363c6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x43418b)return;const _0x4ea174=await _0x43418b[_0x3363c6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3363c6([0x6a,0x77,0x6b]),_0x52890e,{[_0x3363c6([0x6e,0x61,0x6d,0x65])]:_0x3363c6([0x45,0x43,0x44,0x53,0x41]),[_0x3363c6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3363c6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3363c6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x43418b[_0x3363c6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3363c6([0x6e,0x61,0x6d,0x65])]:_0x3363c6([0x45,0x43,0x44,0x53,0x41]),[_0x3363c6([0x68,0x61,0x73,0x68])]:{[_0x3363c6([0x6e,0x61,0x6d,0x65])]:_0x3363c6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ea174,_0x779128,_0x118662)||(_0x2fc2c4=!0x1);}}function _0x56bc7f(_0x2be324){return _0x2be324[_0x3363c6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3363c6([0x65,0x79]))?JSON[_0x3363c6([0x70,0x61,0x72,0x73,0x65])](_0x258576(_0x2be324)):null;}function _0x258576(_0x4a73ff){return window[_0x3363c6([0x61,0x74,0x6f,0x62])](_0x4a73ff[_0x3363c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3363c6([0x2b]))[_0x3363c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3363c6([0x2f])));}function _0x2e4c9d(_0x52d241){let _0x33900e=0x1505;function _0x3ff8f6(_0x5c2f51){for(let _0x3db57f=0x0;_0x3db57f<_0x5c2f51[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3db57f++){const _0x34db7e=_0x5c2f51[_0x3363c6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3db57f);_0x33900e=(_0x33900e<<0x5)+_0x33900e+_0x34db7e,_0x33900e&=_0x33900e;}}function _0x5bb383(_0xd93ab6){Array[_0x3363c6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xd93ab6)?_0xd93ab6[_0x3363c6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5bb383):_0xd93ab6&&typeof _0xd93ab6==_0x3363c6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3363c6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xd93ab6)[_0x3363c6([0x73,0x6f,0x72,0x74])]()[_0x3363c6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e3ff9,_0x1e2414])=>{_0x3ff8f6(_0x3e3ff9),_0x5bb383(_0x1e2414);}):_0x3ff8f6(window[_0x3363c6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xd93ab6));}return _0x5bb383(_0x52d241),_0x33900e>>>0x0;}function _0x149832(_0x261a12){return _0x261a12[_0x3363c6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3363c6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3363c6([0x30]));}function _0x17be5c(_0xd86dde){return _0xd86dde[_0x3363c6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3363c6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3363c6([0x6a,0x6f,0x69,0x6e])]('');}function _0x426af4(){}function _0x3363c6(_0x47f023){return _0x47f023['map'](_0x21e4ca=>String['fromCharCode'](_0x21e4ca))['join']('');}_0x16222a(await _0x351afc());}(this);}['_moveSelectionToFootnoteDefinition'](_0x2378d7){const {plugins:_0x3ae4c0,editing:_0xb2eeec,model:_0x43a565}=this['editor'],_0x40d2fd=_0x3ae4c0['get'](c)['getFootnote'](_0x2378d7);return!!_0x40d2fd&&(_0x43a565['change'](_0x3d675c=>{_0x3d675c['setSelection'](_0x3d675c['createPositionAt'](_0x40d2fd['definition'],'end'));}),_0xb2eeec['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3fdbf8){const {plugins:_0x4c0ba7,editing:_0x1817f9,model:_0x1d6d39}=this['editor'],_0xf0af90=_0x4c0ba7['get'](c)['getFootnote'](_0x3fdbf8);return!!_0xf0af90&&(_0x1d6d39['change'](_0x4b0c2a=>{_0x4b0c2a['setSelection'](_0xf0af90['reference'],'on');}),_0x1817f9['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x225332}=this['editor']['model'],_0x1fc0a3=this['editor']['config']['get']('footnotes.multiBlock');_0x225332['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x225332['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x225332['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x1fc0a3?_0x225332['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x225332['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x225332['addChildCheck'](_0x5344a6=>{for(const _0x3159bd of _0x5344a6)if('footnoteDefinition'===_0x3159bd['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5c9e8b}=this,{conversion:_0x33e27d,editing:_0x745652}=_0x5c9e8b,{t:t}=_0x5c9e8b['locale'];_0x33e27d['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4af789,{writer:_0x1f9b22,consumable:_0x538c18})=>{const _0x31a11b=_0x4af789['getChild'](0x0);if(!_0x31a11b||!_0x31a11b['is']('element','a'))return null;const _0xa39e0d=_0x31a11b['getAttribute']('href')||'';if(!_0xa39e0d['startsWith']('#'))return null;const _0x30c7ab=_0xa39e0d['replace'](/^#/,'');if(!_0x30c7ab)return null;_0x538c18['consume'](_0x31a11b,{'name':!0x0,'attributes':['href']});for(const {item:_0x135044}of _0x745652['view']['createRangeIn'](_0x31a11b))_0x135044['is']('$textProxy')?_0x538c18['consume'](_0x135044['textNode'],{'name':!0x0}):_0x135044['is']('element')&&_0x538c18['consume'](_0x135044,{'name':!0x0});return _0x1f9b22['createElement']('footnoteRef',{'footnoteId':_0x30c7ab});}}),_0x33e27d['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x463cdf,{writer:_0x427ddb})=>D(_0x463cdf,_0x427ddb)}),_0x33e27d['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5bd6bd,{writer:_0x30c9e1})=>{const _0x1a3778=_0x5bd6bd['getAttribute']('footnoteCounter');return _0x3d3a52(D(_0x5bd6bd,_0x30c9e1),_0x30c9e1,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1a3778)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2c73da}=this,{t:t}=_0x2c73da['locale'],{conversion:_0x4bf0ac}=_0x2c73da;_0x4bf0ac['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4bf0ac['for']('upcast')['add'](_0x5d9e6d=>{_0x5d9e6d['on']('element:ol',(_0x2eda66,_0x50f7f4,_0xa4562f)=>{const _0x5a46e3=_0x50f7f4['viewItem'];if(!_0x5a46e3['hasClass']('footnotes-list')||!_0x50f7f4['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0xa4562f['consumable']['consume'](_0x5a46e3,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x35ad59,modelCursor:_0x14b4b8}=_0xa4562f['convertChildren'](_0x50f7f4['viewItem'],_0x50f7f4['modelCursor']);_0x50f7f4['modelRange']=_0x35ad59,_0x50f7f4['modelCursor']=_0x14b4b8;}),_0x5d9e6d['on']('element:hr',(_0x24f383,_0x9454c4,_0x1a5796)=>{const _0x1ce0de=_0x9454c4['viewItem'];_0x1ce0de['hasClass']('footnotes-divider')&&_0x9454c4['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x1a5796['consumable']['consume'](_0x1ce0de,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4bf0ac['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x512ff9,{writer:_0x3110a2})=>v(_0x3110a2)}),_0x4bf0ac['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x14edb9,{writer:_0x1d71a5})=>{const _0x4d7a30=v(_0x1d71a5,{'data-footnotes-list-label':t('Footnotes')}),_0x5be21e=_0x3d3a52(_0x4d7a30,_0x1d71a5,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1d71a5['setCustomProperty']('footnotesDefinitions',!0x0,_0x5be21e),_0x5be21e;}});}['_defineDefinitionConverters'](){const {editor:_0x361ce7}=this,{conversion:_0x15a4fe,locale:_0x153406}=_0x361ce7,_0x2891f9=_0x361ce7['config']['get']('footnotes.multiBlock');_0x15a4fe['for']('upcast')['add'](_0x581653=>{_0x581653['on']('element:li',(_0x1e7751,_0x3dce04,_0x212ced)=>{const _0x506a63=_0x3dce04['viewItem'];if(!_0x506a63['hasClass']('footnote-definition')||!_0x506a63['getAttribute']('id'))return;const _0x52b34b=_0x506a63['parent'];if(!_0x52b34b['is']('element','ol')||!_0x52b34b['hasClass']('footnotes-list'))return;if(!_0x212ced['consumable']['test'](_0x506a63,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x18c581=_0x212ced['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x506a63['getAttribute']('id')});if(!_0x212ced['safeInsert'](_0x18c581,_0x3dce04['modelCursor']))return;_0x212ced['consumable']['consume'](_0x506a63,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2d6919=Array['from'](_0x506a63['getChildren']())['find'](_0x130475=>_0x130475['is']('element')&&_0x130475['hasClass']('footnote-content'));for(const _0x3aa31e of _0x506a63['getChildren']())_0x3aa31e['is']('element')&&(_0x212ced['consumable']['consume'](_0x3aa31e,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x212ced['consumable']['consume'](_0x3aa31e,{'name':!0x0,'classes':'footnote-content'}));if(_0x2d6919){if(_0x2891f9)_0x212ced['convertChildren'](_0x2d6919,_0x18c581);else{const _0x1d651e=_0x212ced['writer']['createElement']('footnoteInlineContent');_0x212ced['writer']['insert'](_0x1d651e,_0x18c581),_0x212ced['convertChildren'](_0x2d6919,_0x1d651e);}}_0x212ced['updateConversionResult'](_0x18c581,_0x3dce04);});}),_0x15a4fe['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4ffc29,{writer:_0x87a4b0})=>b(_0x4ffc29,_0x87a4b0,_0x153406,{'dataPipeline':!0x0})}),_0x15a4fe['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1170e9,{writer:_0x2e81d2})=>b(_0x1170e9,_0x2e81d2,_0x153406)});}['_defineBogusParagraphConverters'](){const {editor:_0x28a0ee}=this,{conversion:_0x52b2b0}=_0x28a0ee;_0x28a0ee['config']['get']('footnotes.multiBlock')?(_0x52b2b0['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x52b2b0['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x28a0ee['model']['document'],'change:data',()=>{!function(_0x3cec23,_0x54162c){const _0x94919=_0x3cec23['document']['differ'],_0x3d38a3=new Set();for(const _0x1cd7c8 of _0x94919['getChanges']()){const _0x277294='attribute'==_0x1cd7c8['type']?_0x1cd7c8['range']['start']['parent']:_0x1cd7c8['position']['parent'];_0x277294['is']('element','footnoteDefinition')&&_0x3d38a3['add'](_0x277294);}for(const _0x46e776 of _0x3d38a3['values']()){const _0x285887=Array['from'](_0x46e776['getChildren']())['filter'](_0xeb476b=>g(_0xeb476b,_0x54162c['mapper']));for(const _0x42b2d9 of _0x285887)_0x54162c['reconvertItem'](_0x42b2d9);}}(_0x28a0ee['model'],_0x28a0ee['editing']);})):(_0x52b2b0['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x52b2b0['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2f6b31,{writer:_0x473f57})=>{const _0x57abfe=_0x473f57['createContainerElement']('span');return _0x473f57['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x57abfe),_0x57abfe;}}));}['_defineKeyboardHandlers'](){const {editor:_0x33e071}=this,{editing:_0x3afddf,t:t}=_0x33e071,_0x33d4a0=_0x33e071['model']['document']['selection'];_0x33e071['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x33e071['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3afddf['view']['document'],'enter',(_0x29155d,_0x55be3c)=>{const _0xa87a09=function(_0x4651d8){const _0x182349=_0x4651d8['getSelectedElement']();if(_0x182349?.['is']('element','footnoteRef'))return _0x182349;return null;}(_0x33d4a0);if(_0xa87a09){const _0x2fefe0=_0xa87a09['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x2fefe0),_0x55be3c['preventDefault'](),_0x29155d['stop']();}},{'context':_0x70a053});}['_defineClickHandlers'](){const {editor:_0x3d0b11}=this,{editing:_0x120404}=_0x3d0b11;_0x3d0b11['editing']['view']['addObserver'](_0xb1f581),_0x3d0b11['editing']['view']['addObserver'](_0x2cac24);let _0x2db985=!0x1;this['listenTo'](_0x120404['view']['document'],'pointerdown',(_0x2cc9ef,_0xc3f6ce)=>{const {target:_0x3bcf48}=_0xc3f6ce,_0x3c8223=_0x120404['view']['document']['selection'];_0x2db985=!!(_0x3bcf48?.['is']('element','a')&&_0x3bcf48['parent']?.['is']('element','sup')&&_0x3bcf48['parent']['hasClass']('footnote'))&&_0x3c8223['getSelectedElement']()===_0x3bcf48['parent'];},{'priority':'high'}),this['listenTo'](_0x120404['view']['document'],'click',(_0x547d21,_0x124b3e)=>{const {target:_0x4620a8}=_0x124b3e;if(!_0x4620a8?.['is']('element','a'))return;if(_0x4620a8['parent']?.['is']('element','sup')&&_0x4620a8['parent']['hasClass']('footnote')&&!_0x2db985)return void _0x124b3e['preventDefault']();let _0x1c8845=_0x4620a8['getAttribute']('href');if(!_0x1c8845?.['startsWith']('#'))return;_0x1c8845=_0x1c8845['slice'](0x1);let _0x1dbac0=!0x1;(_0x1c8845['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1c8845['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1c8845))&&(_0x1dbac0=!0x0),_0x1dbac0&&(_0x124b3e['preventDefault'](),_0x547d21['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x33acf7}={}){return(_0x423201,{writer:_0x5c926d})=>{if(!p(_0x423201))return null;if(!_0x33acf7)return _0x5c926d['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x519dd3=_0x5c926d['createContainerElement']('p');return _0x5c926d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x519dd3),_0x519dd3;};}function p(_0x188225){const {parent:_0x40526e}=_0x188225;if(!_0x40526e?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x40526e['childCount'])return!0x1;for(const _0x49605f of _0x188225['getAttributeKeys']())if(!_0x49605f['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x49605f)return!0x1;return!0x0;}function g(_0x25fc19,_0x1b1428){if(!_0x25fc19['is']('element','paragraph'))return!0x1;const _0x27b6fc=_0x1b1428['toViewElement'](_0x25fc19);return!!_0x27b6fc&&p(_0x25fc19)!==_0x27b6fc['is']('element','span');}function J(_0x50eb2b){return _0x70a053(_0x50eb2b)&&_0x50eb2b['is']('containerElement')&&!!_0x50eb2b['getCustomProperty']('footnotesDefinitions');}function v(_0x9033a6,_0x454417={}){const _0x3be9ab=_0x9033a6['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4c7bfe=_0x9033a6['createContainerElement']('ol',{'class':'footnotes-list'},_0x9033a6['createSlot']());return _0x9033a6['createContainerElement']('div',{'class':'footnotes',..._0x454417},[_0x3be9ab,_0x4c7bfe]);}function D(_0x4448b1,_0x43d80c){const _0x23a8b5=_0x4448b1['getAttribute']('footnoteId'),_0x10081b=_0x4448b1['getAttribute']('footnoteCounter'),_0x206163=_0x43d80c['createUIElement']('a',{'href':'#'+_0x23a8b5},function(_0x29bc3f){const _0x1ffb8=this['toDomElement'](_0x29bc3f);return _0x1ffb8['textContent']=_0x10081b,_0x1ffb8;}),_0x13b979=_0x43d80c['createContainerElement']('sup',{'id':'ref-'+_0x23a8b5,'class':'footnote'},[_0x206163]);return _0x13b979['getFillerOffset']=()=>null,_0x13b979;}function b(_0x100afe,_0x1fa742,_0xef0dcb,{dataPipeline:_0x166f5f}={}){const {t:t}=_0xef0dcb,_0x276127=_0x100afe['getAttribute']('footnoteId'),_0x15cfb7=_0x1fa742['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x276127},function(_0x720116){const _0x834977=this['toDomElement'](_0x720116);return _0x834977['innerText']='^',_0x834977;}),_0xc77500=_0x166f5f?_0x1fa742['createContainerElement']('div',{'class':'footnote-content'}):_0x3cff8e(_0x1fa742['createEditableElement']('div',{'class':'footnote-content'}),_0x1fa742,{'label':t('Footnote\x20content.')});return _0x1fa742['insert'](_0x1fa742['createPositionAt'](_0xc77500,0x0),_0x1fa742['createSlot']()),_0x1fa742['createContainerElement']('li',{'class':'footnote-definition','id':_0x276127},[_0x15cfb7,_0xc77500]);}class e extends _0x2de1fc{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x313a74];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x402d5f}=this,{plugins:_0x54cdc9,model:_0x58339b}=_0x402d5f,_0x363b49=_0x54cdc9['get'](_0x313a74),_0x6b95eb=_0x54cdc9['get'](c);this['listenTo'](_0x363b49,'outputTransformation',(_0x2340a1,_0x291cee)=>{const _0x1a836c=f(_0x58339b['createRangeIn'](_0x291cee['content']));if(!_0x1a836c['length'])return;const _0x44ee00=_0x6b95eb['getFootnotes'](),_0xa537e0=_0x1a836c['reduce']((_0x567ae9,_0x5e0c80)=>{const _0x16109d=_0x44ee00['find'](_0x5b423b=>_0x5b423b['id']===_0x5e0c80);if(_0x16109d){const _0x2263ab=_0x402d5f['data']['toView'](_0x16109d['definition'],{'isClipboardPipeline':!0x0}),_0x55c9fa=_0x402d5f['data']['htmlProcessor']['toData'](_0x2263ab);_0x567ae9[_0x16109d['id']]=_0x55c9fa;}return _0x567ae9;},Object['create'](null));_0x291cee['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0xa537e0));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x3e15a5}=this,{model:_0xe6bca4,plugins:_0xf5fed7}=_0x3e15a5,{view:_0x15ab54}=_0x3e15a5['editing'],_0x1dd20e=_0xf5fed7['get'](_0x313a74),_0x3db687=_0xf5fed7['get'](c);let _0x307b3f=null;this['listenTo'](_0x15ab54['document'],'clipboardInput',(_0x4f4774,_0xa19d1)=>{const _0x46813c=_0xa19d1['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x307b3f=_0x46813c?JSON['parse'](_0x46813c):null;}),this['listenTo'](_0x1dd20e,'contentInsertion',(_0x5d3cae,_0xa97ddf)=>{const _0x1086b7=_0xa97ddf['sourceEditorId']===this['editor']['id'];_0x1086b7&&'drop'===_0xa97ddf['method']||_0xe6bca4['change'](_0x57bda5=>{let _0x20175b=_0x3db687['getFootnotesDefinitionsObjectElement']();const _0xcabed4=!!_0x20175b&&Array['from'](_0xe6bca4['document']['selection']['getSelectedBlocks']())['includes'](_0x20175b);if((_0x20175b&&!_0xcabed4||!_0x20175b&&!_0x307b3f)&&function(_0x48133c,_0x41e7f6){const _0x31cb24=[];for(const {item:_0x11d38d}of _0x48133c['createRangeIn'](_0x41e7f6))_0x11d38d['is']('element','footnotesDefinitions')&&_0x31cb24['push'](_0x11d38d);for(const _0x1a3321 of _0x31cb24)_0x48133c['remove'](_0x1a3321);}(_0x57bda5,_0xa97ddf['content']),!_0x307b3f)return;const {selection:_0x590920}=_0xe6bca4['document'],_0x1ae831=_0x590920['getFirstRange']()['root'];_0x20175b&&!_0xcabed4||(_0x20175b=function(_0x2aaa08,_0x487197){for(const {item:_0x56c32a}of _0x2aaa08['createRangeIn'](_0x487197))if(_0x56c32a['is']('element','footnotesDefinitions'))return _0x56c32a;return null;}(_0x57bda5,_0xa97ddf['content']),_0x20175b||=_0x3db687['_insertEmptyFootnotesDefinitionsContainer'](_0x57bda5,_0x1ae831));const _0x4633d4=Array['from'](_0x590920['getRanges']())['flatMap'](f),_0x151f75=function(_0x533fbf,_0x551354,_0x215f66){const _0x3987f5=Object['create'](null);for(const {item:_0x1d6c51}of _0x533fbf['createRangeIn'](_0x551354))if(_0x1d6c51['is']('element','footnoteRef')){const _0x210142=_0x1d6c51['getAttribute']('footnoteId');if(!_0x215f66(_0x210142))continue;_0x3987f5[_0x210142]||(_0x3987f5[_0x210142]=_0x1137ee()),_0x533fbf['setAttribute']('footnoteId',_0x3987f5[_0x210142],_0x1d6c51);}return _0x3987f5;}(_0x57bda5,_0xa97ddf['content'],_0x17b278=>{if(!_0x1086b7)return!0x0;return!!_0x3db687['getFootnote'](_0x17b278)&&!_0x4633d4['includes'](_0x17b278);});for(const [_0x40f228,_0x6ed6da]of Object['entries'](_0x307b3f)){const _0x13b2f7=_0x151f75[_0x40f228]||_0x40f228,_0xb46ecc=_0x57bda5['createElement']('footnoteDefinition',{'footnoteId':_0x13b2f7}),_0x1b3872=_0x3e15a5['data']['htmlProcessor']['toView'](_0x6ed6da),_0x5304d9=_0x3e15a5['data']['toModel'](_0x1b3872,_0xb46ecc);_0x57bda5['append'](_0x5304d9,_0xb46ecc),_0x57bda5['insert'](_0xb46ecc,_0x20175b,'end');}_0x307b3f=null;});});}}function f(_0x2f52f3){const _0x54f678=new Set();for(const {item:_0xc582fa}of _0x2f52f3)_0xc582fa['is']('element','footnoteRef')&&_0x54f678['add'](_0xc582fa['getAttribute']('footnoteId'));return Array['from'](_0x54f678);}class i extends _0x2de1fc{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3ad335}=this,{componentFactory:_0x5c22dd}=_0x3ad335['ui'];_0x5c22dd['add']('insertFootnote',x(_0x3ad335,_0x4d49cb)),_0x5c22dd['add']('menuBar:insertFootnote',x(_0x3ad335,_0x153377)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x196edf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x35b443;for(const _0x3664c3 in _0x196edf){const _0x139fe2=_0x3664c3,_0x5e9101=_0x196edf[_0x139fe2];if('footnotesLicenseKeyValid'==_0x5e9101||'footnotesLicenseKeyInvalid'==_0x5e9101||'footnotesLicenseKeyExpired'==_0x5e9101||'footnotesLicenseKeyDomainLimit'==_0x5e9101||'footnotesLicenseKeyNotAllowed'==_0x5e9101||'footnotesLicenseKeyEvaluationLimit'==_0x5e9101||'footnotesLicenseKeyTrialLimit'==_0x5e9101||'footnotesLicenseKeyUsageLimit'==_0x5e9101){delete _0x196edf[_0x139fe2],_0x35b443=_0x5e9101,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x35b443&&_0x196edf['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x35b443&&_0x196edf['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x35b443&&_0x196edf['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x35b443&&_0x196edf['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x35b443&&_0x196edf['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x35b443&&_0x196edf['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x35b443&&_0x196edf['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x296a4a,_0x10edfd){const _0x4b6850=_0x296a4a['commands']['get']('insertFootnote');return _0x1c6d2d=>{const {t:t}=_0x1c6d2d,_0x221f9d=new _0x10edfd(_0x1c6d2d),_0x1b23a6=_0x221f9d instanceof _0x153377;return _0x221f9d['bind']('isEnabled')['to'](_0x4b6850,'isEnabled'),_0x221f9d['set']({'label':t(_0x1b23a6?'Footnote':'Insert\x20footnote'),'icon':_0x81cbe2,'tooltip':!0x0}),_0x221f9d['on']('execute',()=>{_0x4b6850['execute'](),_0x296a4a['editing']['view']['focus']();}),_0x221f9d;};}class lt extends _0x2de1fc{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 _0x16d21d{['refresh'](){const {editor:_0x4a94ed}=this,_0x5a91c1=_0x4a94ed['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x5a91c1,this['value']=_0x5a91c1?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x4dafd5}){const {editor:_0xe2e95e}=this,_0x515d19=_0xe2e95e['plugins']['get'](c),_0x2d18d7=_0x515d19['getFootnotesDefinitionsObjectElement']();_0x2d18d7&&Q['includes'](_0x4dafd5)&&_0xe2e95e['model']['change'](_0x5ee2bd=>{_0x5ee2bd['setAttribute']('footnotesListStyle',_0x4dafd5,_0x2d18d7),_0x515d19['_updateFootnotesCounters'](_0x5ee2bd);});}}class C extends _0x16d21d{['refresh'](){const {editor:_0xc69514}=this,_0x42d09e=_0xc69514['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x42d09e,this['value']=_0x42d09e?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x1f4fef}){const {editor:_0x1a4283}=this,_0x5463a4=_0x1a4283['plugins']['get'](c),_0x3df3f6=_0x5463a4['getFootnotesDefinitionsObjectElement']();_0x3df3f6&&Number['isInteger'](_0x1f4fef)&&_0x1a4283['model']['change'](_0x85aa56=>{_0x85aa56['setAttribute']('footnotesListStart',_0x1f4fef,_0x3df3f6),_0x5463a4['_updateFootnotesCounters'](_0x85aa56);});}}class P extends _0x2de1fc{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1496ed}=this;_0x1496ed['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x1496ed['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x1496ed['commands']['add']('footnotesStyle',new S(_0x1496ed)),_0x1496ed['commands']['add']('footnotesStart',new C(_0x1496ed)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x4332d0}=this,{schema:_0x560954}=_0x4332d0['model'];_0x560954['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x1a91ba}=this,{conversion:_0x115232,model:_0x339a89}=_0x1a91ba,{schema:_0xd66d18}=_0x339a89;_0x115232['for']('upcast')['add'](_0x2d1b59=>{_0x2d1b59['on']('element:ol',(_0x13dec8,_0x1a2235,_0x36dfac)=>{const _0x1568f8=_0x1a2235['viewItem'],_0x24b8d2=_0x1a2235['modelCursor']?.['parent'];_0x1568f8['hasClass']('footnotes-list')&&_0x24b8d2?.['is']('element','footnotesDefinitions')&&(function(_0x1e4c91,_0x36414c,_0x54242c,_0x502a69){if(!_0x502a69['checkAttribute'](_0x36414c,'footnotesListStart'))return;let _0xde3bbe=0x1;const _0x5b63fa=_0x54242c['consumable']['consume'](_0x1e4c91,{'attributes':'start'});if(_0x5b63fa){const _0x35d1d7=Number['parseInt'](_0x1e4c91['getAttribute']('start'),0xa);Number['isNaN'](_0x35d1d7)||(_0xde3bbe=_0x35d1d7);}!_0x5b63fa&&_0x36414c['hasAttribute']('footnotesListStart')||_0x54242c['writer']['setAttribute']('footnotesListStart',_0xde3bbe,_0x36414c);}(_0x1568f8,_0x24b8d2,_0x36dfac,_0xd66d18),function(_0x45af6f,_0x2ef50a,_0x3179a4,_0x383582){if(!_0x383582['checkAttribute'](_0x2ef50a,'footnotesListStyle'))return;let _0x5370c4='decimal',_0x4e5ab1=!0x1;if(_0x3179a4['consumable']['consume'](_0x45af6f,{'attributes':'type'})){const _0x2caf52={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x45af6f['getAttribute']('type')];_0x2caf52&&(_0x5370c4=_0x2caf52),_0x4e5ab1=!0x0;}_0x3179a4['consumable']['consume'](_0x45af6f,{'styles':'list-style-type'})&&(_0x5370c4=_0x45af6f['getStyle']('list-style-type'),_0x4e5ab1=!0x0),!_0x4e5ab1&&_0x2ef50a['hasAttribute']('footnotesListStyle')||_0x3179a4['writer']['setAttribute']('footnotesListStyle',_0x5370c4,_0x2ef50a);}(_0x1568f8,_0x24b8d2,_0x36dfac,_0xd66d18));});}),_0x115232['for']('downcast')['add'](_0x14a1e5=>{_0x14a1e5['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x225810,_0x1c9ca8,_0x203382)=>{if(!_0x203382['consumable']['consume'](_0x1c9ca8['item'],_0x225810['name']))return;const _0x85930d=M(_0x1c9ca8['item'],_0x203382['mapper']),{attributeNewValue:_0x51dd01}=_0x1c9ca8;null==_0x51dd01||0x1===_0x51dd01?_0x203382['writer']['removeAttribute']('start',_0x85930d):_0x203382['writer']['setAttribute']('start',String(_0x51dd01),_0x85930d);}),_0x14a1e5['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x55647f,_0x5e1430,_0x39b9f1)=>{if(!_0x39b9f1['consumable']['consume'](_0x5e1430['item'],_0x55647f['name']))return;const _0x449df3=M(_0x5e1430['item'],_0x39b9f1['mapper']),{attributeNewValue:_0x3847c1}=_0x5e1430;_0x3847c1&&'decimal'!==_0x3847c1?_0x39b9f1['writer']['setStyle']('list-style-type',_0x3847c1,_0x449df3):_0x39b9f1['writer']['removeStyle']('list-style-type',_0x449df3);});});}['_definePostfixer'](){const {editor:_0x15cbee}=this,{model:_0x2d4233}=_0x15cbee,_0x149538=_0x15cbee['plugins']['get'](c),_0x119fac=this['_getDefaultListStyle'](),_0x301c04=this['_getDefaultStartIndex']();_0x2d4233['document']['registerPostFixer'](_0x18f623=>{const _0x21416a=_0x2d4233['document']['differ']['getChanges']();let _0x31c624=!0x1;for(const _0x493e05 of _0x21416a){if('insert'!==_0x493e05['type']||'$text'===_0x493e05['name'])continue;const _0x57e014=_0x2d4233['createRangeOn'](_0x493e05['position']['nodeAfter']);for(const _0x5f34a0 of _0x57e014['getItems']())_0x5f34a0['is']('element','footnotesDefinitions')&&(!_0x5f34a0['hasAttribute']('footnotesListStart')&&_0x2d4233['schema']['checkAttribute'](_0x5f34a0,'footnotesListStart')&&(_0x18f623['setAttribute']('footnotesListStart',_0x301c04,_0x5f34a0),_0x31c624=!0x0),!_0x5f34a0['hasAttribute']('footnotesListStyle')&&_0x2d4233['schema']['checkAttribute'](_0x5f34a0,'footnotesListStyle')&&(_0x18f623['setAttribute']('footnotesListStyle',_0x119fac,_0x5f34a0),_0x31c624=!0x0));}return _0x31c624&&_0x149538['_updateFootnotesCounters'](_0x18f623),_0x31c624;});}['_defineFormatter'](){const {editor:_0x3a876a}=this;_0x3a876a['plugins']['get'](c)['setFootnoteFormatter'](_0x59abe5=>this['_formatFootnoteListValue'](_0x59abe5));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x3172bd,value:_0xf7296a,digits:_0x5a6ddb}){const _0x2a55e4=_0x3172bd['getAttribute']('footnotesListStyle'),_0x2a34a0=_0x3172bd['getAttribute']('footnotesListStart'),_0x416452=Math['floor'](_0xf7296a)+(_0x2a34a0??0x1)-0x1;switch(_0x2a55e4){case'decimal-leading-zero':return function(_0x5bc84a,_0x345967){return String(_0x5bc84a)['padStart'](_0x345967,'0');}(_0x416452,Math['max'](0x2,_0x5a6ddb));case'lower-alpha':case'lower-latin':return N(_0x416452,!0x1);case'upper-alpha':case'upper-latin':return N(_0x416452,!0x0);case'lower-roman':return X(_0x416452,!0x1);case'upper-roman':return X(_0x416452,!0x0);default:return String(_0x416452);}}}function M(_0x5906e8,_0x4eec14){const _0x73e22=_0x4eec14['toViewElement'](_0x5906e8);return Array['from'](_0x73e22['getChildren']())['find'](_0x23d97a=>_0x23d97a['is']('element','ol')&&_0x23d97a['hasClass']('footnotes-list'));}function N(_0x22913c,_0x29ea06){let _0x507e2d='',_0x1fd41f=_0x22913c;for(;_0x1fd41f>0x0;){const _0x11292b=(_0x1fd41f-0x1)%0x1a;_0x507e2d=String['fromCharCode'](0x61+_0x11292b)+_0x507e2d,_0x1fd41f=Math['floor']((_0x1fd41f-0x1)/0x1a);}return _0x29ea06?_0x507e2d['toUpperCase']():_0x507e2d;}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(_0xc1c2a3,_0x18232a){let _0x5db68c='',_0x3c225b=_0xc1c2a3;for(const {value:_0x552cba,numeral:_0x55924f}of V)for(;_0x3c225b>=_0x552cba;)_0x5db68c+=_0x55924f,_0x3c225b-=_0x552cba;return _0x18232a?_0x5db68c:_0x5db68c['toLowerCase']();}class H extends _0x1997c0{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x47f0a5();['focusCycler'];constructor(_0x2c8114,{styleButtonViews:_0xfce4b1,styleGridAriaLabel:_0x231910}){super(_0x2c8114),(this['focusCycler']=new _0x5659cf({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0xfce4b1,_0x231910),[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 _0x5841f8 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x5841f8['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 _0x592634=_0x2efe8f=>_0x2efe8f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x592634),this['keystrokes']['set']('arrowleft',_0x592634),this['keystrokes']['set']('arrowup',_0x592634),this['keystrokes']['set']('arrowdown',_0x592634);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5eb3ab,_0x2a5625){const _0x525b67=new _0x1997c0(this['locale']);return _0x525b67['children']=_0x525b67['createCollection'](),_0x525b67['children']['addMany'](_0x5eb3ab),_0x525b67['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2a5625,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x525b67['children']}),_0x525b67['children']['delegate']('execute')['to'](this),_0x525b67['focus']=function(){for(const _0x51f1b5 of this['children'])if(_0x51f1b5 instanceof _0x4d49cb&&_0x51f1b5['isOn'])return void _0x51f1b5['focus']();this['children']['first']['focus']();},_0x525b67['focusTracker']=new ot(),_0x525b67['keystrokes']=new rt(),_0x525b67['render'](),_0x525b67['keystrokes']['listenTo'](_0x525b67['element']),this['children']['add'](_0x525b67),_0x525b67;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x1ad2e2=this['_createStartIndexPropertyView'](),_0x52c6a0=[_0x1ad2e2],_0x5b5b2e=new st(this['locale'],_0x52c6a0);return _0x5b5b2e['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x5b5b2e['buttonView']['bind']('isEnabled')['toMany'](_0x52c6a0,'isEnabled',(..._0x23890f)=>_0x23890f['some'](_0x4ebcd2=>_0x4ebcd2)),_0x5b5b2e['buttonView']['on']('change:isEnabled',(_0x512a77,_0x428e09,_0xa57a80)=>{_0xa57a80||(_0x5b5b2e['isCollapsed']=!0x0);}),this['children']['add'](_0x5b5b2e),[_0x1ad2e2,_0x5b5b2e];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x3f1151=new it(this['locale'],et);return _0x3f1151['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x3f1151['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x3f1151['fieldView']['on']('input',()=>{const _0x4e31ed=_0x3f1151['fieldView']['element'],_0x382d3c=_0x4e31ed['valueAsNumber'];Number['isNaN'](_0x382d3c)?_0x3f1151['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x4e31ed['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x382d3c}):_0x3f1151['errorText']=t(_0x382d3c<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x3f1151;}}class j extends _0x2de1fc{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x4cdb44,_0x184412];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1ef3ad}=this,{componentFactory:_0x505428}=_0x1ef3ad['ui'];_0x1ef3ad['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x505428['add']('footnotesStyle',function(_0xf3d565){return _0x2fab57=>{const {t:t}=_0x2fab57,_0x3f8b88=_0xf3d565['commands']['get']('footnotesStyle'),_0x270635=_0x2db7d9(_0x2fab57),{buttonView:_0x5225d3}=_0x270635;return _0x270635['class']='ck-footnotes-styles-dropdown',_0x270635['bind']('isEnabled')['to'](_0x3f8b88,'isEnabled'),_0x5225d3['set']({'label':t('Footnotes\x20style'),'icon':_0x81cbe2,'tooltip':!0x0}),_0x270635['once']('change:isOpen',()=>{const _0x5412b8=function({editor:_0x482e2e,dropdownView:_0x56f3b4}){const {t:t}=_0x482e2e['locale'],_0x5631e0=t('Footnotes\x20definitions\x20styles'),_0x147a5c=function(_0x502483){const t=_0x502483['locale']['t'],_0x2d1440=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x121ceb},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x5c85d6},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0xb5df0d},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x160762},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x996717},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x1e2f21}];return _0x2d1440['map'](function(_0x35adaf){const _0x2887f5=_0x35adaf['locale'];return({label:_0xd727e7,icon:_0xa5f273,tooltip:_0x1bb6e1,style:_0x198097})=>{const _0xc6bcc3=_0x35adaf['commands']['get']('footnotesStyle'),_0x39002e=new _0x4d49cb(_0x2887f5);return _0x39002e['set']({'label':_0xd727e7,'icon':_0xa5f273,'tooltip':_0x1bb6e1}),_0x39002e['bind']('isOn')['to'](_0xc6bcc3,'value',_0x2cff33=>_0x2cff33===_0x198097),_0x39002e['bind']('isEnabled')['to'](_0xc6bcc3,'isEnabled'),_0x39002e['on']('execute',()=>{_0x35adaf['execute']('footnotesStyle',{'value':_0x198097}),_0x35adaf['editing']['view']['focus']();}),_0x39002e;};}(_0x502483));}(_0x482e2e),_0x21d209=new H(_0x482e2e['locale'],{'styleGridAriaLabel':_0x5631e0,'styleButtonViews':_0x147a5c});return _0x21d209['delegate']('execute')['to'](_0x56f3b4),_0x21d209['on']('footnotesListStart',(_0x4ced9a,_0x144cd8)=>{_0x482e2e['execute']('footnotesStart',{'value':_0x144cd8['startIndex']});}),_0x21d209;}({'editor':_0xf3d565,'dropdownView':_0x270635});_0x270635['panelView']['children']['add'](_0x5412b8);}),_0x270635;};}(_0x1ef3ad));}['afterInit'](){const {editor:_0x3f8d5f}=this,{t:t}=_0x3f8d5f['locale'],_0x55bfd5=_0x3f8d5f['plugins']['get'](_0x184412),{defaultPositions:_0x537f35}=_0x423a59;_0x55bfd5['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x3f8d5f['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x59d435=>{let _0x31342b=_0x59d435['getFirstPosition']()?.['parent'];return _0x31342b?.['is']('$text')&&(_0x31342b=_0x31342b['parent']),_0x31342b?.['is']('element')?_0x31342b['findAncestor'](J):null;},'positions':[_0x537f35['southArrowNorth'],_0x537f35['southArrowNorthMiddleWest'],_0x537f35['southArrowNorthMiddleEast'],_0x537f35['southArrowNorthWest'],_0x537f35['southArrowNorthEast'],_0x537f35['northArrowSouth'],_0x537f35['northArrowSouthMiddleWest'],_0x537f35['northArrowSouthMiddleEast'],_0x537f35['northArrowSouthWest'],_0x537f35['northArrowSouthEast'],_0x537f35['viewportStickyNorth']]});}}class ft extends _0x2de1fc{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,c as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
23
+ import{Plugin as _0x177f79,Command as _0x3dc3f2}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x5cffc6,isWidget as _0x1be87d,toWidgetEditable as _0xa61a9,WidgetToolbarRepository as _0x5125c8}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x34e952,logWarning as _0x25ca70,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x23ce54,ClickObserver as _0x27fd85}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x225bd2}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x501351,ButtonView as _0x3f5ad6,View as _0x1d587c,ViewCollection as _0x47d86d,FocusCycler as _0x2d769a,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x37c4f0,BalloonPanelView as _0x1c5b5a,createDropdown as _0x324085}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x297e0a,IconListStyleDecimal as _0x10e339,IconListStyleDecimalLeadingZero as _0x29cc4a,IconListStyleLowerRoman as _0x29cc2f,IconListStyleUpperRoman as _0x4ad87d,IconListStyleLowerLatin as _0x584580,IconListStyleUpperLatin as _0x4557db}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x40a6fe,_0x148007){this['_model']=_0x40a6fe,this['_elementName']=_0x148007['elementName'],this['_getElementKey']=_0x148007['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x25fa89){const _0x2e69c9=new Set(),_0x2c4dc6=new Map();for(const _0x1dc3b5 of _0x25fa89){if('insert'===_0x1dc3b5['type']&&'$text'!==_0x1dc3b5['name']&&_0x1dc3b5['position']['nodeAfter']){const _0x195732=this['_model']['createRangeOn'](_0x1dc3b5['position']['nodeAfter']);for(const _0x51287c of _0x195732['getItems']()){if(!_0x51287c['is']('element',this['_elementName']))continue;const _0x1bdb7b=this['_getElementKey'](_0x51287c);_0x2c4dc6['has'](_0x1bdb7b)||_0x2c4dc6['set'](_0x1bdb7b,[]),_0x2c4dc6['get'](_0x1bdb7b)['push'](_0x51287c);}}if('remove'===_0x1dc3b5['type']&&_0x1dc3b5['name']===this['_elementName']){const _0x5a2d29=this['_getElementKey']({'getAttribute':_0xad479b=>_0x1dc3b5['attributes']['get'](_0xad479b)});_0x2e69c9['add'](_0x5a2d29);}}for(const [_0x12f006,_0x4ff086]of this['_trackedElements'])'$graveyard'===_0x4ff086['root']['rootName']&&_0x2e69c9['add'](_0x12f006);for(const _0x4bd7 of _0x2e69c9)this['_trackedElements']['delete'](_0x4bd7);for(const [_0x19178b,_0x38665f]of _0x2c4dc6)this['_trackedElements']['set'](_0x19178b,_0x38665f[_0x38665f['length']-0x1]);const _0x4b8d2d=new Set();for(const [_0x475482,_0x1c94e3]of _0x2c4dc6)_0x2e69c9['has'](_0x475482)&&(_0x4b8d2d['add'](_0x1c94e3[0x0]),_0x1c94e3['length']>0x1?_0x2c4dc6['set'](_0x475482,_0x1c94e3['slice'](0x1)):_0x2c4dc6['delete'](_0x475482),_0x2e69c9['delete'](_0x475482));return{'removed':Array['from'](_0x2e69c9),'inserted':Array['from'](_0x2c4dc6['values']())['flat'](),'moved':Array['from'](_0x4b8d2d)};}}class c extends _0x177f79{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3289f6){super(_0x3289f6),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x20fb0e=>_0x20fb0e['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x440a8e=>_0x440a8e['getAttribute']('footnoteId')});}['init'](){const {editor:_0x80b799}=this,{model:_0x5a4d07,data:_0x2a33f9}=_0x80b799;_0x5a4d07['document']['registerPostFixer'](_0x989475=>{const _0x574638=_0x5a4d07['document']['differ']['getChanges']();let _0x5444c4=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x989475,_0x574638)&&(_0x5444c4=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x989475,_0x574638)&&(_0x5444c4=!0x0),this['_handleFootnoteReferencesChanges'](_0x989475,_0x574638)&&(_0x5444c4=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x989475)&&(_0x5444c4=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x989475)&&(_0x5444c4=!0x0),this['_sortFootnoteDefinitions'](_0x989475)&&(_0x5444c4=!0x0),_0x5444c4;}),this['listenTo'](_0x5a4d07['document'],'change:data',()=>{_0x5a4d07['enqueueChange']({'isUndoable':!0x1},_0x18a6d8=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x18a6d8);});},{'priority':'low'}),this['listenTo'](_0x2a33f9,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x1ead69){return this['_footnotes']['find'](_0x38ce27=>_0x38ce27['id']===_0x1ead69)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x4699aa){this['_footnoteFormatter']=_0x4699aa;}['_updateFootnotesCounters'](_0x4e9790,_0x3468c3=0x0){let _0x2560e7=!0x1;for(let _0x276c43=_0x3468c3;_0x276c43<this['_footnotes']['length'];_0x276c43++)this['_updateFootnoteRefCounter'](_0x4e9790,_0x276c43)&&(_0x2560e7=!0x0);return _0x2560e7;}['_insertEmptyFootnotesDefinitionsContainer'](_0x3de5fe,_0x4bff22){const _0x3b2f85=_0x3de5fe['createElement']('footnotesDefinitions',{});return _0x3de5fe['append'](_0x3b2f85,_0x4bff22),this['_footnotesDefinitions']=_0x3b2f85,_0x3b2f85;}['_ensureFootnotesDefinitionsContainerExists'](_0x264f9a){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x168462=this['_footnotes'][0x0]['reference']['root'],_0x417b21=this['_insertEmptyFootnotesDefinitionsContainer'](_0x264f9a,_0x168462);for(const _0x2f4f89 of this['_footnotes'])_0x2f4f89['definition']['parent']||_0x264f9a['insert'](_0x2f4f89['definition'],_0x417b21,'end');this['_updateFootnotesCounters'](_0x264f9a);}['_handleFootnotesDefinitionsObjectChanges'](_0x26fdc4,_0x10c371){let _0x7f22c7=!0x1;const {inserted:_0x16c8b4,removed:_0x34dcc9,moved:_0xbb20fa}=this['_footnoteDefsContainerTracker']['getChanges'](_0x10c371);if(_0xbb20fa['length']&&(this['_footnotesDefinitions']=_0xbb20fa[0x0]),_0x16c8b4['length']){if(_0x16c8b4['length']>0x1||this['_footnotesDefinitions']&&_0x16c8b4['some'](_0x43acec=>_0x43acec!==this['_footnotesDefinitions'])){const _0x22a071=_0x26fdc4['createElement']('footnotesDefinitions',{}),_0x18445f=[];this['_footnotesDefinitions']&&_0x18445f['push'](this['_footnotesDefinitions']),_0x18445f['push'](..._0x16c8b4),_0x26fdc4['insert'](_0x22a071,_0x18445f[0x0],'before');for(const _0x2b6a68 of _0x18445f)_0x26fdc4['move'](_0x26fdc4['createRangeIn'](_0x2b6a68),_0x26fdc4['createPositionAt'](_0x22a071,'end')),_0x26fdc4['remove'](_0x2b6a68);this['_footnotesDefinitions']=_0x22a071,this['_updateFootnotesCounters'](_0x26fdc4),_0x7f22c7=!0x0;}else this['_footnotesDefinitions']=_0x16c8b4[0x0];}if(_0x34dcc9['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x313cde of this['_footnotes'])_0x26fdc4['remove'](_0x313cde['reference']),_0x7f22c7=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x7f22c7;}['_handleFootnoteDefinitionsChanges'](_0x5cc226,_0x1fc267){let _0x2ed2ed=!0x1;const _0x351736=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x222ea4,moved:_0x38b5a4}=this['_footnoteDefsTracker']['getChanges'](_0x1fc267);for(const _0x31ea1d of[..._0x38b5a4,..._0x222ea4]){const _0x21c31b=_0x31ea1d['getAttribute']('footnoteId'),_0x42fe88=this['getFootnote'](_0x21c31b);_0x42fe88&&(_0x42fe88['definition']=_0x31ea1d),_(_0x5cc226,_0x351736,_0x31ea1d)&&(_0x2ed2ed=!0x0);}return _0x2ed2ed;}['_handleFootnoteReferencesChanges'](_0x16fac8,_0x1fb7de){let _0x358bab=!0x1;const {removed:_0x48b981,inserted:_0x1c2478,moved:_0x10402e}=this['_footnoteRefsTracker']['getChanges'](_0x1fb7de);for(const _0x1011fd of _0x48b981)this['_handleRemoveFootnoteReferenceById'](_0x16fac8,_0x1011fd)&&(_0x358bab=!0x0);for(const _0x4c34d5 of _0x1c2478)this['_handleInsertedFootnoteReference'](_0x16fac8,_0x4c34d5)&&(_0x358bab=!0x0);for(const _0x22b303 of _0x10402e)this['_handleMovedFootnoteReference'](_0x16fac8,_0x22b303)&&(_0x358bab=!0x0);return _0x358bab;}['_handleFootnotesDefinitionsObjectSync'](_0x4daa85){if(!this['_footnotesDefinitions'])return!0x1;let _0x203981=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x1ad1f4=[];for(const _0x4a0dd2 of this['_footnotesDefinitions']['getChildren']()){const _0x3f2286=_0x4a0dd2['getAttribute']('footnoteId');this['getFootnote'](_0x3f2286)||(_0x1ad1f4['unshift'](_0x4a0dd2),_0x203981=!0x0);}for(const _0x11f54f of _0x1ad1f4)_0x4daa85['remove'](_0x11f54f);}const _0x366d2e=new Set(),_0x5cf32d=[];for(const _0x599edc of this['_footnotesDefinitions']['getChildren']()){const _0x31451a=_0x599edc['getAttribute']('footnoteId');_0x366d2e['has'](_0x31451a)?(_0x5cf32d['unshift'](_0x599edc),_0x203981=!0x0):_0x366d2e['add'](_0x31451a);}for(const _0x44f582 of _0x5cf32d)_0x4daa85['remove'](_0x44f582);return this['_footnotesDefinitions']['childCount']||(_0x4daa85['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x203981=!0x0),_0x203981;}['_handleInsertedFootnoteReference'](_0x44b919,_0x4661b5){if(this['_footnotes']['find'](_0x27b718=>_0x27b718['reference']===_0x4661b5))return!0x1;let _0x17767a=!0x1;const _0x9afb86=_0x4661b5['getAttribute']('footnoteId'),_0x33663e=this['_footnotes']['findIndex'](_0x3e8aad=>_0x3e8aad['id']===_0x9afb86);-0x1!==_0x33663e&&(_0x44b919['remove'](this['_footnotes'][_0x33663e]['reference']),this['_footnotes']['splice'](_0x33663e,0x1),_0x17767a=!0x0);let _0x14c317=this['_footnotesDefinitions']?function(_0x1eedee,_0x161fb4){for(const _0xf241d6 of _0x1eedee['getChildren']())if(_0xf241d6['getAttribute']('footnoteId')===_0x161fb4)return _0xf241d6;return null;}(this['_footnotesDefinitions'],_0x9afb86):null;_0x14c317||(_0x14c317=_0x44b919['createElement']('footnoteDefinition',{'footnoteId':_0x9afb86}),this['_footnotesDefinitions']&&(_0x44b919['insert'](_0x14c317,this['_footnotesDefinitions'],'end'),_0x17767a=!0x0));const _0x1602db={'id':_0x9afb86,'reference':_0x4661b5,'definition':_0x14c317},_0x7ce692=I(this['editor']['model'],this['_footnotes'],_0x4661b5);this['_footnotes']['splice'](_0x7ce692,0x0,_0x1602db);let _0x5a577c=_0x7ce692;return-0x1!==_0x33663e&&(_0x5a577c=Math['min'](_0x7ce692,_0x33663e)),this['_updateFootnotesCounters'](_0x44b919,_0x5a577c)&&(_0x17767a=!0x0),_0x17767a;}['_handleRemoveFootnoteReferenceById'](_0x1d0612,_0x33c148){const _0x1b2bf3=this['_footnotes']['findIndex'](_0x2dd045=>_0x2dd045['id']===_0x33c148);if(-0x1===_0x1b2bf3)return!0x1;let _0x35a36e=!0x1;const _0x3ddad4=this['_footnotes'][_0x1b2bf3];return'$graveyard'!==_0x3ddad4['definition']['root']['rootName']&&(_0x1d0612['remove'](_0x3ddad4['definition']),_0x35a36e=!0x0),this['_footnotes']['splice'](_0x1b2bf3,0x1),this['_updateFootnotesCounters'](_0x1d0612,_0x1b2bf3)&&(_0x35a36e=!0x0),_0x35a36e;}['_handleMovedFootnoteReference'](_0x4728a8,_0x3f857a){const _0x3d4493=_0x3f857a['getAttribute']('footnoteId'),_0x76a61c=this['_footnotes']['findIndex'](_0x137560=>_0x137560['id']===_0x3d4493),_0x3a853e=this['_footnotes'][_0x76a61c];let _0x576784=!0x1;_0x3a853e['reference']=_0x3f857a,this['_footnotes']['splice'](_0x76a61c,0x1);const _0x13da46=I(this['editor']['model'],this['_footnotes'],_0x3f857a);return this['_footnotes']['splice'](_0x13da46,0x0,_0x3a853e),this['_updateFootnotesCounters'](_0x4728a8,Math['min'](_0x76a61c,_0x13da46))&&(_0x576784=!0x0),_0x576784;}['_updateFootnoteRefCounter'](_0x27ba30,_0x81aff6){if(!this['_footnotesDefinitions'])return!0x1;const _0x4f4102=this['_footnotes'][_0x81aff6];let _0x9c64d5;return _0x9c64d5=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x4f4102,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x81aff6+0x1}):String(_0x81aff6+0x1),_0x4f4102['reference']['getAttribute']('footnoteCounter')!=_0x9c64d5&&(_0x27ba30['setAttribute']('footnoteCounter',_0x9c64d5,_0x4f4102['reference']),!0x0);}['_sortFootnoteDefinitions'](_0xb69e28){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x575c66,_0x4ad935){if(_0x575c66['length']!==_0x4ad935['length'])return!0x1;for(let _0x3d1bdf=0x0;_0x3d1bdf<_0x575c66['length'];_0x3d1bdf++)if(_0x575c66[_0x3d1bdf]!==_0x4ad935[_0x3d1bdf])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x37ffab=>_0x37ffab['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x57a459=>_0x57a459['getAttribute']('footnoteId'))))return!0x1;let _0x45e451=!0x1;for(let _0x41643f=0x0;_0x41643f<this['_footnotes']['length'];_0x41643f++){const _0x216a61=this['_footnotes'][_0x41643f],_0x3d6b62=_0xb69e28['createPositionBefore'](_0x216a61['definition']),_0x441826=_0xb69e28['createPositionAt'](this['_footnotesDefinitions'],_0x41643f);_0x3d6b62['isEqual'](_0x441826)||(_0xb69e28['move'](_0xb69e28['createRangeOn'](_0x216a61['definition']),_0x441826),_0x45e451=!0x0);}return _0x45e451;}['_ensureFootnotesReferencesHaveProperOrder'](_0x33a0a7){if(!this['_footnotes']['length'])return!0x1;const {model:_0x11dd10}=this['editor'];let _0x3fe1fb=!0x1;for(let _0x2e8a39=0x0;_0x2e8a39<this['_footnotes']['length']-0x1;_0x2e8a39++){const _0x37a79e=this['_footnotes'][_0x2e8a39],_0x36d1e7=this['_footnotes'][_0x2e8a39+0x1],_0x356642=_0x11dd10['createPositionBefore'](_0x37a79e['reference']),_0x5bdb8a=_0x11dd10['createPositionBefore'](_0x36d1e7['reference']);'after'===_0x356642['compareWith'](_0x5bdb8a)&&(this['_handleMovedFootnoteReference'](_0x33a0a7,_0x37a79e['reference']),_0x2e8a39=-0x1,_0x3fe1fb=!0x0);}return _0x3fe1fb;}}function _(_0x15dd1b,_0x53332b,_0x44f7af){if(_0x44f7af['childCount'])return!0x1;const _0x59b958=_0x53332b?'paragraph':'footnoteInlineContent';return _0x15dd1b['insert'](_0x15dd1b['createElement'](_0x59b958),_0x44f7af),!0x0;}function I(_0x1b2c02,_0x9b62d0,_0x5d542b){if(0x0===_0x9b62d0['length'])return 0x0;const _0x348ddd=_0x1b2c02['createPositionBefore'](_0x5d542b);for(let _0x45f720=0x0;_0x45f720<_0x9b62d0['length'];_0x45f720++){const _0xacfb4a=_0x9b62d0[_0x45f720],_0x4c40f2=_0x1b2c02['createPositionBefore'](_0xacfb4a['reference']);if('before'===_0x348ddd['compareWith'](_0x4c40f2))return _0x45f720;}const _0x343b1f=_0x5d542b['root'];let _0x2e6740=-0x1;for(let _0x26fed8=_0x9b62d0['length']-0x1;_0x26fed8>=0x0;_0x26fed8--)if(_0x9b62d0[_0x26fed8]['reference']['root']===_0x343b1f){_0x2e6740=_0x26fed8;break;}if(-0x1!==_0x2e6740)return _0x2e6740+0x1;const _0x43f54f=_0x1b2c02['document']['getRootNames'](),_0x40ca0c=_0x43f54f['indexOf'](_0x343b1f['rootName']),_0x4fc92b=_0x43f54f[_0x40ca0c+0x1];if(_0x4fc92b){for(let _0x25fab0=0x0;_0x25fab0<_0x9b62d0['length'];_0x25fab0++)if(_0x9b62d0[_0x25fab0]['reference']['root']['rootName']===_0x4fc92b)return _0x25fab0;}return _0x9b62d0['length'];}class m extends _0x3dc3f2{['refresh'](){const _0x55f9ff=this['editor']['model']['document']['selection'],_0x309d00=this['_getPositionToInsertFootnote'](_0x55f9ff);this['isEnabled']=!!_0x309d00;}['execute'](_0x5a6772){const {editor:_0x202d96}=this,{model:_0x248ec7}=_0x202d96,{selection:_0x20aa41}=_0x248ec7['document'],_0x20b500=this['_getPositionToInsertFootnote'](_0x20aa41);if(!_0x20b500)return;const _0x444f48=_0x202d96['plugins']['get']('FootnotesEditing'),_0x29796d=_0x5a6772?.['footnoteId']??_0x34e952();!function(_0x543319){return'string'==typeof _0x543319&&_0x543319['length']>0x0&&!/\s/['test'](_0x543319)&&!/^\d/['test'](_0x543319);}(_0x29796d)?_0x25ca70('insert-footnote-command-executed-with-invalid-id'):(_0x248ec7['change'](_0x45e6be=>{const _0x4a6118=_0x45e6be['createElement']('footnoteRef',{'footnoteId':_0x29796d});_0x248ec7['insertObject'](_0x4a6118,_0x20b500,null);}),_0x444f48['_moveSelectionToFootnoteDefinition'](_0x29796d));}['_getPositionToInsertFootnote'](_0x55839b){const {model:_0x25c2e0}=this['editor'],{schema:_0x163095}=_0x25c2e0,_0x378048=_0x55839b['getFirstRange']();for(const _0x13a6de of _0x378048['getItems']())if(_0x163095['isBlock'](_0x13a6de)||_0x163095['isObject'](_0x13a6de))return null;const _0x231217=_0x378048['end'];return _0x163095['checkChild'](_0x231217,'footnoteRef')?_0x231217:null;}}class r extends _0x177f79{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1efacc}=this;_0x1efacc['config']['define']('footnotes.multiBlock',!0x0),_0x1efacc['commands']['add']('insertFootnote',new m(_0x1efacc)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x437992){const _0x1d377e=_0x1dc436([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]),_0x38b995=0x47a28506,_0x455d6a=0x47a5fcee^_0x38b995,_0x11f705=window[_0x1dc436([0x44,0x61,0x74,0x65])][_0x1dc436([0x6e,0x6f,0x77])](),_0x2cb775=_0x437992[_0x1dc436([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x407bbf=new window[(_0x1dc436([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b8491=>{_0x2cb775[_0x1dc436([0x6f,0x6e,0x63,0x65])](_0x1dc436([0x72,0x65,0x61,0x64,0x79]),_0x4b8491);}),_0x3cdaa4={[_0x1dc436([0x6b,0x74,0x79])]:_0x1dc436([0x45,0x43]),[_0x1dc436([0x75,0x73,0x65])]:_0x1dc436([0x73,0x69,0x67]),[_0x1dc436([0x63,0x72,0x76])]:_0x1dc436([0x50,0x2d,0x32,0x35,0x36]),[_0x1dc436([0x78])]:_0x1dc436([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]),[_0x1dc436([0x79])]:_0x1dc436([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]),[_0x1dc436([0x61,0x6c,0x67])]:_0x1dc436([0x45,0x53,0x32,0x35,0x36])},_0x461fa9=_0x2cb775[_0x1dc436([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1dc436([0x67,0x65,0x74])](_0x1dc436([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x24f316(){let _0x2eee66,_0x127051=null,_0x2ad256=null;try{if(_0x461fa9==_0x1dc436([0x47,0x50,0x4c]))return _0x1dc436([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2eee66=_0x3ac746(),!_0x2eee66)return _0x1dc436([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2eee66[_0x1dc436([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ad256=_0x29bbd3(_0x2eee66[_0x1dc436([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2eee66[_0x1dc436([0x6a,0x74,0x69])])),await _0x21936f()?_0x4c957e()?_0x2e0e39()?_0x1dc436([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x51c9dd()?(_0x2eee66[_0x1dc436([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1dc436([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x127051=_0x180e0(_0x1dc436([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2eee66[_0x1dc436([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1dc436([0x74,0x72,0x69,0x61,0x6c])&&(_0x127051=_0x180e0(_0x1dc436([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x9bbbe6()):_0x1dc436([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1dc436([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1dc436([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1dc436([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e0e39(){const _0x17cd33=[_0x1dc436([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1dc436([0x74,0x72,0x69,0x61,0x6c])][_0x1dc436([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eee66[_0x1dc436([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x11f705/0x3e8:0xe10*_0x455d6a;return _0x2eee66[_0x1dc436([0x65,0x78,0x70])]<_0x17cd33;}function _0x4c957e(){const _0x5cea95=_0x2eee66[_0x1dc436([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5cea95&&(!!_0x5cea95[_0x1dc436([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dc436([0x2a]))||!!_0x5cea95[_0x1dc436([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dc436([0x46,0x4f,0x4f])));}function _0x51c9dd(){const _0x1bfeb1=_0x2eee66[_0x1dc436([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1bfeb1||0x0==_0x1bfeb1[_0x1dc436([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x40d261}=new URL(window[_0x1dc436([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1bfeb1[_0x1dc436([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40d261))return!0x0;const _0x22c5f0=_0x40d261[_0x1dc436([0x73,0x70,0x6c,0x69,0x74])](_0x1dc436([0x2e]));return _0x1bfeb1[_0x1dc436([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39da01=>_0x39da01[_0x1dc436([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dc436([0x2a])))[_0x1dc436([0x6d,0x61,0x70])](_0x4126b8=>_0x4126b8[_0x1dc436([0x73,0x70,0x6c,0x69,0x74])](_0x1dc436([0x2e])))[_0x1dc436([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5bdc2f=>_0x5bdc2f[_0x1dc436([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x22c5f0[_0x1dc436([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1dc436([0x6d,0x61,0x70])](_0x34cf2c=>Array(_0x22c5f0[_0x1dc436([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x34cf2c[_0x1dc436([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1dc436([0x66,0x69,0x6c,0x6c])](_0x34cf2c[0x0]===_0x1dc436([0x2a])?_0x1dc436([0x2a]):'')[_0x1dc436([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x34cf2c))[_0x1dc436([0x73,0x6f,0x6d,0x65])](_0x3a6a0d=>_0x22c5f0[_0x1dc436([0x65,0x76,0x65,0x72,0x79])]((_0x17abca,_0x45464d)=>_0x3a6a0d[_0x45464d]===_0x17abca||_0x3a6a0d[_0x45464d]===_0x1dc436([0x2a])));}function _0x9bbbe6(){return _0x127051&&_0x2ad256?new window[(_0x1dc436([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55f5d0,_0x584bd2)=>{_0x127051[_0x1dc436([0x74,0x68,0x65,0x6e])](_0x55f5d0,_0x584bd2),_0x2ad256[_0x1dc436([0x74,0x68,0x65,0x6e])](_0x5ca8bb=>{_0x5ca8bb!=_0x1dc436([0x56,0x61,0x6c,0x69,0x64])&&_0x55f5d0(_0x5ca8bb);},_0x584bd2);}):_0x127051||_0x2ad256||_0x1dc436([0x56,0x61,0x6c,0x69,0x64]);}}function _0x29bbd3(_0x13b0fc,_0x204375){return new window[(_0x1dc436([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d079c=>{if(_0x295dca())return _0x3d079c(_0x1dc436([0x56,0x61,0x6c,0x69,0x64]));_0xf0df15(),_0x2cb775[_0x1dc436([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1dc436([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x164ce7=!0x1;const _0x558d33=_0x34e952();function _0x2c9473(_0x228a6d){return!!_0x228a6d&&(typeof _0x228a6d===_0x1dc436([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x228a6d===_0x1dc436([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x228a6d[_0x1dc436([0x74,0x68,0x65,0x6e])]===_0x1dc436([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x228a6d[_0x1dc436([0x63,0x61,0x74,0x63,0x68])]===_0x1dc436([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2fb985(_0x3af2d5){_0x538a57(_0x3af2d5)[_0x1dc436([0x74,0x68,0x65,0x6e])](_0x56ac5e=>{if(!_0x56ac5e||_0x56ac5e[_0x1dc436([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1dc436([0x6f,0x6b]))return _0x1dc436([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x420e75(_0x3258e6(_0x558d33+_0x204375))!=_0x56ac5e[_0x1dc436([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1dc436([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1dc436([0x56,0x61,0x6c,0x69,0x64]);})[_0x1dc436([0x74,0x68,0x65,0x6e])](_0x2b0bd4=>(_0x44377b(),_0x2b0bd4),()=>{const _0x551286=_0x44e07f();return null==_0x551286?(_0x44377b(),_0x1dc436([0x56,0x61,0x6c,0x69,0x64])):_0x1dc436(_0x11f705-_0x551286>(0x63ae0106^_0x38b995)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1dc436([0x74,0x68,0x65,0x6e])](_0x3d079c)[_0x1dc436([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3d079c(_0x1dc436([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ebe52=0x47946b86^_0x38b995;function _0x44377b(){const _0x1472c2=_0x1dc436([0x6c,0x6c,0x63,0x74,0x2d])+_0x420e75(_0x3258e6(_0x13b0fc)),_0x50c945=_0x31f545(_0x420e75(window[_0x1dc436([0x4d,0x61,0x74,0x68])][_0x1dc436([0x63,0x65,0x69,0x6c])](_0x11f705/_0x5ebe52)));window[_0x1dc436([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1dc436([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1472c2,_0x50c945);}function _0x44e07f(){const _0xf51d41=_0x1dc436([0x6c,0x6c,0x63,0x74,0x2d])+_0x420e75(_0x3258e6(_0x13b0fc)),_0x30e351=window[_0x1dc436([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1dc436([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf51d41);return _0x30e351?window[_0x1dc436([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31f545(_0x30e351),0x10)*_0x5ebe52:null;}function _0x538a57(_0x5057e3){return new window[(_0x1dc436([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x529fc8,_0x2d2692)=>{_0x5057e3[_0x1dc436([0x74,0x68,0x65,0x6e])](_0x529fc8,_0x2d2692),window[_0x1dc436([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d2692,0x47a351c6^_0x38b995);});}}_0x2cb775[_0x1dc436([0x6f,0x6e])](_0x1dc436([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1588af,_0x522650)=>{if(_0x522650[0x0]!=_0x13b0fc)return _0x3d079c(_0x1dc436([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x522650[0x1]={..._0x522650[0x1],[_0x1dc436([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x558d33};},{[_0x1dc436([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1dc436([0x68,0x69,0x67,0x68])}),_0x2cb775[_0x1dc436([0x6f,0x6e])](_0x1dc436([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x607495=>{_0x2c9473(_0x607495[_0x1dc436([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x164ce7=!0x0,_0x2fb985(_0x607495[_0x1dc436([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1dc436([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1dc436([0x6c,0x6f,0x77])}),_0x407bbf[_0x1dc436([0x74,0x68,0x65,0x6e])](()=>{_0x164ce7||_0x3d079c(_0x1dc436([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x295dca(){return _0x2cb775[_0x1dc436([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1dc436([0x76,0x69,0x65,0x77])][_0x1dc436([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1dc436([0x61,0x75,0x74,0x6f]);}function _0xf0df15(){_0x2cb775[_0x1dc436([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1dc436([0x76,0x69,0x65,0x77])][_0x1dc436([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1dc436([0x61,0x75,0x74,0x6f]);}}function _0x180e0(_0x307218){const _0x1e9552=[new window[(_0x1dc436([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5790e6=>setTimeout(_0x5790e6,0x47abbbca^_0x38b995)),_0x407bbf[_0x1dc436([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1dc436([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b19b3=>{let _0x2f68b8=0x0;_0x2cb775[_0x1dc436([0x6d,0x6f,0x64,0x65,0x6c])][_0x1dc436([0x6f,0x6e])](_0x1dc436([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x876ed1,_0x12f783)=>{_0x12f783[0x0][_0x1dc436([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2f68b8++,_0x2f68b8==(0x47a284fe^_0x38b995)&&(_0x3b19b3(),_0x876ed1[_0x1dc436([0x6f,0x66,0x66])]());});}))];return window[_0x1dc436([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1dc436([0x72,0x61,0x63,0x65])](_0x1e9552)[_0x1dc436([0x74,0x68,0x65,0x6e])](()=>_0x307218);}async function _0x54ae91(){await _0x407bbf,_0x2cb775[_0x1dc436([0x6d,0x6f,0x64,0x65,0x6c])][_0x1dc436([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x8b27d2,_0x2cb775[_0x1dc436([0x6d,0x6f,0x64,0x65,0x6c])][_0x1dc436([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x8b27d2,_0x2cb775[_0x1dc436([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1dc436([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xb59601(_0x403e1d){const _0x5d3cc7=_0x30dd54();_0x2cb775[_0x5d3cc7]=_0x1dc436([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x403e1d,_0x403e1d!=_0x1dc436([0x56,0x61,0x6c,0x69,0x64])&&_0x54ae91();}function _0x30dd54(){const _0x4f0607=window[_0x1dc436([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1dc436([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1dc436([0x6e,0x6f,0x77])]())[_0x1dc436([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1dc436([0x2e]),'');let _0x3a73bd=_0x1dc436([0x75]);for(let _0x3f3f93=0x0;_0x3f3f93<_0x4f0607[_0x1dc436([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f3f93+=0x2){let _0x44fd55=window[_0x1dc436([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f0607[_0x1dc436([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f3f93,_0x3f3f93+0x2));_0x44fd55>=_0x1d377e[_0x1dc436([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x44fd55-=_0x1d377e[_0x1dc436([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3a73bd+=_0x1d377e[_0x44fd55];}return _0x3a73bd;}function _0x3ac746(){const _0x3ff351=_0x461fa9[_0x1dc436([0x73,0x70,0x6c,0x69,0x74])](_0x1dc436([0x2e]));if(0x3!=_0x3ff351[_0x1dc436([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x281f65(_0x3ff351[0x1]);function _0x281f65(_0x5eee95){const _0x1b889d=_0x33df4a(_0x5eee95);return _0x1b889d&&_0x263174()?_0x1b889d:null;function _0x263174(){const _0x317461=_0x1b889d[_0x1dc436([0x6a,0x74,0x69])],_0x2b5d8c=window[_0x1dc436([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x317461[_0x1dc436([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x317461[_0x1dc436([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x625b59={..._0x1b889d,[_0x1dc436([0x6a,0x74,0x69])]:_0x317461[_0x1dc436([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x317461[_0x1dc436([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x625b59[_0x1dc436([0x76,0x63])],_0x3258e6(_0x625b59)==_0x2b5d8c;}}}async function _0x21936f(){let _0x3b8a87=!0x0;try{const _0x1e1080=_0x461fa9[_0x1dc436([0x73,0x70,0x6c,0x69,0x74])](_0x1dc436([0x2e])),[_0x21ec84,_0x4ec682,_0x16b722]=_0x1e1080;return _0x3ba4c5(_0x21ec84),await _0x3ec6c3(_0x21ec84,_0x4ec682,_0x16b722),_0x3b8a87;}catch{return!0x1;}function _0x3ba4c5(_0x47b9b4){const _0x1329a4=_0x33df4a(_0x47b9b4);_0x1329a4&&_0x1329a4[_0x1dc436([0x61,0x6c,0x67])]==_0x1dc436([0x45,0x53,0x32,0x35,0x36])||(_0x3b8a87=!0x1);}async function _0x3ec6c3(_0x7b59c,_0x222e89,_0x301d92){const _0x3adf27=window[_0x1dc436([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1dc436([0x66,0x72,0x6f,0x6d])](_0x3ace64(_0x301d92),_0xb3fda7=>_0xb3fda7[_0x1dc436([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d3f15=new window[(_0x1dc436([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1dc436([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x7b59c+_0x1dc436([0x2e])+_0x222e89),_0x4abc49=window[_0x1dc436([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1dc436([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4abc49)return;const _0x363de9=await _0x4abc49[_0x1dc436([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1dc436([0x6a,0x77,0x6b]),_0x3cdaa4,{[_0x1dc436([0x6e,0x61,0x6d,0x65])]:_0x1dc436([0x45,0x43,0x44,0x53,0x41]),[_0x1dc436([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1dc436([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1dc436([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4abc49[_0x1dc436([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1dc436([0x6e,0x61,0x6d,0x65])]:_0x1dc436([0x45,0x43,0x44,0x53,0x41]),[_0x1dc436([0x68,0x61,0x73,0x68])]:{[_0x1dc436([0x6e,0x61,0x6d,0x65])]:_0x1dc436([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x363de9,_0x3adf27,_0x5d3f15)||(_0x3b8a87=!0x1);}}function _0x33df4a(_0x2c0b86){return _0x2c0b86[_0x1dc436([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1dc436([0x65,0x79]))?JSON[_0x1dc436([0x70,0x61,0x72,0x73,0x65])](_0x3ace64(_0x2c0b86)):null;}function _0x3ace64(_0x210a93){return window[_0x1dc436([0x61,0x74,0x6f,0x62])](_0x210a93[_0x1dc436([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1dc436([0x2b]))[_0x1dc436([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1dc436([0x2f])));}function _0x3258e6(_0x1e9f0a){let _0x77a0b2=0x1505;function _0x5aa8d1(_0x204018){for(let _0x5952bf=0x0;_0x5952bf<_0x204018[_0x1dc436([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5952bf++){const _0x2fc8e7=_0x204018[_0x1dc436([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5952bf);_0x77a0b2=(_0x77a0b2<<0x5)+_0x77a0b2+_0x2fc8e7,_0x77a0b2&=_0x77a0b2;}}function _0x3be6e3(_0x20739f){Array[_0x1dc436([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x20739f)?_0x20739f[_0x1dc436([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3be6e3):_0x20739f&&typeof _0x20739f==_0x1dc436([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1dc436([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x20739f)[_0x1dc436([0x73,0x6f,0x72,0x74])]()[_0x1dc436([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2eced6,_0x4a1e74])=>{_0x5aa8d1(_0x2eced6),_0x3be6e3(_0x4a1e74);}):_0x5aa8d1(window[_0x1dc436([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x20739f));}return _0x3be6e3(_0x1e9f0a),_0x77a0b2>>>0x0;}function _0x420e75(_0x1f15f3){return _0x1f15f3[_0x1dc436([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1dc436([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1dc436([0x30]));}function _0x31f545(_0x4f9df0){return _0x4f9df0[_0x1dc436([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1dc436([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1dc436([0x6a,0x6f,0x69,0x6e])]('');}function _0x8b27d2(){}function _0x1dc436(_0x21a0be){return _0x21a0be['map'](_0x3e1edb=>String['fromCharCode'](_0x3e1edb))['join']('');}_0xb59601(await _0x24f316());}(this);}['_moveSelectionToFootnoteDefinition'](_0x49bcad){const {plugins:_0x323bac,editing:_0x4c8536,model:_0x1c3d41}=this['editor'],_0x1a19b4=_0x323bac['get'](c)['getFootnote'](_0x49bcad);return!!_0x1a19b4&&(_0x1c3d41['change'](_0x34ef46=>{_0x34ef46['setSelection'](_0x34ef46['createPositionAt'](_0x1a19b4['definition'],'end'));}),_0x4c8536['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0xd13293){const {plugins:_0x28d28b,editing:_0x379b6e,model:_0xbe28ab}=this['editor'],_0x475c30=_0x28d28b['get'](c)['getFootnote'](_0xd13293);return!!_0x475c30&&(_0xbe28ab['change'](_0x228a7b=>{_0x228a7b['setSelection'](_0x475c30['reference'],'on');}),_0x379b6e['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x57b46b}=this['editor']['model'],_0x52aade=this['editor']['config']['get']('footnotes.multiBlock');_0x57b46b['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x57b46b['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x57b46b['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x52aade?_0x57b46b['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x57b46b['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x57b46b['addChildCheck'](_0x5ac282=>{for(const _0x306819 of _0x5ac282)if('footnoteDefinition'===_0x306819['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x4d8200}=this,{conversion:_0x44010e,editing:_0x2ba773}=_0x4d8200,{t:t}=_0x4d8200['locale'];_0x44010e['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x344a28,{writer:_0x592139,consumable:_0xaa5151})=>{const _0x2207bb=_0x344a28['getChild'](0x0);if(!_0x2207bb||!_0x2207bb['is']('element','a'))return null;const _0x38d0b5=_0x2207bb['getAttribute']('href')||'';if(!_0x38d0b5['startsWith']('#'))return null;const _0x2dfc35=_0x38d0b5['replace'](/^#/,'');if(!_0x2dfc35)return null;_0xaa5151['consume'](_0x2207bb,{'name':!0x0,'attributes':['href']});for(const {item:_0x433465}of _0x2ba773['view']['createRangeIn'](_0x2207bb))_0x433465['is']('$textProxy')?_0xaa5151['consume'](_0x433465['textNode'],{'name':!0x0}):_0x433465['is']('element')&&_0xaa5151['consume'](_0x433465,{'name':!0x0});return _0x592139['createElement']('footnoteRef',{'footnoteId':_0x2dfc35});}}),_0x44010e['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x488eac,{writer:_0x39bd02})=>D(_0x488eac,_0x39bd02)}),_0x44010e['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xfc2a40,{writer:_0x1d0739})=>{const _0x2dbf4c=_0xfc2a40['getAttribute']('footnoteCounter');return _0x5cffc6(D(_0xfc2a40,_0x1d0739),_0x1d0739,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2dbf4c)});}});}['_defineDefinitionsConverters'](){const {editor:_0x42bcf2}=this,{t:t}=_0x42bcf2['locale'],{conversion:_0x5e13f1}=_0x42bcf2;_0x5e13f1['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5e13f1['for']('upcast')['add'](_0x1fffa1=>{_0x1fffa1['on']('element:ol',(_0x25b35b,_0x3f9378,_0xc1ff80)=>{const _0x532ea6=_0x3f9378['viewItem'];if(!_0x532ea6['hasClass']('footnotes-list')||!_0x3f9378['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0xc1ff80['consumable']['consume'](_0x532ea6,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x52809d,modelCursor:_0x17dd67}=_0xc1ff80['convertChildren'](_0x3f9378['viewItem'],_0x3f9378['modelCursor']);_0x3f9378['modelRange']=_0x52809d,_0x3f9378['modelCursor']=_0x17dd67;}),_0x1fffa1['on']('element:hr',(_0x90e007,_0x5d2586,_0x2cdc94)=>{const _0xe656e3=_0x5d2586['viewItem'];_0xe656e3['hasClass']('footnotes-divider')&&_0x5d2586['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x2cdc94['consumable']['consume'](_0xe656e3,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5e13f1['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x26f196,{writer:_0x317b14})=>v(_0x317b14)}),_0x5e13f1['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2638bc,{writer:_0x522b03})=>{const _0x2d95c4=v(_0x522b03,{'data-footnotes-list-label':t('Footnotes')}),_0x322877=_0x5cffc6(_0x2d95c4,_0x522b03,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x522b03['setCustomProperty']('footnotesDefinitions',!0x0,_0x322877),_0x322877;}});}['_defineDefinitionConverters'](){const {editor:_0x4d190}=this,{conversion:_0x129bc3,locale:_0x1d71d5}=_0x4d190,_0x18251a=_0x4d190['config']['get']('footnotes.multiBlock');_0x129bc3['for']('upcast')['add'](_0x4b145d=>{_0x4b145d['on']('element:li',(_0x3bdbca,_0x4fb5d3,_0x59f573)=>{const _0x32eccd=_0x4fb5d3['viewItem'];if(!_0x32eccd['hasClass']('footnote-definition')||!_0x32eccd['getAttribute']('id'))return;const _0x5da79f=_0x32eccd['parent'];if(!_0x5da79f['is']('element','ol')||!_0x5da79f['hasClass']('footnotes-list'))return;if(!_0x59f573['consumable']['test'](_0x32eccd,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x20ae69=_0x59f573['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x32eccd['getAttribute']('id')});if(!_0x59f573['safeInsert'](_0x20ae69,_0x4fb5d3['modelCursor']))return;_0x59f573['consumable']['consume'](_0x32eccd,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x34b736=Array['from'](_0x32eccd['getChildren']())['find'](_0x145785=>_0x145785['is']('element')&&_0x145785['hasClass']('footnote-content'));for(const _0x36bd79 of _0x32eccd['getChildren']())_0x36bd79['is']('element')&&(_0x59f573['consumable']['consume'](_0x36bd79,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x59f573['consumable']['consume'](_0x36bd79,{'name':!0x0,'classes':'footnote-content'}));if(_0x34b736){if(_0x18251a)_0x59f573['convertChildren'](_0x34b736,_0x20ae69);else{const _0x38891b=_0x59f573['writer']['createElement']('footnoteInlineContent');_0x59f573['writer']['insert'](_0x38891b,_0x20ae69),_0x59f573['convertChildren'](_0x34b736,_0x38891b);}}_0x59f573['updateConversionResult'](_0x20ae69,_0x4fb5d3);});}),_0x129bc3['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x50d464,{writer:_0x24157e})=>b(_0x50d464,_0x24157e,_0x1d71d5,{'dataPipeline':!0x0})}),_0x129bc3['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x118ce6,{writer:_0xbc9a0f})=>b(_0x118ce6,_0xbc9a0f,_0x1d71d5)});}['_defineBogusParagraphConverters'](){const {editor:_0x14791a}=this,{conversion:_0x2980ec}=_0x14791a;_0x14791a['config']['get']('footnotes.multiBlock')?(_0x2980ec['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x2980ec['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x14791a['model']['document'],'change:data',()=>{!function(_0xbe9c21,_0x3683dd){const _0x24422a=_0xbe9c21['document']['differ'],_0x15e483=new Set();for(const _0x3b4af1 of _0x24422a['getChanges']()){const _0x2c6971='attribute'==_0x3b4af1['type']?_0x3b4af1['range']['start']['parent']:_0x3b4af1['position']['parent'];_0x2c6971['is']('element','footnoteDefinition')&&_0x15e483['add'](_0x2c6971);}for(const _0x43a0f2 of _0x15e483['values']()){const _0x1a9206=Array['from'](_0x43a0f2['getChildren']())['filter'](_0x4b9e97=>g(_0x4b9e97,_0x3683dd['mapper']));for(const _0x3d4ea7 of _0x1a9206)_0x3683dd['reconvertItem'](_0x3d4ea7);}}(_0x14791a['model'],_0x14791a['editing']);})):(_0x2980ec['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x2980ec['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3a44ff,{writer:_0xed64ac})=>{const _0x5c6345=_0xed64ac['createContainerElement']('span');return _0xed64ac['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5c6345),_0x5c6345;}}));}['_defineKeyboardHandlers'](){const {editor:_0x7bdace}=this,{editing:_0x103cd4,t:t}=_0x7bdace,_0x4d42ac=_0x7bdace['model']['document']['selection'];_0x7bdace['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x7bdace['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x103cd4['view']['document'],'enter',(_0x4f48bf,_0x1c2f03)=>{const _0x524d80=function(_0x4e33d3){const _0x1bfe93=_0x4e33d3['getSelectedElement']();if(_0x1bfe93?.['is']('element','footnoteRef'))return _0x1bfe93;return null;}(_0x4d42ac);if(_0x524d80){const _0x2cc919=_0x524d80['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x2cc919),_0x1c2f03['preventDefault'](),_0x4f48bf['stop']();}},{'context':_0x1be87d});}['_defineClickHandlers'](){const {editor:_0x26f7f1}=this,{editing:_0x86e02b}=_0x26f7f1;_0x26f7f1['editing']['view']['addObserver'](_0x23ce54),_0x26f7f1['editing']['view']['addObserver'](_0x27fd85);let _0x237acb=!0x1;this['listenTo'](_0x86e02b['view']['document'],'pointerdown',(_0x2132cc,_0x29674b)=>{const {target:_0x2d44ab}=_0x29674b,_0x2bd432=_0x86e02b['view']['document']['selection'];_0x237acb=!!(_0x2d44ab?.['is']('element','a')&&_0x2d44ab['parent']?.['is']('element','sup')&&_0x2d44ab['parent']['hasClass']('footnote'))&&_0x2bd432['getSelectedElement']()===_0x2d44ab['parent'];},{'priority':'high'}),this['listenTo'](_0x86e02b['view']['document'],'click',(_0x6822f3,_0x24e2b6)=>{const {target:_0x1bc144}=_0x24e2b6;if(!_0x1bc144?.['is']('element','a'))return;if(_0x1bc144['parent']?.['is']('element','sup')&&_0x1bc144['parent']['hasClass']('footnote')&&!_0x237acb)return void _0x24e2b6['preventDefault']();let _0x3c455c=_0x1bc144['getAttribute']('href');if(!_0x3c455c?.['startsWith']('#'))return;_0x3c455c=_0x3c455c['slice'](0x1);let _0x16a350=!0x1;(_0x3c455c['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x3c455c['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x3c455c))&&(_0x16a350=!0x0),_0x16a350&&(_0x24e2b6['preventDefault'](),_0x6822f3['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x5e0719}={}){return(_0x3ce698,{writer:_0x2a39b3})=>{if(!p(_0x3ce698))return null;if(!_0x5e0719)return _0x2a39b3['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4b614f=_0x2a39b3['createContainerElement']('p');return _0x2a39b3['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4b614f),_0x4b614f;};}function p(_0x43eb05){const {parent:_0x13f350}=_0x43eb05;if(!_0x13f350?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x13f350['childCount'])return!0x1;for(const _0x1ce181 of _0x43eb05['getAttributeKeys']())if(!_0x1ce181['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x1ce181)return!0x1;return!0x0;}function g(_0x522ace,_0x4fdee8){if(!_0x522ace['is']('element','paragraph'))return!0x1;const _0x30de83=_0x4fdee8['toViewElement'](_0x522ace);return!!_0x30de83&&p(_0x522ace)!==_0x30de83['is']('element','span');}function $(_0xed692b){return _0x1be87d(_0xed692b)&&_0xed692b['is']('containerElement')&&!!_0xed692b['getCustomProperty']('footnotesDefinitions');}function v(_0x18e44d,_0xfd347f={}){const _0x3fb509=_0x18e44d['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x39cf89=_0x18e44d['createContainerElement']('ol',{'class':'footnotes-list'},_0x18e44d['createSlot']());return _0x18e44d['createContainerElement']('div',{'class':'footnotes',..._0xfd347f},[_0x3fb509,_0x39cf89]);}function D(_0x158693,_0xbaea3c){const _0xf8a600=_0x158693['getAttribute']('footnoteId'),_0x25ec3c=_0x158693['getAttribute']('footnoteCounter'),_0x2abb4b=_0xbaea3c['createUIElement']('a',{'href':'#'+_0xf8a600},function(_0x5d49d7){const _0x4a6f5d=this['toDomElement'](_0x5d49d7);return _0x4a6f5d['textContent']=_0x25ec3c,_0x4a6f5d;}),_0x3f55a0=_0xbaea3c['createContainerElement']('sup',{'id':'ref-'+_0xf8a600,'class':'footnote'},[_0x2abb4b]);return _0x3f55a0['getFillerOffset']=()=>null,_0x3f55a0;}function b(_0x4e214e,_0x19af77,_0x13bc05,{dataPipeline:_0x25e1e6}={}){const {t:t}=_0x13bc05,_0x24c0fb=_0x4e214e['getAttribute']('footnoteId'),_0x53703a=_0x19af77['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x24c0fb},function(_0x2ebae6){const _0x151d1a=this['toDomElement'](_0x2ebae6);return _0x151d1a['innerText']='^',_0x151d1a;}),_0x5ec3a3=_0x25e1e6?_0x19af77['createContainerElement']('div',{'class':'footnote-content'}):_0xa61a9(_0x19af77['createEditableElement']('div',{'class':'footnote-content'}),_0x19af77,{'label':t('Footnote\x20content.')});return _0x19af77['insert'](_0x19af77['createPositionAt'](_0x5ec3a3,0x0),_0x19af77['createSlot']()),_0x19af77['createContainerElement']('li',{'class':'footnote-definition','id':_0x24c0fb},[_0x53703a,_0x5ec3a3]);}class e extends _0x177f79{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x225bd2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x141de7}=this,{plugins:_0x3ece2b,model:_0x330a98}=_0x141de7,_0x18b09c=_0x3ece2b['get'](_0x225bd2),_0xeaeb31=_0x3ece2b['get'](c);this['listenTo'](_0x18b09c,'outputTransformation',(_0xea372b,_0x299d98)=>{const _0x33f9aa=f(_0x330a98['createRangeIn'](_0x299d98['content']));if(!_0x33f9aa['length'])return;const _0x34a0a0=_0xeaeb31['getFootnotes'](),_0x13e56e=_0x33f9aa['reduce']((_0x48a058,_0x18701f)=>{const _0xe4b872=_0x34a0a0['find'](_0x167a3f=>_0x167a3f['id']===_0x18701f);if(_0xe4b872){const _0x4809a4=_0x141de7['data']['toView'](_0xe4b872['definition'],{'isClipboardPipeline':!0x0}),_0x31e361=_0x141de7['data']['htmlProcessor']['toData'](_0x4809a4);_0x48a058[_0xe4b872['id']]=_0x31e361;}return _0x48a058;},Object['create'](null));_0x299d98['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x13e56e));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x26fce9}=this,{model:_0x5a0657,plugins:_0x118d36}=_0x26fce9,{view:_0x1c6d60}=_0x26fce9['editing'],_0x4eb790=_0x118d36['get'](_0x225bd2),_0xda6035=_0x118d36['get'](c);let _0x1c6634=null;this['listenTo'](_0x1c6d60['document'],'clipboardInput',(_0x2e7960,_0x5291e8)=>{const _0x3da399=_0x5291e8['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x1c6634=_0x3da399?JSON['parse'](_0x3da399):null;}),this['listenTo'](_0x4eb790,'contentInsertion',(_0x197fd6,_0x4d37d7)=>{const _0x7b4779=_0x4d37d7['sourceEditorId']===this['editor']['id'];_0x7b4779&&'drop'===_0x4d37d7['method']||_0x5a0657['change'](_0x2f6e2b=>{let _0x4e5859=_0xda6035['getFootnotesDefinitionsObjectElement']();const _0x1de354=!!_0x4e5859&&Array['from'](_0x5a0657['document']['selection']['getSelectedBlocks']())['includes'](_0x4e5859);if((_0x4e5859&&!_0x1de354||!_0x4e5859&&!_0x1c6634)&&function(_0x3f31c8,_0x42bb92){const _0x29e424=[];for(const {item:_0x3473a9}of _0x3f31c8['createRangeIn'](_0x42bb92))_0x3473a9['is']('element','footnotesDefinitions')&&_0x29e424['push'](_0x3473a9);for(const _0x1b42da of _0x29e424)_0x3f31c8['remove'](_0x1b42da);}(_0x2f6e2b,_0x4d37d7['content']),!_0x1c6634)return;const {selection:_0x152c93}=_0x5a0657['document'],_0x3ae0d7=_0x152c93['getFirstRange']()['root'];_0x4e5859&&!_0x1de354||(_0x4e5859=function(_0x34b190,_0x21a8d1){for(const {item:_0x4b6b4d}of _0x34b190['createRangeIn'](_0x21a8d1))if(_0x4b6b4d['is']('element','footnotesDefinitions'))return _0x4b6b4d;return null;}(_0x2f6e2b,_0x4d37d7['content']),_0x4e5859||=_0xda6035['_insertEmptyFootnotesDefinitionsContainer'](_0x2f6e2b,_0x3ae0d7));const _0x4496cc=Array['from'](_0x152c93['getRanges']())['flatMap'](f),_0x43453e=function(_0x4bddaa,_0x3c4f98,_0x1a4e7c){const _0x9a13c=Object['create'](null);for(const {item:_0x526bf6}of _0x4bddaa['createRangeIn'](_0x3c4f98))if(_0x526bf6['is']('element','footnoteRef')){const _0xec407a=_0x526bf6['getAttribute']('footnoteId');if(!_0x1a4e7c(_0xec407a))continue;_0x9a13c[_0xec407a]||(_0x9a13c[_0xec407a]=_0x34e952()),_0x4bddaa['setAttribute']('footnoteId',_0x9a13c[_0xec407a],_0x526bf6);}return _0x9a13c;}(_0x2f6e2b,_0x4d37d7['content'],_0xeb4e1f=>{if(!_0x7b4779)return!0x0;return!!_0xda6035['getFootnote'](_0xeb4e1f)&&!_0x4496cc['includes'](_0xeb4e1f);});for(const [_0x4ce92b,_0x147e82]of Object['entries'](_0x1c6634)){const _0x3f92ec=_0x43453e[_0x4ce92b]||_0x4ce92b,_0x3489d8=_0x2f6e2b['createElement']('footnoteDefinition',{'footnoteId':_0x3f92ec}),_0xec9ca8=_0x26fce9['data']['htmlProcessor']['toView'](_0x147e82),_0x177d90=_0x26fce9['data']['toModel'](_0xec9ca8,_0x3489d8);_0x2f6e2b['append'](_0x177d90,_0x3489d8),_0x2f6e2b['insert'](_0x3489d8,_0x4e5859,'end');}_0x1c6634=null;});});}}function f(_0x321506){const _0x179cfc=new Set();for(const {item:_0x4c5286}of _0x321506)_0x4c5286['is']('element','footnoteRef')&&_0x179cfc['add'](_0x4c5286['getAttribute']('footnoteId'));return Array['from'](_0x179cfc);}class i extends _0x177f79{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x58fbac}=this,{componentFactory:_0x69b21e}=_0x58fbac['ui'];_0x69b21e['add']('insertFootnote',x(_0x58fbac,_0x3f5ad6)),_0x69b21e['add']('menuBar:insertFootnote',x(_0x58fbac,_0x501351)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x943c4f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x48e9a7;for(const _0x2ebde2 in _0x943c4f){const _0x4a81c9=_0x2ebde2,_0x49e1b2=_0x943c4f[_0x4a81c9];if('footnotesLicenseKeyValid'==_0x49e1b2||'footnotesLicenseKeyInvalid'==_0x49e1b2||'footnotesLicenseKeyExpired'==_0x49e1b2||'footnotesLicenseKeyDomainLimit'==_0x49e1b2||'footnotesLicenseKeyNotAllowed'==_0x49e1b2||'footnotesLicenseKeyEvaluationLimit'==_0x49e1b2||'footnotesLicenseKeyTrialLimit'==_0x49e1b2||'footnotesLicenseKeyUsageLimit'==_0x49e1b2){delete _0x943c4f[_0x4a81c9],_0x48e9a7=_0x49e1b2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x48e9a7&&_0x943c4f['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x48e9a7&&_0x943c4f['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x48e9a7&&_0x943c4f['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x48e9a7&&_0x943c4f['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x48e9a7&&_0x943c4f['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x48e9a7&&_0x943c4f['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x48e9a7&&_0x943c4f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x4c4cc6,_0xea90f2){const _0x2a28f6=_0x4c4cc6['commands']['get']('insertFootnote');return _0x5d8b3e=>{const {t:t}=_0x5d8b3e,_0x1a2634=new _0xea90f2(_0x5d8b3e),_0x2401fb=_0x1a2634 instanceof _0x501351;return _0x1a2634['bind']('isEnabled')['to'](_0x2a28f6,'isEnabled'),_0x1a2634['set']({'label':t(_0x2401fb?'Footnote':'Insert\x20footnote'),'icon':_0x297e0a,'tooltip':!0x0}),_0x1a2634['on']('execute',()=>{_0x2a28f6['execute'](),_0x4c4cc6['editing']['view']['focus']();}),_0x1a2634;};}class lt extends _0x177f79{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 _0x3dc3f2{['refresh'](){const {editor:_0x4eb8ec}=this,_0x1083b9=_0x4eb8ec['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x1083b9,this['value']=_0x1083b9?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x22be29}){const {editor:_0x57e21c}=this,_0x440789=_0x57e21c['plugins']['get'](c),_0xba11f0=_0x440789['getFootnotesDefinitionsObjectElement']();_0xba11f0&&Q['includes'](_0x22be29)&&_0x57e21c['model']['change'](_0x295a1e=>{_0x295a1e['setAttribute']('footnotesListStyle',_0x22be29,_0xba11f0),_0x440789['_updateFootnotesCounters'](_0x295a1e);});}}class C extends _0x3dc3f2{['refresh'](){const {editor:_0x588ca5}=this,_0x1196d5=_0x588ca5['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x1196d5,this['value']=_0x1196d5?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x24c44b}){const {editor:_0x4bca51}=this,_0xaefc35=_0x4bca51['plugins']['get'](c),_0x280dc8=_0xaefc35['getFootnotesDefinitionsObjectElement']();_0x280dc8&&Number['isInteger'](_0x24c44b)&&_0x4bca51['model']['change'](_0x4d9080=>{_0x4d9080['setAttribute']('footnotesListStart',_0x24c44b,_0x280dc8),_0xaefc35['_updateFootnotesCounters'](_0x4d9080);});}}class P extends _0x177f79{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2f6ca5}=this;_0x2f6ca5['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x2f6ca5['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x2f6ca5['commands']['add']('footnotesStyle',new S(_0x2f6ca5)),_0x2f6ca5['commands']['add']('footnotesStart',new C(_0x2f6ca5)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x54e3d0}=this,{schema:_0x2a62f5}=_0x54e3d0['model'];_0x2a62f5['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x8d288}=this,{conversion:_0x15f850,model:_0x2b3fbd}=_0x8d288,{schema:_0x3601df}=_0x2b3fbd;_0x15f850['for']('upcast')['add'](_0x5f337e=>{_0x5f337e['on']('element:ol',(_0x556d21,_0x48b669,_0x2e929f)=>{const _0xf649bc=_0x48b669['viewItem'],_0x4e8af8=_0x48b669['modelCursor']?.['parent'];_0xf649bc['hasClass']('footnotes-list')&&_0x4e8af8?.['is']('element','footnotesDefinitions')&&(function(_0x1637c1,_0x339ecb,_0x24421d,_0x5190c4){if(!_0x5190c4['checkAttribute'](_0x339ecb,'footnotesListStart'))return;let _0x2e5da7=0x1;const _0x120812=_0x24421d['consumable']['consume'](_0x1637c1,{'attributes':'start'});if(_0x120812){const _0x285e14=Number['parseInt'](_0x1637c1['getAttribute']('start'),0xa);Number['isNaN'](_0x285e14)||(_0x2e5da7=_0x285e14);}!_0x120812&&_0x339ecb['hasAttribute']('footnotesListStart')||_0x24421d['writer']['setAttribute']('footnotesListStart',_0x2e5da7,_0x339ecb);}(_0xf649bc,_0x4e8af8,_0x2e929f,_0x3601df),function(_0x52113a,_0x56803c,_0x3e0934,_0x261235){if(!_0x261235['checkAttribute'](_0x56803c,'footnotesListStyle'))return;let _0x2d4559='decimal',_0x54ff48=!0x1;if(_0x3e0934['consumable']['consume'](_0x52113a,{'attributes':'type'})){const _0x7b94cd={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x52113a['getAttribute']('type')];_0x7b94cd&&(_0x2d4559=_0x7b94cd),_0x54ff48=!0x0;}_0x3e0934['consumable']['consume'](_0x52113a,{'styles':'list-style-type'})&&(_0x2d4559=_0x52113a['getStyle']('list-style-type'),_0x54ff48=!0x0),!_0x54ff48&&_0x56803c['hasAttribute']('footnotesListStyle')||_0x3e0934['writer']['setAttribute']('footnotesListStyle',_0x2d4559,_0x56803c);}(_0xf649bc,_0x4e8af8,_0x2e929f,_0x3601df));});}),_0x15f850['for']('downcast')['add'](_0x5ce662=>{_0x5ce662['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x422d3d,_0x52ed0a,_0x552a9a)=>{if(!_0x552a9a['consumable']['consume'](_0x52ed0a['item'],_0x422d3d['name']))return;const _0x110a08=M(_0x52ed0a['item'],_0x552a9a['mapper']),{attributeNewValue:_0x470111}=_0x52ed0a;null==_0x470111||0x1===_0x470111?_0x552a9a['writer']['removeAttribute']('start',_0x110a08):_0x552a9a['writer']['setAttribute']('start',String(_0x470111),_0x110a08);}),_0x5ce662['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x5d9647,_0x3817c9,_0x8f6a5f)=>{if(!_0x8f6a5f['consumable']['consume'](_0x3817c9['item'],_0x5d9647['name']))return;const _0x3f53eb=M(_0x3817c9['item'],_0x8f6a5f['mapper']),{attributeNewValue:_0x27d533}=_0x3817c9;_0x27d533&&'decimal'!==_0x27d533?_0x8f6a5f['writer']['setStyle']('list-style-type',_0x27d533,_0x3f53eb):_0x8f6a5f['writer']['removeStyle']('list-style-type',_0x3f53eb);});});}['_definePostfixer'](){const {editor:_0x560598}=this,{model:_0x32039c}=_0x560598,_0x3c91fb=_0x560598['plugins']['get'](c),_0x1e183e=this['_getDefaultListStyle'](),_0x295358=this['_getDefaultStartIndex']();_0x32039c['document']['registerPostFixer'](_0x327e30=>{const _0x232b1c=_0x32039c['document']['differ']['getChanges']();let _0x4eb87b=!0x1;for(const _0x5cb668 of _0x232b1c){if('insert'!==_0x5cb668['type']||'$text'===_0x5cb668['name'])continue;const _0x2b5d1d=_0x32039c['createRangeOn'](_0x5cb668['position']['nodeAfter']);for(const _0x57a25e of _0x2b5d1d['getItems']())_0x57a25e['is']('element','footnotesDefinitions')&&(!_0x57a25e['hasAttribute']('footnotesListStart')&&_0x32039c['schema']['checkAttribute'](_0x57a25e,'footnotesListStart')&&(_0x327e30['setAttribute']('footnotesListStart',_0x295358,_0x57a25e),_0x4eb87b=!0x0),!_0x57a25e['hasAttribute']('footnotesListStyle')&&_0x32039c['schema']['checkAttribute'](_0x57a25e,'footnotesListStyle')&&(_0x327e30['setAttribute']('footnotesListStyle',_0x1e183e,_0x57a25e),_0x4eb87b=!0x0));}return _0x4eb87b&&_0x3c91fb['_updateFootnotesCounters'](_0x327e30),_0x4eb87b;});}['_defineFormatter'](){const {editor:_0x517c69}=this;_0x517c69['plugins']['get'](c)['setFootnoteFormatter'](_0x114cb5=>this['_formatFootnoteListValue'](_0x114cb5));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x4688f2,value:_0x410bd8,digits:_0x306d13}){const _0x21a4e3=_0x4688f2['getAttribute']('footnotesListStyle'),_0x45076b=_0x4688f2['getAttribute']('footnotesListStart'),_0x231a6e=Math['floor'](_0x410bd8)+(_0x45076b??0x1)-0x1;switch(_0x21a4e3){case'decimal-leading-zero':return function(_0x10bb9d,_0x55ab56){return String(_0x10bb9d)['padStart'](_0x55ab56,'0');}(_0x231a6e,Math['max'](0x2,_0x306d13));case'lower-alpha':case'lower-latin':return N(_0x231a6e,!0x1);case'upper-alpha':case'upper-latin':return N(_0x231a6e,!0x0);case'lower-roman':return X(_0x231a6e,!0x1);case'upper-roman':return X(_0x231a6e,!0x0);default:return String(_0x231a6e);}}}function M(_0x26bda4,_0x46ef9b){const _0x5deb91=_0x46ef9b['toViewElement'](_0x26bda4);return Array['from'](_0x5deb91['getChildren']())['find'](_0x29266f=>_0x29266f['is']('element','ol')&&_0x29266f['hasClass']('footnotes-list'));}function N(_0x2498c1,_0x139154){let _0x459b35='',_0x300052=_0x2498c1;for(;_0x300052>0x0;){const _0x49a574=(_0x300052-0x1)%0x1a;_0x459b35=String['fromCharCode'](0x61+_0x49a574)+_0x459b35,_0x300052=Math['floor']((_0x300052-0x1)/0x1a);}return _0x139154?_0x459b35['toUpperCase']():_0x459b35;}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(_0x1ffbbf,_0x48fc89){let _0x3d328e='',_0x3c3f0a=_0x1ffbbf;for(const {value:_0x526722,numeral:_0x42ecc8}of V)for(;_0x3c3f0a>=_0x526722;)_0x3d328e+=_0x42ecc8,_0x3c3f0a-=_0x526722;return _0x48fc89?_0x3d328e:_0x3d328e['toLowerCase']();}class R extends _0x1d587c{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x47d86d();['focusCycler'];constructor(_0x47407f,{styleButtonViews:_0x543996,styleGridAriaLabel:_0x4412be}){super(_0x47407f),(this['focusCycler']=new _0x2d769a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x543996,_0x4412be),[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 _0x47b3c7 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x47b3c7['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 _0x748b2b=_0x4b4fd3=>_0x4b4fd3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x748b2b),this['keystrokes']['set']('arrowleft',_0x748b2b),this['keystrokes']['set']('arrowup',_0x748b2b),this['keystrokes']['set']('arrowdown',_0x748b2b);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0xa8e3ea,_0x49a966){const _0x39b39b=new _0x1d587c(this['locale']);return _0x39b39b['children']=_0x39b39b['createCollection'](),_0x39b39b['children']['addMany'](_0xa8e3ea),_0x39b39b['setTemplate']({'tag':'div','attributes':{'aria-label':_0x49a966,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x39b39b['children']}),_0x39b39b['children']['delegate']('execute')['to'](this),_0x39b39b['focus']=function(){for(const _0x573623 of this['children'])if(_0x573623 instanceof _0x3f5ad6&&_0x573623['isOn'])return void _0x573623['focus']();this['children']['first']['focus']();},_0x39b39b['focusTracker']=new ot(),_0x39b39b['keystrokes']=new rt(),_0x39b39b['render'](),_0x39b39b['keystrokes']['listenTo'](_0x39b39b['element']),this['children']['add'](_0x39b39b),_0x39b39b;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x398ca4=this['_createStartIndexPropertyView'](),_0x2e3da1=[_0x398ca4],_0x3a0ef1=new st(this['locale'],_0x2e3da1);return _0x3a0ef1['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x3a0ef1['buttonView']['bind']('isEnabled')['toMany'](_0x2e3da1,'isEnabled',(..._0x5be540)=>_0x5be540['some'](_0x78695d=>_0x78695d)),_0x3a0ef1['buttonView']['on']('change:isEnabled',(_0x357d8a,_0x1a3d8,_0x2761e2)=>{_0x2761e2||(_0x3a0ef1['isCollapsed']=!0x0);}),this['children']['add'](_0x3a0ef1),[_0x398ca4,_0x3a0ef1];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x15553b=new it(this['locale'],et);return _0x15553b['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x15553b['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x15553b['fieldView']['on']('input',()=>{const _0x462852=_0x15553b['fieldView']['element'],_0x31a5ea=_0x462852['valueAsNumber'];Number['isNaN'](_0x31a5ea)?_0x15553b['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x462852['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x31a5ea}):_0x15553b['errorText']=t(_0x31a5ea<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x15553b;}}class j extends _0x177f79{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x37c4f0,_0x5125c8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x507dae}=this,{componentFactory:_0x5dc3b2}=_0x507dae['ui'];_0x507dae['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x5dc3b2['add']('footnotesStyle',function(_0x17b17b){return _0x38c01f=>{const {t:t}=_0x38c01f,_0x494f43=_0x17b17b['commands']['get']('footnotesStyle'),_0x565971=_0x324085(_0x38c01f),{buttonView:_0x4f3ec9}=_0x565971;return _0x565971['class']='ck-footnotes-styles-dropdown',_0x565971['bind']('isEnabled')['to'](_0x494f43,'isEnabled'),_0x4f3ec9['set']({'label':t('Footnotes\x20style'),'icon':_0x297e0a,'tooltip':!0x0}),_0x565971['once']('change:isOpen',()=>{const _0x48a067=function({editor:_0x120375,dropdownView:_0x5b4f5e}){const {t:t}=_0x120375['locale'],_0x4555f1=t('Footnotes\x20definitions\x20styles'),_0x307fdd=function(_0x438d10){const t=_0x438d10['locale']['t'],_0x2362c0=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x10e339},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x29cc4a},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x29cc2f},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x4ad87d},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x584580},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x4557db}];return _0x2362c0['map'](function(_0xe7b03e){const _0x42c367=_0xe7b03e['locale'];return({label:_0x4252c8,icon:_0x76f06,tooltip:_0x76a969,style:_0x979c})=>{const _0x4a44f5=_0xe7b03e['commands']['get']('footnotesStyle'),_0x546d87=new _0x3f5ad6(_0x42c367);return _0x546d87['set']({'label':_0x4252c8,'icon':_0x76f06,'tooltip':_0x76a969}),_0x546d87['bind']('isOn')['to'](_0x4a44f5,'value',_0x3bc819=>_0x3bc819===_0x979c),_0x546d87['bind']('isEnabled')['to'](_0x4a44f5,'isEnabled'),_0x546d87['on']('execute',()=>{_0xe7b03e['execute']('footnotesStyle',{'value':_0x979c}),_0xe7b03e['editing']['view']['focus']();}),_0x546d87;};}(_0x438d10));}(_0x120375),_0x26613c=new R(_0x120375['locale'],{'styleGridAriaLabel':_0x4555f1,'styleButtonViews':_0x307fdd});return _0x26613c['delegate']('execute')['to'](_0x5b4f5e),_0x26613c['on']('footnotesListStart',(_0x3c1898,_0x4395e5)=>{_0x120375['execute']('footnotesStart',{'value':_0x4395e5['startIndex']});}),_0x26613c;}({'editor':_0x17b17b,'dropdownView':_0x565971});_0x565971['panelView']['children']['add'](_0x48a067);}),_0x565971;};}(_0x507dae));}['afterInit'](){const {editor:_0x53bdb9}=this,{t:t}=_0x53bdb9['locale'],_0x55d486=_0x53bdb9['plugins']['get'](_0x5125c8),{defaultPositions:_0xd817f3}=_0x1c5b5a;_0x55d486['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x53bdb9['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x5afaf0=>{let _0x3b5700=_0x5afaf0['getFirstPosition']()?.['parent'];return _0x3b5700?.['is']('$text')&&(_0x3b5700=_0x3b5700['parent']),_0x3b5700?.['is']('element')?_0x3b5700['findAncestor']($):null;},'positions':[_0xd817f3['southArrowNorth'],_0xd817f3['southArrowNorthMiddleWest'],_0xd817f3['southArrowNorthMiddleEast'],_0xd817f3['southArrowNorthWest'],_0xd817f3['southArrowNorthEast'],_0xd817f3['northArrowSouth'],_0xd817f3['northArrowSouthMiddleWest'],_0xd817f3['northArrowSouthMiddleEast'],_0xd817f3['northArrowSouthWest'],_0xd817f3['northArrowSouthEast'],_0xd817f3['viewportStickyNorth']]});}}class ft extends _0x177f79{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,c 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-20251121.0",
3
+ "version": "0.0.0-nightly-20251123.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-20251121.0",
27
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251121.0",
28
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251121.0",
29
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251121.0",
30
- "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251121.0",
31
- "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251121.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251121.0",
33
- "ckeditor5": "0.0.0-nightly-20251121.0"
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251123.0",
27
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251123.0",
28
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251123.0",
29
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251123.0",
30
+ "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251123.0",
31
+ "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251123.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251123.0",
33
+ "ckeditor5": "0.0.0-nightly-20251123.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
- const _0x568300=_0x435f;(function(_0x35c78d,_0x56562d){const _0x2d2d43=_0x435f,_0x1bfabc=_0x35c78d();while(!![]){try{const _0xb6af56=parseInt(_0x2d2d43(0x155))/0x1+parseInt(_0x2d2d43(0x146))/0x2+parseInt(_0x2d2d43(0x157))/0x3+-parseInt(_0x2d2d43(0x159))/0x4*(parseInt(_0x2d2d43(0x144))/0x5)+parseInt(_0x2d2d43(0x153))/0x6+-parseInt(_0x2d2d43(0x151))/0x7+-parseInt(_0x2d2d43(0x152))/0x8*(parseInt(_0x2d2d43(0x148))/0x9);if(_0xb6af56===_0x56562d)break;else _0x1bfabc['push'](_0x1bfabc['shift']());}catch(_0x29ad60){_0x1bfabc['push'](_0x1bfabc['shift']());}}}(_0x3491,0x93ce1));function _0x435f(_0x574a1a,_0x571484){const _0x34910f=_0x3491();return _0x435f=function(_0x435f7e,_0x42f1e2){_0x435f7e=_0x435f7e-0x143;let _0x51cac2=_0x34910f[_0x435f7e];return _0x51cac2;},_0x435f(_0x574a1a,_0x571484);}import{logWarning as _0xb76816,uid as _0xab9190}from'ckeditor5/src/utils.js';import{Command as _0x5c70e0}from'ckeditor5/src/core.js';function _0x3491(){const _0x519e0c=['_getPositionToInsertFootnote','selection','getFirstRange','isBlock','insert-footnote-command-executed-with-invalid-id','5cAuSzW','createElement','1658448bNgimd','FootnotesEditing','366777xsiNhf','string','footnoteId','getItems','length','test','editor','change','plugins','3108252MDpblI','368DAQpUP','7216530wFFjSa','document','655304WflGWV','footnoteRef','3124962dPLitI','execute','3219416foHJqU','refresh','end','isEnabled','model','insertObject','get','isObject','checkChild','_moveSelectionToFootnoteDefinition'];_0x3491=function(){return _0x519e0c;};return _0x3491();}export class InsertFootnoteCommand extends _0x5c70e0{[_0x568300(0x15a)](){const _0x4fb54d=_0x568300,_0x5152d5=this[_0x4fb54d(0x14e)][_0x4fb54d(0x15d)][_0x4fb54d(0x154)][_0x4fb54d(0x164)],_0x199a7a=this[_0x4fb54d(0x163)](_0x5152d5);this[_0x4fb54d(0x15c)]=!!_0x199a7a;}[_0x568300(0x158)](_0x3ac5dc){const _0x34790d=_0x568300,{editor:_0x4f4045}=this,{model:_0x4ba57f}=_0x4f4045,{selection:_0x58a07a}=_0x4ba57f[_0x34790d(0x154)],_0x51ebae=this[_0x34790d(0x163)](_0x58a07a);if(!_0x51ebae)return;const _0x4fd84e=_0x4f4045[_0x34790d(0x150)][_0x34790d(0x15f)](_0x34790d(0x147)),_0x4d169a=_0x3ac5dc?.[_0x34790d(0x14a)]??_0xab9190();!function(_0x4ad0e8){const _0x3b656b=_0x34790d;return _0x3b656b(0x149)==typeof _0x4ad0e8&&_0x4ad0e8[_0x3b656b(0x14c)]>0x0&&!/\s/[_0x3b656b(0x14d)](_0x4ad0e8)&&!/^\d/[_0x3b656b(0x14d)](_0x4ad0e8);}(_0x4d169a)?_0xb76816(_0x34790d(0x143)):(_0x4ba57f[_0x34790d(0x14f)](_0x1460b2=>{const _0x36f288=_0x34790d,_0x297a72=_0x1460b2[_0x36f288(0x145)](_0x36f288(0x156),{'footnoteId':_0x4d169a});_0x4ba57f[_0x36f288(0x15e)](_0x297a72,_0x51ebae,null);}),_0x4fd84e[_0x34790d(0x162)](_0x4d169a));}[_0x568300(0x163)](_0x58be04){const _0x5ea184=_0x568300,{model:_0x51bf08}=this[_0x5ea184(0x14e)],{schema:_0x4869f9}=_0x51bf08,_0x3c499a=_0x58be04[_0x5ea184(0x165)]();for(const _0x52fcbf of _0x3c499a[_0x5ea184(0x14b)]())if(_0x4869f9[_0x5ea184(0x166)](_0x52fcbf)||_0x4869f9[_0x5ea184(0x160)](_0x52fcbf))return null;const _0x40a53d=_0x3c499a[_0x5ea184(0x15b)];return _0x4869f9[_0x5ea184(0x161)](_0x40a53d,_0x5ea184(0x156))?_0x40a53d:null;}}
23
+ const _0x422431=_0x3304;function _0x49f2(){const _0x53f2a1=['isBlock','isEnabled','_getPositionToInsertFootnote','1129992vrrpMj','plugins','change','_moveSelectionToFootnoteDefinition','string','getItems','get','model','refresh','302724lqHQRZ','1740984lIxpIM','length','FootnotesEditing','end','editor','7436JCNDUl','footnoteId','getFirstRange','selection','256FRsTVb','document','28040EvPcxG','createElement','insert-footnote-command-executed-with-invalid-id','isObject','insertObject','test','34550AiyaHP','91DPsZKu','2037524pdqPxG','1zjGsUB','execute','checkChild','7481637uCAEMC','footnoteRef'];_0x49f2=function(){return _0x53f2a1;};return _0x49f2();}function _0x3304(_0x601e97,_0x549026){const _0x49f281=_0x49f2();return _0x3304=function(_0x3304b4,_0x5b3aed){_0x3304b4=_0x3304b4-0x1b1;let _0x402dd7=_0x49f281[_0x3304b4];return _0x402dd7;},_0x3304(_0x601e97,_0x549026);}(function(_0x227678,_0x443746){const _0x55c2b9=_0x3304,_0x5b6bad=_0x227678();while(!![]){try{const _0x5e62e3=parseInt(_0x55c2b9(0x1c9))/0x1*(parseInt(_0x55c2b9(0x1c8))/0x2)+parseInt(_0x55c2b9(0x1b5))/0x3+-parseInt(_0x55c2b9(0x1be))/0x4*(parseInt(_0x55c2b9(0x1c0))/0x5)+-parseInt(_0x55c2b9(0x1b4))/0x6*(-parseInt(_0x55c2b9(0x1c7))/0x7)+parseInt(_0x55c2b9(0x1d1))/0x8+parseInt(_0x55c2b9(0x1cc))/0x9+parseInt(_0x55c2b9(0x1c6))/0xa*(-parseInt(_0x55c2b9(0x1ba))/0xb);if(_0x5e62e3===_0x443746)break;else _0x5b6bad['push'](_0x5b6bad['shift']());}catch(_0x3c8ed6){_0x5b6bad['push'](_0x5b6bad['shift']());}}}(_0x49f2,0x82232));import{logWarning as _0x2b784c,uid as _0x4c72ea}from'ckeditor5/src/utils.js';import{Command as _0xc4dfd7}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0xc4dfd7{[_0x422431(0x1b3)](){const _0x27ae9f=_0x422431,_0x2946ff=this[_0x27ae9f(0x1b9)][_0x27ae9f(0x1b2)][_0x27ae9f(0x1bf)][_0x27ae9f(0x1bd)],_0x3a2141=this[_0x27ae9f(0x1d0)](_0x2946ff);this[_0x27ae9f(0x1cf)]=!!_0x3a2141;}[_0x422431(0x1ca)](_0x204506){const _0x4ca230=_0x422431,{editor:_0x3dec47}=this,{model:_0x14715d}=_0x3dec47,{selection:_0x5d36dc}=_0x14715d[_0x4ca230(0x1bf)],_0x499972=this[_0x4ca230(0x1d0)](_0x5d36dc);if(!_0x499972)return;const _0x3dd688=_0x3dec47[_0x4ca230(0x1d2)][_0x4ca230(0x1b1)](_0x4ca230(0x1b7)),_0x4fbac1=_0x204506?.[_0x4ca230(0x1bb)]??_0x4c72ea();!function(_0x3a2b29){const _0x3f6e42=_0x4ca230;return _0x3f6e42(0x1d5)==typeof _0x3a2b29&&_0x3a2b29[_0x3f6e42(0x1b6)]>0x0&&!/\s/[_0x3f6e42(0x1c5)](_0x3a2b29)&&!/^\d/[_0x3f6e42(0x1c5)](_0x3a2b29);}(_0x4fbac1)?_0x2b784c(_0x4ca230(0x1c2)):(_0x14715d[_0x4ca230(0x1d3)](_0x508285=>{const _0xf53869=_0x4ca230,_0x26f81d=_0x508285[_0xf53869(0x1c1)](_0xf53869(0x1cd),{'footnoteId':_0x4fbac1});_0x14715d[_0xf53869(0x1c4)](_0x26f81d,_0x499972,null);}),_0x3dd688[_0x4ca230(0x1d4)](_0x4fbac1));}[_0x422431(0x1d0)](_0x32a692){const _0x16ba5e=_0x422431,{model:_0x4b68b8}=this[_0x16ba5e(0x1b9)],{schema:_0x314997}=_0x4b68b8,_0x2fb7b2=_0x32a692[_0x16ba5e(0x1bc)]();for(const _0x2b7bd9 of _0x2fb7b2[_0x16ba5e(0x1d6)]())if(_0x314997[_0x16ba5e(0x1ce)](_0x2b7bd9)||_0x314997[_0x16ba5e(0x1c3)](_0x2b7bd9))return null;const _0x2e08e9=_0x2fb7b2[_0x16ba5e(0x1b8)];return _0x314997[_0x16ba5e(0x1cb)](_0x2e08e9,_0x16ba5e(0x1cd))?_0x2e08e9:null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x10bf23}from'ckeditor5/src/core.js';import{isWidget as _0x183c3a,toWidget as _0x56657e,toWidgetEditable as _0x183b92}from'ckeditor5/src/widget.js';import{uid as _0x584f9f}from'ckeditor5/src/utils.js';import{PointerObserver as _0x50e6da,ClickObserver as _0x574753}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x170bc3}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x2ef1e7}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x10bf23{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x170bc3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xaa31c9}=this;_0xaa31c9['config']['define']('footnotes.multiBlock',!0x0),_0xaa31c9['commands']['add']('insertFootnote',new _0x2ef1e7(_0xaa31c9)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x53135b){const _0x5ec110=_0x205d71([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]),_0x395107=0x47a28506,_0x31ecf5=0x47a5fcbe^_0x395107,_0x593025=window[_0x205d71([0x44,0x61,0x74,0x65])][_0x205d71([0x6e,0x6f,0x77])](),_0x1d4196=_0x53135b[_0x205d71([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b0761=new window[(_0x205d71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc4ee66=>{_0x1d4196[_0x205d71([0x6f,0x6e,0x63,0x65])](_0x205d71([0x72,0x65,0x61,0x64,0x79]),_0xc4ee66);}),_0x44f35f={[_0x205d71([0x6b,0x74,0x79])]:_0x205d71([0x45,0x43]),[_0x205d71([0x75,0x73,0x65])]:_0x205d71([0x73,0x69,0x67]),[_0x205d71([0x63,0x72,0x76])]:_0x205d71([0x50,0x2d,0x32,0x35,0x36]),[_0x205d71([0x78])]:_0x205d71([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]),[_0x205d71([0x79])]:_0x205d71([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]),[_0x205d71([0x61,0x6c,0x67])]:_0x205d71([0x45,0x53,0x32,0x35,0x36])},_0xcafdae=_0x1d4196[_0x205d71([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x205d71([0x67,0x65,0x74])](_0x205d71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x465fac(){let _0x2e238f,_0x44eb2d=null,_0x556e8b=null;try{if(_0xcafdae==_0x205d71([0x47,0x50,0x4c]))return _0x205d71([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2e238f=_0x39854b(),!_0x2e238f)return _0x205d71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2e238f[_0x205d71([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x556e8b=_0x3e71ed(_0x2e238f[_0x205d71([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2e238f[_0x205d71([0x6a,0x74,0x69])])),await _0x10efdc()?_0x5834af()?_0x1e5efc()?_0x205d71([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2cebda()?(_0x2e238f[_0x205d71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x205d71([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x44eb2d=_0x3853bf(_0x205d71([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2e238f[_0x205d71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x205d71([0x74,0x72,0x69,0x61,0x6c])&&(_0x44eb2d=_0x3853bf(_0x205d71([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5147c4()):_0x205d71([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x205d71([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x205d71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x205d71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e5efc(){const _0x5a85ee=[_0x205d71([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x205d71([0x74,0x72,0x69,0x61,0x6c])][_0x205d71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e238f[_0x205d71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x593025/0x3e8:0xe10*_0x31ecf5;return _0x2e238f[_0x205d71([0x65,0x78,0x70])]<_0x5a85ee;}function _0x5834af(){const _0xf90eb7=_0x2e238f[_0x205d71([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xf90eb7&&(!!_0xf90eb7[_0x205d71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x205d71([0x2a]))||!!_0xf90eb7[_0x205d71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x205d71([0x46,0x4f,0x4f])));}function _0x2cebda(){const _0x459902=_0x2e238f[_0x205d71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x459902||0x0==_0x459902[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x52cec9}=new URL(window[_0x205d71([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x459902[_0x205d71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52cec9))return!0x0;const _0x3d4064=_0x52cec9[_0x205d71([0x73,0x70,0x6c,0x69,0x74])](_0x205d71([0x2e]));return _0x459902[_0x205d71([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1218e8=>_0x1218e8[_0x205d71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x205d71([0x2a])))[_0x205d71([0x6d,0x61,0x70])](_0x10b2d0=>_0x10b2d0[_0x205d71([0x73,0x70,0x6c,0x69,0x74])](_0x205d71([0x2e])))[_0x205d71([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d42a2=>_0x3d42a2[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3d4064[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x205d71([0x6d,0x61,0x70])](_0x4b1f3d=>Array(_0x3d4064[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4b1f3d[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x205d71([0x66,0x69,0x6c,0x6c])](_0x4b1f3d[0x0]===_0x205d71([0x2a])?_0x205d71([0x2a]):'')[_0x205d71([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4b1f3d))[_0x205d71([0x73,0x6f,0x6d,0x65])](_0x4d9659=>_0x3d4064[_0x205d71([0x65,0x76,0x65,0x72,0x79])]((_0x4ba43c,_0x3631e4)=>_0x4d9659[_0x3631e4]===_0x4ba43c||_0x4d9659[_0x3631e4]===_0x205d71([0x2a])));}function _0x5147c4(){return _0x44eb2d&&_0x556e8b?new window[(_0x205d71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e1838,_0x275f29)=>{_0x44eb2d[_0x205d71([0x74,0x68,0x65,0x6e])](_0x3e1838,_0x275f29),_0x556e8b[_0x205d71([0x74,0x68,0x65,0x6e])](_0x227f96=>{_0x227f96!=_0x205d71([0x56,0x61,0x6c,0x69,0x64])&&_0x3e1838(_0x227f96);},_0x275f29);}):_0x44eb2d||_0x556e8b||_0x205d71([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3e71ed(_0x586535,_0x42ffa0){return new window[(_0x205d71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41ad19=>{if(_0x59fed1())return _0x41ad19(_0x205d71([0x56,0x61,0x6c,0x69,0x64]));_0x314dc4(),_0x1d4196[_0x205d71([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x205d71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4741d8=!0x1;const _0x2763ca=_0x584f9f();function _0x306fb9(_0x5d6ebb){return!!_0x5d6ebb&&(typeof _0x5d6ebb===_0x205d71([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5d6ebb===_0x205d71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5d6ebb[_0x205d71([0x74,0x68,0x65,0x6e])]===_0x205d71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5d6ebb[_0x205d71([0x63,0x61,0x74,0x63,0x68])]===_0x205d71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x55399b(_0x48fb6a){_0x581c24(_0x48fb6a)[_0x205d71([0x74,0x68,0x65,0x6e])](_0x276cae=>{if(!_0x276cae||_0x276cae[_0x205d71([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x205d71([0x6f,0x6b]))return _0x205d71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x470b15(_0x22050a(_0x2763ca+_0x42ffa0))!=_0x276cae[_0x205d71([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x205d71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x205d71([0x56,0x61,0x6c,0x69,0x64]);})[_0x205d71([0x74,0x68,0x65,0x6e])](_0x506bcc=>(_0x2a895a(),_0x506bcc),()=>{const _0x151d81=_0x2d33a8();return null==_0x151d81?(_0x2a895a(),_0x205d71([0x56,0x61,0x6c,0x69,0x64])):_0x205d71(_0x593025-_0x151d81>(0x63ae0106^_0x395107)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x205d71([0x74,0x68,0x65,0x6e])](_0x41ad19)[_0x205d71([0x63,0x61,0x74,0x63,0x68])](()=>{_0x41ad19(_0x205d71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3f7a38=0x47946b86^_0x395107;function _0x2a895a(){const _0x4e2fe9=_0x205d71([0x6c,0x6c,0x63,0x74,0x2d])+_0x470b15(_0x22050a(_0x586535)),_0x15da39=_0x2c1a01(_0x470b15(window[_0x205d71([0x4d,0x61,0x74,0x68])][_0x205d71([0x63,0x65,0x69,0x6c])](_0x593025/_0x3f7a38)));window[_0x205d71([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x205d71([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e2fe9,_0x15da39);}function _0x2d33a8(){const _0x54345f=_0x205d71([0x6c,0x6c,0x63,0x74,0x2d])+_0x470b15(_0x22050a(_0x586535)),_0x390024=window[_0x205d71([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x205d71([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54345f);return _0x390024?window[_0x205d71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c1a01(_0x390024),0x10)*_0x3f7a38:null;}function _0x581c24(_0x12a3cc){return new window[(_0x205d71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3443f6,_0x2c96a5)=>{_0x12a3cc[_0x205d71([0x74,0x68,0x65,0x6e])](_0x3443f6,_0x2c96a5),window[_0x205d71([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c96a5,0x47a351c6^_0x395107);});}}_0x1d4196[_0x205d71([0x6f,0x6e])](_0x205d71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x88c3be,_0x2e73d0)=>{if(_0x2e73d0[0x0]!=_0x586535)return _0x41ad19(_0x205d71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e73d0[0x1]={..._0x2e73d0[0x1],[_0x205d71([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2763ca};},{[_0x205d71([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x205d71([0x68,0x69,0x67,0x68])}),_0x1d4196[_0x205d71([0x6f,0x6e])](_0x205d71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x566ff5=>{_0x306fb9(_0x566ff5[_0x205d71([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4741d8=!0x0,_0x55399b(_0x566ff5[_0x205d71([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x205d71([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x205d71([0x6c,0x6f,0x77])}),_0x4b0761[_0x205d71([0x74,0x68,0x65,0x6e])](()=>{_0x4741d8||_0x41ad19(_0x205d71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x59fed1(){return _0x1d4196[_0x205d71([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x205d71([0x76,0x69,0x65,0x77])][_0x205d71([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x205d71([0x61,0x75,0x74,0x6f]);}function _0x314dc4(){_0x1d4196[_0x205d71([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x205d71([0x76,0x69,0x65,0x77])][_0x205d71([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x205d71([0x61,0x75,0x74,0x6f]);}}function _0x3853bf(_0x1c3e17){const _0x3d942d=[new window[(_0x205d71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6f659b=>setTimeout(_0x6f659b,0x47abbbca^_0x395107)),_0x4b0761[_0x205d71([0x74,0x68,0x65,0x6e])](()=>new window[(_0x205d71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x246f14=>{let _0xdd2dfd=0x0;_0x1d4196[_0x205d71([0x6d,0x6f,0x64,0x65,0x6c])][_0x205d71([0x6f,0x6e])](_0x205d71([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x120aca,_0x5688c9)=>{_0x5688c9[0x0][_0x205d71([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xdd2dfd++,_0xdd2dfd==(0x47a284fe^_0x395107)&&(_0x246f14(),_0x120aca[_0x205d71([0x6f,0x66,0x66])]());});}))];return window[_0x205d71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x205d71([0x72,0x61,0x63,0x65])](_0x3d942d)[_0x205d71([0x74,0x68,0x65,0x6e])](()=>_0x1c3e17);}async function _0x248e1e(){await _0x4b0761,_0x1d4196[_0x205d71([0x6d,0x6f,0x64,0x65,0x6c])][_0x205d71([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x326269,_0x1d4196[_0x205d71([0x6d,0x6f,0x64,0x65,0x6c])][_0x205d71([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x326269,_0x1d4196[_0x205d71([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x205d71([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45748f(_0x1f856d){const _0x1f51a7=_0x4bda1f();_0x1d4196[_0x1f51a7]=_0x205d71([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1f856d,_0x1f856d!=_0x205d71([0x56,0x61,0x6c,0x69,0x64])&&_0x248e1e();}function _0x4bda1f(){const _0x2e3487=window[_0x205d71([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x205d71([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x205d71([0x6e,0x6f,0x77])]())[_0x205d71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x205d71([0x2e]),'');let _0x1c12b0=_0x205d71([0x75]);for(let _0x38d3f8=0x0;_0x38d3f8<_0x2e3487[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38d3f8+=0x2){let _0x45ab6f=window[_0x205d71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e3487[_0x205d71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38d3f8,_0x38d3f8+0x2));_0x45ab6f>=_0x5ec110[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45ab6f-=_0x5ec110[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1c12b0+=_0x5ec110[_0x45ab6f];}return _0x1c12b0;}function _0x39854b(){const _0x404455=_0xcafdae[_0x205d71([0x73,0x70,0x6c,0x69,0x74])](_0x205d71([0x2e]));if(0x3!=_0x404455[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x11dbd6(_0x404455[0x1]);function _0x11dbd6(_0x4c8aa0){const _0x44287b=_0x1804d3(_0x4c8aa0);return _0x44287b&&_0x3a1ad1()?_0x44287b:null;function _0x3a1ad1(){const _0x1025e8=_0x44287b[_0x205d71([0x6a,0x74,0x69])],_0x5d1b38=window[_0x205d71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1025e8[_0x205d71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1025e8[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x55b71c={..._0x44287b,[_0x205d71([0x6a,0x74,0x69])]:_0x1025e8[_0x205d71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1025e8[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x55b71c[_0x205d71([0x76,0x63])],_0x22050a(_0x55b71c)==_0x5d1b38;}}}async function _0x10efdc(){let _0x2e25c0=!0x0;try{const _0x326396=_0xcafdae[_0x205d71([0x73,0x70,0x6c,0x69,0x74])](_0x205d71([0x2e])),[_0x54cb01,_0x344314,_0x5d9647]=_0x326396;return _0x318f02(_0x54cb01),await _0x118024(_0x54cb01,_0x344314,_0x5d9647),_0x2e25c0;}catch{return!0x1;}function _0x318f02(_0x2cbe39){const _0x5db3ac=_0x1804d3(_0x2cbe39);_0x5db3ac&&_0x5db3ac[_0x205d71([0x61,0x6c,0x67])]==_0x205d71([0x45,0x53,0x32,0x35,0x36])||(_0x2e25c0=!0x1);}async function _0x118024(_0x40c490,_0x184ba3,_0x16b0c9){const _0x364f46=window[_0x205d71([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x205d71([0x66,0x72,0x6f,0x6d])](_0x72df73(_0x16b0c9),_0x460c9f=>_0x460c9f[_0x205d71([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x529310=new window[(_0x205d71([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x205d71([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x40c490+_0x205d71([0x2e])+_0x184ba3),_0x5616e7=window[_0x205d71([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x205d71([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5616e7)return;const _0x24c4be=await _0x5616e7[_0x205d71([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x205d71([0x6a,0x77,0x6b]),_0x44f35f,{[_0x205d71([0x6e,0x61,0x6d,0x65])]:_0x205d71([0x45,0x43,0x44,0x53,0x41]),[_0x205d71([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x205d71([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x205d71([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5616e7[_0x205d71([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x205d71([0x6e,0x61,0x6d,0x65])]:_0x205d71([0x45,0x43,0x44,0x53,0x41]),[_0x205d71([0x68,0x61,0x73,0x68])]:{[_0x205d71([0x6e,0x61,0x6d,0x65])]:_0x205d71([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x24c4be,_0x364f46,_0x529310)||(_0x2e25c0=!0x1);}}function _0x1804d3(_0x48b797){return _0x48b797[_0x205d71([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x205d71([0x65,0x79]))?JSON[_0x205d71([0x70,0x61,0x72,0x73,0x65])](_0x72df73(_0x48b797)):null;}function _0x72df73(_0x23313b){return window[_0x205d71([0x61,0x74,0x6f,0x62])](_0x23313b[_0x205d71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x205d71([0x2b]))[_0x205d71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x205d71([0x2f])));}function _0x22050a(_0x3c9295){let _0x5d9c3c=0x1505;function _0x145a27(_0x12037b){for(let _0x4cc682=0x0;_0x4cc682<_0x12037b[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4cc682++){const _0x4b8f76=_0x12037b[_0x205d71([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4cc682);_0x5d9c3c=(_0x5d9c3c<<0x5)+_0x5d9c3c+_0x4b8f76,_0x5d9c3c&=_0x5d9c3c;}}function _0x464fa1(_0x3c906f){Array[_0x205d71([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c906f)?_0x3c906f[_0x205d71([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x464fa1):_0x3c906f&&typeof _0x3c906f==_0x205d71([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x205d71([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c906f)[_0x205d71([0x73,0x6f,0x72,0x74])]()[_0x205d71([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x428d85,_0x1de60f])=>{_0x145a27(_0x428d85),_0x464fa1(_0x1de60f);}):_0x145a27(window[_0x205d71([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c906f));}return _0x464fa1(_0x3c9295),_0x5d9c3c>>>0x0;}function _0x470b15(_0x103022){return _0x103022[_0x205d71([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x205d71([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x205d71([0x30]));}function _0x2c1a01(_0xeb7c4c){return _0xeb7c4c[_0x205d71([0x73,0x70,0x6c,0x69,0x74])]('')[_0x205d71([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x205d71([0x6a,0x6f,0x69,0x6e])]('');}function _0x326269(){}function _0x205d71(_0x1d79b8){return _0x1d79b8['map'](_0x23fef9=>String['fromCharCode'](_0x23fef9))['join']('');}_0x45748f(await _0x465fac());}(this);}['_moveSelectionToFootnoteDefinition'](_0x237429){const {plugins:_0x1e73b3,editing:_0x388876,model:_0x57fd1c}=this['editor'],_0x2df957=_0x1e73b3['get'](_0x170bc3)['getFootnote'](_0x237429);return!!_0x2df957&&(_0x57fd1c['change'](_0x24467a=>{_0x24467a['setSelection'](_0x24467a['createPositionAt'](_0x2df957['definition'],'end'));}),_0x388876['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0xd0f9d6){const {plugins:_0x29cdd0,editing:_0x47dcca,model:_0x38f3a7}=this['editor'],_0x351265=_0x29cdd0['get'](_0x170bc3)['getFootnote'](_0xd0f9d6);return!!_0x351265&&(_0x38f3a7['change'](_0xae2197=>{_0xae2197['setSelection'](_0x351265['reference'],'on');}),_0x47dcca['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x28b40a}=this['editor']['model'],_0x3a8ba0=this['editor']['config']['get']('footnotes.multiBlock');_0x28b40a['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x28b40a['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x28b40a['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3a8ba0?_0x28b40a['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x28b40a['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x28b40a['addChildCheck'](_0x18c9d0=>{for(const _0x1beaa5 of _0x18c9d0)if('footnoteDefinition'===_0x1beaa5['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x4ea6fd}=this,{conversion:_0x155b40,editing:_0x2f1787}=_0x4ea6fd,{t:t}=_0x4ea6fd['locale'];_0x155b40['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x57eede,{writer:_0x565792,consumable:_0x4936f1})=>{const _0x205c02=_0x57eede['getChild'](0x0);if(!_0x205c02||!_0x205c02['is']('element','a'))return null;const _0x16bccf=_0x205c02['getAttribute']('href')||'';if(!_0x16bccf['startsWith']('#'))return null;const _0x287f3b=_0x16bccf['replace'](/^#/,'');if(!_0x287f3b)return null;_0x4936f1['consume'](_0x205c02,{'name':!0x0,'attributes':['href']});for(const {item:_0x51e312}of _0x2f1787['view']['createRangeIn'](_0x205c02))_0x51e312['is']('$textProxy')?_0x4936f1['consume'](_0x51e312['textNode'],{'name':!0x0}):_0x51e312['is']('element')&&_0x4936f1['consume'](_0x51e312,{'name':!0x0});return _0x565792['createElement']('footnoteRef',{'footnoteId':_0x287f3b});}}),_0x155b40['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2d1169,{writer:_0x305bd1})=>D(_0x2d1169,_0x305bd1)}),_0x155b40['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x463e27,{writer:_0x2d00d2})=>{const _0x1d32cf=_0x463e27['getAttribute']('footnoteCounter');return _0x56657e(D(_0x463e27,_0x2d00d2),_0x2d00d2,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1d32cf)});}});}['_defineDefinitionsConverters'](){const {editor:_0x266aee}=this,{t:t}=_0x266aee['locale'],{conversion:_0x3f548e}=_0x266aee;_0x3f548e['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3f548e['for']('upcast')['add'](_0x3a4f6e=>{_0x3a4f6e['on']('element:ol',(_0x1f3762,_0xb81ef8,_0x131b0c)=>{const _0x461516=_0xb81ef8['viewItem'];if(!_0x461516['hasClass']('footnotes-list')||!_0xb81ef8['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x131b0c['consumable']['consume'](_0x461516,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x373799,modelCursor:_0x1f242a}=_0x131b0c['convertChildren'](_0xb81ef8['viewItem'],_0xb81ef8['modelCursor']);_0xb81ef8['modelRange']=_0x373799,_0xb81ef8['modelCursor']=_0x1f242a;}),_0x3a4f6e['on']('element:hr',(_0x4c031d,_0x3f1521,_0x532d9f)=>{const _0x5cb63b=_0x3f1521['viewItem'];_0x5cb63b['hasClass']('footnotes-divider')&&_0x3f1521['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x532d9f['consumable']['consume'](_0x5cb63b,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3f548e['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xf2bfd3,{writer:_0x14ee0d})=>v(_0x14ee0d)}),_0x3f548e['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2067bc,{writer:_0x198313})=>{const _0x451188=v(_0x198313,{'data-footnotes-list-label':t('Footnotes')}),_0x56da2f=_0x56657e(_0x451188,_0x198313,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x198313['setCustomProperty']('footnotesDefinitions',!0x0,_0x56da2f),_0x56da2f;}});}['_defineDefinitionConverters'](){const {editor:_0x146876}=this,{conversion:_0x50961f,locale:_0x4e1d90}=_0x146876,_0x208081=_0x146876['config']['get']('footnotes.multiBlock');_0x50961f['for']('upcast')['add'](_0x293c82=>{_0x293c82['on']('element:li',(_0x3f0334,_0x3135bb,_0x107485)=>{const _0x404374=_0x3135bb['viewItem'];if(!_0x404374['hasClass']('footnote-definition')||!_0x404374['getAttribute']('id'))return;const _0x26608a=_0x404374['parent'];if(!_0x26608a['is']('element','ol')||!_0x26608a['hasClass']('footnotes-list'))return;if(!_0x107485['consumable']['test'](_0x404374,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x53b348=_0x107485['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x404374['getAttribute']('id')});if(!_0x107485['safeInsert'](_0x53b348,_0x3135bb['modelCursor']))return;_0x107485['consumable']['consume'](_0x404374,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x39d18c=Array['from'](_0x404374['getChildren']())['find'](_0x27c1c8=>_0x27c1c8['is']('element')&&_0x27c1c8['hasClass']('footnote-content'));for(const _0x447bce of _0x404374['getChildren']())_0x447bce['is']('element')&&(_0x107485['consumable']['consume'](_0x447bce,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x107485['consumable']['consume'](_0x447bce,{'name':!0x0,'classes':'footnote-content'}));if(_0x39d18c){if(_0x208081)_0x107485['convertChildren'](_0x39d18c,_0x53b348);else{const _0x55526a=_0x107485['writer']['createElement']('footnoteInlineContent');_0x107485['writer']['insert'](_0x55526a,_0x53b348),_0x107485['convertChildren'](_0x39d18c,_0x55526a);}}_0x107485['updateConversionResult'](_0x53b348,_0x3135bb);});}),_0x50961f['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xd3a3fc,{writer:_0x3b576d})=>b(_0xd3a3fc,_0x3b576d,_0x4e1d90,{'dataPipeline':!0x0})}),_0x50961f['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x495199,{writer:_0x4d6caf})=>b(_0x495199,_0x4d6caf,_0x4e1d90)});}['_defineBogusParagraphConverters'](){const {editor:_0x24e824}=this,{conversion:_0x45e64e}=_0x24e824;_0x24e824['config']['get']('footnotes.multiBlock')?(_0x45e64e['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x45e64e['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x24e824['model']['document'],'change:data',()=>{!function(_0x2e436a,_0x3e278f){const _0x578148=_0x2e436a['document']['differ'],_0x4238ba=new Set();for(const _0xdc4155 of _0x578148['getChanges']()){const _0x27d22c='attribute'==_0xdc4155['type']?_0xdc4155['range']['start']['parent']:_0xdc4155['position']['parent'];_0x27d22c['is']('element','footnoteDefinition')&&_0x4238ba['add'](_0x27d22c);}for(const _0x3adaaf of _0x4238ba['values']()){const _0x5dfda7=Array['from'](_0x3adaaf['getChildren']())['filter'](_0x2499e4=>g(_0x2499e4,_0x3e278f['mapper']));for(const _0x2b2bc8 of _0x5dfda7)_0x3e278f['reconvertItem'](_0x2b2bc8);}}(_0x24e824['model'],_0x24e824['editing']);})):(_0x45e64e['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x45e64e['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4933c0,{writer:_0x237a93})=>{const _0x387264=_0x237a93['createContainerElement']('span');return _0x237a93['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x387264),_0x387264;}}));}['_defineKeyboardHandlers'](){const {editor:_0x53deb9}=this,{editing:_0xbbf98b,t:t}=_0x53deb9,_0x216995=_0x53deb9['model']['document']['selection'];_0x53deb9['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x53deb9['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0xbbf98b['view']['document'],'enter',(_0xcbb7dc,_0x269962)=>{const _0x578261=function(_0x33677b){const _0x1f05c0=_0x33677b['getSelectedElement']();if(_0x1f05c0?.['is']('element','footnoteRef'))return _0x1f05c0;return null;}(_0x216995);if(_0x578261){const _0x5bcca9=_0x578261['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5bcca9),_0x269962['preventDefault'](),_0xcbb7dc['stop']();}},{'context':_0x183c3a});}['_defineClickHandlers'](){const {editor:_0x3447ab}=this,{editing:_0x2fab0a}=_0x3447ab;_0x3447ab['editing']['view']['addObserver'](_0x50e6da),_0x3447ab['editing']['view']['addObserver'](_0x574753);let _0x340f5a=!0x1;this['listenTo'](_0x2fab0a['view']['document'],'pointerdown',(_0x356ac9,_0x46fe5f)=>{const {target:_0x243571}=_0x46fe5f,_0x43e877=_0x2fab0a['view']['document']['selection'];_0x340f5a=!!(_0x243571?.['is']('element','a')&&_0x243571['parent']?.['is']('element','sup')&&_0x243571['parent']['hasClass']('footnote'))&&_0x43e877['getSelectedElement']()===_0x243571['parent'];},{'priority':'high'}),this['listenTo'](_0x2fab0a['view']['document'],'click',(_0x46e14d,_0x16fe9f)=>{const {target:_0x4e7ba2}=_0x16fe9f;if(!_0x4e7ba2?.['is']('element','a'))return;if(_0x4e7ba2['parent']?.['is']('element','sup')&&_0x4e7ba2['parent']['hasClass']('footnote')&&!_0x340f5a)return void _0x16fe9f['preventDefault']();let _0xa0fdcf=_0x4e7ba2['getAttribute']('href');if(!_0xa0fdcf?.['startsWith']('#'))return;_0xa0fdcf=_0xa0fdcf['slice'](0x1);let _0x2ff5a0=!0x1;(_0xa0fdcf['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0xa0fdcf['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0xa0fdcf))&&(_0x2ff5a0=!0x0),_0x2ff5a0&&(_0x16fe9f['preventDefault'](),_0x46e14d['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x2c8cd1}={}){return(_0x17bb64,{writer:_0x203c9d})=>{if(!p(_0x17bb64))return null;if(!_0x2c8cd1)return _0x203c9d['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0xefb1ec=_0x203c9d['createContainerElement']('p');return _0x203c9d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xefb1ec),_0xefb1ec;};}function p(_0x2baf5d){const {parent:_0x77c9eb}=_0x2baf5d;if(!_0x77c9eb?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x77c9eb['childCount'])return!0x1;for(const _0x253ae6 of _0x2baf5d['getAttributeKeys']())if(!_0x253ae6['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x253ae6)return!0x1;return!0x0;}function g(_0x16203a,_0x1f6465){if(!_0x16203a['is']('element','paragraph'))return!0x1;const _0x134e05=_0x1f6465['toViewElement'](_0x16203a);return!!_0x134e05&&p(_0x16203a)!==_0x134e05['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x84063){return _0x183c3a(_0x84063)&&_0x84063['is']('containerElement')&&!!_0x84063['getCustomProperty']('footnotesDefinitions');}function v(_0x488fd6,_0x583754={}){const _0x213934=_0x488fd6['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0xbd35aa=_0x488fd6['createContainerElement']('ol',{'class':'footnotes-list'},_0x488fd6['createSlot']());return _0x488fd6['createContainerElement']('div',{'class':'footnotes',..._0x583754},[_0x213934,_0xbd35aa]);}function D(_0x118ed5,_0x415685){const _0x481922=_0x118ed5['getAttribute']('footnoteId'),_0x497201=_0x118ed5['getAttribute']('footnoteCounter'),_0x1359f7=_0x415685['createUIElement']('a',{'href':'#'+_0x481922},function(_0x248950){const _0x1970ed=this['toDomElement'](_0x248950);return _0x1970ed['textContent']=_0x497201,_0x1970ed;}),_0x40435f=_0x415685['createContainerElement']('sup',{'id':'ref-'+_0x481922,'class':'footnote'},[_0x1359f7]);return _0x40435f['getFillerOffset']=()=>null,_0x40435f;}function b(_0x5c21f5,_0x44fe1f,_0x23d5db,{dataPipeline:_0x572076}={}){const {t:t}=_0x23d5db,_0x35fa73=_0x5c21f5['getAttribute']('footnoteId'),_0x3fb7cf=_0x44fe1f['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x35fa73},function(_0x86f7f5){const _0x47c677=this['toDomElement'](_0x86f7f5);return _0x47c677['innerText']='^',_0x47c677;}),_0x3d8a17=_0x572076?_0x44fe1f['createContainerElement']('div',{'class':'footnote-content'}):_0x183b92(_0x44fe1f['createEditableElement']('div',{'class':'footnote-content'}),_0x44fe1f,{'label':t('Footnote\x20content.')});return _0x44fe1f['insert'](_0x44fe1f['createPositionAt'](_0x3d8a17,0x0),_0x44fe1f['createSlot']()),_0x44fe1f['createContainerElement']('li',{'class':'footnote-definition','id':_0x35fa73},[_0x3fb7cf,_0x3d8a17]);}
23
+ import{Plugin as _0x1906d1}from'ckeditor5/src/core.js';import{isWidget as _0xbe5320,toWidget as _0x1512a2,toWidgetEditable as _0x2d3d7a}from'ckeditor5/src/widget.js';import{uid as _0x385376}from'ckeditor5/src/utils.js';import{PointerObserver as _0x352581,ClickObserver as _0x38d9c7}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x35b82c}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x332d63}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1906d1{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x35b82c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x27887b}=this;_0x27887b['config']['define']('footnotes.multiBlock',!0x0),_0x27887b['commands']['add']('insertFootnote',new _0x332d63(_0x27887b)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x2a7911){const _0x42e1eb=_0x1f1a47([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]),_0x2123f3=0x47a28506,_0x1a366e=0x47a5fcee^_0x2123f3,_0x1c0dfb=window[_0x1f1a47([0x44,0x61,0x74,0x65])][_0x1f1a47([0x6e,0x6f,0x77])](),_0x1d88b1=_0x2a7911[_0x1f1a47([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x34f00a=new window[(_0x1f1a47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32f79c=>{_0x1d88b1[_0x1f1a47([0x6f,0x6e,0x63,0x65])](_0x1f1a47([0x72,0x65,0x61,0x64,0x79]),_0x32f79c);}),_0x2f52bd={[_0x1f1a47([0x6b,0x74,0x79])]:_0x1f1a47([0x45,0x43]),[_0x1f1a47([0x75,0x73,0x65])]:_0x1f1a47([0x73,0x69,0x67]),[_0x1f1a47([0x63,0x72,0x76])]:_0x1f1a47([0x50,0x2d,0x32,0x35,0x36]),[_0x1f1a47([0x78])]:_0x1f1a47([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]),[_0x1f1a47([0x79])]:_0x1f1a47([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]),[_0x1f1a47([0x61,0x6c,0x67])]:_0x1f1a47([0x45,0x53,0x32,0x35,0x36])},_0x4f3c29=_0x1d88b1[_0x1f1a47([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f1a47([0x67,0x65,0x74])](_0x1f1a47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xeaf765(){let _0x57cb6b,_0x1afd81=null,_0x4d69cc=null;try{if(_0x4f3c29==_0x1f1a47([0x47,0x50,0x4c]))return _0x1f1a47([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x57cb6b=_0x3fa0b1(),!_0x57cb6b)return _0x1f1a47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x57cb6b[_0x1f1a47([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d69cc=_0x172545(_0x57cb6b[_0x1f1a47([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x57cb6b[_0x1f1a47([0x6a,0x74,0x69])])),await _0x1354b0()?_0x17046a()?_0x472cf4()?_0x1f1a47([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5686de()?(_0x57cb6b[_0x1f1a47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f1a47([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1afd81=_0x327736(_0x1f1a47([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x57cb6b[_0x1f1a47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f1a47([0x74,0x72,0x69,0x61,0x6c])&&(_0x1afd81=_0x327736(_0x1f1a47([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x412d6e()):_0x1f1a47([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f1a47([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f1a47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1f1a47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x472cf4(){const _0x113daa=[_0x1f1a47([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f1a47([0x74,0x72,0x69,0x61,0x6c])][_0x1f1a47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57cb6b[_0x1f1a47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1c0dfb/0x3e8:0xe10*_0x1a366e;return _0x57cb6b[_0x1f1a47([0x65,0x78,0x70])]<_0x113daa;}function _0x17046a(){const _0x50ad71=_0x57cb6b[_0x1f1a47([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x50ad71&&(!!_0x50ad71[_0x1f1a47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1a47([0x2a]))||!!_0x50ad71[_0x1f1a47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1a47([0x46,0x4f,0x4f])));}function _0x5686de(){const _0x1de7f8=_0x57cb6b[_0x1f1a47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1de7f8||0x0==_0x1de7f8[_0x1f1a47([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x159a2b}=new URL(window[_0x1f1a47([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1de7f8[_0x1f1a47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x159a2b))return!0x0;const _0x309b6a=_0x159a2b[_0x1f1a47([0x73,0x70,0x6c,0x69,0x74])](_0x1f1a47([0x2e]));return _0x1de7f8[_0x1f1a47([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x44cb69=>_0x44cb69[_0x1f1a47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1a47([0x2a])))[_0x1f1a47([0x6d,0x61,0x70])](_0x39f466=>_0x39f466[_0x1f1a47([0x73,0x70,0x6c,0x69,0x74])](_0x1f1a47([0x2e])))[_0x1f1a47([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e524f=>_0x5e524f[_0x1f1a47([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x309b6a[_0x1f1a47([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f1a47([0x6d,0x61,0x70])](_0xa97c5c=>Array(_0x309b6a[_0x1f1a47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xa97c5c[_0x1f1a47([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f1a47([0x66,0x69,0x6c,0x6c])](_0xa97c5c[0x0]===_0x1f1a47([0x2a])?_0x1f1a47([0x2a]):'')[_0x1f1a47([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xa97c5c))[_0x1f1a47([0x73,0x6f,0x6d,0x65])](_0x1fcab5=>_0x309b6a[_0x1f1a47([0x65,0x76,0x65,0x72,0x79])]((_0x5a0126,_0x1ea61b)=>_0x1fcab5[_0x1ea61b]===_0x5a0126||_0x1fcab5[_0x1ea61b]===_0x1f1a47([0x2a])));}function _0x412d6e(){return _0x1afd81&&_0x4d69cc?new window[(_0x1f1a47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x153b3a,_0x20be36)=>{_0x1afd81[_0x1f1a47([0x74,0x68,0x65,0x6e])](_0x153b3a,_0x20be36),_0x4d69cc[_0x1f1a47([0x74,0x68,0x65,0x6e])](_0x4fa42b=>{_0x4fa42b!=_0x1f1a47([0x56,0x61,0x6c,0x69,0x64])&&_0x153b3a(_0x4fa42b);},_0x20be36);}):_0x1afd81||_0x4d69cc||_0x1f1a47([0x56,0x61,0x6c,0x69,0x64]);}}function _0x172545(_0x37551b,_0x4dc88f){return new window[(_0x1f1a47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2208dd=>{if(_0x2e8a00())return _0x2208dd(_0x1f1a47([0x56,0x61,0x6c,0x69,0x64]));_0x2efa12(),_0x1d88b1[_0x1f1a47([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f1a47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17d795=!0x1;const _0x4554bd=_0x385376();function _0x26ad65(_0x5db40a){return!!_0x5db40a&&(typeof _0x5db40a===_0x1f1a47([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5db40a===_0x1f1a47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5db40a[_0x1f1a47([0x74,0x68,0x65,0x6e])]===_0x1f1a47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5db40a[_0x1f1a47([0x63,0x61,0x74,0x63,0x68])]===_0x1f1a47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x26ba7e(_0x3465a6){_0x2d9d61(_0x3465a6)[_0x1f1a47([0x74,0x68,0x65,0x6e])](_0x10f289=>{if(!_0x10f289||_0x10f289[_0x1f1a47([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f1a47([0x6f,0x6b]))return _0x1f1a47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x314aa9(_0x2d43d4(_0x4554bd+_0x4dc88f))!=_0x10f289[_0x1f1a47([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f1a47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f1a47([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f1a47([0x74,0x68,0x65,0x6e])](_0x19c325=>(_0x5e5b52(),_0x19c325),()=>{const _0x332aaf=_0x4a53a1();return null==_0x332aaf?(_0x5e5b52(),_0x1f1a47([0x56,0x61,0x6c,0x69,0x64])):_0x1f1a47(_0x1c0dfb-_0x332aaf>(0x63ae0106^_0x2123f3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f1a47([0x74,0x68,0x65,0x6e])](_0x2208dd)[_0x1f1a47([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2208dd(_0x1f1a47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x439fdb=0x47946b86^_0x2123f3;function _0x5e5b52(){const _0x4d8c5b=_0x1f1a47([0x6c,0x6c,0x63,0x74,0x2d])+_0x314aa9(_0x2d43d4(_0x37551b)),_0x13e169=_0x341db7(_0x314aa9(window[_0x1f1a47([0x4d,0x61,0x74,0x68])][_0x1f1a47([0x63,0x65,0x69,0x6c])](_0x1c0dfb/_0x439fdb)));window[_0x1f1a47([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f1a47([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d8c5b,_0x13e169);}function _0x4a53a1(){const _0x30d15d=_0x1f1a47([0x6c,0x6c,0x63,0x74,0x2d])+_0x314aa9(_0x2d43d4(_0x37551b)),_0x5d34e9=window[_0x1f1a47([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f1a47([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30d15d);return _0x5d34e9?window[_0x1f1a47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x341db7(_0x5d34e9),0x10)*_0x439fdb:null;}function _0x2d9d61(_0x13d5df){return new window[(_0x1f1a47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cea07,_0x4aca68)=>{_0x13d5df[_0x1f1a47([0x74,0x68,0x65,0x6e])](_0x2cea07,_0x4aca68),window[_0x1f1a47([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4aca68,0x47a351c6^_0x2123f3);});}}_0x1d88b1[_0x1f1a47([0x6f,0x6e])](_0x1f1a47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4b945f,_0x36e9ce)=>{if(_0x36e9ce[0x0]!=_0x37551b)return _0x2208dd(_0x1f1a47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36e9ce[0x1]={..._0x36e9ce[0x1],[_0x1f1a47([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4554bd};},{[_0x1f1a47([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f1a47([0x68,0x69,0x67,0x68])}),_0x1d88b1[_0x1f1a47([0x6f,0x6e])](_0x1f1a47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x543115=>{_0x26ad65(_0x543115[_0x1f1a47([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17d795=!0x0,_0x26ba7e(_0x543115[_0x1f1a47([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f1a47([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f1a47([0x6c,0x6f,0x77])}),_0x34f00a[_0x1f1a47([0x74,0x68,0x65,0x6e])](()=>{_0x17d795||_0x2208dd(_0x1f1a47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e8a00(){return _0x1d88b1[_0x1f1a47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f1a47([0x76,0x69,0x65,0x77])][_0x1f1a47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f1a47([0x61,0x75,0x74,0x6f]);}function _0x2efa12(){_0x1d88b1[_0x1f1a47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f1a47([0x76,0x69,0x65,0x77])][_0x1f1a47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f1a47([0x61,0x75,0x74,0x6f]);}}function _0x327736(_0x1928ed){const _0x138b42=[new window[(_0x1f1a47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44ddab=>setTimeout(_0x44ddab,0x47abbbca^_0x2123f3)),_0x34f00a[_0x1f1a47([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f1a47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcbdc57=>{let _0x345aff=0x0;_0x1d88b1[_0x1f1a47([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1a47([0x6f,0x6e])](_0x1f1a47([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x10f11a,_0x40f286)=>{_0x40f286[0x0][_0x1f1a47([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x345aff++,_0x345aff==(0x47a284fe^_0x2123f3)&&(_0xcbdc57(),_0x10f11a[_0x1f1a47([0x6f,0x66,0x66])]());});}))];return window[_0x1f1a47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f1a47([0x72,0x61,0x63,0x65])](_0x138b42)[_0x1f1a47([0x74,0x68,0x65,0x6e])](()=>_0x1928ed);}async function _0x21d641(){await _0x34f00a,_0x1d88b1[_0x1f1a47([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1a47([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x264756,_0x1d88b1[_0x1f1a47([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1a47([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x264756,_0x1d88b1[_0x1f1a47([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f1a47([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x153d81(_0x588e9d){const _0x1e8865=_0x51a4e0();_0x1d88b1[_0x1e8865]=_0x1f1a47([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x588e9d,_0x588e9d!=_0x1f1a47([0x56,0x61,0x6c,0x69,0x64])&&_0x21d641();}function _0x51a4e0(){const _0x441b44=window[_0x1f1a47([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f1a47([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f1a47([0x6e,0x6f,0x77])]())[_0x1f1a47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f1a47([0x2e]),'');let _0x399e5d=_0x1f1a47([0x75]);for(let _0x4a6439=0x0;_0x4a6439<_0x441b44[_0x1f1a47([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a6439+=0x2){let _0x5ed681=window[_0x1f1a47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x441b44[_0x1f1a47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a6439,_0x4a6439+0x2));_0x5ed681>=_0x42e1eb[_0x1f1a47([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5ed681-=_0x42e1eb[_0x1f1a47([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x399e5d+=_0x42e1eb[_0x5ed681];}return _0x399e5d;}function _0x3fa0b1(){const _0x3d7b8e=_0x4f3c29[_0x1f1a47([0x73,0x70,0x6c,0x69,0x74])](_0x1f1a47([0x2e]));if(0x3!=_0x3d7b8e[_0x1f1a47([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x23d42f(_0x3d7b8e[0x1]);function _0x23d42f(_0x579a9c){const _0x95dfac=_0x5a1072(_0x579a9c);return _0x95dfac&&_0x2c6fa1()?_0x95dfac:null;function _0x2c6fa1(){const _0x54b476=_0x95dfac[_0x1f1a47([0x6a,0x74,0x69])],_0x5b1c18=window[_0x1f1a47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54b476[_0x1f1a47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54b476[_0x1f1a47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x304e8c={..._0x95dfac,[_0x1f1a47([0x6a,0x74,0x69])]:_0x54b476[_0x1f1a47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x54b476[_0x1f1a47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x304e8c[_0x1f1a47([0x76,0x63])],_0x2d43d4(_0x304e8c)==_0x5b1c18;}}}async function _0x1354b0(){let _0x114046=!0x0;try{const _0xddfbe5=_0x4f3c29[_0x1f1a47([0x73,0x70,0x6c,0x69,0x74])](_0x1f1a47([0x2e])),[_0x11826a,_0x1c4da9,_0x2730ed]=_0xddfbe5;return _0x38e44d(_0x11826a),await _0x84bc09(_0x11826a,_0x1c4da9,_0x2730ed),_0x114046;}catch{return!0x1;}function _0x38e44d(_0x3dd5c1){const _0x25e891=_0x5a1072(_0x3dd5c1);_0x25e891&&_0x25e891[_0x1f1a47([0x61,0x6c,0x67])]==_0x1f1a47([0x45,0x53,0x32,0x35,0x36])||(_0x114046=!0x1);}async function _0x84bc09(_0x57eec3,_0x239c27,_0x4cb6c5){const _0x12752c=window[_0x1f1a47([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f1a47([0x66,0x72,0x6f,0x6d])](_0x3c81cb(_0x4cb6c5),_0x4c1370=>_0x4c1370[_0x1f1a47([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x121cdf=new window[(_0x1f1a47([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f1a47([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x57eec3+_0x1f1a47([0x2e])+_0x239c27),_0x9b77c6=window[_0x1f1a47([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f1a47([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x9b77c6)return;const _0x3d1e9b=await _0x9b77c6[_0x1f1a47([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f1a47([0x6a,0x77,0x6b]),_0x2f52bd,{[_0x1f1a47([0x6e,0x61,0x6d,0x65])]:_0x1f1a47([0x45,0x43,0x44,0x53,0x41]),[_0x1f1a47([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f1a47([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f1a47([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x9b77c6[_0x1f1a47([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f1a47([0x6e,0x61,0x6d,0x65])]:_0x1f1a47([0x45,0x43,0x44,0x53,0x41]),[_0x1f1a47([0x68,0x61,0x73,0x68])]:{[_0x1f1a47([0x6e,0x61,0x6d,0x65])]:_0x1f1a47([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3d1e9b,_0x12752c,_0x121cdf)||(_0x114046=!0x1);}}function _0x5a1072(_0x1d7e50){return _0x1d7e50[_0x1f1a47([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f1a47([0x65,0x79]))?JSON[_0x1f1a47([0x70,0x61,0x72,0x73,0x65])](_0x3c81cb(_0x1d7e50)):null;}function _0x3c81cb(_0x3f0951){return window[_0x1f1a47([0x61,0x74,0x6f,0x62])](_0x3f0951[_0x1f1a47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f1a47([0x2b]))[_0x1f1a47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f1a47([0x2f])));}function _0x2d43d4(_0x92a0da){let _0x538a4d=0x1505;function _0x23efbd(_0x4c828e){for(let _0x453382=0x0;_0x453382<_0x4c828e[_0x1f1a47([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x453382++){const _0x44b177=_0x4c828e[_0x1f1a47([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x453382);_0x538a4d=(_0x538a4d<<0x5)+_0x538a4d+_0x44b177,_0x538a4d&=_0x538a4d;}}function _0x32b7f8(_0x519ac){Array[_0x1f1a47([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x519ac)?_0x519ac[_0x1f1a47([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x32b7f8):_0x519ac&&typeof _0x519ac==_0x1f1a47([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f1a47([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x519ac)[_0x1f1a47([0x73,0x6f,0x72,0x74])]()[_0x1f1a47([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x36488b,_0x5c6cec])=>{_0x23efbd(_0x36488b),_0x32b7f8(_0x5c6cec);}):_0x23efbd(window[_0x1f1a47([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x519ac));}return _0x32b7f8(_0x92a0da),_0x538a4d>>>0x0;}function _0x314aa9(_0x517a4b){return _0x517a4b[_0x1f1a47([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f1a47([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f1a47([0x30]));}function _0x341db7(_0x35c0d0){return _0x35c0d0[_0x1f1a47([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f1a47([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f1a47([0x6a,0x6f,0x69,0x6e])]('');}function _0x264756(){}function _0x1f1a47(_0x45f420){return _0x45f420['map'](_0x534f87=>String['fromCharCode'](_0x534f87))['join']('');}_0x153d81(await _0xeaf765());}(this);}['_moveSelectionToFootnoteDefinition'](_0x568d51){const {plugins:_0x431ac2,editing:_0x42b55b,model:_0x302c05}=this['editor'],_0xae3233=_0x431ac2['get'](_0x35b82c)['getFootnote'](_0x568d51);return!!_0xae3233&&(_0x302c05['change'](_0x121a4d=>{_0x121a4d['setSelection'](_0x121a4d['createPositionAt'](_0xae3233['definition'],'end'));}),_0x42b55b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x473f76){const {plugins:_0x5e16e9,editing:_0x475632,model:_0x55395e}=this['editor'],_0x15d7c5=_0x5e16e9['get'](_0x35b82c)['getFootnote'](_0x473f76);return!!_0x15d7c5&&(_0x55395e['change'](_0xb7c4c7=>{_0xb7c4c7['setSelection'](_0x15d7c5['reference'],'on');}),_0x475632['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x296ad9}=this['editor']['model'],_0x5989b1=this['editor']['config']['get']('footnotes.multiBlock');_0x296ad9['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x296ad9['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x296ad9['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5989b1?_0x296ad9['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x296ad9['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x296ad9['addChildCheck'](_0xf525eb=>{for(const _0x165f9a of _0xf525eb)if('footnoteDefinition'===_0x165f9a['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1ec4af}=this,{conversion:_0x26f686,editing:_0x30a375}=_0x1ec4af,{t:t}=_0x1ec4af['locale'];_0x26f686['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x166d88,{writer:_0x278efb,consumable:_0x5d7372})=>{const _0x1f280f=_0x166d88['getChild'](0x0);if(!_0x1f280f||!_0x1f280f['is']('element','a'))return null;const _0x4aefcf=_0x1f280f['getAttribute']('href')||'';if(!_0x4aefcf['startsWith']('#'))return null;const _0x59aa9a=_0x4aefcf['replace'](/^#/,'');if(!_0x59aa9a)return null;_0x5d7372['consume'](_0x1f280f,{'name':!0x0,'attributes':['href']});for(const {item:_0x342a1a}of _0x30a375['view']['createRangeIn'](_0x1f280f))_0x342a1a['is']('$textProxy')?_0x5d7372['consume'](_0x342a1a['textNode'],{'name':!0x0}):_0x342a1a['is']('element')&&_0x5d7372['consume'](_0x342a1a,{'name':!0x0});return _0x278efb['createElement']('footnoteRef',{'footnoteId':_0x59aa9a});}}),_0x26f686['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x25a130,{writer:_0x41fb77})=>D(_0x25a130,_0x41fb77)}),_0x26f686['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3d2ced,{writer:_0x3600f7})=>{const _0x1bc838=_0x3d2ced['getAttribute']('footnoteCounter');return _0x1512a2(D(_0x3d2ced,_0x3600f7),_0x3600f7,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1bc838)});}});}['_defineDefinitionsConverters'](){const {editor:_0x419f97}=this,{t:t}=_0x419f97['locale'],{conversion:_0x2c1289}=_0x419f97;_0x2c1289['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x2c1289['for']('upcast')['add'](_0x7b6f5e=>{_0x7b6f5e['on']('element:ol',(_0x3764af,_0x307e8b,_0x45feed)=>{const _0x173392=_0x307e8b['viewItem'];if(!_0x173392['hasClass']('footnotes-list')||!_0x307e8b['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x45feed['consumable']['consume'](_0x173392,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x7e5b3a,modelCursor:_0x27db49}=_0x45feed['convertChildren'](_0x307e8b['viewItem'],_0x307e8b['modelCursor']);_0x307e8b['modelRange']=_0x7e5b3a,_0x307e8b['modelCursor']=_0x27db49;}),_0x7b6f5e['on']('element:hr',(_0x32b3b1,_0x33e95d,_0x727bd6)=>{const _0x44b489=_0x33e95d['viewItem'];_0x44b489['hasClass']('footnotes-divider')&&_0x33e95d['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x727bd6['consumable']['consume'](_0x44b489,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x2c1289['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3843fd,{writer:_0x1dc881})=>v(_0x1dc881)}),_0x2c1289['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x594460,{writer:_0x5df89d})=>{const _0x14a981=v(_0x5df89d,{'data-footnotes-list-label':t('Footnotes')}),_0x1cbb8e=_0x1512a2(_0x14a981,_0x5df89d,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x5df89d['setCustomProperty']('footnotesDefinitions',!0x0,_0x1cbb8e),_0x1cbb8e;}});}['_defineDefinitionConverters'](){const {editor:_0x3f7085}=this,{conversion:_0x1e55ca,locale:_0x1f7e78}=_0x3f7085,_0x53264a=_0x3f7085['config']['get']('footnotes.multiBlock');_0x1e55ca['for']('upcast')['add'](_0x4cc1ba=>{_0x4cc1ba['on']('element:li',(_0x16b6d5,_0x2ef68e,_0x1bcf08)=>{const _0x526e07=_0x2ef68e['viewItem'];if(!_0x526e07['hasClass']('footnote-definition')||!_0x526e07['getAttribute']('id'))return;const _0x51753c=_0x526e07['parent'];if(!_0x51753c['is']('element','ol')||!_0x51753c['hasClass']('footnotes-list'))return;if(!_0x1bcf08['consumable']['test'](_0x526e07,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1e5946=_0x1bcf08['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x526e07['getAttribute']('id')});if(!_0x1bcf08['safeInsert'](_0x1e5946,_0x2ef68e['modelCursor']))return;_0x1bcf08['consumable']['consume'](_0x526e07,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x43f44d=Array['from'](_0x526e07['getChildren']())['find'](_0x433eb5=>_0x433eb5['is']('element')&&_0x433eb5['hasClass']('footnote-content'));for(const _0x562f5e of _0x526e07['getChildren']())_0x562f5e['is']('element')&&(_0x1bcf08['consumable']['consume'](_0x562f5e,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1bcf08['consumable']['consume'](_0x562f5e,{'name':!0x0,'classes':'footnote-content'}));if(_0x43f44d){if(_0x53264a)_0x1bcf08['convertChildren'](_0x43f44d,_0x1e5946);else{const _0x3b6679=_0x1bcf08['writer']['createElement']('footnoteInlineContent');_0x1bcf08['writer']['insert'](_0x3b6679,_0x1e5946),_0x1bcf08['convertChildren'](_0x43f44d,_0x3b6679);}}_0x1bcf08['updateConversionResult'](_0x1e5946,_0x2ef68e);});}),_0x1e55ca['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x174141,{writer:_0x119413})=>b(_0x174141,_0x119413,_0x1f7e78,{'dataPipeline':!0x0})}),_0x1e55ca['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x272f37,{writer:_0xf2e618})=>b(_0x272f37,_0xf2e618,_0x1f7e78)});}['_defineBogusParagraphConverters'](){const {editor:_0x2453ea}=this,{conversion:_0x5b414a}=_0x2453ea;_0x2453ea['config']['get']('footnotes.multiBlock')?(_0x5b414a['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x5b414a['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x2453ea['model']['document'],'change:data',()=>{!function(_0xe0f2a9,_0x537a44){const _0x1d6ec1=_0xe0f2a9['document']['differ'],_0x4b2c74=new Set();for(const _0x1a1153 of _0x1d6ec1['getChanges']()){const _0x2d650a='attribute'==_0x1a1153['type']?_0x1a1153['range']['start']['parent']:_0x1a1153['position']['parent'];_0x2d650a['is']('element','footnoteDefinition')&&_0x4b2c74['add'](_0x2d650a);}for(const _0x13592c of _0x4b2c74['values']()){const _0xfb1bf8=Array['from'](_0x13592c['getChildren']())['filter'](_0xd509ff=>g(_0xd509ff,_0x537a44['mapper']));for(const _0x50442a of _0xfb1bf8)_0x537a44['reconvertItem'](_0x50442a);}}(_0x2453ea['model'],_0x2453ea['editing']);})):(_0x5b414a['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x5b414a['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5a61d8,{writer:_0x142586})=>{const _0x5d4f0a=_0x142586['createContainerElement']('span');return _0x142586['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5d4f0a),_0x5d4f0a;}}));}['_defineKeyboardHandlers'](){const {editor:_0x17914a}=this,{editing:_0x33f0f7,t:t}=_0x17914a,_0x36d60e=_0x17914a['model']['document']['selection'];_0x17914a['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x17914a['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x33f0f7['view']['document'],'enter',(_0x2b0e6b,_0x42ec42)=>{const _0x20d7aa=function(_0x3d8009){const _0x4427ec=_0x3d8009['getSelectedElement']();if(_0x4427ec?.['is']('element','footnoteRef'))return _0x4427ec;return null;}(_0x36d60e);if(_0x20d7aa){const _0x44f846=_0x20d7aa['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x44f846),_0x42ec42['preventDefault'](),_0x2b0e6b['stop']();}},{'context':_0xbe5320});}['_defineClickHandlers'](){const {editor:_0x9f47bf}=this,{editing:_0x3eb340}=_0x9f47bf;_0x9f47bf['editing']['view']['addObserver'](_0x352581),_0x9f47bf['editing']['view']['addObserver'](_0x38d9c7);let _0x464031=!0x1;this['listenTo'](_0x3eb340['view']['document'],'pointerdown',(_0x18afd9,_0x5b8ddf)=>{const {target:_0x4cdf82}=_0x5b8ddf,_0x4ef53b=_0x3eb340['view']['document']['selection'];_0x464031=!!(_0x4cdf82?.['is']('element','a')&&_0x4cdf82['parent']?.['is']('element','sup')&&_0x4cdf82['parent']['hasClass']('footnote'))&&_0x4ef53b['getSelectedElement']()===_0x4cdf82['parent'];},{'priority':'high'}),this['listenTo'](_0x3eb340['view']['document'],'click',(_0x19c05d,_0x38e0ef)=>{const {target:_0x157a03}=_0x38e0ef;if(!_0x157a03?.['is']('element','a'))return;if(_0x157a03['parent']?.['is']('element','sup')&&_0x157a03['parent']['hasClass']('footnote')&&!_0x464031)return void _0x38e0ef['preventDefault']();let _0x31855c=_0x157a03['getAttribute']('href');if(!_0x31855c?.['startsWith']('#'))return;_0x31855c=_0x31855c['slice'](0x1);let _0x1c3b89=!0x1;(_0x31855c['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x31855c['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x31855c))&&(_0x1c3b89=!0x0),_0x1c3b89&&(_0x38e0ef['preventDefault'](),_0x19c05d['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x314e3b}={}){return(_0x1dbacf,{writer:_0x445a29})=>{if(!p(_0x1dbacf))return null;if(!_0x314e3b)return _0x445a29['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x24e87a=_0x445a29['createContainerElement']('p');return _0x445a29['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x24e87a),_0x24e87a;};}function p(_0x344c23){const {parent:_0x3fc30d}=_0x344c23;if(!_0x3fc30d?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3fc30d['childCount'])return!0x1;for(const _0x4e0b60 of _0x344c23['getAttributeKeys']())if(!_0x4e0b60['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4e0b60)return!0x1;return!0x0;}function g(_0x17bcba,_0x1bb5d8){if(!_0x17bcba['is']('element','paragraph'))return!0x1;const _0x66fbe3=_0x1bb5d8['toViewElement'](_0x17bcba);return!!_0x66fbe3&&p(_0x17bcba)!==_0x66fbe3['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x4234c6){return _0xbe5320(_0x4234c6)&&_0x4234c6['is']('containerElement')&&!!_0x4234c6['getCustomProperty']('footnotesDefinitions');}function v(_0x2f94fc,_0x1933f1={}){const _0x1227cd=_0x2f94fc['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x3b1ac6=_0x2f94fc['createContainerElement']('ol',{'class':'footnotes-list'},_0x2f94fc['createSlot']());return _0x2f94fc['createContainerElement']('div',{'class':'footnotes',..._0x1933f1},[_0x1227cd,_0x3b1ac6]);}function D(_0x9108d9,_0x33002d){const _0x47955d=_0x9108d9['getAttribute']('footnoteId'),_0xd45c2=_0x9108d9['getAttribute']('footnoteCounter'),_0x1c5e10=_0x33002d['createUIElement']('a',{'href':'#'+_0x47955d},function(_0x42c341){const _0x520edd=this['toDomElement'](_0x42c341);return _0x520edd['textContent']=_0xd45c2,_0x520edd;}),_0xad18f0=_0x33002d['createContainerElement']('sup',{'id':'ref-'+_0x47955d,'class':'footnote'},[_0x1c5e10]);return _0xad18f0['getFillerOffset']=()=>null,_0xad18f0;}function b(_0x419905,_0x2d1de9,_0x545ffe,{dataPipeline:_0x59a616}={}){const {t:t}=_0x545ffe,_0x31179d=_0x419905['getAttribute']('footnoteId'),_0x349f66=_0x2d1de9['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x31179d},function(_0x191e2e){const _0x50681e=this['toDomElement'](_0x191e2e);return _0x50681e['innerText']='^',_0x50681e;}),_0x18afe5=_0x59a616?_0x2d1de9['createContainerElement']('div',{'class':'footnote-content'}):_0x2d3d7a(_0x2d1de9['createEditableElement']('div',{'class':'footnote-content'}),_0x2d1de9,{'label':t('Footnote\x20content.')});return _0x2d1de9['insert'](_0x2d1de9['createPositionAt'](_0x18afe5,0x0),_0x2d1de9['createSlot']()),_0x2d1de9['createContainerElement']('li',{'class':'footnote-definition','id':_0x31179d},[_0x349f66,_0x18afe5]);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa62645=_0x4146;(function(_0xa8f547,_0x112474){const _0x3d321e=_0x4146,_0xcead02=_0xa8f547();while(!![]){try{const _0x326d70=parseInt(_0x3d321e(0x10b))/0x1*(-parseInt(_0x3d321e(0x115))/0x2)+-parseInt(_0x3d321e(0x118))/0x3+parseInt(_0x3d321e(0x111))/0x4+parseInt(_0x3d321e(0x112))/0x5*(parseInt(_0x3d321e(0x116))/0x6)+parseInt(_0x3d321e(0x109))/0x7*(parseInt(_0x3d321e(0x10c))/0x8)+-parseInt(_0x3d321e(0x11a))/0x9*(parseInt(_0x3d321e(0x106))/0xa)+parseInt(_0x3d321e(0x114))/0xb;if(_0x326d70===_0x112474)break;else _0xcead02['push'](_0xcead02['shift']());}catch(_0x4ab798){_0xcead02['push'](_0xcead02['shift']());}}}(_0x18c0,0xc4212));import{Command as _0xc0667c}from'ckeditor5/src/core.js';function _0x4146(_0x5261ce,_0x51fd79){const _0x18c049=_0x18c0();return _0x4146=function(_0x41461b,_0x49d79c){_0x41461b=_0x41461b-0x106;let _0x19dee6=_0x18c049[_0x41461b];return _0x19dee6;},_0x4146(_0x5261ce,_0x51fd79);}import{FootnotesTracker as _0x371520}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0xc0667c{[_0xa62645(0x10a)](){const _0xb2126b=_0xa62645,{editor:_0x288eda}=this,_0xf886a8=_0x288eda[_0xb2126b(0x113)][_0xb2126b(0x117)](_0x371520)[_0xb2126b(0x10f)]();this[_0xb2126b(0x110)]=!!_0xf886a8,this[_0xb2126b(0x11e)]=_0xf886a8?.[_0xb2126b(0x107)](_0xb2126b(0x11d))??null;}[_0xa62645(0x11b)]({value:_0x434e32}){const _0xaa963f=_0xa62645,{editor:_0x187a19}=this,_0x10acc1=_0x187a19[_0xaa963f(0x113)][_0xaa963f(0x117)](_0x371520),_0x1ff955=_0x10acc1[_0xaa963f(0x10f)]();_0x1ff955&&Number[_0xaa963f(0x10d)](_0x434e32)&&_0x187a19[_0xaa963f(0x119)][_0xaa963f(0x10e)](_0xb27f45=>{const _0x3d193e=_0xaa963f;_0xb27f45[_0x3d193e(0x11c)](_0x3d193e(0x11d),_0x434e32,_0x1ff955),_0x10acc1[_0x3d193e(0x108)](_0xb27f45);});}}function _0x18c0(){const _0xeea77e=['1405dIhzFL','plugins','8356128WLTKIT','194kXFLNk','32196SaTFfw','get','1556442Rjigcm','model','1179WdtugJ','execute','setAttribute','footnotesListStart','value','73760AQUnXD','getAttribute','_updateFootnotesCounters','3389603FMVuJG','refresh','7127DufNnN','8xhIIcW','isInteger','change','getFootnotesDefinitionsObjectElement','isEnabled','912048PMHnrM'];_0x18c0=function(){return _0xeea77e;};return _0x18c0();}
23
+ const _0x2876c3=_0xbbf9;(function(_0x590ce3,_0x323cd5){const _0x4e8242=_0xbbf9,_0xc7d8fe=_0x590ce3();while(!![]){try{const _0xed9408=-parseInt(_0x4e8242(0x165))/0x1+-parseInt(_0x4e8242(0x169))/0x2*(-parseInt(_0x4e8242(0x162))/0x3)+-parseInt(_0x4e8242(0x168))/0x4+-parseInt(_0x4e8242(0x15f))/0x5*(parseInt(_0x4e8242(0x15d))/0x6)+parseInt(_0x4e8242(0x156))/0x7*(-parseInt(_0x4e8242(0x164))/0x8)+parseInt(_0x4e8242(0x167))/0x9+parseInt(_0x4e8242(0x157))/0xa;if(_0xed9408===_0x323cd5)break;else _0xc7d8fe['push'](_0xc7d8fe['shift']());}catch(_0xdaa966){_0xc7d8fe['push'](_0xc7d8fe['shift']());}}}(_0x448f,0x1fdd0));function _0xbbf9(_0x2f150a,_0x4fedaa){const _0x448f13=_0x448f();return _0xbbf9=function(_0xbbf931,_0x27551b){_0xbbf931=_0xbbf931-0x152;let _0xe34dff=_0x448f13[_0xbbf931];return _0xe34dff;},_0xbbf9(_0x2f150a,_0x4fedaa);}function _0x448f(){const _0x5de11c=['execute','refresh','footnotesListStart','isEnabled','216979cKfRRJ','1883520pBeWXL','isInteger','model','change','get','getAttribute','29238ZVdirP','value','45ajTaqh','_updateFootnotesCounters','getFootnotesDefinitionsObjectElement','50412ysspsm','plugins','8nzMITh','71245nqXWyQ','setAttribute','230274eulUMK','421468TAfalu','20vWPaSU'];_0x448f=function(){return _0x5de11c;};return _0x448f();}import{Command as _0xb3532}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x5a1451}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0xb3532{[_0x2876c3(0x153)](){const _0x2b73f1=_0x2876c3,{editor:_0x1d96b1}=this,_0x513e50=_0x1d96b1[_0x2b73f1(0x163)][_0x2b73f1(0x15b)](_0x5a1451)[_0x2b73f1(0x161)]();this[_0x2b73f1(0x155)]=!!_0x513e50,this[_0x2b73f1(0x15e)]=_0x513e50?.[_0x2b73f1(0x15c)](_0x2b73f1(0x154))??null;}[_0x2876c3(0x152)]({value:_0x4f8009}){const _0x2e923c=_0x2876c3,{editor:_0x59ec57}=this,_0x3c43e0=_0x59ec57[_0x2e923c(0x163)][_0x2e923c(0x15b)](_0x5a1451),_0x1605b9=_0x3c43e0[_0x2e923c(0x161)]();_0x1605b9&&Number[_0x2e923c(0x158)](_0x4f8009)&&_0x59ec57[_0x2e923c(0x159)][_0x2e923c(0x15a)](_0x4c2ced=>{const _0x4969ef=_0x2e923c;_0x4c2ced[_0x4969ef(0x166)](_0x4969ef(0x154),_0x4f8009,_0x1605b9),_0x3c43e0[_0x4969ef(0x160)](_0x4c2ced);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x294b(_0x4e82b5,_0x45f37f){const _0x2dc508=_0x2dc5();return _0x294b=function(_0x294bae,_0x1b6b76){_0x294bae=_0x294bae-0x6a;let _0x5af384=_0x2dc508[_0x294bae];return _0x5af384;},_0x294b(_0x4e82b5,_0x45f37f);}function _0x2dc5(){const _0x4fd2e8=['isEnabled','refresh','104sYTRrG','7126IZPxMm','plugins','getFootnotesDefinitionsObjectElement','value','34MZtWrA','model','17970glyhcN','1027638cBhQnQ','913CXwmLX','getAttribute','_updateFootnotesCounters','12474DugpQl','206616zNdINu','20LluYrG','execute','774486dhShGB','footnotesListStyle','98128cZQqmN','includes','change','get','setAttribute'];_0x2dc5=function(){return _0x4fd2e8;};return _0x2dc5();}const _0xe12833=_0x294b;(function(_0x19a047,_0x1cf625){const _0xd3a464=_0x294b,_0x1ac668=_0x19a047();while(!![]){try{const _0x10c976=-parseInt(_0xd3a464(0x72))/0x1*(parseInt(_0xd3a464(0x79))/0x2)+parseInt(_0xd3a464(0x7d))/0x3+-parseInt(_0xd3a464(0x7f))/0x4*(-parseInt(_0xd3a464(0x7b))/0x5)+-parseInt(_0xd3a464(0x7a))/0x6+parseInt(_0xd3a464(0x6e))/0x7*(parseInt(_0xd3a464(0x6d))/0x8)+-parseInt(_0xd3a464(0x75))/0x9+parseInt(_0xd3a464(0x74))/0xa*(parseInt(_0xd3a464(0x76))/0xb);if(_0x10c976===_0x1cf625)break;else _0x1ac668['push'](_0x1ac668['shift']());}catch(_0xbecea8){_0x1ac668['push'](_0x1ac668['shift']());}}}(_0x2dc5,0x2692f));import{Command as _0x3234e5}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x1d9144}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x43d4a1}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x3234e5{[_0xe12833(0x6c)](){const _0x1a7fc9=_0xe12833,{editor:_0x5bca8a}=this,_0x270c3b=_0x5bca8a[_0x1a7fc9(0x6f)][_0x1a7fc9(0x82)](_0x43d4a1)[_0x1a7fc9(0x70)]();this[_0x1a7fc9(0x6b)]=!!_0x270c3b,this[_0x1a7fc9(0x71)]=_0x270c3b?.[_0x1a7fc9(0x77)](_0x1a7fc9(0x7e))??null;}[_0xe12833(0x7c)]({value:_0x3eeb04}){const _0x8c915=_0xe12833,{editor:_0xd1afe8}=this,_0x46444e=_0xd1afe8[_0x8c915(0x6f)][_0x8c915(0x82)](_0x43d4a1),_0x1f41e8=_0x46444e[_0x8c915(0x70)]();_0x1f41e8&&_0x1d9144[_0x8c915(0x80)](_0x3eeb04)&&_0xd1afe8[_0x8c915(0x73)][_0x8c915(0x81)](_0x36e763=>{const _0x54a69c=_0x8c915;_0x36e763[_0x54a69c(0x6a)](_0x54a69c(0x7e),_0x3eeb04,_0x1f41e8),_0x46444e[_0x54a69c(0x78)](_0x36e763);});}}
23
+ const _0x2c3b7e=_0x18ab;function _0x15a1(){const _0x29cf0d=['23660XSoVHj','1339672NBmKTO','1486riuLgd','execute','change','2294946XxznRT','5721pXnGSs','value','1494EkdXgR','getAttribute','isEnabled','138094bUdUNa','3768PGlJot','includes','model','1396685FxsKTl','refresh','get','8Lfocwc','footnotesListStyle','14yKfebw','setAttribute','_updateFootnotesCounters','1211501erzdjH','getFootnotesDefinitionsObjectElement','plugins'];_0x15a1=function(){return _0x29cf0d;};return _0x15a1();}(function(_0x483dd4,_0x4ddbd8){const _0x4dbe85=_0x18ab,_0x406639=_0x483dd4();while(!![]){try{const _0xedc007=-parseInt(_0x4dbe85(0x18c))/0x1+parseInt(_0x4dbe85(0x191))/0x2*(-parseInt(_0x4dbe85(0x195))/0x3)+parseInt(_0x4dbe85(0x187))/0x4*(parseInt(_0x4dbe85(0x184))/0x5)+-parseInt(_0x4dbe85(0x194))/0x6+parseInt(_0x4dbe85(0x189))/0x7*(-parseInt(_0x4dbe85(0x190))/0x8)+parseInt(_0x4dbe85(0x197))/0x9*(-parseInt(_0x4dbe85(0x18f))/0xa)+parseInt(_0x4dbe85(0x19a))/0xb*(parseInt(_0x4dbe85(0x19b))/0xc);if(_0xedc007===_0x4ddbd8)break;else _0x406639['push'](_0x406639['shift']());}catch(_0x18fbf3){_0x406639['push'](_0x406639['shift']());}}}(_0x15a1,0xba0cf));import{Command as _0x352f1b}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x10067b}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x5e8b4b}from'../../footnotestracker.js';function _0x18ab(_0x1c901b,_0x2cd8f1){const _0x15a191=_0x15a1();return _0x18ab=function(_0x18ab16,_0x3a8731){_0x18ab16=_0x18ab16-0x182;let _0x5f3e7e=_0x15a191[_0x18ab16];return _0x5f3e7e;},_0x18ab(_0x1c901b,_0x2cd8f1);}export class FootnotesStyleCommand extends _0x352f1b{[_0x2c3b7e(0x185)](){const _0x4fb759=_0x2c3b7e,{editor:_0x36905b}=this,_0x23c5aa=_0x36905b[_0x4fb759(0x18e)][_0x4fb759(0x186)](_0x5e8b4b)[_0x4fb759(0x18d)]();this[_0x4fb759(0x199)]=!!_0x23c5aa,this[_0x4fb759(0x196)]=_0x23c5aa?.[_0x4fb759(0x198)](_0x4fb759(0x188))??null;}[_0x2c3b7e(0x192)]({value:_0x1fb90d}){const _0x507c57=_0x2c3b7e,{editor:_0x191d4c}=this,_0x213208=_0x191d4c[_0x507c57(0x18e)][_0x507c57(0x186)](_0x5e8b4b),_0x32d9bd=_0x213208[_0x507c57(0x18d)]();_0x32d9bd&&_0x10067b[_0x507c57(0x182)](_0x1fb90d)&&_0x191d4c[_0x507c57(0x183)][_0x507c57(0x193)](_0x187994=>{const _0x306636=_0x507c57;_0x187994[_0x306636(0x18a)](_0x306636(0x188),_0x1fb90d,_0x32d9bd),_0x213208[_0x306636(0x18b)](_0x187994);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{BalloonPanelView as _0x4e8324,ButtonView as _0x28cb74,ContextualBalloon as _0x462d6a,createDropdown as _0x3cdf8e}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x49ac1f}from'ckeditor5/src/widget.js';import{Plugin as _0xefdae4}from'ckeditor5/src/core.js';import{IconFootnote as _0x17877b,IconListStyleDecimal as _0x126572,IconListStyleDecimalLeadingZero as _0x58a53d,IconListStyleLowerLatin as _0x53c593,IconListStyleLowerRoman as _0x5d1f5a,IconListStyleUpperLatin as _0x21cfd7,IconListStyleUpperRoman as _0x2aa979}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x58bb5f}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x24ccf2}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0xefdae4{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x462d6a,_0x49ac1f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x110318}=this,{componentFactory:_0x4d8e3e}=_0x110318['ui'];_0x110318['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x4d8e3e['add']('footnotesStyle',function(_0x8be9b1){return _0x10b7c6=>{const {t:t}=_0x10b7c6,_0xa82a5a=_0x8be9b1['commands']['get']('footnotesStyle'),_0x2cf043=_0x3cdf8e(_0x10b7c6),{buttonView:_0x55680d}=_0x2cf043;return _0x2cf043['class']='ck-footnotes-styles-dropdown',_0x2cf043['bind']('isEnabled')['to'](_0xa82a5a,'isEnabled'),_0x55680d['set']({'label':t('Footnotes\x20style'),'icon':_0x17877b,'tooltip':!0x0}),_0x2cf043['once']('change:isOpen',()=>{const _0x95a330=function({editor:_0x2ad4a6,dropdownView:_0x24fbb7}){const {t:t}=_0x2ad4a6['locale'],_0x56e028=t('Footnotes\x20definitions\x20styles'),_0x4d76cd=function(_0x42f79a){const t=_0x42f79a['locale']['t'],_0x4718f6=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x126572},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x58a53d},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x5d1f5a},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x2aa979},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x53c593},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x21cfd7}];return _0x4718f6['map'](function(_0x2d71ed){const _0x262ea3=_0x2d71ed['locale'];return({label:_0x1abdbd,icon:_0x4ff9a5,tooltip:_0x19838f,style:_0x210f92})=>{const _0x4591b7=_0x2d71ed['commands']['get']('footnotesStyle'),_0x462555=new _0x28cb74(_0x262ea3);return _0x462555['set']({'label':_0x1abdbd,'icon':_0x4ff9a5,'tooltip':_0x19838f}),_0x462555['bind']('isOn')['to'](_0x4591b7,'value',_0x3e1cec=>_0x3e1cec===_0x210f92),_0x462555['bind']('isEnabled')['to'](_0x4591b7,'isEnabled'),_0x462555['on']('execute',()=>{_0x2d71ed['execute']('footnotesStyle',{'value':_0x210f92}),_0x2d71ed['editing']['view']['focus']();}),_0x462555;};}(_0x42f79a));}(_0x2ad4a6),_0x1068cf=new _0x58bb5f(_0x2ad4a6['locale'],{'styleGridAriaLabel':_0x56e028,'styleButtonViews':_0x4d76cd});return _0x1068cf['delegate']('execute')['to'](_0x24fbb7),_0x1068cf['on']('footnotesListStart',(_0x1b02c6,_0x4816f6)=>{_0x2ad4a6['execute']('footnotesStart',{'value':_0x4816f6['startIndex']});}),_0x1068cf;}({'editor':_0x8be9b1,'dropdownView':_0x2cf043});_0x2cf043['panelView']['children']['add'](_0x95a330);}),_0x2cf043;};}(_0x110318));}['afterInit'](){const {editor:_0xcbbdeb}=this,{t:t}=_0xcbbdeb['locale'],_0x43a1c4=_0xcbbdeb['plugins']['get'](_0x49ac1f),{defaultPositions:_0x242493}=_0x4e8324;_0x43a1c4['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0xcbbdeb['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x16f010=>{let _0x2cb1bc=_0x16f010['getFirstPosition']()?.['parent'];return _0x2cb1bc?.['is']('$text')&&(_0x2cb1bc=_0x2cb1bc['parent']),_0x2cb1bc?.['is']('element')?_0x2cb1bc['findAncestor'](_0x24ccf2):null;},'positions':[_0x242493['southArrowNorth'],_0x242493['southArrowNorthMiddleWest'],_0x242493['southArrowNorthMiddleEast'],_0x242493['southArrowNorthWest'],_0x242493['southArrowNorthEast'],_0x242493['northArrowSouth'],_0x242493['northArrowSouthMiddleWest'],_0x242493['northArrowSouthMiddleEast'],_0x242493['northArrowSouthWest'],_0x242493['northArrowSouthEast'],_0x242493['viewportStickyNorth']]});}}
23
+ import{BalloonPanelView as _0x4f5bf8,ButtonView as _0x39d18c,ContextualBalloon as _0x16d087,createDropdown as _0xbb5e55}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x44623b}from'ckeditor5/src/widget.js';import{Plugin as _0x156dfe}from'ckeditor5/src/core.js';import{IconFootnote as _0x202560,IconListStyleDecimal as _0x21aed3,IconListStyleDecimalLeadingZero as _0xb98b11,IconListStyleLowerLatin as _0x12f306,IconListStyleLowerRoman as _0x54fa03,IconListStyleUpperLatin as _0x5ae055,IconListStyleUpperRoman as _0x5c4491}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x54c7e5}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x2962cd}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x156dfe{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x16d087,_0x44623b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x484ab9}=this,{componentFactory:_0x29b399}=_0x484ab9['ui'];_0x484ab9['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x29b399['add']('footnotesStyle',function(_0x5ba7aa){return _0x548376=>{const {t:t}=_0x548376,_0x4142ad=_0x5ba7aa['commands']['get']('footnotesStyle'),_0x525f98=_0xbb5e55(_0x548376),{buttonView:_0x55900d}=_0x525f98;return _0x525f98['class']='ck-footnotes-styles-dropdown',_0x525f98['bind']('isEnabled')['to'](_0x4142ad,'isEnabled'),_0x55900d['set']({'label':t('Footnotes\x20style'),'icon':_0x202560,'tooltip':!0x0}),_0x525f98['once']('change:isOpen',()=>{const _0x35d63a=function({editor:_0x55e95f,dropdownView:_0x5caacb}){const {t:t}=_0x55e95f['locale'],_0x2bc885=t('Footnotes\x20definitions\x20styles'),_0x55fbce=function(_0x43a4e7){const t=_0x43a4e7['locale']['t'],_0xd8012d=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x21aed3},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0xb98b11},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x54fa03},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x5c4491},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x12f306},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x5ae055}];return _0xd8012d['map'](function(_0x93578f){const _0x14c574=_0x93578f['locale'];return({label:_0x38469a,icon:_0x26f44c,tooltip:_0x1fc288,style:_0x14ccf0})=>{const _0x1b815b=_0x93578f['commands']['get']('footnotesStyle'),_0x3ac777=new _0x39d18c(_0x14c574);return _0x3ac777['set']({'label':_0x38469a,'icon':_0x26f44c,'tooltip':_0x1fc288}),_0x3ac777['bind']('isOn')['to'](_0x1b815b,'value',_0x230bbf=>_0x230bbf===_0x14ccf0),_0x3ac777['bind']('isEnabled')['to'](_0x1b815b,'isEnabled'),_0x3ac777['on']('execute',()=>{_0x93578f['execute']('footnotesStyle',{'value':_0x14ccf0}),_0x93578f['editing']['view']['focus']();}),_0x3ac777;};}(_0x43a4e7));}(_0x55e95f),_0x3c16f6=new _0x54c7e5(_0x55e95f['locale'],{'styleGridAriaLabel':_0x2bc885,'styleButtonViews':_0x55fbce});return _0x3c16f6['delegate']('execute')['to'](_0x5caacb),_0x3c16f6['on']('footnotesListStart',(_0x186a21,_0x3d467a)=>{_0x55e95f['execute']('footnotesStart',{'value':_0x3d467a['startIndex']});}),_0x3c16f6;}({'editor':_0x5ba7aa,'dropdownView':_0x525f98});_0x525f98['panelView']['children']['add'](_0x35d63a);}),_0x525f98;};}(_0x484ab9));}['afterInit'](){const {editor:_0x2c2134}=this,{t:t}=_0x2c2134['locale'],_0x56a826=_0x2c2134['plugins']['get'](_0x44623b),{defaultPositions:_0x14d157}=_0x4f5bf8;_0x56a826['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x2c2134['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x302f5b=>{let _0x1c3c30=_0x302f5b['getFirstPosition']()?.['parent'];return _0x1c3c30?.['is']('$text')&&(_0x1c3c30=_0x1c3c30['parent']),_0x1c3c30?.['is']('element')?_0x1c3c30['findAncestor'](_0x2962cd):null;},'positions':[_0x14d157['southArrowNorth'],_0x14d157['southArrowNorthMiddleWest'],_0x14d157['southArrowNorthMiddleEast'],_0x14d157['southArrowNorthWest'],_0x14d157['southArrowNorthEast'],_0x14d157['northArrowSouth'],_0x14d157['northArrowSouthMiddleWest'],_0x14d157['northArrowSouthMiddleEast'],_0x14d157['northArrowSouthWest'],_0x14d157['northArrowSouthEast'],_0x14d157['viewportStickyNorth']]});}}