@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251026.0 → 0.0.0-nightly-20251027.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.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -9
- package/src/footnotesediting.js +1 -1
package/build/footnotes.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md.
|
|
4
|
-
*/(()=>{var t={14:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content .footnote-content ul{list-style-type:disc}.ck-content .footnote-content ul ul{list-style-type:circle}.ck-content .footnote-content ul ul ul,.ck-content .footnote-content ul ul ul ul{list-style-type:square}.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 .footnote>a{pointer-events:none}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},237:t=>{"use strict";t.exports=CKEditor5.dll},238:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},265:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},374:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var 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}},410:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},450:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}},453:t=>{"use strict";t.exports=function(t){return t[1]}},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},774:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},945:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>L,FootnotesEditing:()=>v,FootnotesProperties:()=>xt,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>kt,FootnotesStartCommand:()=>lt,FootnotesStyleCommand:()=>rt,FootnotesTracker:()=>f,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["slice","position","$text","createRangeOn","4KeNqeS","1644237bGbxvX","136835dzzCTf","76770ISARHK","delete","_elementName","has","set","add","_trackedElements","86VNvBzn","$graveyard","rootName","from","flat","_model","elementName","values","root","837910rzOMfB","16FYIrDV","push","_getElementKey","nodeAfter","638890ZYqqxo","remove","getElementKey","insert","clear","127005hQrMxF","length","get","name","element","reset","8973omYMSw","getItems","attributes","type","getChanges"];return(r=function(){return t})()}function a(t,e){const o=r();return(a=function(t,e){return o[t-=499]})(t,e)}const c=a;!function(t){const e=a,o=t();for(;;)try{if(131818===parseInt(e(534))/1+parseInt(e(515))/2*(parseInt(e(540))/3)+parseInt(e(505))/4*(-parseInt(e(507))/5)+-parseInt(e(508))/6+-parseInt(e(529))/7*(parseInt(e(525))/8)+parseInt(e(506))/9+-parseInt(e(524))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[c(520)];[c(510)];[c(527)];[c(514)]=new Map;constructor(t,e){const o=c;this[o(520)]=t,this[o(510)]=e[o(521)],this[o(527)]=e[o(531)]}[c(539)](){const t=c;this[t(514)][t(533)]()}[c(500)](t){const e=c,o=new Set,n=new Map;for(const i of t){if(e(532)===i[e(499)]&&e(503)!==i[e(537)]&&i[e(502)][e(528)]){const t=this[e(520)][e(504)](i[e(502)][e(528)]);for(const o of t[e(541)]()){if(!o.is(e(538),this[e(510)]))continue;const t=this[e(527)](o);n[e(511)](t)||n[e(512)](t,[]),n[e(536)](t)[e(526)](o)}}if(e(530)===i[e(499)]&&i[e(537)]===this[e(510)]){const t=this[e(527)]({getAttribute:t=>i[e(542)][e(536)](t)});o[e(513)](t)}}for(const[t,n]of this[e(514)])e(516)===n[e(523)][e(517)]&&o[e(513)](t);for(const t of o)this[e(514)][e(509)](t);for(const[t,o]of n)this[e(514)][e(512)](t,o[o[e(535)]-1]);const i=new Set;for(const[t,s]of n)o[e(511)](t)&&(i[e(513)](s[0]),s[e(535)]>1?n[e(512)](t,s[e(501)](1)):n[e(509)](t),o[e(509)](t));return{removed:Array[e(518)](o),inserted:Array[e(518)](n[e(522)]())[e(519)](),moved:Array[e(518)](i)}}}const u=h;!function(t){const e=h,o=t();for(;;)try{if(547688===-parseInt(e(489))/1+-parseInt(e(455))/2*(parseInt(e(518))/3)+parseInt(e(550))/4+-parseInt(e(546))/5+-parseInt(e(516))/6*(parseInt(e(523))/7)+-parseInt(e(515))/8+parseInt(e(460))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class f extends t.Plugin{[u(472)]=[];[u(453)]=null;[u(490)]=null;[u(519)];[u(463)];[u(476)];static get[u(480)](){return u(464)}static get[u(478)](){return!0}static get[u(543)](){return!0}constructor(t){const e=u;super(t),this[e(519)]=new l(this[e(503)][e(545)],{elementName:e(529),getElementKey:()=>e(551)}),this[e(463)]=new l(this[e(503)][e(545)],{elementName:e(513),getElementKey:t=>t[e(533)](e(531))}),this[e(476)]=new l(this[e(503)][e(545)],{elementName:e(496),getElementKey:t=>t[e(533)](e(531))})}[u(466)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(507)][t(456)](e=>{const n=t,i=o[n(507)][n(544)][n(526)]();let s=!1;return this[n(459)](e,i)&&(s=!0),this[n(499)](e,i)&&(s=!0),this[n(528)](e,i)&&(s=!0),this[n(452)](e)&&(s=!0),this[n(488)](e)&&(s=!0),this[n(502)](e)&&(s=!0),s}),this[t(541)](o[t(507)],t(521),()=>{const e=t;o[e(508)]({isUndoable:!1},t=>{this[e(498)](t)})},{priority:t(534)}),this[t(541)](n,t(458),()=>{const e=t;this[e(472)]=[],this[e(519)][e(549)](),this[e(463)][e(549)](),this[e(476)][e(549)]()},{priority:t(525)})}[u(494)](){return this[u(453)]}[u(473)](t){const e=u;return this[e(472)][e(486)](e=>e.id===t)||null}[u(506)](){const t=u;return Array[t(485)](this[t(472)])}[u(512)](){return this[u(490)]}[u(461)](t){this[u(490)]=t}[u(501)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(472)][o(475)];i++)this[o(522)](t,i)&&(n=!0);return n}[u(495)](t,e){const o=u,n=t[o(491)](o(529),{});return t[o(493)](n,e),this[o(453)]=n,n}[u(498)](t){const e=u;if(!this[e(472)][e(475)]||this[e(453)])return;const o=this[e(472)][0][e(471)][e(504)],n=this[e(495)](t,o);for(const o of this[e(472)])o[e(548)][e(524)]||t[e(477)](o[e(548)],n,e(532));this[e(501)](t)}[u(459)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(519)][o(526)](e);if(r[o(475)]&&(this[o(453)]=r[0]),i[o(475)])if(i[o(475)]>1||this[o(453)]&&i[o(481)](t=>t!==this[o(453)])){const e=t[o(491)](o(529),{}),s=[];this[o(453)]&&s[o(539)](this[o(453)]),s[o(539)](...i),t[o(477)](e,s[0],o(536));for(const n of s)t[o(520)](t[o(487)](n),t[o(467)](e,o(532))),t[o(469)](n);this[o(453)]=e,this[o(501)](t),n=!0}else this[o(453)]=i[0];if(s[o(475)]&&o(535)===this[o(453)]?.[o(504)][o(497)]){for(const e of this[o(472)])t[o(469)](e[o(471)]),n=!0;this[o(472)]=[],this[o(453)]=null}return n}[u(499)](t,e){const o=u;let n=!1;const i=this[o(503)][o(474)][o(468)](o(517)),{inserted:s,moved:r}=this[o(476)][o(526)](e);for(const e of[...r,...s]){const s=e[o(533)](o(531)),r=this[o(473)](s);r&&(r[o(548)]=e),p(t,i,e)&&(n=!0)}return n}[u(528)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(463)][o(526)](e);for(const e of i)this[o(482)](t,e)&&(n=!0);for(const e of s)this[o(462)](t,e)&&(n=!0);for(const e of r)this[o(538)](t,e)&&(n=!0);return n}[u(488)](t){const e=u;if(!this[e(453)])return!1;let o=!1;if(this[e(453)][e(552)]!==this[e(472)][e(475)]){const n=[];for(const t of this[e(453)][e(537)]()){const i=t[e(533)](e(531));this[e(473)](i)||(n[e(505)](t),o=!0)}for(const o of n)t[e(469)](o)}const n=new Set,i=[];for(const t of this[e(453)][e(537)]()){const s=t[e(533)](e(531));n[e(540)](s)?(i[e(505)](t),o=!0):n[e(527)](s)}for(const o of i)t[e(469)](o);return this[e(453)][e(552)]||(t[e(469)](this[e(453)]),this[e(453)]=null,o=!0),o}[u(462)](t,e){const o=u;if(this[o(472)][o(486)](t=>t[o(471)]===e))return!1;let n=!1;const i=e[o(533)](o(531)),s=this[o(473)](i);s&&(t[o(469)](s[o(471)]),this[o(472)]=this[o(472)][o(470)](t=>t.id!==i),n=!0);let r=this[o(453)]?function(t,e){const n=o;for(const o of t[n(537)]())if(o[n(533)](n(531))===e)return o;return null}(this[o(453)],i):null;r||(r=t[o(491)](o(496),{footnoteId:i}),this[o(453)]&&(t[o(477)](r,this[o(453)],o(532)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(503)][o(545)],this[o(472)],e);return this[o(472)][o(492)](c,0,a),this[o(501)](t,c)&&(n=!0),n}[u(482)](t,e){const o=u,n=this[o(472)][o(530)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(472)][n];return o(535)!==s[o(548)][o(504)][o(497)]&&(t[o(469)](s[o(548)]),i=!0),this[o(472)][o(492)](n,1),this[o(501)](t,n)&&(i=!0),i}[u(538)](t,e){const o=u,n=e[o(533)](o(531)),i=this[o(472)][o(530)](t=>t.id===n),s=this[o(472)][i];let r=!1;s[o(471)]=e,this[o(472)][o(492)](i,1);const a=m(this[o(503)][o(545)],this[o(472)],e);return this[o(472)][o(492)](a,0,s),this[o(501)](t,Math[o(479)](i,a))&&(r=!0),r}[u(522)](t,e){const o=u;if(!this[o(453)])return!1;const n=this[o(472)][e];let i;return i=this[o(490)]?this[o(490)]({footnote:n,container:this[o(453)],digits:String(this[o(472)][o(475)])[o(475)],value:e+1}):String(e+1),n[o(471)][o(533)](o(465))!=i&&(t[o(500)](o(465),i,n[o(471)]),!0)}[u(502)](t){const e=u;if(!this[e(453)]||this[e(472)][e(475)]<2)return!1;if(function(t,o){const n=e;if(t[n(475)]!==o[n(475)])return!1;for(let e=0;e<t[n(475)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(472)][e(457)](t=>t.id),Array[e(485)](this[e(453)][e(537)]())[e(457)](t=>t[e(533)](e(531)))))return!1;let o=!1;for(let n=0;n<this[e(472)][e(475)];n++){const i=this[e(472)][n],s=t[e(514)](i[e(548)]),r=t[e(467)](this[e(453)],n);s[e(483)](r)||(t[e(520)](t[e(547)](i[e(548)]),r),o=!0)}return o}[u(452)](t){const e=u;if(!this[e(472)][e(475)])return!1;const{model:o}=this[e(503)];let n=!1;for(let i=0;i<this[e(472)][e(475)]-1;i++){const s=this[e(472)][i],r=this[e(472)][i+1],a=o[e(514)](s[e(471)]),c=o[e(514)](r[e(471)]);e(511)===a[e(510)](c)&&(this[e(538)](t,s[e(471)]),i=-1,n=!0)}return n}}function d(){const t=["_updateFootnoteRefCounter","35QDXruL","parent","high","getChanges","add","_handleFootnoteReferencesChanges","footnotesDefinitions","findIndex","footnoteId","end","getAttribute","low","$graveyard","before","getChildren","_handleMovedFootnoteReference","push","has","listenTo","paragraph","isPremiumPlugin","differ","model","4896810BuTONK","createRangeOn","definition","reset","256612VqErwu","singleton","childCount","_ensureFootnotesReferencesHaveProperOrder","_footnotesDefinitions","getRootNames","8LfViiX","registerPostFixer","map","set","_handleFootnotesDefinitionsObjectChanges","43116516rAtLZr","setFootnoteFormatter","_handleInsertedFootnoteReference","_footnoteRefsTracker","FootnotesTracker","footnoteCounter","init","createPositionAt","get","remove","filter","reference","_footnotes","getFootnote","config","length","_footnoteDefsTracker","insert","isOfficialPlugin","min","pluginName","some","_handleRemoveFootnoteReferenceById","isEqual","indexOf","from","find","createRangeIn","_handleFootnotesDefinitionsObjectSync","668235gwddYT","_footnoteFormatter","createElement","splice","append","getFootnotesDefinitionsObjectElement","_insertEmptyFootnotesDefinitionsContainer","footnoteDefinition","rootName","_ensureFootnotesDefinitionsContainerExists","_handleFootnoteDefinitionsChanges","setAttribute","_updateFootnotesCounters","_sortFootnoteDefinitions","editor","root","unshift","getFootnotes","document","enqueueChange","footnoteInlineContent","compareWith","after","getFootnotesFormatter","footnoteRef","createPositionBefore","8402024LGILhX","869394brJBKN","footnotes.multiBlock","663633TcTRYd","_footnoteDefsContainerTracker","move","change:data"];return(d=function(){return t})()}function h(t,e){const o=d();return(h=function(t,e){return o[t-=452]})(t,e)}function p(t,e,o){const n=u;if(o[n(552)])return!1;const i=n(e?542:509);return t[n(477)](t[n(491)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(475)])return 0;const i=t[n(514)](o);for(let o=0;o<e[n(475)];o++){const s=e[o],r=t[n(514)](s[n(471)]);if(n(536)===i[n(510)](r))return o}const s=o[n(504)];let r=-1;for(let t=e[n(475)]-1;t>=0;t--)if(e[t][n(471)][n(504)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(507)][n(454)](),c=a[n(484)](s[n(497)]),l=a[c+1];if(l)for(let t=0;t<e[n(475)];t++)if(e[t][n(471)][n(504)][n(497)]===l)return t;return e[n(475)]}const g=y;function w(){const t=["get","length","1097459RtaPqv","execute","isBlock","getItems","_moveSelectionToFootnoteDefinition","916428GSnaOg","5257350phPlGV","4761774TgddVo","footnoteRef","refresh","document","createElement","_getPositionToInsertFootnote","selection","change","isEnabled","2367236FRkhcP","FootnotesEditing","editor","checkChild","49PmXAxl","test","model","plugins","3XFVZrh","footnoteId","1158284nQHLoA","insert-footnote-command-executed-with-invalid-id","getFirstRange","isObject","string","insertObject","9461160OjumyN","end"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=225]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(609243===-parseInt(e(234))/1+parseInt(e(260))/2*(-parseInt(e(258))/3)+parseInt(e(250))/4+parseInt(e(240))/5+-parseInt(e(239))/6*(parseInt(e(254))/7)+parseInt(e(230))/8+parseInt(e(241))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(243)](){const t=g,e=this[t(252)][t(256)][t(244)][t(247)],o=this[t(246)](e);this[t(249)]=!!o}[g(235)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(244)],r=this[e(246)](s);if(!r)return;const a=o[e(257)][e(232)](e(251)),c=t?.[e(259)]??(0,i.uid)();!function(t){const o=e;return o(228)==typeof t&&t[o(233)]>0&&!/\s/[o(255)](t)&&!/^\d/[o(255)](t)}(c)?(0,i.logWarning)(e(225)):(n[e(248)](t=>{const o=e,i=t[o(245)](o(242),{footnoteId:c});n[o(229)](i,r,null)}),a[e(238)](c))}[g(246)](t){const e=g,{model:o}=this[e(252)],{schema:n}=o,i=t[e(226)]();for(const t of i[e(237)]())if(n[e(236)](t)||n[e(227)](t))return null;const s=i[e(231)];return n[e(253)](s,e(242))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[f]}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 h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(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=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(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])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]: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=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](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:1761436800;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(f).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(f).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("CTRL+Shift+D","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Shift+D"}]}),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","sup")||!i.hasClass("footnote"))&&s.getSelectedElement()===i},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:o}=e,n=o.getChild(0).getAttribute("href");this._moveSelectionToFootnoteDefinition(n.slice(1)),t.stop(),e.preventDefault()},{priority:"high",context:t=>t.is("element","sup")&&t.hasClass("footnote")&&o}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:o}=e;if(!o.is("element","a"))return;let n=o.getAttribute("href");if(!n?.startsWith("#"))return;n=n.slice(1);let i=!1;(n.startsWith("ref-")&&this._moveSelectionToFootnoteReference(n.slice(4))||this._moveSelectionToFootnoteDefinition(n))&&(i=!0),i&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function P(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);function _(){const t=["insert","pluginName","parse","getFootnotesDefinitionsObjectElement","data","29205539pitjsi","_insertEmptyFootnotesDefinitionsContainer","toModel","toData","createRangeIn","requires","47838BoNFWK","dataTransfer","getFirstRange","drop","sourceEditorId","element","create","footnoteDefinition","2884021Wjxbgy","2327144amMNCR","append","getFootnotes","_handlePasteFootnotesDefinitions","toView","add","end","method","find","1tnizwg","get","document","422892okTCOx","editing","footnoteId","isOfficialPlugin","8KDxfNc","footnotesDefinitions","getData","application/ckeditor5-footnotes","70oFrLiM","setAttribute","createElement","getAttribute","_defineClipboardIntegration","clipboardInput","isPremiumPlugin","reduce","getFootnote","listenTo","1456695FxdILa","root","stringify","init","_handleCopyFootnotesDefinitions","from","definition","content","htmlProcessor","footnoteRef","setData","change","290zLrAaq","push","359004KJMEHZ","editor","outputTransformation","contentInsertion","FootnotesClipboard","entries","remove","length","selection"];return(_=function(){return t})()}function D(t,e){const o=_();return(D=function(t,e){return o[t-=342]})(t,e)}const A=D;!function(t){const e=D,o=t();for(;;)try{if(634314===-parseInt(e(378))/1*(parseInt(e(369))/2)+parseInt(e(413))/3+parseInt(e(381))/4+parseInt(e(411))/5*(parseInt(e(360))/6)+-parseInt(e(368))/7*(parseInt(e(385))/8)+parseInt(e(399))/9*(-parseInt(e(389))/10)+parseInt(e(354))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class L extends t.Plugin{static get[A(350)](){return A(344)}static get[A(359)](){return[v,S.ClipboardPipeline]}static get[A(384)](){return!0}static get[A(395)](){return!0}[A(402)](){this[A(393)]()}[A(393)](){const t=A;this[t(403)](),this[t(372)]()}[A(403)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(379)](S.ClipboardPipeline),s=o[t(379)](f);this[t(398)](i,t(342),(o,i)=>{const r=t,a=function(t,e){const o=D,n=new Set;for(const{item:i}of t[o(358)](e))i.is(o(365),o(408))&&n[o(374)](i[o(392)](o(383)));return Array[o(404)](n)}(n,i[r(406)]);if(!a[r(347)])return;const c=s[r(371)](),l=a[r(396)]((t,o)=>{const n=r,i=c[n(377)](t=>t.id===o);if(i){const o=e[n(353)][n(373)](i[n(405)],{isClipboardPipeline:!0}),s=e[n(353)][n(407)][n(357)](o);t[i.id]=s}return t},Object[r(366)](null));i[r(361)][r(409)](r(388),JSON[r(401)](l))})}[A(372)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(382)],r=n[t(379)](S.ClipboardPipeline),a=n[t(379)](f);let c=null;this[t(398)](s[t(380)],t(394),(e,o)=>{const n=t,i=o[n(361)][n(387)](n(388));c=i?JSON[n(351)](i):null}),this[t(398)](r,t(343),(n,s)=>{const r=t;if(!c)return;const l=s[r(364)]===this[r(414)].id;l&&r(363)===s[r(376)]||o[r(410)](t=>{const n=r;!function(t,e){const o=D,n=[];for(const{item:i}of t[o(358)](e))i.is(o(365),o(386))&&n[o(412)](i);for(const e of n)t[o(346)](e)}(t,s[n(406)]);let u=a[n(352)]();if(!u){const e=o[n(380)][n(348)][n(362)]()[n(400)];u=a[n(355)](t,e)}const f=function(t,e,o){const s=n,r=Object[s(366)](null);for(const{item:n}of t[s(358)](e))if(n.is(s(365),s(408))){const e=n[s(392)](s(383));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(390)](s(383),r[e],n)}return r}(t,s[n(406)],t=>!l||null!==a[n(397)](t));for(const[o,i]of Object[n(345)](c)){const s=f[o]||o,r=t[n(391)](n(367),{footnoteId:s}),a=e[n(353)][n(407)][n(373)](i),c=e[n(353)][n(356)](a,r);t[n(370)](c,r),t[n(349)](r,u,n(375))}c=null})})}}var T=o(311),V=o(355),O=o(450),N=o.n(O),R=o(774),K=o.n(R),M=o(265),j=o.n(M),B=o(410),z=o.n(B),W=o(238),q=o.n(W),H=o(14),U={attributes:{"data-cke":!0}};U.setAttributes=z(),U.insert=j().bind(null,"head"),U.domAPI=K(),U.insertStyleElement=q();N()(H.A,U);H.A&&H.A.locals&&H.A.locals;class X extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",G(t,T.ButtonView)),e.add("menuBar:insertFootnote",G(t,T.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 G(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof T.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 Y=Q;function Q(t,e){var o=J();return(Q=function(t,e){return o[t-=347]})(t,e)}!function(t){for(var e=Q,o=t();;)try{if(355746===-parseInt(e(360))/1+-parseInt(e(347))/2*(parseInt(e(358))/3)+parseInt(e(348))/4*(-parseInt(e(349))/5)+parseInt(e(353))/6+-parseInt(e(357))/7+-parseInt(e(354))/8+parseInt(e(350))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(J);class $ extends t.Plugin{static get[Y(356)](){return Y(359)}static get[Y(355)](){return[v,L,X]}static get[Y(352)](){return!0}static get[Y(351)](){return!0}}function J(){var t=["4tGcFpd","2814390QVkIYj","22996035AmhBut","isPremiumPlugin","isOfficialPlugin","423306kAusXJ","2579704IEufpj","requires","pluginName","3621443VSMUph","6gJfrAm","Footnotes","300106zAskQU","567124HAGenM"];return(J=function(){return t})()}function Z(){const t=["lower-roman","4782022kqgpiH","9199992CxjPxh","lower-latin","decimal-leading-zero","6254692HRccHh","202716mCkZvn","decimal","lower-alpha","3579000kYyoyx","2wTolsw","upper-roman","392902qfohOo","upper-latin","11193952CutpCz","upper-alpha"];return(Z=function(){return t})()}const tt=et;function et(t,e){const o=Z();return(et=function(t,e){return o[t-=306]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(936457===-parseInt(e(315))/1+parseInt(e(313))/2*(-parseInt(e(309))/3)+parseInt(e(308))/4+-parseInt(e(312))/5+-parseInt(e(321))/6+parseInt(e(320))/7+parseInt(e(317))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);const ot=[tt(310),tt(307),tt(306),tt(316),tt(311),tt(318),tt(319),tt(314)];function nt(){const t=["includes","getAttribute","4582370GpFWRN","refresh","isEnabled","3eXpmFY","_updateFootnotesCounters","value","1515150mhYIzU","plugins","1270352gyUwQc","35055180VTfbEP","change","7MSwbHB","model","493366sXuwFc","footnotesListStyle","execute","get","getFootnotesDefinitionsObjectElement","6200616lhEOOw","setAttribute","14208432xZiaFR"];return(nt=function(){return t})()}function it(t,e){const o=nt();return(it=function(t,e){return o[t-=449]})(t,e)}const st=it;!function(t){const e=it,o=t();for(;;)try{if(928532===parseInt(e(457))/1+-parseInt(e(462))/2*(parseInt(e(452))/3)+-parseInt(e(467))/4+-parseInt(e(449))/5+parseInt(e(455))/6+-parseInt(e(460))/7*(parseInt(e(469))/8)+parseInt(e(458))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);class rt extends t.Command{[st(450)](){const t=st,{editor:e}=this,o=e[t(456)][t(465)](f)[t(466)]();this[t(451)]=!!o,this[t(454)]=o?.[t(471)](t(463))??null}[st(464)]({value:t}){const e=st,{editor:o}=this,n=o[e(456)][e(465)](f),i=n[e(466)]();i&&ot[e(470)](t)&&o[e(461)][e(459)](o=>{const s=e;o[s(468)](s(463),t,i),n[s(453)](o)})}}const at=ct;function ct(t,e){const o=ut();return(ct=function(t,e){return o[t-=459]})(t,e)}!function(t){const e=ct,o=t();for(;;)try{if(971353===parseInt(e(466))/1*(parseInt(e(476))/2)+-parseInt(e(481))/3*(-parseInt(e(483))/4)+parseInt(e(479))/5+parseInt(e(470))/6+parseInt(e(463))/7*(parseInt(e(461))/8)+parseInt(e(459))/9*(-parseInt(e(465))/10)+-parseInt(e(462))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class lt extends t.Command{[at(469)](){const t=at,{editor:e}=this,o=e[t(467)][t(460)](f)[t(473)]();this[t(468)]=!!o,this[t(475)]=o?.[t(471)](t(477))??null}[at(478)]({value:t}){const e=at,{editor:o}=this,n=o[e(467)][e(460)](f),i=n[e(473)]();i&&Number[e(482)](t)&&o[e(474)][e(480)](o=>{const s=e;o[s(464)](s(477),t,i),n[s(472)](o)})}}function ut(){const t=["10924422LnTavK","getAttribute","_updateFootnotesCounters","getFootnotesDefinitionsObjectElement","model","value","158yTfDOp","footnotesListStart","execute","5051620pkamkV","change","3oxXFzE","isInteger","1878944geywqn","109593rlBqgY","get","3890448tQUWcE","39134293QebjwF","7udltav","setAttribute","50CuTkPm","10162pPTMnp","plugins","isEnabled","refresh"];return(ut=function(){return t})()}const ft=ht;function dt(){const t=["from","footnotes-list","createRangeOn","4954833xbIhsM","footnotesListStyle","toUpperCase","parent","position","list-style-type","start","getAttribute","upcast","upper-alpha","registerPostFixer","item","footnotesListStart","toViewElement","differ","define","1617729VENLcl","decimal","pluginName","editor","padStart","getStyle","find","type","_definePostfixer","attribute:footnotesListStyle:footnotesDefinitions","2547153BmCOjF","mapper","setStyle","footnotesStart","5KqPGzG","config","name","_getDefaultListStyle","setFootnoteFormatter","getChildren","isNaN","fromCharCode","lower-latin","nodeAfter","element","requires","lower-alpha","FootnotesPropertiesEditing","get","modelCursor","consumable","max","isPremiumPlugin","schema","init","commands","viewItem","hasClass","attribute:footnotesListStart:footnotesDefinitions","6261200mvYOhb","removeAttribute","footnotesDefinitions","413082AqONyN","consume","parseInt","removeStyle","downcast","floor","checkAttribute","extend","_defineConverters","152782ZgKheJ","$text","plugins","isOfficialPlugin","getItems","decimal-leading-zero","for","setAttribute","footnotesStyle","_updateFootnotesCounters","25710058czEFlp","insert","24WIBezK","upper-roman","_defineFormatter","element:ol","add","footnotes.footnotesProperties.defaultStartIndex","hasAttribute","lower-roman","model","_getDefaultStartIndex","13lxzTYc","footnotes.footnotesProperties.defaultListStyle","document","_formatFootnoteListValue","upper-latin","10BDPrRe","toLowerCase","getChanges","_defineSchema","writer"];return(dt=function(){return t})()}function ht(t,e){const o=dt();return(ht=function(t,e){return o[t-=219]})(t,e)}!function(t){const e=ht,o=t();for(;;)try{if(790391===-parseInt(e(313))/1*(parseInt(e(291))/2)+parseInt(e(240))/3+-parseInt(e(279))/4+parseInt(e(254))/5*(-parseInt(e(282))/6)+-parseInt(e(250))/7*(-parseInt(e(303))/8)+-parseInt(e(224))/9+parseInt(e(318))/10*(parseInt(e(301))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class pt extends t.Plugin{static get[ft(242)](){return ft(267)}static get[ft(265)](){return[v,f]}static get[ft(294)](){return!0}static get[ft(272)](){return!0}[ft(274)](){const t=ft,{editor:e}=this;e[t(255)][t(239)](t(314),t(241)),e[t(255)][t(239)](t(308),1),e[t(275)][t(307)](t(299),new rt(e)),e[t(275)][t(307)](t(253),new lt(e)),this[t(219)](),this[t(290)](),this[t(305)](),this[t(248)]()}[ft(219)](){const t=ft,{editor:e}=this,{schema:o}=e[t(311)];o[t(289)](t(281),{allowAttributes:[t(225),t(236)]})}[ft(290)](){const t=ft,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(297)](t(232))[t(307)](e=>{const o=t;e.on(o(306),(t,e,n)=>{const s=o,r=e[s(276)],a=e[s(269)]?.[s(227)];r[s(277)](s(222))&&a?.is(s(264),s(281))&&(function(t,e,o,n){const i=s;if(!n[i(288)](e,i(236)))return;let r=1;const a=o[i(270)][i(283)](t,{attributes:i(230)});if(a){const e=Number[i(284)](t[i(231)](i(230)),10);Number[i(260)](e)||(r=e)}!a&&e[i(309)](i(236))||o[i(220)][i(298)](i(236),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(288)](e,i(225)))return;let r=i(241),a=!1;if(o[i(270)][i(283)](t,{attributes:i(247)})){const e={1:i(241),a:i(266),A:i(233),i:i(310),I:i(304)}[t[i(231)](i(247))];e&&(r=e),a=!0}o[i(270)][i(283)](t,{styles:i(229)})&&(r=t[i(245)](i(229)),a=!0),!a&&e[i(309)](i(225))||o[i(220)][i(298)](i(225),r,e)}(r,a,n,i))})}),o[t(297)](t(286))[t(307)](e=>{const o=t;e.on(o(278),(t,e,n)=>{const i=o;if(!n[i(270)][i(283)](e[i(235)],t[i(256)]))return;const s=mt(e[i(235)],n[i(251)]),{attributeNewValue:r}=e;null==r||1===r?n[i(220)][i(280)](i(230),s):n[i(220)][i(298)](i(230),String(r),s)}),e.on(o(249),(t,e,n)=>{const i=o;if(!n[i(270)][i(283)](e[i(235)],t[i(256)]))return;const s=mt(e[i(235)],n[i(251)]),{attributeNewValue:r}=e;r&&i(241)!==r?n[i(220)][i(252)](i(229),r,s):n[i(220)][i(285)](i(229),s)})})}[ft(248)](){const t=ft,{editor:e}=this,{model:o}=e,n=e[t(293)][t(268)](f),i=this[t(257)](),s=this[t(312)]();o[t(315)][t(234)](e=>{const r=t,a=o[r(315)][r(238)][r(320)]();let c=!1;for(const t of a){if(r(302)!==t[r(247)]||r(292)===t[r(256)])continue;const n=o[r(223)](t[r(228)][r(263)]);for(const t of n[r(295)]())t.is(r(264),r(281))&&(!t[r(309)](r(236))&&o[r(273)][r(288)](t,r(236))&&(e[r(298)](r(236),s,t),c=!0),!t[r(309)](r(225))&&o[r(273)][r(288)](t,r(225))&&(e[r(298)](r(225),i,t),c=!0))}return c&&n[r(300)](e),c})}[ft(305)](){const t=ft,{editor:e}=this;e[t(293)][t(268)](f)[t(258)](e=>this[t(316)](e))}[ft(257)](){const t=ft;return this[t(243)][t(255)][t(268)](t(314))}[ft(312)](){const t=ft;return this[t(243)][t(255)][t(268)](t(308))}[ft(316)]({container:t,value:e,digits:o}){const n=ft,i=t[n(231)](n(225)),s=t[n(231)](n(236)),r=Math[n(287)](e)+(s??1)-1;switch(i){case n(296):return function(t,e){const o=n;return String(t)[o(244)](e,"0")}(r,Math[n(271)](2,o));case n(266):case n(262):return gt(r,!1);case n(233):case n(317):return gt(r,!0);case n(310):return yt(r,!1);case n(304):return yt(r,!0);default:return String(r)}}}function mt(t,e){const o=ft,n=e[o(237)](t);return Array[o(221)](n[o(259)]())[o(246)](t=>t.is(o(264),"ol")&&t[o(277)](o(222)))}function gt(t,e){const o=ft;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(261)](97+t)+n,i=Math[o(287)]((i-1)/26)}return e?n[o(226)]():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(t,e){const o=ft;let n="",i=t;for(const{value:t,numeral:e}of wt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(319)]()}class bt extends T.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new T.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new T.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,T.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 T.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 T.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 T.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 T.LabeledFieldView(this.locale,T.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,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("Footnotes start index must be greater than 0.")}),e}}var vt=o(945),It={attributes:{"data-cke":!0}};It.setAttributes=z(),It.insert=j().bind(null,"head"),It.domAPI=K(),It.insertStyleElement=q();N()(vt.A,It);vt.A&&vt.A.locals&&vt.A.locals;class kt extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[T.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,T.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 T.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 bt(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}=T.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 Ct=Ft;function Ft(t,e){var o=Et();return(Ft=function(t,e){return o[t-=286]})(t,e)}!function(t){for(var e=Ft,o=t();;)try{if(608564===parseInt(e(290))/1+-parseInt(e(293))/2*(-parseInt(e(297))/3)+parseInt(e(294))/4*(parseInt(e(302))/5)+-parseInt(e(288))/6*(parseInt(e(299))/7)+-parseInt(e(287))/8*(parseInt(e(289))/9)+parseInt(e(291))/10*(-parseInt(e(292))/11)+parseInt(e(300))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class xt extends t.Plugin{static get[Ct(296)](){return Ct(286)}static get[Ct(301)](){return[pt,kt]}static get[Ct(295)](){return!0}static get[Ct(298)](){return!0}}function Et(){var t=["10uDmKVv","FootnotesProperties","2408oFyKwD","266568QVFOqW","27414SSRQHC","1093176JeuDsj","3530CEBBrC","440srjyfK","2ZVFvxG","517744DzoauY","isOfficialPlugin","pluginName","993723KxMVlU","isPremiumPlugin","35FCWCaP","940572VWrDnM","requires"];return(Et=function(){return t})()}function Pt(){var t=["6720826xMocfs","1868022arfLHj","1Aqxhdx","916ytpWSR","10NIFbFX","1525134qQRWOD","11HdDbNP","2931JvzDtA","7827112UmLBCc","37172810wRswSO","1492230fcPZVs"];return(Pt=function(){return t})()}function St(t,e){var o=Pt();return(St=function(t,e){return o[t-=353]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(534972===parseInt(e(358))/1*(-parseInt(e(361))/2)+parseInt(e(363))/3*(parseInt(e(359))/4)+parseInt(e(360))/5*(-parseInt(e(355))/6)+-parseInt(e(356))/7+-parseInt(e(353))/8+-parseInt(e(357))/9+-parseInt(e(354))/10*(-parseInt(e(362))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
4
|
+
*/(()=>{var t={14:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content .footnote-content ul{list-style-type:disc}.ck-content .footnote-content ul ul{list-style-type:circle}.ck-content .footnote-content ul ul ul,.ck-content .footnote-content ul ul ul ul{list-style-type:square}.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 .footnote>a{pointer-events:none}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},237:t=>{"use strict";t.exports=CKEditor5.dll},238:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},265:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},374:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var 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}},410:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},450:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}},453:t=>{"use strict";t.exports=function(t){return t[1]}},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},774:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},945:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>L,FootnotesEditing:()=>v,FootnotesProperties:()=>xt,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>kt,FootnotesStartCommand:()=>lt,FootnotesStyleCommand:()=>rt,FootnotesTracker:()=>f,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["slice","position","$text","createRangeOn","4KeNqeS","1644237bGbxvX","136835dzzCTf","76770ISARHK","delete","_elementName","has","set","add","_trackedElements","86VNvBzn","$graveyard","rootName","from","flat","_model","elementName","values","root","837910rzOMfB","16FYIrDV","push","_getElementKey","nodeAfter","638890ZYqqxo","remove","getElementKey","insert","clear","127005hQrMxF","length","get","name","element","reset","8973omYMSw","getItems","attributes","type","getChanges"];return(r=function(){return t})()}function a(t,e){const o=r();return(a=function(t,e){return o[t-=499]})(t,e)}const c=a;!function(t){const e=a,o=t();for(;;)try{if(131818===parseInt(e(534))/1+parseInt(e(515))/2*(parseInt(e(540))/3)+parseInt(e(505))/4*(-parseInt(e(507))/5)+-parseInt(e(508))/6+-parseInt(e(529))/7*(parseInt(e(525))/8)+parseInt(e(506))/9+-parseInt(e(524))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[c(520)];[c(510)];[c(527)];[c(514)]=new Map;constructor(t,e){const o=c;this[o(520)]=t,this[o(510)]=e[o(521)],this[o(527)]=e[o(531)]}[c(539)](){const t=c;this[t(514)][t(533)]()}[c(500)](t){const e=c,o=new Set,n=new Map;for(const i of t){if(e(532)===i[e(499)]&&e(503)!==i[e(537)]&&i[e(502)][e(528)]){const t=this[e(520)][e(504)](i[e(502)][e(528)]);for(const o of t[e(541)]()){if(!o.is(e(538),this[e(510)]))continue;const t=this[e(527)](o);n[e(511)](t)||n[e(512)](t,[]),n[e(536)](t)[e(526)](o)}}if(e(530)===i[e(499)]&&i[e(537)]===this[e(510)]){const t=this[e(527)]({getAttribute:t=>i[e(542)][e(536)](t)});o[e(513)](t)}}for(const[t,n]of this[e(514)])e(516)===n[e(523)][e(517)]&&o[e(513)](t);for(const t of o)this[e(514)][e(509)](t);for(const[t,o]of n)this[e(514)][e(512)](t,o[o[e(535)]-1]);const i=new Set;for(const[t,s]of n)o[e(511)](t)&&(i[e(513)](s[0]),s[e(535)]>1?n[e(512)](t,s[e(501)](1)):n[e(509)](t),o[e(509)](t));return{removed:Array[e(518)](o),inserted:Array[e(518)](n[e(522)]())[e(519)](),moved:Array[e(518)](i)}}}const u=h;!function(t){const e=h,o=t();for(;;)try{if(547688===-parseInt(e(489))/1+-parseInt(e(455))/2*(parseInt(e(518))/3)+parseInt(e(550))/4+-parseInt(e(546))/5+-parseInt(e(516))/6*(parseInt(e(523))/7)+-parseInt(e(515))/8+parseInt(e(460))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class f extends t.Plugin{[u(472)]=[];[u(453)]=null;[u(490)]=null;[u(519)];[u(463)];[u(476)];static get[u(480)](){return u(464)}static get[u(478)](){return!0}static get[u(543)](){return!0}constructor(t){const e=u;super(t),this[e(519)]=new l(this[e(503)][e(545)],{elementName:e(529),getElementKey:()=>e(551)}),this[e(463)]=new l(this[e(503)][e(545)],{elementName:e(513),getElementKey:t=>t[e(533)](e(531))}),this[e(476)]=new l(this[e(503)][e(545)],{elementName:e(496),getElementKey:t=>t[e(533)](e(531))})}[u(466)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(507)][t(456)](e=>{const n=t,i=o[n(507)][n(544)][n(526)]();let s=!1;return this[n(459)](e,i)&&(s=!0),this[n(499)](e,i)&&(s=!0),this[n(528)](e,i)&&(s=!0),this[n(452)](e)&&(s=!0),this[n(488)](e)&&(s=!0),this[n(502)](e)&&(s=!0),s}),this[t(541)](o[t(507)],t(521),()=>{const e=t;o[e(508)]({isUndoable:!1},t=>{this[e(498)](t)})},{priority:t(534)}),this[t(541)](n,t(458),()=>{const e=t;this[e(472)]=[],this[e(519)][e(549)](),this[e(463)][e(549)](),this[e(476)][e(549)]()},{priority:t(525)})}[u(494)](){return this[u(453)]}[u(473)](t){const e=u;return this[e(472)][e(486)](e=>e.id===t)||null}[u(506)](){const t=u;return Array[t(485)](this[t(472)])}[u(512)](){return this[u(490)]}[u(461)](t){this[u(490)]=t}[u(501)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(472)][o(475)];i++)this[o(522)](t,i)&&(n=!0);return n}[u(495)](t,e){const o=u,n=t[o(491)](o(529),{});return t[o(493)](n,e),this[o(453)]=n,n}[u(498)](t){const e=u;if(!this[e(472)][e(475)]||this[e(453)])return;const o=this[e(472)][0][e(471)][e(504)],n=this[e(495)](t,o);for(const o of this[e(472)])o[e(548)][e(524)]||t[e(477)](o[e(548)],n,e(532));this[e(501)](t)}[u(459)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(519)][o(526)](e);if(r[o(475)]&&(this[o(453)]=r[0]),i[o(475)])if(i[o(475)]>1||this[o(453)]&&i[o(481)](t=>t!==this[o(453)])){const e=t[o(491)](o(529),{}),s=[];this[o(453)]&&s[o(539)](this[o(453)]),s[o(539)](...i),t[o(477)](e,s[0],o(536));for(const n of s)t[o(520)](t[o(487)](n),t[o(467)](e,o(532))),t[o(469)](n);this[o(453)]=e,this[o(501)](t),n=!0}else this[o(453)]=i[0];if(s[o(475)]&&o(535)===this[o(453)]?.[o(504)][o(497)]){for(const e of this[o(472)])t[o(469)](e[o(471)]),n=!0;this[o(472)]=[],this[o(453)]=null}return n}[u(499)](t,e){const o=u;let n=!1;const i=this[o(503)][o(474)][o(468)](o(517)),{inserted:s,moved:r}=this[o(476)][o(526)](e);for(const e of[...r,...s]){const s=e[o(533)](o(531)),r=this[o(473)](s);r&&(r[o(548)]=e),p(t,i,e)&&(n=!0)}return n}[u(528)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(463)][o(526)](e);for(const e of i)this[o(482)](t,e)&&(n=!0);for(const e of s)this[o(462)](t,e)&&(n=!0);for(const e of r)this[o(538)](t,e)&&(n=!0);return n}[u(488)](t){const e=u;if(!this[e(453)])return!1;let o=!1;if(this[e(453)][e(552)]!==this[e(472)][e(475)]){const n=[];for(const t of this[e(453)][e(537)]()){const i=t[e(533)](e(531));this[e(473)](i)||(n[e(505)](t),o=!0)}for(const o of n)t[e(469)](o)}const n=new Set,i=[];for(const t of this[e(453)][e(537)]()){const s=t[e(533)](e(531));n[e(540)](s)?(i[e(505)](t),o=!0):n[e(527)](s)}for(const o of i)t[e(469)](o);return this[e(453)][e(552)]||(t[e(469)](this[e(453)]),this[e(453)]=null,o=!0),o}[u(462)](t,e){const o=u;if(this[o(472)][o(486)](t=>t[o(471)]===e))return!1;let n=!1;const i=e[o(533)](o(531)),s=this[o(473)](i);s&&(t[o(469)](s[o(471)]),this[o(472)]=this[o(472)][o(470)](t=>t.id!==i),n=!0);let r=this[o(453)]?function(t,e){const n=o;for(const o of t[n(537)]())if(o[n(533)](n(531))===e)return o;return null}(this[o(453)],i):null;r||(r=t[o(491)](o(496),{footnoteId:i}),this[o(453)]&&(t[o(477)](r,this[o(453)],o(532)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(503)][o(545)],this[o(472)],e);return this[o(472)][o(492)](c,0,a),this[o(501)](t,c)&&(n=!0),n}[u(482)](t,e){const o=u,n=this[o(472)][o(530)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(472)][n];return o(535)!==s[o(548)][o(504)][o(497)]&&(t[o(469)](s[o(548)]),i=!0),this[o(472)][o(492)](n,1),this[o(501)](t,n)&&(i=!0),i}[u(538)](t,e){const o=u,n=e[o(533)](o(531)),i=this[o(472)][o(530)](t=>t.id===n),s=this[o(472)][i];let r=!1;s[o(471)]=e,this[o(472)][o(492)](i,1);const a=m(this[o(503)][o(545)],this[o(472)],e);return this[o(472)][o(492)](a,0,s),this[o(501)](t,Math[o(479)](i,a))&&(r=!0),r}[u(522)](t,e){const o=u;if(!this[o(453)])return!1;const n=this[o(472)][e];let i;return i=this[o(490)]?this[o(490)]({footnote:n,container:this[o(453)],digits:String(this[o(472)][o(475)])[o(475)],value:e+1}):String(e+1),n[o(471)][o(533)](o(465))!=i&&(t[o(500)](o(465),i,n[o(471)]),!0)}[u(502)](t){const e=u;if(!this[e(453)]||this[e(472)][e(475)]<2)return!1;if(function(t,o){const n=e;if(t[n(475)]!==o[n(475)])return!1;for(let e=0;e<t[n(475)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(472)][e(457)](t=>t.id),Array[e(485)](this[e(453)][e(537)]())[e(457)](t=>t[e(533)](e(531)))))return!1;let o=!1;for(let n=0;n<this[e(472)][e(475)];n++){const i=this[e(472)][n],s=t[e(514)](i[e(548)]),r=t[e(467)](this[e(453)],n);s[e(483)](r)||(t[e(520)](t[e(547)](i[e(548)]),r),o=!0)}return o}[u(452)](t){const e=u;if(!this[e(472)][e(475)])return!1;const{model:o}=this[e(503)];let n=!1;for(let i=0;i<this[e(472)][e(475)]-1;i++){const s=this[e(472)][i],r=this[e(472)][i+1],a=o[e(514)](s[e(471)]),c=o[e(514)](r[e(471)]);e(511)===a[e(510)](c)&&(this[e(538)](t,s[e(471)]),i=-1,n=!0)}return n}}function d(){const t=["_updateFootnoteRefCounter","35QDXruL","parent","high","getChanges","add","_handleFootnoteReferencesChanges","footnotesDefinitions","findIndex","footnoteId","end","getAttribute","low","$graveyard","before","getChildren","_handleMovedFootnoteReference","push","has","listenTo","paragraph","isPremiumPlugin","differ","model","4896810BuTONK","createRangeOn","definition","reset","256612VqErwu","singleton","childCount","_ensureFootnotesReferencesHaveProperOrder","_footnotesDefinitions","getRootNames","8LfViiX","registerPostFixer","map","set","_handleFootnotesDefinitionsObjectChanges","43116516rAtLZr","setFootnoteFormatter","_handleInsertedFootnoteReference","_footnoteRefsTracker","FootnotesTracker","footnoteCounter","init","createPositionAt","get","remove","filter","reference","_footnotes","getFootnote","config","length","_footnoteDefsTracker","insert","isOfficialPlugin","min","pluginName","some","_handleRemoveFootnoteReferenceById","isEqual","indexOf","from","find","createRangeIn","_handleFootnotesDefinitionsObjectSync","668235gwddYT","_footnoteFormatter","createElement","splice","append","getFootnotesDefinitionsObjectElement","_insertEmptyFootnotesDefinitionsContainer","footnoteDefinition","rootName","_ensureFootnotesDefinitionsContainerExists","_handleFootnoteDefinitionsChanges","setAttribute","_updateFootnotesCounters","_sortFootnoteDefinitions","editor","root","unshift","getFootnotes","document","enqueueChange","footnoteInlineContent","compareWith","after","getFootnotesFormatter","footnoteRef","createPositionBefore","8402024LGILhX","869394brJBKN","footnotes.multiBlock","663633TcTRYd","_footnoteDefsContainerTracker","move","change:data"];return(d=function(){return t})()}function h(t,e){const o=d();return(h=function(t,e){return o[t-=452]})(t,e)}function p(t,e,o){const n=u;if(o[n(552)])return!1;const i=n(e?542:509);return t[n(477)](t[n(491)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(475)])return 0;const i=t[n(514)](o);for(let o=0;o<e[n(475)];o++){const s=e[o],r=t[n(514)](s[n(471)]);if(n(536)===i[n(510)](r))return o}const s=o[n(504)];let r=-1;for(let t=e[n(475)]-1;t>=0;t--)if(e[t][n(471)][n(504)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(507)][n(454)](),c=a[n(484)](s[n(497)]),l=a[c+1];if(l)for(let t=0;t<e[n(475)];t++)if(e[t][n(471)][n(504)][n(497)]===l)return t;return e[n(475)]}const g=y;function w(){const t=["get","length","1097459RtaPqv","execute","isBlock","getItems","_moveSelectionToFootnoteDefinition","916428GSnaOg","5257350phPlGV","4761774TgddVo","footnoteRef","refresh","document","createElement","_getPositionToInsertFootnote","selection","change","isEnabled","2367236FRkhcP","FootnotesEditing","editor","checkChild","49PmXAxl","test","model","plugins","3XFVZrh","footnoteId","1158284nQHLoA","insert-footnote-command-executed-with-invalid-id","getFirstRange","isObject","string","insertObject","9461160OjumyN","end"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=225]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(609243===-parseInt(e(234))/1+parseInt(e(260))/2*(-parseInt(e(258))/3)+parseInt(e(250))/4+parseInt(e(240))/5+-parseInt(e(239))/6*(parseInt(e(254))/7)+parseInt(e(230))/8+parseInt(e(241))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(243)](){const t=g,e=this[t(252)][t(256)][t(244)][t(247)],o=this[t(246)](e);this[t(249)]=!!o}[g(235)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(244)],r=this[e(246)](s);if(!r)return;const a=o[e(257)][e(232)](e(251)),c=t?.[e(259)]??(0,i.uid)();!function(t){const o=e;return o(228)==typeof t&&t[o(233)]>0&&!/\s/[o(255)](t)&&!/^\d/[o(255)](t)}(c)?(0,i.logWarning)(e(225)):(n[e(248)](t=>{const o=e,i=t[o(245)](o(242),{footnoteId:c});n[o(229)](i,r,null)}),a[e(238)](c))}[g(246)](t){const e=g,{model:o}=this[e(252)],{schema:n}=o,i=t[e(226)]();for(const t of i[e(237)]())if(n[e(236)](t)||n[e(227)](t))return null;const s=i[e(231)];return n[e(253)](s,e(242))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[f]}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 h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(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=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(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])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]: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=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](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:1761523200;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(f).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(f).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("CTRL+Shift+D","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Shift+D"}]}),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","sup")||!i.hasClass("footnote"))&&s.getSelectedElement()===i},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:o}=e,n=o.getChild(0).getAttribute("href");this._moveSelectionToFootnoteDefinition(n.slice(1)),t.stop(),e.preventDefault()},{priority:"high",context:t=>t.is("element","sup")&&t.hasClass("footnote")&&o}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:o}=e;if(!o.is("element","a"))return;let n=o.getAttribute("href");if(!n?.startsWith("#"))return;n=n.slice(1);let i=!1;(n.startsWith("ref-")&&this._moveSelectionToFootnoteReference(n.slice(4))||this._moveSelectionToFootnoteDefinition(n))&&(i=!0),i&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function P(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);function _(){const t=["insert","pluginName","parse","getFootnotesDefinitionsObjectElement","data","29205539pitjsi","_insertEmptyFootnotesDefinitionsContainer","toModel","toData","createRangeIn","requires","47838BoNFWK","dataTransfer","getFirstRange","drop","sourceEditorId","element","create","footnoteDefinition","2884021Wjxbgy","2327144amMNCR","append","getFootnotes","_handlePasteFootnotesDefinitions","toView","add","end","method","find","1tnizwg","get","document","422892okTCOx","editing","footnoteId","isOfficialPlugin","8KDxfNc","footnotesDefinitions","getData","application/ckeditor5-footnotes","70oFrLiM","setAttribute","createElement","getAttribute","_defineClipboardIntegration","clipboardInput","isPremiumPlugin","reduce","getFootnote","listenTo","1456695FxdILa","root","stringify","init","_handleCopyFootnotesDefinitions","from","definition","content","htmlProcessor","footnoteRef","setData","change","290zLrAaq","push","359004KJMEHZ","editor","outputTransformation","contentInsertion","FootnotesClipboard","entries","remove","length","selection"];return(_=function(){return t})()}function D(t,e){const o=_();return(D=function(t,e){return o[t-=342]})(t,e)}const A=D;!function(t){const e=D,o=t();for(;;)try{if(634314===-parseInt(e(378))/1*(parseInt(e(369))/2)+parseInt(e(413))/3+parseInt(e(381))/4+parseInt(e(411))/5*(parseInt(e(360))/6)+-parseInt(e(368))/7*(parseInt(e(385))/8)+parseInt(e(399))/9*(-parseInt(e(389))/10)+parseInt(e(354))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class L extends t.Plugin{static get[A(350)](){return A(344)}static get[A(359)](){return[v,S.ClipboardPipeline]}static get[A(384)](){return!0}static get[A(395)](){return!0}[A(402)](){this[A(393)]()}[A(393)](){const t=A;this[t(403)](),this[t(372)]()}[A(403)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(379)](S.ClipboardPipeline),s=o[t(379)](f);this[t(398)](i,t(342),(o,i)=>{const r=t,a=function(t,e){const o=D,n=new Set;for(const{item:i}of t[o(358)](e))i.is(o(365),o(408))&&n[o(374)](i[o(392)](o(383)));return Array[o(404)](n)}(n,i[r(406)]);if(!a[r(347)])return;const c=s[r(371)](),l=a[r(396)]((t,o)=>{const n=r,i=c[n(377)](t=>t.id===o);if(i){const o=e[n(353)][n(373)](i[n(405)],{isClipboardPipeline:!0}),s=e[n(353)][n(407)][n(357)](o);t[i.id]=s}return t},Object[r(366)](null));i[r(361)][r(409)](r(388),JSON[r(401)](l))})}[A(372)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(382)],r=n[t(379)](S.ClipboardPipeline),a=n[t(379)](f);let c=null;this[t(398)](s[t(380)],t(394),(e,o)=>{const n=t,i=o[n(361)][n(387)](n(388));c=i?JSON[n(351)](i):null}),this[t(398)](r,t(343),(n,s)=>{const r=t;if(!c)return;const l=s[r(364)]===this[r(414)].id;l&&r(363)===s[r(376)]||o[r(410)](t=>{const n=r;!function(t,e){const o=D,n=[];for(const{item:i}of t[o(358)](e))i.is(o(365),o(386))&&n[o(412)](i);for(const e of n)t[o(346)](e)}(t,s[n(406)]);let u=a[n(352)]();if(!u){const e=o[n(380)][n(348)][n(362)]()[n(400)];u=a[n(355)](t,e)}const f=function(t,e,o){const s=n,r=Object[s(366)](null);for(const{item:n}of t[s(358)](e))if(n.is(s(365),s(408))){const e=n[s(392)](s(383));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(390)](s(383),r[e],n)}return r}(t,s[n(406)],t=>!l||null!==a[n(397)](t));for(const[o,i]of Object[n(345)](c)){const s=f[o]||o,r=t[n(391)](n(367),{footnoteId:s}),a=e[n(353)][n(407)][n(373)](i),c=e[n(353)][n(356)](a,r);t[n(370)](c,r),t[n(349)](r,u,n(375))}c=null})})}}var T=o(311),V=o(355),O=o(450),N=o.n(O),R=o(774),K=o.n(R),M=o(265),j=o.n(M),B=o(410),z=o.n(B),W=o(238),q=o.n(W),H=o(14),U={attributes:{"data-cke":!0}};U.setAttributes=z(),U.insert=j().bind(null,"head"),U.domAPI=K(),U.insertStyleElement=q();N()(H.A,U);H.A&&H.A.locals&&H.A.locals;class X extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",G(t,T.ButtonView)),e.add("menuBar:insertFootnote",G(t,T.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 G(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof T.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 Y=Q;function Q(t,e){var o=J();return(Q=function(t,e){return o[t-=347]})(t,e)}!function(t){for(var e=Q,o=t();;)try{if(355746===-parseInt(e(360))/1+-parseInt(e(347))/2*(parseInt(e(358))/3)+parseInt(e(348))/4*(-parseInt(e(349))/5)+parseInt(e(353))/6+-parseInt(e(357))/7+-parseInt(e(354))/8+parseInt(e(350))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(J);class $ extends t.Plugin{static get[Y(356)](){return Y(359)}static get[Y(355)](){return[v,L,X]}static get[Y(352)](){return!0}static get[Y(351)](){return!0}}function J(){var t=["4tGcFpd","2814390QVkIYj","22996035AmhBut","isPremiumPlugin","isOfficialPlugin","423306kAusXJ","2579704IEufpj","requires","pluginName","3621443VSMUph","6gJfrAm","Footnotes","300106zAskQU","567124HAGenM"];return(J=function(){return t})()}function Z(){const t=["lower-roman","4782022kqgpiH","9199992CxjPxh","lower-latin","decimal-leading-zero","6254692HRccHh","202716mCkZvn","decimal","lower-alpha","3579000kYyoyx","2wTolsw","upper-roman","392902qfohOo","upper-latin","11193952CutpCz","upper-alpha"];return(Z=function(){return t})()}const tt=et;function et(t,e){const o=Z();return(et=function(t,e){return o[t-=306]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(936457===-parseInt(e(315))/1+parseInt(e(313))/2*(-parseInt(e(309))/3)+parseInt(e(308))/4+-parseInt(e(312))/5+-parseInt(e(321))/6+parseInt(e(320))/7+parseInt(e(317))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);const ot=[tt(310),tt(307),tt(306),tt(316),tt(311),tt(318),tt(319),tt(314)];function nt(){const t=["includes","getAttribute","4582370GpFWRN","refresh","isEnabled","3eXpmFY","_updateFootnotesCounters","value","1515150mhYIzU","plugins","1270352gyUwQc","35055180VTfbEP","change","7MSwbHB","model","493366sXuwFc","footnotesListStyle","execute","get","getFootnotesDefinitionsObjectElement","6200616lhEOOw","setAttribute","14208432xZiaFR"];return(nt=function(){return t})()}function it(t,e){const o=nt();return(it=function(t,e){return o[t-=449]})(t,e)}const st=it;!function(t){const e=it,o=t();for(;;)try{if(928532===parseInt(e(457))/1+-parseInt(e(462))/2*(parseInt(e(452))/3)+-parseInt(e(467))/4+-parseInt(e(449))/5+parseInt(e(455))/6+-parseInt(e(460))/7*(parseInt(e(469))/8)+parseInt(e(458))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);class rt extends t.Command{[st(450)](){const t=st,{editor:e}=this,o=e[t(456)][t(465)](f)[t(466)]();this[t(451)]=!!o,this[t(454)]=o?.[t(471)](t(463))??null}[st(464)]({value:t}){const e=st,{editor:o}=this,n=o[e(456)][e(465)](f),i=n[e(466)]();i&&ot[e(470)](t)&&o[e(461)][e(459)](o=>{const s=e;o[s(468)](s(463),t,i),n[s(453)](o)})}}const at=ct;function ct(t,e){const o=ut();return(ct=function(t,e){return o[t-=459]})(t,e)}!function(t){const e=ct,o=t();for(;;)try{if(971353===parseInt(e(466))/1*(parseInt(e(476))/2)+-parseInt(e(481))/3*(-parseInt(e(483))/4)+parseInt(e(479))/5+parseInt(e(470))/6+parseInt(e(463))/7*(parseInt(e(461))/8)+parseInt(e(459))/9*(-parseInt(e(465))/10)+-parseInt(e(462))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class lt extends t.Command{[at(469)](){const t=at,{editor:e}=this,o=e[t(467)][t(460)](f)[t(473)]();this[t(468)]=!!o,this[t(475)]=o?.[t(471)](t(477))??null}[at(478)]({value:t}){const e=at,{editor:o}=this,n=o[e(467)][e(460)](f),i=n[e(473)]();i&&Number[e(482)](t)&&o[e(474)][e(480)](o=>{const s=e;o[s(464)](s(477),t,i),n[s(472)](o)})}}function ut(){const t=["10924422LnTavK","getAttribute","_updateFootnotesCounters","getFootnotesDefinitionsObjectElement","model","value","158yTfDOp","footnotesListStart","execute","5051620pkamkV","change","3oxXFzE","isInteger","1878944geywqn","109593rlBqgY","get","3890448tQUWcE","39134293QebjwF","7udltav","setAttribute","50CuTkPm","10162pPTMnp","plugins","isEnabled","refresh"];return(ut=function(){return t})()}const ft=ht;function dt(){const t=["from","footnotes-list","createRangeOn","4954833xbIhsM","footnotesListStyle","toUpperCase","parent","position","list-style-type","start","getAttribute","upcast","upper-alpha","registerPostFixer","item","footnotesListStart","toViewElement","differ","define","1617729VENLcl","decimal","pluginName","editor","padStart","getStyle","find","type","_definePostfixer","attribute:footnotesListStyle:footnotesDefinitions","2547153BmCOjF","mapper","setStyle","footnotesStart","5KqPGzG","config","name","_getDefaultListStyle","setFootnoteFormatter","getChildren","isNaN","fromCharCode","lower-latin","nodeAfter","element","requires","lower-alpha","FootnotesPropertiesEditing","get","modelCursor","consumable","max","isPremiumPlugin","schema","init","commands","viewItem","hasClass","attribute:footnotesListStart:footnotesDefinitions","6261200mvYOhb","removeAttribute","footnotesDefinitions","413082AqONyN","consume","parseInt","removeStyle","downcast","floor","checkAttribute","extend","_defineConverters","152782ZgKheJ","$text","plugins","isOfficialPlugin","getItems","decimal-leading-zero","for","setAttribute","footnotesStyle","_updateFootnotesCounters","25710058czEFlp","insert","24WIBezK","upper-roman","_defineFormatter","element:ol","add","footnotes.footnotesProperties.defaultStartIndex","hasAttribute","lower-roman","model","_getDefaultStartIndex","13lxzTYc","footnotes.footnotesProperties.defaultListStyle","document","_formatFootnoteListValue","upper-latin","10BDPrRe","toLowerCase","getChanges","_defineSchema","writer"];return(dt=function(){return t})()}function ht(t,e){const o=dt();return(ht=function(t,e){return o[t-=219]})(t,e)}!function(t){const e=ht,o=t();for(;;)try{if(790391===-parseInt(e(313))/1*(parseInt(e(291))/2)+parseInt(e(240))/3+-parseInt(e(279))/4+parseInt(e(254))/5*(-parseInt(e(282))/6)+-parseInt(e(250))/7*(-parseInt(e(303))/8)+-parseInt(e(224))/9+parseInt(e(318))/10*(parseInt(e(301))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class pt extends t.Plugin{static get[ft(242)](){return ft(267)}static get[ft(265)](){return[v,f]}static get[ft(294)](){return!0}static get[ft(272)](){return!0}[ft(274)](){const t=ft,{editor:e}=this;e[t(255)][t(239)](t(314),t(241)),e[t(255)][t(239)](t(308),1),e[t(275)][t(307)](t(299),new rt(e)),e[t(275)][t(307)](t(253),new lt(e)),this[t(219)](),this[t(290)](),this[t(305)](),this[t(248)]()}[ft(219)](){const t=ft,{editor:e}=this,{schema:o}=e[t(311)];o[t(289)](t(281),{allowAttributes:[t(225),t(236)]})}[ft(290)](){const t=ft,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(297)](t(232))[t(307)](e=>{const o=t;e.on(o(306),(t,e,n)=>{const s=o,r=e[s(276)],a=e[s(269)]?.[s(227)];r[s(277)](s(222))&&a?.is(s(264),s(281))&&(function(t,e,o,n){const i=s;if(!n[i(288)](e,i(236)))return;let r=1;const a=o[i(270)][i(283)](t,{attributes:i(230)});if(a){const e=Number[i(284)](t[i(231)](i(230)),10);Number[i(260)](e)||(r=e)}!a&&e[i(309)](i(236))||o[i(220)][i(298)](i(236),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(288)](e,i(225)))return;let r=i(241),a=!1;if(o[i(270)][i(283)](t,{attributes:i(247)})){const e={1:i(241),a:i(266),A:i(233),i:i(310),I:i(304)}[t[i(231)](i(247))];e&&(r=e),a=!0}o[i(270)][i(283)](t,{styles:i(229)})&&(r=t[i(245)](i(229)),a=!0),!a&&e[i(309)](i(225))||o[i(220)][i(298)](i(225),r,e)}(r,a,n,i))})}),o[t(297)](t(286))[t(307)](e=>{const o=t;e.on(o(278),(t,e,n)=>{const i=o;if(!n[i(270)][i(283)](e[i(235)],t[i(256)]))return;const s=mt(e[i(235)],n[i(251)]),{attributeNewValue:r}=e;null==r||1===r?n[i(220)][i(280)](i(230),s):n[i(220)][i(298)](i(230),String(r),s)}),e.on(o(249),(t,e,n)=>{const i=o;if(!n[i(270)][i(283)](e[i(235)],t[i(256)]))return;const s=mt(e[i(235)],n[i(251)]),{attributeNewValue:r}=e;r&&i(241)!==r?n[i(220)][i(252)](i(229),r,s):n[i(220)][i(285)](i(229),s)})})}[ft(248)](){const t=ft,{editor:e}=this,{model:o}=e,n=e[t(293)][t(268)](f),i=this[t(257)](),s=this[t(312)]();o[t(315)][t(234)](e=>{const r=t,a=o[r(315)][r(238)][r(320)]();let c=!1;for(const t of a){if(r(302)!==t[r(247)]||r(292)===t[r(256)])continue;const n=o[r(223)](t[r(228)][r(263)]);for(const t of n[r(295)]())t.is(r(264),r(281))&&(!t[r(309)](r(236))&&o[r(273)][r(288)](t,r(236))&&(e[r(298)](r(236),s,t),c=!0),!t[r(309)](r(225))&&o[r(273)][r(288)](t,r(225))&&(e[r(298)](r(225),i,t),c=!0))}return c&&n[r(300)](e),c})}[ft(305)](){const t=ft,{editor:e}=this;e[t(293)][t(268)](f)[t(258)](e=>this[t(316)](e))}[ft(257)](){const t=ft;return this[t(243)][t(255)][t(268)](t(314))}[ft(312)](){const t=ft;return this[t(243)][t(255)][t(268)](t(308))}[ft(316)]({container:t,value:e,digits:o}){const n=ft,i=t[n(231)](n(225)),s=t[n(231)](n(236)),r=Math[n(287)](e)+(s??1)-1;switch(i){case n(296):return function(t,e){const o=n;return String(t)[o(244)](e,"0")}(r,Math[n(271)](2,o));case n(266):case n(262):return gt(r,!1);case n(233):case n(317):return gt(r,!0);case n(310):return yt(r,!1);case n(304):return yt(r,!0);default:return String(r)}}}function mt(t,e){const o=ft,n=e[o(237)](t);return Array[o(221)](n[o(259)]())[o(246)](t=>t.is(o(264),"ol")&&t[o(277)](o(222)))}function gt(t,e){const o=ft;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(261)](97+t)+n,i=Math[o(287)]((i-1)/26)}return e?n[o(226)]():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(t,e){const o=ft;let n="",i=t;for(const{value:t,numeral:e}of wt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(319)]()}class bt extends T.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new T.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new T.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,T.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 T.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 T.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 T.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 T.LabeledFieldView(this.locale,T.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,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("Footnotes start index must be greater than 0.")}),e}}var vt=o(945),It={attributes:{"data-cke":!0}};It.setAttributes=z(),It.insert=j().bind(null,"head"),It.domAPI=K(),It.insertStyleElement=q();N()(vt.A,It);vt.A&&vt.A.locals&&vt.A.locals;class kt extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[T.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,T.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 T.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 bt(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}=T.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 Ct=Ft;function Ft(t,e){var o=Et();return(Ft=function(t,e){return o[t-=286]})(t,e)}!function(t){for(var e=Ft,o=t();;)try{if(608564===parseInt(e(290))/1+-parseInt(e(293))/2*(-parseInt(e(297))/3)+parseInt(e(294))/4*(parseInt(e(302))/5)+-parseInt(e(288))/6*(parseInt(e(299))/7)+-parseInt(e(287))/8*(parseInt(e(289))/9)+parseInt(e(291))/10*(-parseInt(e(292))/11)+parseInt(e(300))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class xt extends t.Plugin{static get[Ct(296)](){return Ct(286)}static get[Ct(301)](){return[pt,kt]}static get[Ct(295)](){return!0}static get[Ct(298)](){return!0}}function Et(){var t=["10uDmKVv","FootnotesProperties","2408oFyKwD","266568QVFOqW","27414SSRQHC","1093176JeuDsj","3530CEBBrC","440srjyfK","2ZVFvxG","517744DzoauY","isOfficialPlugin","pluginName","993723KxMVlU","isPremiumPlugin","35FCWCaP","940572VWrDnM","requires"];return(Et=function(){return t})()}function Pt(){var t=["6720826xMocfs","1868022arfLHj","1Aqxhdx","916ytpWSR","10NIFbFX","1525134qQRWOD","11HdDbNP","2931JvzDtA","7827112UmLBCc","37172810wRswSO","1492230fcPZVs"];return(Pt=function(){return t})()}function St(t,e){var o=Pt();return(St=function(t,e){return o[t-=353]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(534972===parseInt(e(358))/1*(-parseInt(e(361))/2)+parseInt(e(363))/3*(parseInt(e(359))/4)+parseInt(e(360))/5*(-parseInt(e(355))/6)+-parseInt(e(356))/7+-parseInt(e(353))/8+-parseInt(e(357))/9+-parseInt(e(354))/10*(-parseInt(e(362))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(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 _0x42a78a,Command as _0x32aa23}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x15b005,isWidget as _0x5637eb,toWidgetEditable as _0x5b307c,WidgetToolbarRepository as _0x14fbc7}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x1c0fd7,logWarning as _0x4d5f54,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x1a170d,ClickObserver as _0x1da290}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x1da66d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x340eb3,ButtonView as _0x1cce1b,View as _0x16c062,ViewCollection as _0x4d6cec,FocusCycler as _0x3c6dd2,addKeyboardHandlingForGrid as _0x1004e8,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x367e36,BalloonPanelView as _0x54d6f5,createDropdown as _0x44f1cb}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x291742,IconListStyleDecimal as _0x43f33d,IconListStyleDecimalLeadingZero as _0x530b8c,IconListStyleLowerRoman as _0x415e75,IconListStyleUpperRoman as _0x195804,IconListStyleLowerLatin as _0x292fb1,IconListStyleUpperLatin as _0x32b6f}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x276750,_0x2714e4){this['_model']=_0x276750,this['_elementName']=_0x2714e4['elementName'],this['_getElementKey']=_0x2714e4['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x38640f){const _0x3a731c=new Set(),_0x8b45ab=new Map();for(const _0x3f444c of _0x38640f){if('insert'===_0x3f444c['type']&&'$text'!==_0x3f444c['name']&&_0x3f444c['position']['nodeAfter']){const _0x4bb167=this['_model']['createRangeOn'](_0x3f444c['position']['nodeAfter']);for(const _0x1eedf6 of _0x4bb167['getItems']()){if(!_0x1eedf6['is']('element',this['_elementName']))continue;const _0x384fb7=this['_getElementKey'](_0x1eedf6);_0x8b45ab['has'](_0x384fb7)||_0x8b45ab['set'](_0x384fb7,[]),_0x8b45ab['get'](_0x384fb7)['push'](_0x1eedf6);}}if('remove'===_0x3f444c['type']&&_0x3f444c['name']===this['_elementName']){const _0x43087d=this['_getElementKey']({'getAttribute':_0x387238=>_0x3f444c['attributes']['get'](_0x387238)});_0x3a731c['add'](_0x43087d);}}for(const [_0x49fa22,_0x2cb284]of this['_trackedElements'])'$graveyard'===_0x2cb284['root']['rootName']&&_0x3a731c['add'](_0x49fa22);for(const _0x32c0a7 of _0x3a731c)this['_trackedElements']['delete'](_0x32c0a7);for(const [_0x55b52f,_0x389b6d]of _0x8b45ab)this['_trackedElements']['set'](_0x55b52f,_0x389b6d[_0x389b6d['length']-0x1]);const _0x113442=new Set();for(const [_0xab7371,_0x2d807e]of _0x8b45ab)_0x3a731c['has'](_0xab7371)&&(_0x113442['add'](_0x2d807e[0x0]),_0x2d807e['length']>0x1?_0x8b45ab['set'](_0xab7371,_0x2d807e['slice'](0x1)):_0x8b45ab['delete'](_0xab7371),_0x3a731c['delete'](_0xab7371));return{'removed':Array['from'](_0x3a731c),'inserted':Array['from'](_0x8b45ab['values']())['flat'](),'moved':Array['from'](_0x113442)};}}class c extends _0x42a78a{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e6949){super(_0x3e6949),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x49cc19=>_0x49cc19['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x4b8e3a=>_0x4b8e3a['getAttribute']('footnoteId')});}['init'](){const {editor:_0x3c5e0e}=this,{model:_0x421931,data:_0x422f13}=_0x3c5e0e;_0x421931['document']['registerPostFixer'](_0x101805=>{const _0x570352=_0x421931['document']['differ']['getChanges']();let _0x28814a=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x101805,_0x570352)&&(_0x28814a=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x101805,_0x570352)&&(_0x28814a=!0x0),this['_handleFootnoteReferencesChanges'](_0x101805,_0x570352)&&(_0x28814a=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x101805)&&(_0x28814a=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x101805)&&(_0x28814a=!0x0),this['_sortFootnoteDefinitions'](_0x101805)&&(_0x28814a=!0x0),_0x28814a;}),this['listenTo'](_0x421931['document'],'change:data',()=>{_0x421931['enqueueChange']({'isUndoable':!0x1},_0x47d593=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x47d593);});},{'priority':'low'}),this['listenTo'](_0x422f13,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x3c2377){return this['_footnotes']['find'](_0x31dc6d=>_0x31dc6d['id']===_0x3c2377)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x3468ec){this['_footnoteFormatter']=_0x3468ec;}['_updateFootnotesCounters'](_0x782695,_0x711ab0=0x0){let _0x59b253=!0x1;for(let _0x564a1a=_0x711ab0;_0x564a1a<this['_footnotes']['length'];_0x564a1a++)this['_updateFootnoteRefCounter'](_0x782695,_0x564a1a)&&(_0x59b253=!0x0);return _0x59b253;}['_insertEmptyFootnotesDefinitionsContainer'](_0x40d2c1,_0x216f01){const _0x3b6a04=_0x40d2c1['createElement']('footnotesDefinitions',{});return _0x40d2c1['append'](_0x3b6a04,_0x216f01),this['_footnotesDefinitions']=_0x3b6a04,_0x3b6a04;}['_ensureFootnotesDefinitionsContainerExists'](_0x34d610){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x260cfa=this['_footnotes'][0x0]['reference']['root'],_0x3777e1=this['_insertEmptyFootnotesDefinitionsContainer'](_0x34d610,_0x260cfa);for(const _0xf2c4bc of this['_footnotes'])_0xf2c4bc['definition']['parent']||_0x34d610['insert'](_0xf2c4bc['definition'],_0x3777e1,'end');this['_updateFootnotesCounters'](_0x34d610);}['_handleFootnotesDefinitionsObjectChanges'](_0x5499cf,_0x7f37e2){let _0x120d5c=!0x1;const {inserted:_0x2015c8,removed:_0x30c6c9,moved:_0x30552d}=this['_footnoteDefsContainerTracker']['getChanges'](_0x7f37e2);if(_0x30552d['length']&&(this['_footnotesDefinitions']=_0x30552d[0x0]),_0x2015c8['length']){if(_0x2015c8['length']>0x1||this['_footnotesDefinitions']&&_0x2015c8['some'](_0x188995=>_0x188995!==this['_footnotesDefinitions'])){const _0x52f0a4=_0x5499cf['createElement']('footnotesDefinitions',{}),_0x59160d=[];this['_footnotesDefinitions']&&_0x59160d['push'](this['_footnotesDefinitions']),_0x59160d['push'](..._0x2015c8),_0x5499cf['insert'](_0x52f0a4,_0x59160d[0x0],'before');for(const _0x456f80 of _0x59160d)_0x5499cf['move'](_0x5499cf['createRangeIn'](_0x456f80),_0x5499cf['createPositionAt'](_0x52f0a4,'end')),_0x5499cf['remove'](_0x456f80);this['_footnotesDefinitions']=_0x52f0a4,this['_updateFootnotesCounters'](_0x5499cf),_0x120d5c=!0x0;}else this['_footnotesDefinitions']=_0x2015c8[0x0];}if(_0x30c6c9['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x18a67a of this['_footnotes'])_0x5499cf['remove'](_0x18a67a['reference']),_0x120d5c=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x120d5c;}['_handleFootnoteDefinitionsChanges'](_0x35504c,_0x4f9a9d){let _0x44777e=!0x1;const _0xa291b1=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x596883,moved:_0x58e775}=this['_footnoteDefsTracker']['getChanges'](_0x4f9a9d);for(const _0x1d9941 of[..._0x58e775,..._0x596883]){const _0x2edfc0=_0x1d9941['getAttribute']('footnoteId'),_0x4c8c48=this['getFootnote'](_0x2edfc0);_0x4c8c48&&(_0x4c8c48['definition']=_0x1d9941),_(_0x35504c,_0xa291b1,_0x1d9941)&&(_0x44777e=!0x0);}return _0x44777e;}['_handleFootnoteReferencesChanges'](_0x19feb6,_0xea5ba6){let _0x36b25e=!0x1;const {removed:_0x5e48a9,inserted:_0x25a3e8,moved:_0x405720}=this['_footnoteRefsTracker']['getChanges'](_0xea5ba6);for(const _0x53e443 of _0x5e48a9)this['_handleRemoveFootnoteReferenceById'](_0x19feb6,_0x53e443)&&(_0x36b25e=!0x0);for(const _0x315e9a of _0x25a3e8)this['_handleInsertedFootnoteReference'](_0x19feb6,_0x315e9a)&&(_0x36b25e=!0x0);for(const _0x402968 of _0x405720)this['_handleMovedFootnoteReference'](_0x19feb6,_0x402968)&&(_0x36b25e=!0x0);return _0x36b25e;}['_handleFootnotesDefinitionsObjectSync'](_0x1f5f5d){if(!this['_footnotesDefinitions'])return!0x1;let _0x3e2442=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x28daa3=[];for(const _0x327dc0 of this['_footnotesDefinitions']['getChildren']()){const _0x4fb191=_0x327dc0['getAttribute']('footnoteId');this['getFootnote'](_0x4fb191)||(_0x28daa3['unshift'](_0x327dc0),_0x3e2442=!0x0);}for(const _0x55ca44 of _0x28daa3)_0x1f5f5d['remove'](_0x55ca44);}const _0xe142f8=new Set(),_0x436f3e=[];for(const _0x5287fd of this['_footnotesDefinitions']['getChildren']()){const _0x458997=_0x5287fd['getAttribute']('footnoteId');_0xe142f8['has'](_0x458997)?(_0x436f3e['unshift'](_0x5287fd),_0x3e2442=!0x0):_0xe142f8['add'](_0x458997);}for(const _0x236c39 of _0x436f3e)_0x1f5f5d['remove'](_0x236c39);return this['_footnotesDefinitions']['childCount']||(_0x1f5f5d['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x3e2442=!0x0),_0x3e2442;}['_handleInsertedFootnoteReference'](_0x2bcff6,_0x1918b5){if(this['_footnotes']['find'](_0x4ec75f=>_0x4ec75f['reference']===_0x1918b5))return!0x1;let _0x158e3c=!0x1;const _0x1dd6e9=_0x1918b5['getAttribute']('footnoteId'),_0x94a0e6=this['getFootnote'](_0x1dd6e9);_0x94a0e6&&(_0x2bcff6['remove'](_0x94a0e6['reference']),this['_footnotes']=this['_footnotes']['filter'](_0x524caa=>_0x524caa['id']!==_0x1dd6e9),_0x158e3c=!0x0);let _0x35729b=this['_footnotesDefinitions']?function(_0x55fea2,_0x582fa7){for(const _0x427ad2 of _0x55fea2['getChildren']())if(_0x427ad2['getAttribute']('footnoteId')===_0x582fa7)return _0x427ad2;return null;}(this['_footnotesDefinitions'],_0x1dd6e9):null;_0x35729b||(_0x35729b=_0x2bcff6['createElement']('footnoteDefinition',{'footnoteId':_0x1dd6e9}),this['_footnotesDefinitions']&&(_0x2bcff6['insert'](_0x35729b,this['_footnotesDefinitions'],'end'),_0x158e3c=!0x0));const _0xb98e93={'id':_0x1dd6e9,'reference':_0x1918b5,'definition':_0x35729b},_0x43c101=I(this['editor']['model'],this['_footnotes'],_0x1918b5);return this['_footnotes']['splice'](_0x43c101,0x0,_0xb98e93),this['_updateFootnotesCounters'](_0x2bcff6,_0x43c101)&&(_0x158e3c=!0x0),_0x158e3c;}['_handleRemoveFootnoteReferenceById'](_0x2efd94,_0x795d38){const _0x494c1a=this['_footnotes']['findIndex'](_0x1b5204=>_0x1b5204['id']===_0x795d38);if(-0x1===_0x494c1a)return!0x1;let _0x1c2d0c=!0x1;const _0x16730e=this['_footnotes'][_0x494c1a];return'$graveyard'!==_0x16730e['definition']['root']['rootName']&&(_0x2efd94['remove'](_0x16730e['definition']),_0x1c2d0c=!0x0),this['_footnotes']['splice'](_0x494c1a,0x1),this['_updateFootnotesCounters'](_0x2efd94,_0x494c1a)&&(_0x1c2d0c=!0x0),_0x1c2d0c;}['_handleMovedFootnoteReference'](_0x2dd7e5,_0x181656){const _0x199073=_0x181656['getAttribute']('footnoteId'),_0x4a20af=this['_footnotes']['findIndex'](_0x596984=>_0x596984['id']===_0x199073),_0x54e36d=this['_footnotes'][_0x4a20af];let _0x4a4549=!0x1;_0x54e36d['reference']=_0x181656,this['_footnotes']['splice'](_0x4a20af,0x1);const _0x347e20=I(this['editor']['model'],this['_footnotes'],_0x181656);return this['_footnotes']['splice'](_0x347e20,0x0,_0x54e36d),this['_updateFootnotesCounters'](_0x2dd7e5,Math['min'](_0x4a20af,_0x347e20))&&(_0x4a4549=!0x0),_0x4a4549;}['_updateFootnoteRefCounter'](_0x933ed4,_0x1f60a2){if(!this['_footnotesDefinitions'])return!0x1;const _0x55e5fa=this['_footnotes'][_0x1f60a2];let _0x59cf2c;return _0x59cf2c=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x55e5fa,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x1f60a2+0x1}):String(_0x1f60a2+0x1),_0x55e5fa['reference']['getAttribute']('footnoteCounter')!=_0x59cf2c&&(_0x933ed4['setAttribute']('footnoteCounter',_0x59cf2c,_0x55e5fa['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x14799b){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x30ede4,_0x22078f){if(_0x30ede4['length']!==_0x22078f['length'])return!0x1;for(let _0xddb92b=0x0;_0xddb92b<_0x30ede4['length'];_0xddb92b++)if(_0x30ede4[_0xddb92b]!==_0x22078f[_0xddb92b])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x2fce5a=>_0x2fce5a['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x5789c6=>_0x5789c6['getAttribute']('footnoteId'))))return!0x1;let _0x2d20ec=!0x1;for(let _0x1b52e1=0x0;_0x1b52e1<this['_footnotes']['length'];_0x1b52e1++){const _0x225423=this['_footnotes'][_0x1b52e1],_0x1c59f2=_0x14799b['createPositionBefore'](_0x225423['definition']),_0x367a3b=_0x14799b['createPositionAt'](this['_footnotesDefinitions'],_0x1b52e1);_0x1c59f2['isEqual'](_0x367a3b)||(_0x14799b['move'](_0x14799b['createRangeOn'](_0x225423['definition']),_0x367a3b),_0x2d20ec=!0x0);}return _0x2d20ec;}['_ensureFootnotesReferencesHaveProperOrder'](_0x5e66a2){if(!this['_footnotes']['length'])return!0x1;const {model:_0x1618d2}=this['editor'];let _0x342c8e=!0x1;for(let _0x4fda98=0x0;_0x4fda98<this['_footnotes']['length']-0x1;_0x4fda98++){const _0x14c63e=this['_footnotes'][_0x4fda98],_0x5ec6bf=this['_footnotes'][_0x4fda98+0x1],_0x176a25=_0x1618d2['createPositionBefore'](_0x14c63e['reference']),_0x4befa0=_0x1618d2['createPositionBefore'](_0x5ec6bf['reference']);'after'===_0x176a25['compareWith'](_0x4befa0)&&(this['_handleMovedFootnoteReference'](_0x5e66a2,_0x14c63e['reference']),_0x4fda98=-0x1,_0x342c8e=!0x0);}return _0x342c8e;}}function _(_0x30d639,_0x58ee9e,_0x38db9d){if(_0x38db9d['childCount'])return!0x1;const _0x3c439e=_0x58ee9e?'paragraph':'footnoteInlineContent';return _0x30d639['insert'](_0x30d639['createElement'](_0x3c439e),_0x38db9d),!0x0;}function I(_0x2d77ec,_0x4af0dd,_0x256cea){if(0x0===_0x4af0dd['length'])return 0x0;const _0x209157=_0x2d77ec['createPositionBefore'](_0x256cea);for(let _0x33f097=0x0;_0x33f097<_0x4af0dd['length'];_0x33f097++){const _0x161dd7=_0x4af0dd[_0x33f097],_0x495f84=_0x2d77ec['createPositionBefore'](_0x161dd7['reference']);if('before'===_0x209157['compareWith'](_0x495f84))return _0x33f097;}const _0x412e40=_0x256cea['root'];let _0x50ff73=-0x1;for(let _0x593bbd=_0x4af0dd['length']-0x1;_0x593bbd>=0x0;_0x593bbd--)if(_0x4af0dd[_0x593bbd]['reference']['root']===_0x412e40){_0x50ff73=_0x593bbd;break;}if(-0x1!==_0x50ff73)return _0x50ff73+0x1;const _0x58ba1d=_0x2d77ec['document']['getRootNames'](),_0x4cf9da=_0x58ba1d['indexOf'](_0x412e40['rootName']),_0xae46e7=_0x58ba1d[_0x4cf9da+0x1];if(_0xae46e7){for(let _0x1aebae=0x0;_0x1aebae<_0x4af0dd['length'];_0x1aebae++)if(_0x4af0dd[_0x1aebae]['reference']['root']['rootName']===_0xae46e7)return _0x1aebae;}return _0x4af0dd['length'];}class w extends _0x32aa23{['refresh'](){const _0x338894=this['editor']['model']['document']['selection'],_0xbd22b2=this['_getPositionToInsertFootnote'](_0x338894);this['isEnabled']=!!_0xbd22b2;}['execute'](_0x1a2cf5){const {editor:_0x5cc4f7}=this,{model:_0x42fd91}=_0x5cc4f7,{selection:_0x3a292b}=_0x42fd91['document'],_0x32dcf3=this['_getPositionToInsertFootnote'](_0x3a292b);if(!_0x32dcf3)return;const _0x4591ae=_0x5cc4f7['plugins']['get']('FootnotesEditing'),_0x112e89=_0x1a2cf5?.['footnoteId']??_0x1c0fd7();!function(_0x120038){return'string'==typeof _0x120038&&_0x120038['length']>0x0&&!/\s/['test'](_0x120038)&&!/^\d/['test'](_0x120038);}(_0x112e89)?_0x4d5f54('insert-footnote-command-executed-with-invalid-id'):(_0x42fd91['change'](_0x41951e=>{const _0x22c365=_0x41951e['createElement']('footnoteRef',{'footnoteId':_0x112e89});_0x42fd91['insertObject'](_0x22c365,_0x32dcf3,null);}),_0x4591ae['_moveSelectionToFootnoteDefinition'](_0x112e89));}['_getPositionToInsertFootnote'](_0xe40b8c){const {model:_0x568a5d}=this['editor'],{schema:_0xc2f554}=_0x568a5d,_0x46c009=_0xe40b8c['getFirstRange']();for(const _0x286626 of _0x46c009['getItems']())if(_0xc2f554['isBlock'](_0x286626)||_0xc2f554['isObject'](_0x286626))return null;const _0x4b71d5=_0x46c009['end'];return _0xc2f554['checkChild'](_0x4b71d5,'footnoteRef')?_0x4b71d5:null;}}class r extends _0x42a78a{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2c6942}=this;_0x2c6942['config']['define']('footnotes.multiBlock',!0x0),_0x2c6942['commands']['add']('insertFootnote',new w(_0x2c6942)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4fd41c){const _0x6f2686=_0x369cdc([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]),_0x44ba62=0x47a28506,_0x190686=0x47a5f24e^_0x44ba62,_0x204c73=window[_0x369cdc([0x44,0x61,0x74,0x65])][_0x369cdc([0x6e,0x6f,0x77])](),_0x15d2be=_0x4fd41c[_0x369cdc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xf58218=new window[(_0x369cdc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bd595=>{_0x15d2be[_0x369cdc([0x6f,0x6e,0x63,0x65])](_0x369cdc([0x72,0x65,0x61,0x64,0x79]),_0x2bd595);}),_0x4d2126={[_0x369cdc([0x6b,0x74,0x79])]:_0x369cdc([0x45,0x43]),[_0x369cdc([0x75,0x73,0x65])]:_0x369cdc([0x73,0x69,0x67]),[_0x369cdc([0x63,0x72,0x76])]:_0x369cdc([0x50,0x2d,0x32,0x35,0x36]),[_0x369cdc([0x78])]:_0x369cdc([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]),[_0x369cdc([0x79])]:_0x369cdc([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]),[_0x369cdc([0x61,0x6c,0x67])]:_0x369cdc([0x45,0x53,0x32,0x35,0x36])},_0x35dff=_0x15d2be[_0x369cdc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x369cdc([0x67,0x65,0x74])](_0x369cdc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34500e(){let _0x26aee5,_0x1cb0a7=null,_0x24c2c0=null;try{if(_0x35dff==_0x369cdc([0x47,0x50,0x4c]))return _0x369cdc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x26aee5=_0x32597f(),!_0x26aee5)return _0x369cdc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x26aee5[_0x369cdc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x24c2c0=_0x422857(_0x26aee5[_0x369cdc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x26aee5[_0x369cdc([0x6a,0x74,0x69])])),await _0x252642()?_0x2362ef()?_0x108e78()?_0x369cdc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4e1ce8()?(_0x26aee5[_0x369cdc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x369cdc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1cb0a7=_0x56e199(_0x369cdc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x26aee5[_0x369cdc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x369cdc([0x74,0x72,0x69,0x61,0x6c])&&(_0x1cb0a7=_0x56e199(_0x369cdc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x368436()):_0x369cdc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x369cdc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x369cdc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x369cdc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x108e78(){const _0x2e9a53=[_0x369cdc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x369cdc([0x74,0x72,0x69,0x61,0x6c])][_0x369cdc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26aee5[_0x369cdc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x204c73/0x3e8:0xe10*_0x190686;return _0x26aee5[_0x369cdc([0x65,0x78,0x70])]<_0x2e9a53;}function _0x2362ef(){const _0x27ee0b=_0x26aee5[_0x369cdc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x27ee0b&&(!!_0x27ee0b[_0x369cdc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x369cdc([0x2a]))||!!_0x27ee0b[_0x369cdc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x369cdc([0x46,0x4f,0x4f])));}function _0x4e1ce8(){const _0xce9ef9=_0x26aee5[_0x369cdc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xce9ef9||0x0==_0xce9ef9[_0x369cdc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2a7317}=new URL(window[_0x369cdc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xce9ef9[_0x369cdc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a7317))return!0x0;const _0x1654d2=_0x2a7317[_0x369cdc([0x73,0x70,0x6c,0x69,0x74])](_0x369cdc([0x2e]));return _0xce9ef9[_0x369cdc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x344059=>_0x344059[_0x369cdc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x369cdc([0x2a])))[_0x369cdc([0x6d,0x61,0x70])](_0x1d41ce=>_0x1d41ce[_0x369cdc([0x73,0x70,0x6c,0x69,0x74])](_0x369cdc([0x2e])))[_0x369cdc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x55df29=>_0x55df29[_0x369cdc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1654d2[_0x369cdc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x369cdc([0x6d,0x61,0x70])](_0xd81dac=>Array(_0x1654d2[_0x369cdc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xd81dac[_0x369cdc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x369cdc([0x66,0x69,0x6c,0x6c])](_0xd81dac[0x0]===_0x369cdc([0x2a])?_0x369cdc([0x2a]):'')[_0x369cdc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xd81dac))[_0x369cdc([0x73,0x6f,0x6d,0x65])](_0x5de593=>_0x1654d2[_0x369cdc([0x65,0x76,0x65,0x72,0x79])]((_0x57c53a,_0x44555c)=>_0x5de593[_0x44555c]===_0x57c53a||_0x5de593[_0x44555c]===_0x369cdc([0x2a])));}function _0x368436(){return _0x1cb0a7&&_0x24c2c0?new window[(_0x369cdc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe0c441,_0x4320ac)=>{_0x1cb0a7[_0x369cdc([0x74,0x68,0x65,0x6e])](_0xe0c441,_0x4320ac),_0x24c2c0[_0x369cdc([0x74,0x68,0x65,0x6e])](_0x28e970=>{_0x28e970!=_0x369cdc([0x56,0x61,0x6c,0x69,0x64])&&_0xe0c441(_0x28e970);},_0x4320ac);}):_0x1cb0a7||_0x24c2c0||_0x369cdc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x422857(_0x57ba92,_0x5ee8bd){return new window[(_0x369cdc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b91d9=>{if(_0x5f38bc())return _0x1b91d9(_0x369cdc([0x56,0x61,0x6c,0x69,0x64]));_0x324d56(),_0x15d2be[_0x369cdc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x369cdc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x333f17=!0x1;const _0x2409e2=_0x1c0fd7();function _0x249280(_0x57c3ed){return!!_0x57c3ed&&(typeof _0x57c3ed===_0x369cdc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57c3ed===_0x369cdc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57c3ed[_0x369cdc([0x74,0x68,0x65,0x6e])]===_0x369cdc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57c3ed[_0x369cdc([0x63,0x61,0x74,0x63,0x68])]===_0x369cdc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3d2f42(_0x29a730){_0x497ade(_0x29a730)[_0x369cdc([0x74,0x68,0x65,0x6e])](_0x17b916=>{if(!_0x17b916||_0x17b916[_0x369cdc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x369cdc([0x6f,0x6b]))return _0x369cdc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2729e0(_0x304815(_0x2409e2+_0x5ee8bd))!=_0x17b916[_0x369cdc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x369cdc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x369cdc([0x56,0x61,0x6c,0x69,0x64]);})[_0x369cdc([0x74,0x68,0x65,0x6e])](_0x32b523=>(_0x47cea5(),_0x32b523),()=>{const _0x171be1=_0x434eae();return null==_0x171be1?(_0x47cea5(),_0x369cdc([0x56,0x61,0x6c,0x69,0x64])):_0x369cdc(_0x204c73-_0x171be1>(0x63ae0106^_0x44ba62)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x369cdc([0x74,0x68,0x65,0x6e])](_0x1b91d9)[_0x369cdc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b91d9(_0x369cdc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x32d8b8=0x47946b86^_0x44ba62;function _0x47cea5(){const _0x185ec7=_0x369cdc([0x6c,0x6c,0x63,0x74,0x2d])+_0x2729e0(_0x304815(_0x57ba92)),_0x15f469=_0x4cf252(_0x2729e0(window[_0x369cdc([0x4d,0x61,0x74,0x68])][_0x369cdc([0x63,0x65,0x69,0x6c])](_0x204c73/_0x32d8b8)));window[_0x369cdc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x369cdc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x185ec7,_0x15f469);}function _0x434eae(){const _0x5e4665=_0x369cdc([0x6c,0x6c,0x63,0x74,0x2d])+_0x2729e0(_0x304815(_0x57ba92)),_0x5e7bab=window[_0x369cdc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x369cdc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e4665);return _0x5e7bab?window[_0x369cdc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cf252(_0x5e7bab),0x10)*_0x32d8b8:null;}function _0x497ade(_0x2de559){return new window[(_0x369cdc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x470b50,_0x330da5)=>{_0x2de559[_0x369cdc([0x74,0x68,0x65,0x6e])](_0x470b50,_0x330da5),window[_0x369cdc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x330da5,0x47a351c6^_0x44ba62);});}}_0x15d2be[_0x369cdc([0x6f,0x6e])](_0x369cdc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2dbf55,_0x1eb2ae)=>{if(_0x1eb2ae[0x0]!=_0x57ba92)return _0x1b91d9(_0x369cdc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1eb2ae[0x1]={..._0x1eb2ae[0x1],[_0x369cdc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2409e2};},{[_0x369cdc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x369cdc([0x68,0x69,0x67,0x68])}),_0x15d2be[_0x369cdc([0x6f,0x6e])](_0x369cdc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x190234=>{_0x249280(_0x190234[_0x369cdc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x333f17=!0x0,_0x3d2f42(_0x190234[_0x369cdc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x369cdc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x369cdc([0x6c,0x6f,0x77])}),_0xf58218[_0x369cdc([0x74,0x68,0x65,0x6e])](()=>{_0x333f17||_0x1b91d9(_0x369cdc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5f38bc(){return _0x15d2be[_0x369cdc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x369cdc([0x76,0x69,0x65,0x77])][_0x369cdc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x369cdc([0x61,0x75,0x74,0x6f]);}function _0x324d56(){_0x15d2be[_0x369cdc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x369cdc([0x76,0x69,0x65,0x77])][_0x369cdc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x369cdc([0x61,0x75,0x74,0x6f]);}}function _0x56e199(_0x114a26){const _0x5d531d=[new window[(_0x369cdc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31d365=>setTimeout(_0x31d365,0x47abbbca^_0x44ba62)),_0xf58218[_0x369cdc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x369cdc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1418d9=>{let _0xb13a62=0x0;_0x15d2be[_0x369cdc([0x6d,0x6f,0x64,0x65,0x6c])][_0x369cdc([0x6f,0x6e])](_0x369cdc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2d198f,_0x1bf8b8)=>{_0x1bf8b8[0x0][_0x369cdc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xb13a62++,_0xb13a62==(0x47a284fe^_0x44ba62)&&(_0x1418d9(),_0x2d198f[_0x369cdc([0x6f,0x66,0x66])]());});}))];return window[_0x369cdc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x369cdc([0x72,0x61,0x63,0x65])](_0x5d531d)[_0x369cdc([0x74,0x68,0x65,0x6e])](()=>_0x114a26);}async function _0x5608cf(){await _0xf58218,_0x15d2be[_0x369cdc([0x6d,0x6f,0x64,0x65,0x6c])][_0x369cdc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1bcbe8,_0x15d2be[_0x369cdc([0x6d,0x6f,0x64,0x65,0x6c])][_0x369cdc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1bcbe8,_0x15d2be[_0x369cdc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x369cdc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x37a2e6(_0xb328b5){const _0x4bfa1b=_0x4b67ef();_0x15d2be[_0x4bfa1b]=_0x369cdc([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xb328b5,_0xb328b5!=_0x369cdc([0x56,0x61,0x6c,0x69,0x64])&&_0x5608cf();}function _0x4b67ef(){const _0x314904=window[_0x369cdc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x369cdc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x369cdc([0x6e,0x6f,0x77])]())[_0x369cdc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x369cdc([0x2e]),'');let _0x353e1e=_0x369cdc([0x75]);for(let _0xe882c=0x0;_0xe882c<_0x314904[_0x369cdc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe882c+=0x2){let _0x43bc6a=window[_0x369cdc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x314904[_0x369cdc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe882c,_0xe882c+0x2));_0x43bc6a>=_0x6f2686[_0x369cdc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x43bc6a-=_0x6f2686[_0x369cdc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x353e1e+=_0x6f2686[_0x43bc6a];}return _0x353e1e;}function _0x32597f(){const _0x2e8969=_0x35dff[_0x369cdc([0x73,0x70,0x6c,0x69,0x74])](_0x369cdc([0x2e]));if(0x3!=_0x2e8969[_0x369cdc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x420351(_0x2e8969[0x1]);function _0x420351(_0x4092d6){const _0x539123=_0x28abec(_0x4092d6);return _0x539123&&_0xafb6a6()?_0x539123:null;function _0xafb6a6(){const _0x1737dd=_0x539123[_0x369cdc([0x6a,0x74,0x69])],_0x1fca3a=window[_0x369cdc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1737dd[_0x369cdc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1737dd[_0x369cdc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1f7eb5={..._0x539123,[_0x369cdc([0x6a,0x74,0x69])]:_0x1737dd[_0x369cdc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1737dd[_0x369cdc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1f7eb5[_0x369cdc([0x76,0x63])],_0x304815(_0x1f7eb5)==_0x1fca3a;}}}async function _0x252642(){let _0x4bd853=!0x0;try{const _0x34fc53=_0x35dff[_0x369cdc([0x73,0x70,0x6c,0x69,0x74])](_0x369cdc([0x2e])),[_0x2f073f,_0x5b5288,_0x26456a]=_0x34fc53;return _0x160c65(_0x2f073f),await _0x269242(_0x2f073f,_0x5b5288,_0x26456a),_0x4bd853;}catch{return!0x1;}function _0x160c65(_0x18e63e){const _0x1b118b=_0x28abec(_0x18e63e);_0x1b118b&&_0x1b118b[_0x369cdc([0x61,0x6c,0x67])]==_0x369cdc([0x45,0x53,0x32,0x35,0x36])||(_0x4bd853=!0x1);}async function _0x269242(_0x627ae3,_0x1f57c8,_0x12f3d2){const _0x15955e=window[_0x369cdc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x369cdc([0x66,0x72,0x6f,0x6d])](_0x5dbc27(_0x12f3d2),_0x1f8b03=>_0x1f8b03[_0x369cdc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c2daa=new window[(_0x369cdc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x369cdc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x627ae3+_0x369cdc([0x2e])+_0x1f57c8),_0x4dae1d=window[_0x369cdc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x369cdc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4dae1d)return;const _0x58029e=await _0x4dae1d[_0x369cdc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x369cdc([0x6a,0x77,0x6b]),_0x4d2126,{[_0x369cdc([0x6e,0x61,0x6d,0x65])]:_0x369cdc([0x45,0x43,0x44,0x53,0x41]),[_0x369cdc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x369cdc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x369cdc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4dae1d[_0x369cdc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x369cdc([0x6e,0x61,0x6d,0x65])]:_0x369cdc([0x45,0x43,0x44,0x53,0x41]),[_0x369cdc([0x68,0x61,0x73,0x68])]:{[_0x369cdc([0x6e,0x61,0x6d,0x65])]:_0x369cdc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x58029e,_0x15955e,_0x1c2daa)||(_0x4bd853=!0x1);}}function _0x28abec(_0x154222){return _0x154222[_0x369cdc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x369cdc([0x65,0x79]))?JSON[_0x369cdc([0x70,0x61,0x72,0x73,0x65])](_0x5dbc27(_0x154222)):null;}function _0x5dbc27(_0x41cd7f){return window[_0x369cdc([0x61,0x74,0x6f,0x62])](_0x41cd7f[_0x369cdc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x369cdc([0x2b]))[_0x369cdc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x369cdc([0x2f])));}function _0x304815(_0x32cc7e){let _0x10da53=0x1505;function _0xa7000b(_0x469e13){for(let _0x54e2c6=0x0;_0x54e2c6<_0x469e13[_0x369cdc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54e2c6++){const _0x900056=_0x469e13[_0x369cdc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x54e2c6);_0x10da53=(_0x10da53<<0x5)+_0x10da53+_0x900056,_0x10da53&=_0x10da53;}}function _0x35242a(_0x332185){Array[_0x369cdc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x332185)?_0x332185[_0x369cdc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x35242a):_0x332185&&typeof _0x332185==_0x369cdc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x369cdc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x332185)[_0x369cdc([0x73,0x6f,0x72,0x74])]()[_0x369cdc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x493170,_0x3a9ada])=>{_0xa7000b(_0x493170),_0x35242a(_0x3a9ada);}):_0xa7000b(window[_0x369cdc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x332185));}return _0x35242a(_0x32cc7e),_0x10da53>>>0x0;}function _0x2729e0(_0x6461b1){return _0x6461b1[_0x369cdc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x369cdc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x369cdc([0x30]));}function _0x4cf252(_0x2d861d){return _0x2d861d[_0x369cdc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x369cdc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x369cdc([0x6a,0x6f,0x69,0x6e])]('');}function _0x1bcbe8(){}function _0x369cdc(_0x37b86e){return _0x37b86e['map'](_0x239f22=>String['fromCharCode'](_0x239f22))['join']('');}_0x37a2e6(await _0x34500e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3dea0e){const {plugins:_0x216e20,editing:_0x7851a8,model:_0x2c4945}=this['editor'],_0x270231=_0x216e20['get'](c)['getFootnote'](_0x3dea0e);return!!_0x270231&&(_0x2c4945['change'](_0x32ee4c=>{_0x32ee4c['setSelection'](_0x32ee4c['createPositionAt'](_0x270231['definition'],'end'));}),_0x7851a8['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x407cf5){const {plugins:_0x53f292,editing:_0xf71bb4,model:_0x933be2}=this['editor'],_0x175e6d=_0x53f292['get'](c)['getFootnote'](_0x407cf5);return!!_0x175e6d&&(_0x933be2['change'](_0x2f9558=>{_0x2f9558['setSelection'](_0x175e6d['reference'],'on');}),_0xf71bb4['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x59b216}=this['editor']['model'],_0x276e59=this['editor']['config']['get']('footnotes.multiBlock');_0x59b216['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x59b216['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x59b216['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x276e59?_0x59b216['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x59b216['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x59b216['addChildCheck'](_0x28d0ba=>{for(const _0x333d51 of _0x28d0ba)if('footnoteDefinition'===_0x333d51['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x3116c8}=this,{conversion:_0x479ce7,editing:_0x3890d2}=_0x3116c8,{t:t}=_0x3116c8['locale'];_0x479ce7['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xb27c3a,{writer:_0x527157,consumable:_0x51fbdf})=>{const _0x4a0e42=_0xb27c3a['getChild'](0x0);if(!_0x4a0e42||!_0x4a0e42['is']('element','a'))return null;const _0x13a17c=_0x4a0e42['getAttribute']('href')||'';if(!_0x13a17c['startsWith']('#'))return null;const _0x2ef765=_0x13a17c['replace'](/^#/,'');if(!_0x2ef765)return null;_0x51fbdf['consume'](_0x4a0e42,{'name':!0x0,'attributes':['href']});for(const {item:_0x29c9ab}of _0x3890d2['view']['createRangeIn'](_0x4a0e42))_0x29c9ab['is']('$textProxy')?_0x51fbdf['consume'](_0x29c9ab['textNode'],{'name':!0x0}):_0x29c9ab['is']('element')&&_0x51fbdf['consume'](_0x29c9ab,{'name':!0x0});return _0x527157['createElement']('footnoteRef',{'footnoteId':_0x2ef765});}}),_0x479ce7['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4364ad,{writer:_0xfa230})=>D(_0x4364ad,_0xfa230)}),_0x479ce7['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xf26993,{writer:_0x3158f3})=>{const _0x18b0b3=_0xf26993['getAttribute']('footnoteCounter');return _0x15b005(D(_0xf26993,_0x3158f3),_0x3158f3,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x18b0b3)});}});}['_defineDefinitionsConverters'](){const {editor:_0x50a742}=this,{t:t}=_0x50a742['locale'],{conversion:_0x2ada58}=_0x50a742;_0x2ada58['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x2ada58['for']('upcast')['add'](_0x3d68be=>{_0x3d68be['on']('element:ol',(_0x1f8a96,_0x5bd49b,_0xfb4416)=>{const _0x5420ca=_0x5bd49b['viewItem'];if(!_0x5420ca['hasClass']('footnotes-list')||!_0x5bd49b['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0xfb4416['consumable']['consume'](_0x5420ca,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x35f184,modelCursor:_0x31fff0}=_0xfb4416['convertChildren'](_0x5bd49b['viewItem'],_0x5bd49b['modelCursor']);_0x5bd49b['modelRange']=_0x35f184,_0x5bd49b['modelCursor']=_0x31fff0;}),_0x3d68be['on']('element:hr',(_0x5028ec,_0x28b5aa,_0x5063ad)=>{const _0x146945=_0x28b5aa['viewItem'];_0x146945['hasClass']('footnotes-divider')&&_0x28b5aa['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5063ad['consumable']['consume'](_0x146945,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x2ada58['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x58a766,{writer:_0x471673})=>g(_0x471673)}),_0x2ada58['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xed73b8,{writer:_0x4cb3bc})=>{const _0x2a6e4d=g(_0x4cb3bc,{'data-footnotes-list-label':t('Footnotes')}),_0x39bac7=_0x15b005(_0x2a6e4d,_0x4cb3bc,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4cb3bc['setCustomProperty']('footnotesDefinitions',!0x0,_0x39bac7),_0x39bac7;}});}['_defineDefinitionConverters'](){const {editor:_0x3fdf0d}=this,{conversion:_0x44cc9e,locale:_0x9afade}=_0x3fdf0d,_0x4bdd50=_0x3fdf0d['config']['get']('footnotes.multiBlock');_0x44cc9e['for']('upcast')['add'](_0xcf7d76=>{_0xcf7d76['on']('element:li',(_0x3533c8,_0x4db8b1,_0x1680a9)=>{const _0xcd82a7=_0x4db8b1['viewItem'];if(!_0xcd82a7['hasClass']('footnote-definition')||!_0xcd82a7['getAttribute']('id'))return;const _0x3aba01=_0xcd82a7['parent'];if(!_0x3aba01['is']('element','ol')||!_0x3aba01['hasClass']('footnotes-list'))return;if(!_0x1680a9['consumable']['test'](_0xcd82a7,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3dd1=_0x1680a9['writer']['createElement']('footnoteDefinition',{'footnoteId':_0xcd82a7['getAttribute']('id')});if(!_0x1680a9['safeInsert'](_0x3dd1,_0x4db8b1['modelCursor']))return;_0x1680a9['consumable']['consume'](_0xcd82a7,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5d76f2=Array['from'](_0xcd82a7['getChildren']())['find'](_0x1edfe0=>_0x1edfe0['is']('element')&&_0x1edfe0['hasClass']('footnote-content'));for(const _0x4e9e77 of _0xcd82a7['getChildren']())_0x4e9e77['is']('element')&&(_0x1680a9['consumable']['consume'](_0x4e9e77,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1680a9['consumable']['consume'](_0x4e9e77,{'name':!0x0,'classes':'footnote-content'}));if(_0x5d76f2){if(_0x4bdd50)_0x1680a9['convertChildren'](_0x5d76f2,_0x3dd1);else{const _0x47492b=_0x1680a9['writer']['createElement']('footnoteInlineContent');_0x1680a9['writer']['insert'](_0x47492b,_0x3dd1),_0x1680a9['convertChildren'](_0x5d76f2,_0x47492b);}}_0x1680a9['updateConversionResult'](_0x3dd1,_0x4db8b1);});}),_0x44cc9e['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3b9ef0,{writer:_0xd4f905})=>v(_0x3b9ef0,_0xd4f905,_0x9afade,{'dataPipeline':!0x0})}),_0x44cc9e['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x488716,{writer:_0x48ad2f})=>v(_0x488716,_0x48ad2f,_0x9afade)});}['_defineBogusParagraphConverters'](){const {editor:_0x15b040}=this,{conversion:_0x557273}=_0x15b040;_0x15b040['config']['get']('footnotes.multiBlock')?(_0x557273['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x557273['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x15b040['model']['document'],'change:data',()=>{!function(_0x31cbc8,_0x473cb4){const _0x5a95f9=_0x31cbc8['document']['differ'],_0x13b5a5=new Set();for(const _0x2f3e48 of _0x5a95f9['getChanges']()){const _0x522c9b='attribute'==_0x2f3e48['type']?_0x2f3e48['range']['start']['parent']:_0x2f3e48['position']['parent'];_0x522c9b['is']('element','footnoteDefinition')&&_0x13b5a5['add'](_0x522c9b);}for(const _0x24aad3 of _0x13b5a5['values']()){const _0x3ad8dd=Array['from'](_0x24aad3['getChildren']())['filter'](_0x313aa5=>p(_0x313aa5,_0x473cb4['mapper']));for(const _0x44e08e of _0x3ad8dd)_0x473cb4['reconvertItem'](_0x44e08e);}}(_0x15b040['model'],_0x15b040['editing']);})):(_0x557273['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x557273['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3f03ba,{writer:_0x58cbf4})=>{const _0x37bd0a=_0x58cbf4['createContainerElement']('span');return _0x58cbf4['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x37bd0a),_0x37bd0a;}}));}['_defineKeyboardHandlers'](){const {editor:_0x2a7b86}=this,{editing:_0x3077c7,t:t}=_0x2a7b86,_0x1d7473=_0x2a7b86['model']['document']['selection'];_0x2a7b86['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x2a7b86['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x3077c7['view']['document'],'enter',(_0x3d426b,_0x37dbed)=>{const _0x56ffd0=function(_0x4a01b2){const _0xc6a114=_0x4a01b2['getSelectedElement']();if(_0xc6a114?.['is']('element','footnoteRef'))return _0xc6a114;return null;}(_0x1d7473);if(_0x56ffd0){const _0x2e32bd=_0x56ffd0['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x2e32bd),_0x37dbed['preventDefault'](),_0x3d426b['stop']();}},{'context':_0x5637eb});}['_defineClickHandlers'](){const {editor:_0x53f4e3}=this,{editing:_0x3d483e}=_0x53f4e3;_0x53f4e3['editing']['view']['addObserver'](_0x1a170d),_0x53f4e3['editing']['view']['addObserver'](_0x1da290);let _0x3b6f1f=!0x1;this['listenTo'](_0x3d483e['view']['document'],'pointerdown',(_0x463a26,_0x4fc395)=>{const {target:_0x4e1f0c}=_0x4fc395,_0x18566a=_0x3d483e['view']['document']['selection'];_0x3b6f1f=!(!_0x4e1f0c['is']('element','sup')||!_0x4e1f0c['hasClass']('footnote'))&&_0x18566a['getSelectedElement']()===_0x4e1f0c;},{'priority':'high'}),this['listenTo'](_0x3d483e['view']['document'],'click',(_0x34f60c,_0x560d0c)=>{const {target:_0x270341}=_0x560d0c,_0x3458bc=_0x270341['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x3458bc['slice'](0x1)),_0x34f60c['stop'](),_0x560d0c['preventDefault']();},{'priority':'high','context':_0x3ea605=>_0x3ea605['is']('element','sup')&&_0x3ea605['hasClass']('footnote')&&_0x3b6f1f}),this['listenTo'](_0x3d483e['view']['document'],'click',(_0x70b769,_0x4d8cb7)=>{const {target:_0x1305aa}=_0x4d8cb7;if(!_0x1305aa['is']('element','a'))return;let _0x2fdd26=_0x1305aa['getAttribute']('href');if(!_0x2fdd26?.['startsWith']('#'))return;_0x2fdd26=_0x2fdd26['slice'](0x1);let _0x50ae62=!0x1;(_0x2fdd26['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2fdd26['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2fdd26))&&(_0x50ae62=!0x0),_0x50ae62&&(_0x4d8cb7['preventDefault'](),_0x70b769['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x5c8b43}={}){return(_0x18fb6d,{writer:_0x5d9698})=>{if(!h(_0x18fb6d))return null;if(!_0x5c8b43)return _0x5d9698['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x121ba1=_0x5d9698['createContainerElement']('p');return _0x5d9698['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x121ba1),_0x121ba1;};}function h(_0x1ccffb){const {parent:_0x285467}=_0x1ccffb;if(!_0x285467?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x285467['childCount'])return!0x1;for(const _0x35109e of _0x1ccffb['getAttributeKeys']())if(!_0x35109e['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x35109e)return!0x1;return!0x0;}function p(_0x194548,_0x24801f){if(!_0x194548['is']('element','paragraph'))return!0x1;const _0x494db3=_0x24801f['toViewElement'](_0x194548);return!!_0x494db3&&h(_0x194548)!==_0x494db3['is']('element','span');}function J(_0x136b0e){return _0x5637eb(_0x136b0e)&&_0x136b0e['is']('containerElement')&&!!_0x136b0e['getCustomProperty']('footnotesDefinitions');}function g(_0xb08c03,_0x47a3e5={}){const _0x4aba50=_0xb08c03['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x48ca97=_0xb08c03['createContainerElement']('ol',{'class':'footnotes-list'},_0xb08c03['createSlot']());return _0xb08c03['createContainerElement']('div',{'class':'footnotes',..._0x47a3e5},[_0x4aba50,_0x48ca97]);}function D(_0x172407,_0x17f220){const _0x4b0e1f=_0x172407['getAttribute']('footnoteId'),_0x17e874=_0x172407['getAttribute']('footnoteCounter'),_0x23f96a=_0x17f220['createUIElement']('a',{'href':'#'+_0x4b0e1f},function(_0x117b67){const _0x59e036=this['toDomElement'](_0x117b67);return _0x59e036['textContent']=_0x17e874,_0x59e036;}),_0x2dcb8c=_0x17f220['createContainerElement']('sup',{'id':'ref-'+_0x4b0e1f,'class':'footnote'},[_0x23f96a]);return _0x2dcb8c['getFillerOffset']=()=>null,_0x2dcb8c;}function v(_0x2d825e,_0x4d0b06,_0x518665,{dataPipeline:_0x4d804b}={}){const {t:t}=_0x518665,_0x224d4e=_0x2d825e['getAttribute']('footnoteId'),_0xdd727d=_0x4d0b06['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x224d4e},function(_0x41d200){const _0x9ad6c4=this['toDomElement'](_0x41d200);return _0x9ad6c4['innerText']='^',_0x9ad6c4;}),_0x3206d2=_0x4d804b?_0x4d0b06['createContainerElement']('div',{'class':'footnote-content'}):_0x5b307c(_0x4d0b06['createEditableElement']('div',{'class':'footnote-content'}),_0x4d0b06,{'label':t('Footnote\x20content.')});return _0x4d0b06['insert'](_0x4d0b06['createPositionAt'](_0x3206d2,0x0),_0x4d0b06['createSlot']()),_0x4d0b06['createContainerElement']('li',{'class':'footnote-definition','id':_0x224d4e},[_0xdd727d,_0x3206d2]);}class e extends _0x42a78a{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x1da66d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x376bc5}=this,{plugins:_0x438086,model:_0x7c4be5}=_0x376bc5,_0x58444e=_0x438086['get'](_0x1da66d),_0x2e72ca=_0x438086['get'](c);this['listenTo'](_0x58444e,'outputTransformation',(_0x2988dc,_0x3fab1e)=>{const _0x36df29=function(_0x20777e,_0x463aba){const _0x1f3a0f=new Set();for(const {item:_0x35625d}of _0x20777e['createRangeIn'](_0x463aba))_0x35625d['is']('element','footnoteRef')&&_0x1f3a0f['add'](_0x35625d['getAttribute']('footnoteId'));return Array['from'](_0x1f3a0f);}(_0x7c4be5,_0x3fab1e['content']);if(!_0x36df29['length'])return;const _0x11aba2=_0x2e72ca['getFootnotes'](),_0x1021bf=_0x36df29['reduce']((_0x5891ca,_0x10cc4b)=>{const _0x278fb7=_0x11aba2['find'](_0x1db850=>_0x1db850['id']===_0x10cc4b);if(_0x278fb7){const _0x3e124c=_0x376bc5['data']['toView'](_0x278fb7['definition'],{'isClipboardPipeline':!0x0}),_0x16b1f1=_0x376bc5['data']['htmlProcessor']['toData'](_0x3e124c);_0x5891ca[_0x278fb7['id']]=_0x16b1f1;}return _0x5891ca;},Object['create'](null));_0x3fab1e['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x1021bf));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x54f511}=this,{model:_0x5d9a80,plugins:_0x50ca8a}=_0x54f511,{view:_0x185555}=_0x54f511['editing'],_0x48e39b=_0x50ca8a['get'](_0x1da66d),_0x490754=_0x50ca8a['get'](c);let _0xe1ccf3=null;this['listenTo'](_0x185555['document'],'clipboardInput',(_0x41eff3,_0x4383b4)=>{const _0x1c00f7=_0x4383b4['dataTransfer']['getData']('application/ckeditor5-footnotes');_0xe1ccf3=_0x1c00f7?JSON['parse'](_0x1c00f7):null;}),this['listenTo'](_0x48e39b,'contentInsertion',(_0x4b4f27,_0xe9383a)=>{if(!_0xe1ccf3)return;const _0x1af8e2=_0xe9383a['sourceEditorId']===this['editor']['id'];_0x1af8e2&&'drop'===_0xe9383a['method']||_0x5d9a80['change'](_0x1a7427=>{!function(_0x2197bb,_0x11ca86){const _0x29a14a=[];for(const {item:_0xac4e2b}of _0x2197bb['createRangeIn'](_0x11ca86))_0xac4e2b['is']('element','footnotesDefinitions')&&_0x29a14a['push'](_0xac4e2b);for(const _0x1582a5 of _0x29a14a)_0x2197bb['remove'](_0x1582a5);}(_0x1a7427,_0xe9383a['content']);let _0xe0a8d4=_0x490754['getFootnotesDefinitionsObjectElement']();if(!_0xe0a8d4){const _0x3894e7=_0x5d9a80['document']['selection']['getFirstRange']()['root'];_0xe0a8d4=_0x490754['_insertEmptyFootnotesDefinitionsContainer'](_0x1a7427,_0x3894e7);}const _0x2c18c8=function(_0x1cad90,_0x265ab8,_0x182936){const _0x527ea5=Object['create'](null);for(const {item:_0x4c0a41}of _0x1cad90['createRangeIn'](_0x265ab8))if(_0x4c0a41['is']('element','footnoteRef')){const _0x27cd3=_0x4c0a41['getAttribute']('footnoteId');if(!_0x182936(_0x27cd3))continue;_0x527ea5[_0x27cd3]||(_0x527ea5[_0x27cd3]=_0x1c0fd7()),_0x1cad90['setAttribute']('footnoteId',_0x527ea5[_0x27cd3],_0x4c0a41);}return _0x527ea5;}(_0x1a7427,_0xe9383a['content'],_0x30fc50=>!_0x1af8e2||null!==_0x490754['getFootnote'](_0x30fc50));for(const [_0x5605f2,_0x4ec7d0]of Object['entries'](_0xe1ccf3)){const _0x2a855a=_0x2c18c8[_0x5605f2]||_0x5605f2,_0x86235=_0x1a7427['createElement']('footnoteDefinition',{'footnoteId':_0x2a855a}),_0x44957d=_0x54f511['data']['htmlProcessor']['toView'](_0x4ec7d0),_0x10dada=_0x54f511['data']['toModel'](_0x44957d,_0x86235);_0x1a7427['append'](_0x10dada,_0x86235),_0x1a7427['insert'](_0x86235,_0xe0a8d4,'end');}_0xe1ccf3=null;});});}}class i extends _0x42a78a{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1e6bcc}=this,{componentFactory:_0x40c62a}=_0x1e6bcc['ui'];_0x40c62a['add']('insertFootnote',x(_0x1e6bcc,_0x1cce1b)),_0x40c62a['add']('menuBar:insertFootnote',x(_0x1e6bcc,_0x340eb3)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x252b3a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x16dd8f;for(const _0xb3997b in _0x252b3a){const _0x3637b9=_0xb3997b,_0xef68d3=_0x252b3a[_0x3637b9];if('footnotesLicenseKeyValid'==_0xef68d3||'footnotesLicenseKeyInvalid'==_0xef68d3||'footnotesLicenseKeyExpired'==_0xef68d3||'footnotesLicenseKeyDomainLimit'==_0xef68d3||'footnotesLicenseKeyNotAllowed'==_0xef68d3||'footnotesLicenseKeyEvaluationLimit'==_0xef68d3||'footnotesLicenseKeyTrialLimit'==_0xef68d3||'footnotesLicenseKeyUsageLimit'==_0xef68d3){delete _0x252b3a[_0x3637b9],_0x16dd8f=_0xef68d3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x16dd8f&&_0x252b3a['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x16dd8f&&_0x252b3a['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x16dd8f&&_0x252b3a['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x16dd8f&&_0x252b3a['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x16dd8f&&_0x252b3a['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x16dd8f&&_0x252b3a['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x16dd8f&&_0x252b3a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x3738ed,_0x3d8822){const _0x4eb147=_0x3738ed['commands']['get']('insertFootnote');return _0x32e22d=>{const {t:t}=_0x32e22d,_0xc26a4f=new _0x3d8822(_0x32e22d),_0x398d8f=_0xc26a4f instanceof _0x340eb3;return _0xc26a4f['bind']('isEnabled')['to'](_0x4eb147,'isEnabled'),_0xc26a4f['set']({'label':t(_0x398d8f?'Footnote':'Insert\x20footnote'),'icon':_0x291742,'tooltip':!0x0}),_0xc26a4f['on']('execute',()=>{_0x4eb147['execute'](),_0x3738ed['editing']['view']['focus']();}),_0xc26a4f;};}class nt extends _0x42a78a{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 _0x32aa23{['refresh'](){const {editor:_0x21662c}=this,_0x22119e=_0x21662c['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x22119e,this['value']=_0x22119e?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x3fd629}){const {editor:_0x11c902}=this,_0x554b4a=_0x11c902['plugins']['get'](c),_0x5f5976=_0x554b4a['getFootnotesDefinitionsObjectElement']();_0x5f5976&&Q['includes'](_0x3fd629)&&_0x11c902['model']['change'](_0x384607=>{_0x384607['setAttribute']('footnotesListStyle',_0x3fd629,_0x5f5976),_0x554b4a['_updateFootnotesCounters'](_0x384607);});}}class b extends _0x32aa23{['refresh'](){const {editor:_0x54c172}=this,_0x137757=_0x54c172['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x137757,this['value']=_0x137757?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x4b37be}){const {editor:_0x2603ac}=this,_0x1875bd=_0x2603ac['plugins']['get'](c),_0x44638b=_0x1875bd['getFootnotesDefinitionsObjectElement']();_0x44638b&&Number['isInteger'](_0x4b37be)&&_0x2603ac['model']['change'](_0x1974c7=>{_0x1974c7['setAttribute']('footnotesListStart',_0x4b37be,_0x44638b),_0x1875bd['_updateFootnotesCounters'](_0x1974c7);});}}class P extends _0x42a78a{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x139f1d}=this;_0x139f1d['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x139f1d['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x139f1d['commands']['add']('footnotesStyle',new S(_0x139f1d)),_0x139f1d['commands']['add']('footnotesStart',new b(_0x139f1d)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x305e21}=this,{schema:_0x235a8f}=_0x305e21['model'];_0x235a8f['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x38b5fe}=this,{conversion:_0x185024,model:_0xbfd90e}=_0x38b5fe,{schema:_0x96806}=_0xbfd90e;_0x185024['for']('upcast')['add'](_0x85265d=>{_0x85265d['on']('element:ol',(_0x2e0eb9,_0x336788,_0x4daeaf)=>{const _0xeb9ae6=_0x336788['viewItem'],_0x42d65a=_0x336788['modelCursor']?.['parent'];_0xeb9ae6['hasClass']('footnotes-list')&&_0x42d65a?.['is']('element','footnotesDefinitions')&&(function(_0x13cf81,_0xb94a03,_0x1816c8,_0x157774){if(!_0x157774['checkAttribute'](_0xb94a03,'footnotesListStart'))return;let _0x1a9a3c=0x1;const _0x165c51=_0x1816c8['consumable']['consume'](_0x13cf81,{'attributes':'start'});if(_0x165c51){const _0x5b6dcb=Number['parseInt'](_0x13cf81['getAttribute']('start'),0xa);Number['isNaN'](_0x5b6dcb)||(_0x1a9a3c=_0x5b6dcb);}!_0x165c51&&_0xb94a03['hasAttribute']('footnotesListStart')||_0x1816c8['writer']['setAttribute']('footnotesListStart',_0x1a9a3c,_0xb94a03);}(_0xeb9ae6,_0x42d65a,_0x4daeaf,_0x96806),function(_0x50793b,_0x12c663,_0x3c46f8,_0x53d3ac){if(!_0x53d3ac['checkAttribute'](_0x12c663,'footnotesListStyle'))return;let _0x1a77ca='decimal',_0x2c8658=!0x1;if(_0x3c46f8['consumable']['consume'](_0x50793b,{'attributes':'type'})){const _0x1953e3={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x50793b['getAttribute']('type')];_0x1953e3&&(_0x1a77ca=_0x1953e3),_0x2c8658=!0x0;}_0x3c46f8['consumable']['consume'](_0x50793b,{'styles':'list-style-type'})&&(_0x1a77ca=_0x50793b['getStyle']('list-style-type'),_0x2c8658=!0x0),!_0x2c8658&&_0x12c663['hasAttribute']('footnotesListStyle')||_0x3c46f8['writer']['setAttribute']('footnotesListStyle',_0x1a77ca,_0x12c663);}(_0xeb9ae6,_0x42d65a,_0x4daeaf,_0x96806));});}),_0x185024['for']('downcast')['add'](_0xd88ec2=>{_0xd88ec2['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x196dd1,_0x5a524,_0x26df40)=>{if(!_0x26df40['consumable']['consume'](_0x5a524['item'],_0x196dd1['name']))return;const _0x58371d=C(_0x5a524['item'],_0x26df40['mapper']),{attributeNewValue:_0xde4b9f}=_0x5a524;null==_0xde4b9f||0x1===_0xde4b9f?_0x26df40['writer']['removeAttribute']('start',_0x58371d):_0x26df40['writer']['setAttribute']('start',String(_0xde4b9f),_0x58371d);}),_0xd88ec2['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x1362dc,_0x516d45,_0x120243)=>{if(!_0x120243['consumable']['consume'](_0x516d45['item'],_0x1362dc['name']))return;const _0x387498=C(_0x516d45['item'],_0x120243['mapper']),{attributeNewValue:_0x321ead}=_0x516d45;_0x321ead&&'decimal'!==_0x321ead?_0x120243['writer']['setStyle']('list-style-type',_0x321ead,_0x387498):_0x120243['writer']['removeStyle']('list-style-type',_0x387498);});});}['_definePostfixer'](){const {editor:_0x165b29}=this,{model:_0x4f733d}=_0x165b29,_0x463aee=_0x165b29['plugins']['get'](c),_0x59d779=this['_getDefaultListStyle'](),_0x51bb4f=this['_getDefaultStartIndex']();_0x4f733d['document']['registerPostFixer'](_0x2a4182=>{const _0x26ac15=_0x4f733d['document']['differ']['getChanges']();let _0x1d4385=!0x1;for(const _0x284cc4 of _0x26ac15){if('insert'!==_0x284cc4['type']||'$text'===_0x284cc4['name'])continue;const _0x5d4032=_0x4f733d['createRangeOn'](_0x284cc4['position']['nodeAfter']);for(const _0x241c4d of _0x5d4032['getItems']())_0x241c4d['is']('element','footnotesDefinitions')&&(!_0x241c4d['hasAttribute']('footnotesListStart')&&_0x4f733d['schema']['checkAttribute'](_0x241c4d,'footnotesListStart')&&(_0x2a4182['setAttribute']('footnotesListStart',_0x51bb4f,_0x241c4d),_0x1d4385=!0x0),!_0x241c4d['hasAttribute']('footnotesListStyle')&&_0x4f733d['schema']['checkAttribute'](_0x241c4d,'footnotesListStyle')&&(_0x2a4182['setAttribute']('footnotesListStyle',_0x59d779,_0x241c4d),_0x1d4385=!0x0));}return _0x1d4385&&_0x463aee['_updateFootnotesCounters'](_0x2a4182),_0x1d4385;});}['_defineFormatter'](){const {editor:_0x81baed}=this;_0x81baed['plugins']['get'](c)['setFootnoteFormatter'](_0x2e0bd4=>this['_formatFootnoteListValue'](_0x2e0bd4));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x37dffb,value:_0x25d6a3,digits:_0x5f320e}){const _0x4ba66a=_0x37dffb['getAttribute']('footnotesListStyle'),_0x97765c=_0x37dffb['getAttribute']('footnotesListStart'),_0x37e2b6=Math['floor'](_0x25d6a3)+(_0x97765c??0x1)-0x1;switch(_0x4ba66a){case'decimal-leading-zero':return function(_0x5a66be,_0x43befc){return String(_0x5a66be)['padStart'](_0x43befc,'0');}(_0x37e2b6,Math['max'](0x2,_0x5f320e));case'lower-alpha':case'lower-latin':return M(_0x37e2b6,!0x1);case'upper-alpha':case'upper-latin':return M(_0x37e2b6,!0x0);case'lower-roman':return V(_0x37e2b6,!0x1);case'upper-roman':return V(_0x37e2b6,!0x0);default:return String(_0x37e2b6);}}}function C(_0x473a20,_0x5e62b9){const _0xbb6cc0=_0x5e62b9['toViewElement'](_0x473a20);return Array['from'](_0xbb6cc0['getChildren']())['find'](_0x1ce50c=>_0x1ce50c['is']('element','ol')&&_0x1ce50c['hasClass']('footnotes-list'));}function M(_0x6f0d96,_0x54c159){let _0x124ca5='',_0x1c9e94=_0x6f0d96;for(;_0x1c9e94>0x0;){const _0x1d185c=(_0x1c9e94-0x1)%0x1a;_0x124ca5=String['fromCharCode'](0x61+_0x1d185c)+_0x124ca5,_0x1c9e94=Math['floor']((_0x1c9e94-0x1)/0x1a);}return _0x54c159?_0x124ca5['toUpperCase']():_0x124ca5;}const N=[{'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 V(_0x26e29b,_0x5bbe53){let _0x452104='',_0x44094d=_0x26e29b;for(const {value:_0xa2d5b9,numeral:_0x2fc1a5}of N)for(;_0x44094d>=_0xa2d5b9;)_0x452104+=_0x2fc1a5,_0x44094d-=_0xa2d5b9;return _0x5bbe53?_0x452104:_0x452104['toLowerCase']();}class H extends _0x16c062{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x4d6cec();['focusCycler'];constructor(_0x25ab80,{styleButtonViews:_0x5b394f,styleGridAriaLabel:_0x234d8b}){super(_0x25ab80),(this['focusCycler']=new _0x3c6dd2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x5b394f,_0x234d8b),[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 _0x309ae5 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x309ae5['element']);_0x1004e8({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>rt['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 _0xe1707b=_0x1074b1=>_0x1074b1['stopPropagation']();this['keystrokes']['set']('arrowright',_0xe1707b),this['keystrokes']['set']('arrowleft',_0xe1707b),this['keystrokes']['set']('arrowup',_0xe1707b),this['keystrokes']['set']('arrowdown',_0xe1707b);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x20cb90,_0x32cfad){const _0x3a9c3c=new _0x16c062(this['locale']);return _0x3a9c3c['children']=_0x3a9c3c['createCollection'](),_0x3a9c3c['children']['addMany'](_0x20cb90),_0x3a9c3c['setTemplate']({'tag':'div','attributes':{'aria-label':_0x32cfad,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x3a9c3c['children']}),_0x3a9c3c['children']['delegate']('execute')['to'](this),_0x3a9c3c['focus']=function(){for(const _0x161c12 of this['children'])if(_0x161c12 instanceof _0x1cce1b&&_0x161c12['isOn'])return void _0x161c12['focus']();this['children']['first']['focus']();},_0x3a9c3c['focusTracker']=new et(),_0x3a9c3c['keystrokes']=new ot(),_0x3a9c3c['render'](),_0x3a9c3c['keystrokes']['listenTo'](_0x3a9c3c['element']),this['children']['add'](_0x3a9c3c),_0x3a9c3c;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x1aa71=this['_createStartIndexPropertyView'](),_0x2312cb=[_0x1aa71],_0x220b37=new tt(this['locale'],_0x2312cb);return _0x220b37['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x220b37['buttonView']['bind']('isEnabled')['toMany'](_0x2312cb,'isEnabled',(..._0x2b0cb4)=>_0x2b0cb4['some'](_0xaf48d=>_0xaf48d)),_0x220b37['buttonView']['on']('change:isEnabled',(_0x48c087,_0x5d1245,_0x223867)=>{_0x223867||(_0x220b37['isCollapsed']=!0x0);}),this['children']['add'](_0x220b37),[_0x1aa71,_0x220b37];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x46aaa=new st(this['locale'],it);return _0x46aaa['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x46aaa['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x46aaa['fieldView']['on']('input',()=>{const _0x572cef=_0x46aaa['fieldView']['element'],_0x45c7bf=_0x572cef['valueAsNumber'];Number['isNaN'](_0x45c7bf)?_0x46aaa['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x572cef['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x45c7bf}):_0x46aaa['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x46aaa;}}class j extends _0x42a78a{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x367e36,_0x14fbc7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x489226}=this,{componentFactory:_0x2c602a}=_0x489226['ui'];_0x489226['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x2c602a['add']('footnotesStyle',function(_0x403832){return _0xd1fa3f=>{const {t:t}=_0xd1fa3f,_0x59c68b=_0x403832['commands']['get']('footnotesStyle'),_0x3a9522=_0x44f1cb(_0xd1fa3f),{buttonView:_0x4d28a1}=_0x3a9522;return _0x3a9522['class']='ck-footnotes-styles-dropdown',_0x3a9522['bind']('isEnabled')['to'](_0x59c68b,'isEnabled'),_0x4d28a1['set']({'label':t('Footnotes\x20style'),'icon':_0x291742,'tooltip':!0x0}),_0x3a9522['once']('change:isOpen',()=>{const _0x5a7dd3=function({editor:_0x4ff40c,dropdownView:_0x5e093e}){const {t:t}=_0x4ff40c['locale'],_0x290d0f=t('Footnotes\x20definitions\x20styles'),_0x4b61e7=function(_0x426ca6){const t=_0x426ca6['locale']['t'],_0x2afafa=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x43f33d},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x530b8c},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x415e75},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x195804},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x292fb1},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x32b6f}];return _0x2afafa['map'](function(_0x2d4792){const _0x52367e=_0x2d4792['locale'];return({label:_0x54015a,icon:_0x3106cc,tooltip:_0x53bbe1,style:_0x24dd6f})=>{const _0x2be5ad=_0x2d4792['commands']['get']('footnotesStyle'),_0x331122=new _0x1cce1b(_0x52367e);return _0x331122['set']({'label':_0x54015a,'icon':_0x3106cc,'tooltip':_0x53bbe1}),_0x331122['bind']('isOn')['to'](_0x2be5ad,'value',_0x4685ed=>_0x4685ed===_0x24dd6f),_0x331122['bind']('isEnabled')['to'](_0x2be5ad,'isEnabled'),_0x331122['on']('execute',()=>{_0x2d4792['execute']('footnotesStyle',{'value':_0x24dd6f}),_0x2d4792['editing']['view']['focus']();}),_0x331122;};}(_0x426ca6));}(_0x4ff40c),_0x583489=new H(_0x4ff40c['locale'],{'styleGridAriaLabel':_0x290d0f,'styleButtonViews':_0x4b61e7});return _0x583489['delegate']('execute')['to'](_0x5e093e),_0x583489['on']('footnotesListStart',(_0x166028,_0x2ed380)=>{_0x4ff40c['execute']('footnotesStart',{'value':_0x2ed380['startIndex']});}),_0x583489;}({'editor':_0x403832,'dropdownView':_0x3a9522});_0x3a9522['panelView']['children']['add'](_0x5a7dd3);}),_0x3a9522;};}(_0x489226));}['afterInit'](){const {editor:_0x383166}=this,{t:t}=_0x383166['locale'],_0x33cc96=_0x383166['plugins']['get'](_0x14fbc7),{defaultPositions:_0x4a77d9}=_0x54d6f5;_0x33cc96['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x383166['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x57d96e=>{let _0x229bc8=_0x57d96e['getFirstPosition']()?.['parent'];return _0x229bc8?.['is']('$text')&&(_0x229bc8=_0x229bc8['parent']),_0x229bc8?.['is']('element')?_0x229bc8['findAncestor'](J):null;},'positions':[_0x4a77d9['southArrowNorth'],_0x4a77d9['southArrowNorthMiddleWest'],_0x4a77d9['southArrowNorthMiddleEast'],_0x4a77d9['southArrowNorthWest'],_0x4a77d9['southArrowNorthEast'],_0x4a77d9['northArrowSouth'],_0x4a77d9['northArrowSouthMiddleWest'],_0x4a77d9['northArrowSouthMiddleEast'],_0x4a77d9['northArrowSouthWest'],_0x4a77d9['northArrowSouthEast'],_0x4a77d9['viewportStickyNorth']]});}}class lt extends _0x42a78a{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,lt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,b as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w as InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0x7f6a27,Command as _0x1849a9}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x41f154,isWidget as _0x40e19a,toWidgetEditable as _0x4da06a,WidgetToolbarRepository as _0x850f85}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x124e5b,logWarning as _0xa045ad,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0xe15985,ClickObserver as _0x14ca82}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x2cf428}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x3de1ec,ButtonView as _0x285e75,View as _0x1c8606,ViewCollection as _0x573d1f,FocusCycler as _0x59a5b9,addKeyboardHandlingForGrid as _0x48ec16,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x16c286,BalloonPanelView as _0x5e807c,createDropdown as _0x45bc8e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x2a043f,IconListStyleDecimal as _0x4a05ec,IconListStyleDecimalLeadingZero as _0x401dfc,IconListStyleLowerRoman as _0x3bdc31,IconListStyleUpperRoman as _0x5491ae,IconListStyleLowerLatin as _0x57ead2,IconListStyleUpperLatin as _0x57e61b}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x2e9efb,_0xffa8dc){this['_model']=_0x2e9efb,this['_elementName']=_0xffa8dc['elementName'],this['_getElementKey']=_0xffa8dc['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x2abec4){const _0x2cfb91=new Set(),_0x557eb6=new Map();for(const _0x3e96f1 of _0x2abec4){if('insert'===_0x3e96f1['type']&&'$text'!==_0x3e96f1['name']&&_0x3e96f1['position']['nodeAfter']){const _0x292fe9=this['_model']['createRangeOn'](_0x3e96f1['position']['nodeAfter']);for(const _0xe4b28f of _0x292fe9['getItems']()){if(!_0xe4b28f['is']('element',this['_elementName']))continue;const _0x388957=this['_getElementKey'](_0xe4b28f);_0x557eb6['has'](_0x388957)||_0x557eb6['set'](_0x388957,[]),_0x557eb6['get'](_0x388957)['push'](_0xe4b28f);}}if('remove'===_0x3e96f1['type']&&_0x3e96f1['name']===this['_elementName']){const _0x26db27=this['_getElementKey']({'getAttribute':_0xa579e4=>_0x3e96f1['attributes']['get'](_0xa579e4)});_0x2cfb91['add'](_0x26db27);}}for(const [_0x5d9693,_0x239c57]of this['_trackedElements'])'$graveyard'===_0x239c57['root']['rootName']&&_0x2cfb91['add'](_0x5d9693);for(const _0x11a971 of _0x2cfb91)this['_trackedElements']['delete'](_0x11a971);for(const [_0x36fb93,_0x463857]of _0x557eb6)this['_trackedElements']['set'](_0x36fb93,_0x463857[_0x463857['length']-0x1]);const _0xc2c6a8=new Set();for(const [_0x2bb343,_0x57351e]of _0x557eb6)_0x2cfb91['has'](_0x2bb343)&&(_0xc2c6a8['add'](_0x57351e[0x0]),_0x57351e['length']>0x1?_0x557eb6['set'](_0x2bb343,_0x57351e['slice'](0x1)):_0x557eb6['delete'](_0x2bb343),_0x2cfb91['delete'](_0x2bb343));return{'removed':Array['from'](_0x2cfb91),'inserted':Array['from'](_0x557eb6['values']())['flat'](),'moved':Array['from'](_0xc2c6a8)};}}class c extends _0x7f6a27{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd1adc6){super(_0xd1adc6),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x438acf=>_0x438acf['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x57cb1d=>_0x57cb1d['getAttribute']('footnoteId')});}['init'](){const {editor:_0x48593e}=this,{model:_0x3d9440,data:_0x7b8f47}=_0x48593e;_0x3d9440['document']['registerPostFixer'](_0x508ed6=>{const _0x3397dd=_0x3d9440['document']['differ']['getChanges']();let _0x588d99=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x508ed6,_0x3397dd)&&(_0x588d99=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x508ed6,_0x3397dd)&&(_0x588d99=!0x0),this['_handleFootnoteReferencesChanges'](_0x508ed6,_0x3397dd)&&(_0x588d99=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x508ed6)&&(_0x588d99=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x508ed6)&&(_0x588d99=!0x0),this['_sortFootnoteDefinitions'](_0x508ed6)&&(_0x588d99=!0x0),_0x588d99;}),this['listenTo'](_0x3d9440['document'],'change:data',()=>{_0x3d9440['enqueueChange']({'isUndoable':!0x1},_0x30f937=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x30f937);});},{'priority':'low'}),this['listenTo'](_0x7b8f47,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x5988c7){return this['_footnotes']['find'](_0x4c9743=>_0x4c9743['id']===_0x5988c7)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x5eee85){this['_footnoteFormatter']=_0x5eee85;}['_updateFootnotesCounters'](_0x4febee,_0x209cdf=0x0){let _0x20db5f=!0x1;for(let _0x380932=_0x209cdf;_0x380932<this['_footnotes']['length'];_0x380932++)this['_updateFootnoteRefCounter'](_0x4febee,_0x380932)&&(_0x20db5f=!0x0);return _0x20db5f;}['_insertEmptyFootnotesDefinitionsContainer'](_0x10c1bc,_0x400229){const _0x3651bd=_0x10c1bc['createElement']('footnotesDefinitions',{});return _0x10c1bc['append'](_0x3651bd,_0x400229),this['_footnotesDefinitions']=_0x3651bd,_0x3651bd;}['_ensureFootnotesDefinitionsContainerExists'](_0x3b7566){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x4a6e6d=this['_footnotes'][0x0]['reference']['root'],_0x47d45e=this['_insertEmptyFootnotesDefinitionsContainer'](_0x3b7566,_0x4a6e6d);for(const _0x1ae7a0 of this['_footnotes'])_0x1ae7a0['definition']['parent']||_0x3b7566['insert'](_0x1ae7a0['definition'],_0x47d45e,'end');this['_updateFootnotesCounters'](_0x3b7566);}['_handleFootnotesDefinitionsObjectChanges'](_0x115213,_0x374945){let _0x367078=!0x1;const {inserted:_0x45409b,removed:_0x1e269b,moved:_0x434482}=this['_footnoteDefsContainerTracker']['getChanges'](_0x374945);if(_0x434482['length']&&(this['_footnotesDefinitions']=_0x434482[0x0]),_0x45409b['length']){if(_0x45409b['length']>0x1||this['_footnotesDefinitions']&&_0x45409b['some'](_0x9775a0=>_0x9775a0!==this['_footnotesDefinitions'])){const _0xa1439b=_0x115213['createElement']('footnotesDefinitions',{}),_0x72d6e7=[];this['_footnotesDefinitions']&&_0x72d6e7['push'](this['_footnotesDefinitions']),_0x72d6e7['push'](..._0x45409b),_0x115213['insert'](_0xa1439b,_0x72d6e7[0x0],'before');for(const _0x1fa73d of _0x72d6e7)_0x115213['move'](_0x115213['createRangeIn'](_0x1fa73d),_0x115213['createPositionAt'](_0xa1439b,'end')),_0x115213['remove'](_0x1fa73d);this['_footnotesDefinitions']=_0xa1439b,this['_updateFootnotesCounters'](_0x115213),_0x367078=!0x0;}else this['_footnotesDefinitions']=_0x45409b[0x0];}if(_0x1e269b['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x1701ee of this['_footnotes'])_0x115213['remove'](_0x1701ee['reference']),_0x367078=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x367078;}['_handleFootnoteDefinitionsChanges'](_0x315d75,_0xe3c096){let _0x3a976d=!0x1;const _0x300425=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x190bd4,moved:_0xfa596c}=this['_footnoteDefsTracker']['getChanges'](_0xe3c096);for(const _0x35b223 of[..._0xfa596c,..._0x190bd4]){const _0x3b1c0d=_0x35b223['getAttribute']('footnoteId'),_0x14f148=this['getFootnote'](_0x3b1c0d);_0x14f148&&(_0x14f148['definition']=_0x35b223),_(_0x315d75,_0x300425,_0x35b223)&&(_0x3a976d=!0x0);}return _0x3a976d;}['_handleFootnoteReferencesChanges'](_0x35b3ed,_0x11c2d0){let _0x481d3c=!0x1;const {removed:_0x213813,inserted:_0x8cf6bd,moved:_0x43b464}=this['_footnoteRefsTracker']['getChanges'](_0x11c2d0);for(const _0x441b27 of _0x213813)this['_handleRemoveFootnoteReferenceById'](_0x35b3ed,_0x441b27)&&(_0x481d3c=!0x0);for(const _0x889807 of _0x8cf6bd)this['_handleInsertedFootnoteReference'](_0x35b3ed,_0x889807)&&(_0x481d3c=!0x0);for(const _0x48d102 of _0x43b464)this['_handleMovedFootnoteReference'](_0x35b3ed,_0x48d102)&&(_0x481d3c=!0x0);return _0x481d3c;}['_handleFootnotesDefinitionsObjectSync'](_0x53f392){if(!this['_footnotesDefinitions'])return!0x1;let _0x4d4b3e=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x3e6871=[];for(const _0x87981 of this['_footnotesDefinitions']['getChildren']()){const _0x37230a=_0x87981['getAttribute']('footnoteId');this['getFootnote'](_0x37230a)||(_0x3e6871['unshift'](_0x87981),_0x4d4b3e=!0x0);}for(const _0x23c637 of _0x3e6871)_0x53f392['remove'](_0x23c637);}const _0x5081b3=new Set(),_0x303096=[];for(const _0x53d776 of this['_footnotesDefinitions']['getChildren']()){const _0x3603e1=_0x53d776['getAttribute']('footnoteId');_0x5081b3['has'](_0x3603e1)?(_0x303096['unshift'](_0x53d776),_0x4d4b3e=!0x0):_0x5081b3['add'](_0x3603e1);}for(const _0x58134f of _0x303096)_0x53f392['remove'](_0x58134f);return this['_footnotesDefinitions']['childCount']||(_0x53f392['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x4d4b3e=!0x0),_0x4d4b3e;}['_handleInsertedFootnoteReference'](_0x510f52,_0xf471dc){if(this['_footnotes']['find'](_0x300c4a=>_0x300c4a['reference']===_0xf471dc))return!0x1;let _0xb2c320=!0x1;const _0x222044=_0xf471dc['getAttribute']('footnoteId'),_0x15c7c3=this['getFootnote'](_0x222044);_0x15c7c3&&(_0x510f52['remove'](_0x15c7c3['reference']),this['_footnotes']=this['_footnotes']['filter'](_0x20cd93=>_0x20cd93['id']!==_0x222044),_0xb2c320=!0x0);let _0x4d75ca=this['_footnotesDefinitions']?function(_0x3aa081,_0x387e13){for(const _0x3cd280 of _0x3aa081['getChildren']())if(_0x3cd280['getAttribute']('footnoteId')===_0x387e13)return _0x3cd280;return null;}(this['_footnotesDefinitions'],_0x222044):null;_0x4d75ca||(_0x4d75ca=_0x510f52['createElement']('footnoteDefinition',{'footnoteId':_0x222044}),this['_footnotesDefinitions']&&(_0x510f52['insert'](_0x4d75ca,this['_footnotesDefinitions'],'end'),_0xb2c320=!0x0));const _0x30c62c={'id':_0x222044,'reference':_0xf471dc,'definition':_0x4d75ca},_0x1219ac=I(this['editor']['model'],this['_footnotes'],_0xf471dc);return this['_footnotes']['splice'](_0x1219ac,0x0,_0x30c62c),this['_updateFootnotesCounters'](_0x510f52,_0x1219ac)&&(_0xb2c320=!0x0),_0xb2c320;}['_handleRemoveFootnoteReferenceById'](_0x2f4895,_0x22de45){const _0x12bacc=this['_footnotes']['findIndex'](_0x1d362c=>_0x1d362c['id']===_0x22de45);if(-0x1===_0x12bacc)return!0x1;let _0x2d4a2e=!0x1;const _0x522d97=this['_footnotes'][_0x12bacc];return'$graveyard'!==_0x522d97['definition']['root']['rootName']&&(_0x2f4895['remove'](_0x522d97['definition']),_0x2d4a2e=!0x0),this['_footnotes']['splice'](_0x12bacc,0x1),this['_updateFootnotesCounters'](_0x2f4895,_0x12bacc)&&(_0x2d4a2e=!0x0),_0x2d4a2e;}['_handleMovedFootnoteReference'](_0x364e24,_0x19b8d0){const _0x33b958=_0x19b8d0['getAttribute']('footnoteId'),_0x3248c8=this['_footnotes']['findIndex'](_0xba884e=>_0xba884e['id']===_0x33b958),_0xe57829=this['_footnotes'][_0x3248c8];let _0x4eefa0=!0x1;_0xe57829['reference']=_0x19b8d0,this['_footnotes']['splice'](_0x3248c8,0x1);const _0x4113f6=I(this['editor']['model'],this['_footnotes'],_0x19b8d0);return this['_footnotes']['splice'](_0x4113f6,0x0,_0xe57829),this['_updateFootnotesCounters'](_0x364e24,Math['min'](_0x3248c8,_0x4113f6))&&(_0x4eefa0=!0x0),_0x4eefa0;}['_updateFootnoteRefCounter'](_0x1f443c,_0x1593cb){if(!this['_footnotesDefinitions'])return!0x1;const _0x964d89=this['_footnotes'][_0x1593cb];let _0x11ad63;return _0x11ad63=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x964d89,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x1593cb+0x1}):String(_0x1593cb+0x1),_0x964d89['reference']['getAttribute']('footnoteCounter')!=_0x11ad63&&(_0x1f443c['setAttribute']('footnoteCounter',_0x11ad63,_0x964d89['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x46fdb4){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x343037,_0x3997f7){if(_0x343037['length']!==_0x3997f7['length'])return!0x1;for(let _0x446333=0x0;_0x446333<_0x343037['length'];_0x446333++)if(_0x343037[_0x446333]!==_0x3997f7[_0x446333])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x55fb46=>_0x55fb46['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x56ad12=>_0x56ad12['getAttribute']('footnoteId'))))return!0x1;let _0x238997=!0x1;for(let _0x5507c5=0x0;_0x5507c5<this['_footnotes']['length'];_0x5507c5++){const _0xe517c0=this['_footnotes'][_0x5507c5],_0x48c463=_0x46fdb4['createPositionBefore'](_0xe517c0['definition']),_0x2df215=_0x46fdb4['createPositionAt'](this['_footnotesDefinitions'],_0x5507c5);_0x48c463['isEqual'](_0x2df215)||(_0x46fdb4['move'](_0x46fdb4['createRangeOn'](_0xe517c0['definition']),_0x2df215),_0x238997=!0x0);}return _0x238997;}['_ensureFootnotesReferencesHaveProperOrder'](_0xe9be52){if(!this['_footnotes']['length'])return!0x1;const {model:_0x1056a4}=this['editor'];let _0x4ee147=!0x1;for(let _0x31af11=0x0;_0x31af11<this['_footnotes']['length']-0x1;_0x31af11++){const _0x370ad0=this['_footnotes'][_0x31af11],_0x2ff717=this['_footnotes'][_0x31af11+0x1],_0x274711=_0x1056a4['createPositionBefore'](_0x370ad0['reference']),_0x5846ec=_0x1056a4['createPositionBefore'](_0x2ff717['reference']);'after'===_0x274711['compareWith'](_0x5846ec)&&(this['_handleMovedFootnoteReference'](_0xe9be52,_0x370ad0['reference']),_0x31af11=-0x1,_0x4ee147=!0x0);}return _0x4ee147;}}function _(_0x34fbb0,_0x5eaa09,_0x227666){if(_0x227666['childCount'])return!0x1;const _0x311e9d=_0x5eaa09?'paragraph':'footnoteInlineContent';return _0x34fbb0['insert'](_0x34fbb0['createElement'](_0x311e9d),_0x227666),!0x0;}function I(_0x1e2ede,_0x34167e,_0x372996){if(0x0===_0x34167e['length'])return 0x0;const _0x31ac73=_0x1e2ede['createPositionBefore'](_0x372996);for(let _0x41cefc=0x0;_0x41cefc<_0x34167e['length'];_0x41cefc++){const _0x5914db=_0x34167e[_0x41cefc],_0x3cd6f9=_0x1e2ede['createPositionBefore'](_0x5914db['reference']);if('before'===_0x31ac73['compareWith'](_0x3cd6f9))return _0x41cefc;}const _0x2dece0=_0x372996['root'];let _0x54585d=-0x1;for(let _0x147ce4=_0x34167e['length']-0x1;_0x147ce4>=0x0;_0x147ce4--)if(_0x34167e[_0x147ce4]['reference']['root']===_0x2dece0){_0x54585d=_0x147ce4;break;}if(-0x1!==_0x54585d)return _0x54585d+0x1;const _0x5ee3ce=_0x1e2ede['document']['getRootNames'](),_0x211c31=_0x5ee3ce['indexOf'](_0x2dece0['rootName']),_0xb7adff=_0x5ee3ce[_0x211c31+0x1];if(_0xb7adff){for(let _0x2f1893=0x0;_0x2f1893<_0x34167e['length'];_0x2f1893++)if(_0x34167e[_0x2f1893]['reference']['root']['rootName']===_0xb7adff)return _0x2f1893;}return _0x34167e['length'];}class w extends _0x1849a9{['refresh'](){const _0x10d0ae=this['editor']['model']['document']['selection'],_0x353eb8=this['_getPositionToInsertFootnote'](_0x10d0ae);this['isEnabled']=!!_0x353eb8;}['execute'](_0x46d892){const {editor:_0xe47a4}=this,{model:_0x39486f}=_0xe47a4,{selection:_0x56d3ce}=_0x39486f['document'],_0x36157f=this['_getPositionToInsertFootnote'](_0x56d3ce);if(!_0x36157f)return;const _0xe903c5=_0xe47a4['plugins']['get']('FootnotesEditing'),_0x15af50=_0x46d892?.['footnoteId']??_0x124e5b();!function(_0x4f4215){return'string'==typeof _0x4f4215&&_0x4f4215['length']>0x0&&!/\s/['test'](_0x4f4215)&&!/^\d/['test'](_0x4f4215);}(_0x15af50)?_0xa045ad('insert-footnote-command-executed-with-invalid-id'):(_0x39486f['change'](_0x829327=>{const _0x18b5fc=_0x829327['createElement']('footnoteRef',{'footnoteId':_0x15af50});_0x39486f['insertObject'](_0x18b5fc,_0x36157f,null);}),_0xe903c5['_moveSelectionToFootnoteDefinition'](_0x15af50));}['_getPositionToInsertFootnote'](_0x8450ca){const {model:_0x394624}=this['editor'],{schema:_0x35fc95}=_0x394624,_0x4028ac=_0x8450ca['getFirstRange']();for(const _0x36d657 of _0x4028ac['getItems']())if(_0x35fc95['isBlock'](_0x36d657)||_0x35fc95['isObject'](_0x36d657))return null;const _0x2c89ec=_0x4028ac['end'];return _0x35fc95['checkChild'](_0x2c89ec,'footnoteRef')?_0x2c89ec:null;}}class r extends _0x7f6a27{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5a328f}=this;_0x5a328f['config']['define']('footnotes.multiBlock',!0x0),_0x5a328f['commands']['add']('insertFootnote',new w(_0x5a328f)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4512cf){const _0x1762e5=_0xe188b7([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]),_0xefc616=0x47a28506,_0x3eb671=0x47a5f266^_0xefc616,_0x5407a9=window[_0xe188b7([0x44,0x61,0x74,0x65])][_0xe188b7([0x6e,0x6f,0x77])](),_0x1d8612=_0x4512cf[_0xe188b7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4676e3=new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b83b7=>{_0x1d8612[_0xe188b7([0x6f,0x6e,0x63,0x65])](_0xe188b7([0x72,0x65,0x61,0x64,0x79]),_0x1b83b7);}),_0x1a7c12={[_0xe188b7([0x6b,0x74,0x79])]:_0xe188b7([0x45,0x43]),[_0xe188b7([0x75,0x73,0x65])]:_0xe188b7([0x73,0x69,0x67]),[_0xe188b7([0x63,0x72,0x76])]:_0xe188b7([0x50,0x2d,0x32,0x35,0x36]),[_0xe188b7([0x78])]:_0xe188b7([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]),[_0xe188b7([0x79])]:_0xe188b7([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]),[_0xe188b7([0x61,0x6c,0x67])]:_0xe188b7([0x45,0x53,0x32,0x35,0x36])},_0x36fd7d=_0x1d8612[_0xe188b7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe188b7([0x67,0x65,0x74])](_0xe188b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4633a2(){let _0x32f4ee,_0x16dc69=null,_0x5b3c2b=null;try{if(_0x36fd7d==_0xe188b7([0x47,0x50,0x4c]))return _0xe188b7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x32f4ee=_0x1b16c1(),!_0x32f4ee)return _0xe188b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x32f4ee[_0xe188b7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b3c2b=_0x1994b4(_0x32f4ee[_0xe188b7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x32f4ee[_0xe188b7([0x6a,0x74,0x69])])),await _0x4515e0()?_0x3c43d()?_0x117f1f()?_0xe188b7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3a1b43()?(_0x32f4ee[_0xe188b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe188b7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x16dc69=_0x1475ac(_0xe188b7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x32f4ee[_0xe188b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe188b7([0x74,0x72,0x69,0x61,0x6c])&&(_0x16dc69=_0x1475ac(_0xe188b7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2838e7()):_0xe188b7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe188b7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe188b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xe188b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x117f1f(){const _0x49405c=[_0xe188b7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe188b7([0x74,0x72,0x69,0x61,0x6c])][_0xe188b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32f4ee[_0xe188b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5407a9/0x3e8:0xe10*_0x3eb671;return _0x32f4ee[_0xe188b7([0x65,0x78,0x70])]<_0x49405c;}function _0x3c43d(){const _0x43fd1b=_0x32f4ee[_0xe188b7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x43fd1b&&(!!_0x43fd1b[_0xe188b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe188b7([0x2a]))||!!_0x43fd1b[_0xe188b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe188b7([0x46,0x4f,0x4f])));}function _0x3a1b43(){const _0x4463b0=_0x32f4ee[_0xe188b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4463b0||0x0==_0x4463b0[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xf588a7}=new URL(window[_0xe188b7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4463b0[_0xe188b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf588a7))return!0x0;const _0x400235=_0xf588a7[_0xe188b7([0x73,0x70,0x6c,0x69,0x74])](_0xe188b7([0x2e]));return _0x4463b0[_0xe188b7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x470356=>_0x470356[_0xe188b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe188b7([0x2a])))[_0xe188b7([0x6d,0x61,0x70])](_0x4be1de=>_0x4be1de[_0xe188b7([0x73,0x70,0x6c,0x69,0x74])](_0xe188b7([0x2e])))[_0xe188b7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x182c8e=>_0x182c8e[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x400235[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe188b7([0x6d,0x61,0x70])](_0x2a4a97=>Array(_0x400235[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2a4a97[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe188b7([0x66,0x69,0x6c,0x6c])](_0x2a4a97[0x0]===_0xe188b7([0x2a])?_0xe188b7([0x2a]):'')[_0xe188b7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2a4a97))[_0xe188b7([0x73,0x6f,0x6d,0x65])](_0x5208e3=>_0x400235[_0xe188b7([0x65,0x76,0x65,0x72,0x79])]((_0x151654,_0x431f03)=>_0x5208e3[_0x431f03]===_0x151654||_0x5208e3[_0x431f03]===_0xe188b7([0x2a])));}function _0x2838e7(){return _0x16dc69&&_0x5b3c2b?new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x137a96,_0x2062a8)=>{_0x16dc69[_0xe188b7([0x74,0x68,0x65,0x6e])](_0x137a96,_0x2062a8),_0x5b3c2b[_0xe188b7([0x74,0x68,0x65,0x6e])](_0x5eaa70=>{_0x5eaa70!=_0xe188b7([0x56,0x61,0x6c,0x69,0x64])&&_0x137a96(_0x5eaa70);},_0x2062a8);}):_0x16dc69||_0x5b3c2b||_0xe188b7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1994b4(_0x4d8b72,_0x83407f){return new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55d92d=>{if(_0x47785c())return _0x55d92d(_0xe188b7([0x56,0x61,0x6c,0x69,0x64]));_0x5d6f2d(),_0x1d8612[_0xe188b7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe188b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xea9ab8=!0x1;const _0x5385d2=_0x124e5b();function _0x2a06c2(_0xe755b7){return!!_0xe755b7&&(typeof _0xe755b7===_0xe188b7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xe755b7===_0xe188b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xe755b7[_0xe188b7([0x74,0x68,0x65,0x6e])]===_0xe188b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xe755b7[_0xe188b7([0x63,0x61,0x74,0x63,0x68])]===_0xe188b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x255d83(_0x54916d){_0x41fa68(_0x54916d)[_0xe188b7([0x74,0x68,0x65,0x6e])](_0x343516=>{if(!_0x343516||_0x343516[_0xe188b7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe188b7([0x6f,0x6b]))return _0xe188b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x522700(_0x2313a9(_0x5385d2+_0x83407f))!=_0x343516[_0xe188b7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe188b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe188b7([0x56,0x61,0x6c,0x69,0x64]);})[_0xe188b7([0x74,0x68,0x65,0x6e])](_0xca3e9f=>(_0x542bd8(),_0xca3e9f),()=>{const _0x4a2700=_0x11eac3();return null==_0x4a2700?(_0x542bd8(),_0xe188b7([0x56,0x61,0x6c,0x69,0x64])):_0xe188b7(_0x5407a9-_0x4a2700>(0x63ae0106^_0xefc616)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe188b7([0x74,0x68,0x65,0x6e])](_0x55d92d)[_0xe188b7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x55d92d(_0xe188b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24a98a=0x47946b86^_0xefc616;function _0x542bd8(){const _0x41e8c1=_0xe188b7([0x6c,0x6c,0x63,0x74,0x2d])+_0x522700(_0x2313a9(_0x4d8b72)),_0x19e850=_0x2babea(_0x522700(window[_0xe188b7([0x4d,0x61,0x74,0x68])][_0xe188b7([0x63,0x65,0x69,0x6c])](_0x5407a9/_0x24a98a)));window[_0xe188b7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe188b7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41e8c1,_0x19e850);}function _0x11eac3(){const _0x28aeea=_0xe188b7([0x6c,0x6c,0x63,0x74,0x2d])+_0x522700(_0x2313a9(_0x4d8b72)),_0x51aa44=window[_0xe188b7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe188b7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28aeea);return _0x51aa44?window[_0xe188b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2babea(_0x51aa44),0x10)*_0x24a98a:null;}function _0x41fa68(_0x1cb25e){return new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38741d,_0x2fd407)=>{_0x1cb25e[_0xe188b7([0x74,0x68,0x65,0x6e])](_0x38741d,_0x2fd407),window[_0xe188b7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fd407,0x47a351c6^_0xefc616);});}}_0x1d8612[_0xe188b7([0x6f,0x6e])](_0xe188b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x53a7c5,_0x245462)=>{if(_0x245462[0x0]!=_0x4d8b72)return _0x55d92d(_0xe188b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x245462[0x1]={..._0x245462[0x1],[_0xe188b7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5385d2};},{[_0xe188b7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe188b7([0x68,0x69,0x67,0x68])}),_0x1d8612[_0xe188b7([0x6f,0x6e])](_0xe188b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x409d9a=>{_0x2a06c2(_0x409d9a[_0xe188b7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xea9ab8=!0x0,_0x255d83(_0x409d9a[_0xe188b7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe188b7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe188b7([0x6c,0x6f,0x77])}),_0x4676e3[_0xe188b7([0x74,0x68,0x65,0x6e])](()=>{_0xea9ab8||_0x55d92d(_0xe188b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47785c(){return _0x1d8612[_0xe188b7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe188b7([0x76,0x69,0x65,0x77])][_0xe188b7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe188b7([0x61,0x75,0x74,0x6f]);}function _0x5d6f2d(){_0x1d8612[_0xe188b7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe188b7([0x76,0x69,0x65,0x77])][_0xe188b7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe188b7([0x61,0x75,0x74,0x6f]);}}function _0x1475ac(_0x504e12){const _0x22e5ad=[new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x325955=>setTimeout(_0x325955,0x47abbbca^_0xefc616)),_0x4676e3[_0xe188b7([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5eb670=>{let _0x3fda7a=0x0;_0x1d8612[_0xe188b7([0x6d,0x6f,0x64,0x65,0x6c])][_0xe188b7([0x6f,0x6e])](_0xe188b7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x274227,_0x2bd07e)=>{_0x2bd07e[0x0][_0xe188b7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3fda7a++,_0x3fda7a==(0x47a284fe^_0xefc616)&&(_0x5eb670(),_0x274227[_0xe188b7([0x6f,0x66,0x66])]());});}))];return window[_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe188b7([0x72,0x61,0x63,0x65])](_0x22e5ad)[_0xe188b7([0x74,0x68,0x65,0x6e])](()=>_0x504e12);}async function _0x17ac5e(){await _0x4676e3,_0x1d8612[_0xe188b7([0x6d,0x6f,0x64,0x65,0x6c])][_0xe188b7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x559c6b,_0x1d8612[_0xe188b7([0x6d,0x6f,0x64,0x65,0x6c])][_0xe188b7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x559c6b,_0x1d8612[_0xe188b7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe188b7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x429dd3(_0x6f4039){const _0x4e9364=_0x4d80bb();_0x1d8612[_0x4e9364]=_0xe188b7([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x6f4039,_0x6f4039!=_0xe188b7([0x56,0x61,0x6c,0x69,0x64])&&_0x17ac5e();}function _0x4d80bb(){const _0x445557=window[_0xe188b7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe188b7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe188b7([0x6e,0x6f,0x77])]())[_0xe188b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe188b7([0x2e]),'');let _0x2694b7=_0xe188b7([0x75]);for(let _0x5778b7=0x0;_0x5778b7<_0x445557[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5778b7+=0x2){let _0x45fd95=window[_0xe188b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x445557[_0xe188b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5778b7,_0x5778b7+0x2));_0x45fd95>=_0x1762e5[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45fd95-=_0x1762e5[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2694b7+=_0x1762e5[_0x45fd95];}return _0x2694b7;}function _0x1b16c1(){const _0x5449ae=_0x36fd7d[_0xe188b7([0x73,0x70,0x6c,0x69,0x74])](_0xe188b7([0x2e]));if(0x3!=_0x5449ae[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x28aef8(_0x5449ae[0x1]);function _0x28aef8(_0x9def7c){const _0x5ef6b8=_0x204473(_0x9def7c);return _0x5ef6b8&&_0x16a2f2()?_0x5ef6b8:null;function _0x16a2f2(){const _0x326ea6=_0x5ef6b8[_0xe188b7([0x6a,0x74,0x69])],_0x48b5bc=window[_0xe188b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x326ea6[_0xe188b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x326ea6[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x52d088={..._0x5ef6b8,[_0xe188b7([0x6a,0x74,0x69])]:_0x326ea6[_0xe188b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x326ea6[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x52d088[_0xe188b7([0x76,0x63])],_0x2313a9(_0x52d088)==_0x48b5bc;}}}async function _0x4515e0(){let _0x31b1d7=!0x0;try{const _0x4a836d=_0x36fd7d[_0xe188b7([0x73,0x70,0x6c,0x69,0x74])](_0xe188b7([0x2e])),[_0x5d6c75,_0x221545,_0x3c5d4d]=_0x4a836d;return _0x245787(_0x5d6c75),await _0x22a9f0(_0x5d6c75,_0x221545,_0x3c5d4d),_0x31b1d7;}catch{return!0x1;}function _0x245787(_0x587839){const _0x316d95=_0x204473(_0x587839);_0x316d95&&_0x316d95[_0xe188b7([0x61,0x6c,0x67])]==_0xe188b7([0x45,0x53,0x32,0x35,0x36])||(_0x31b1d7=!0x1);}async function _0x22a9f0(_0x5c6355,_0x562096,_0x16ef9d){const _0x322286=window[_0xe188b7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe188b7([0x66,0x72,0x6f,0x6d])](_0x5a6dcd(_0x16ef9d),_0x38d4ef=>_0x38d4ef[_0xe188b7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x456ff3=new window[(_0xe188b7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe188b7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c6355+_0xe188b7([0x2e])+_0x562096),_0x5be8d5=window[_0xe188b7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe188b7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5be8d5)return;const _0x4087ce=await _0x5be8d5[_0xe188b7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe188b7([0x6a,0x77,0x6b]),_0x1a7c12,{[_0xe188b7([0x6e,0x61,0x6d,0x65])]:_0xe188b7([0x45,0x43,0x44,0x53,0x41]),[_0xe188b7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe188b7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe188b7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5be8d5[_0xe188b7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe188b7([0x6e,0x61,0x6d,0x65])]:_0xe188b7([0x45,0x43,0x44,0x53,0x41]),[_0xe188b7([0x68,0x61,0x73,0x68])]:{[_0xe188b7([0x6e,0x61,0x6d,0x65])]:_0xe188b7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4087ce,_0x322286,_0x456ff3)||(_0x31b1d7=!0x1);}}function _0x204473(_0x401b18){return _0x401b18[_0xe188b7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe188b7([0x65,0x79]))?JSON[_0xe188b7([0x70,0x61,0x72,0x73,0x65])](_0x5a6dcd(_0x401b18)):null;}function _0x5a6dcd(_0x521a30){return window[_0xe188b7([0x61,0x74,0x6f,0x62])](_0x521a30[_0xe188b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe188b7([0x2b]))[_0xe188b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe188b7([0x2f])));}function _0x2313a9(_0x1ef57e){let _0x2c8ca4=0x1505;function _0x51e785(_0x5a2590){for(let _0x5bbe00=0x0;_0x5bbe00<_0x5a2590[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5bbe00++){const _0x3f2d5f=_0x5a2590[_0xe188b7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5bbe00);_0x2c8ca4=(_0x2c8ca4<<0x5)+_0x2c8ca4+_0x3f2d5f,_0x2c8ca4&=_0x2c8ca4;}}function _0x4f724d(_0x139013){Array[_0xe188b7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x139013)?_0x139013[_0xe188b7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4f724d):_0x139013&&typeof _0x139013==_0xe188b7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe188b7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x139013)[_0xe188b7([0x73,0x6f,0x72,0x74])]()[_0xe188b7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2bf5ed,_0x4f4be0])=>{_0x51e785(_0x2bf5ed),_0x4f724d(_0x4f4be0);}):_0x51e785(window[_0xe188b7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x139013));}return _0x4f724d(_0x1ef57e),_0x2c8ca4>>>0x0;}function _0x522700(_0x1c86f7){return _0x1c86f7[_0xe188b7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe188b7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe188b7([0x30]));}function _0x2babea(_0x10483f){return _0x10483f[_0xe188b7([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe188b7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe188b7([0x6a,0x6f,0x69,0x6e])]('');}function _0x559c6b(){}function _0xe188b7(_0x3cd0a4){return _0x3cd0a4['map'](_0x20d6d=>String['fromCharCode'](_0x20d6d))['join']('');}_0x429dd3(await _0x4633a2());}(this);}['_moveSelectionToFootnoteDefinition'](_0xdebda){const {plugins:_0x3b2d64,editing:_0x32770b,model:_0x3c3e86}=this['editor'],_0x882f2e=_0x3b2d64['get'](c)['getFootnote'](_0xdebda);return!!_0x882f2e&&(_0x3c3e86['change'](_0x10ee9e=>{_0x10ee9e['setSelection'](_0x10ee9e['createPositionAt'](_0x882f2e['definition'],'end'));}),_0x32770b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0xdf3bfe){const {plugins:_0x39f1f0,editing:_0x3850dd,model:_0x355723}=this['editor'],_0x5b67b4=_0x39f1f0['get'](c)['getFootnote'](_0xdf3bfe);return!!_0x5b67b4&&(_0x355723['change'](_0x4d6427=>{_0x4d6427['setSelection'](_0x5b67b4['reference'],'on');}),_0x3850dd['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x307bbb}=this['editor']['model'],_0x532697=this['editor']['config']['get']('footnotes.multiBlock');_0x307bbb['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x307bbb['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x307bbb['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x532697?_0x307bbb['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x307bbb['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x307bbb['addChildCheck'](_0x599fef=>{for(const _0x218596 of _0x599fef)if('footnoteDefinition'===_0x218596['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x401bab}=this,{conversion:_0x470c8b,editing:_0x51b66c}=_0x401bab,{t:t}=_0x401bab['locale'];_0x470c8b['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4d73d7,{writer:_0xade402,consumable:_0x11235f})=>{const _0x30d71a=_0x4d73d7['getChild'](0x0);if(!_0x30d71a||!_0x30d71a['is']('element','a'))return null;const _0xe45f41=_0x30d71a['getAttribute']('href')||'';if(!_0xe45f41['startsWith']('#'))return null;const _0x659f90=_0xe45f41['replace'](/^#/,'');if(!_0x659f90)return null;_0x11235f['consume'](_0x30d71a,{'name':!0x0,'attributes':['href']});for(const {item:_0x28935a}of _0x51b66c['view']['createRangeIn'](_0x30d71a))_0x28935a['is']('$textProxy')?_0x11235f['consume'](_0x28935a['textNode'],{'name':!0x0}):_0x28935a['is']('element')&&_0x11235f['consume'](_0x28935a,{'name':!0x0});return _0xade402['createElement']('footnoteRef',{'footnoteId':_0x659f90});}}),_0x470c8b['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3f4322,{writer:_0x13ce93})=>D(_0x3f4322,_0x13ce93)}),_0x470c8b['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3e68e6,{writer:_0x38eb2b})=>{const _0x516351=_0x3e68e6['getAttribute']('footnoteCounter');return _0x41f154(D(_0x3e68e6,_0x38eb2b),_0x38eb2b,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x516351)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4c1390}=this,{t:t}=_0x4c1390['locale'],{conversion:_0xbf481}=_0x4c1390;_0xbf481['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0xbf481['for']('upcast')['add'](_0x42b2a3=>{_0x42b2a3['on']('element:ol',(_0x4d81da,_0x32f177,_0x25bcc6)=>{const _0x3f17d4=_0x32f177['viewItem'];if(!_0x3f17d4['hasClass']('footnotes-list')||!_0x32f177['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x25bcc6['consumable']['consume'](_0x3f17d4,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x56a455,modelCursor:_0x495d5a}=_0x25bcc6['convertChildren'](_0x32f177['viewItem'],_0x32f177['modelCursor']);_0x32f177['modelRange']=_0x56a455,_0x32f177['modelCursor']=_0x495d5a;}),_0x42b2a3['on']('element:hr',(_0xc6a319,_0x40234c,_0x40e398)=>{const _0x2a6e80=_0x40234c['viewItem'];_0x2a6e80['hasClass']('footnotes-divider')&&_0x40234c['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x40e398['consumable']['consume'](_0x2a6e80,{'name':!0x0,'classes':'footnotes-divider'});});}),_0xbf481['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4940fc,{writer:_0x2eac9f})=>g(_0x2eac9f)}),_0xbf481['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x222093,{writer:_0x361cc6})=>{const _0x15055a=g(_0x361cc6,{'data-footnotes-list-label':t('Footnotes')}),_0x100cc4=_0x41f154(_0x15055a,_0x361cc6,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x361cc6['setCustomProperty']('footnotesDefinitions',!0x0,_0x100cc4),_0x100cc4;}});}['_defineDefinitionConverters'](){const {editor:_0x5a60f1}=this,{conversion:_0xc1038c,locale:_0x499db8}=_0x5a60f1,_0x79db12=_0x5a60f1['config']['get']('footnotes.multiBlock');_0xc1038c['for']('upcast')['add'](_0x2c6a4a=>{_0x2c6a4a['on']('element:li',(_0x28146a,_0x5991ea,_0x5b6b88)=>{const _0x21c38c=_0x5991ea['viewItem'];if(!_0x21c38c['hasClass']('footnote-definition')||!_0x21c38c['getAttribute']('id'))return;const _0x4fde5f=_0x21c38c['parent'];if(!_0x4fde5f['is']('element','ol')||!_0x4fde5f['hasClass']('footnotes-list'))return;if(!_0x5b6b88['consumable']['test'](_0x21c38c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x453964=_0x5b6b88['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x21c38c['getAttribute']('id')});if(!_0x5b6b88['safeInsert'](_0x453964,_0x5991ea['modelCursor']))return;_0x5b6b88['consumable']['consume'](_0x21c38c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x41ca29=Array['from'](_0x21c38c['getChildren']())['find'](_0x197916=>_0x197916['is']('element')&&_0x197916['hasClass']('footnote-content'));for(const _0x14037f of _0x21c38c['getChildren']())_0x14037f['is']('element')&&(_0x5b6b88['consumable']['consume'](_0x14037f,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5b6b88['consumable']['consume'](_0x14037f,{'name':!0x0,'classes':'footnote-content'}));if(_0x41ca29){if(_0x79db12)_0x5b6b88['convertChildren'](_0x41ca29,_0x453964);else{const _0x4ffbd7=_0x5b6b88['writer']['createElement']('footnoteInlineContent');_0x5b6b88['writer']['insert'](_0x4ffbd7,_0x453964),_0x5b6b88['convertChildren'](_0x41ca29,_0x4ffbd7);}}_0x5b6b88['updateConversionResult'](_0x453964,_0x5991ea);});}),_0xc1038c['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3ef7fc,{writer:_0x310638})=>v(_0x3ef7fc,_0x310638,_0x499db8,{'dataPipeline':!0x0})}),_0xc1038c['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x32da8f,{writer:_0x1459e8})=>v(_0x32da8f,_0x1459e8,_0x499db8)});}['_defineBogusParagraphConverters'](){const {editor:_0x4bc253}=this,{conversion:_0x13adc3}=_0x4bc253;_0x4bc253['config']['get']('footnotes.multiBlock')?(_0x13adc3['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x13adc3['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4bc253['model']['document'],'change:data',()=>{!function(_0x890b73,_0x4482d0){const _0x1247d8=_0x890b73['document']['differ'],_0x26ad68=new Set();for(const _0x44fe4a of _0x1247d8['getChanges']()){const _0x14ddec='attribute'==_0x44fe4a['type']?_0x44fe4a['range']['start']['parent']:_0x44fe4a['position']['parent'];_0x14ddec['is']('element','footnoteDefinition')&&_0x26ad68['add'](_0x14ddec);}for(const _0x1e9a5b of _0x26ad68['values']()){const _0x3f6b08=Array['from'](_0x1e9a5b['getChildren']())['filter'](_0x5b13eb=>p(_0x5b13eb,_0x4482d0['mapper']));for(const _0x11ab19 of _0x3f6b08)_0x4482d0['reconvertItem'](_0x11ab19);}}(_0x4bc253['model'],_0x4bc253['editing']);})):(_0x13adc3['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x13adc3['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1638b1,{writer:_0x4bb18f})=>{const _0x3c8eee=_0x4bb18f['createContainerElement']('span');return _0x4bb18f['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3c8eee),_0x3c8eee;}}));}['_defineKeyboardHandlers'](){const {editor:_0x416996}=this,{editing:_0x54771e,t:t}=_0x416996,_0xe8fb93=_0x416996['model']['document']['selection'];_0x416996['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x416996['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x54771e['view']['document'],'enter',(_0x5d8632,_0x975797)=>{const _0x1f5163=function(_0xb3474a){const _0x1dcb3d=_0xb3474a['getSelectedElement']();if(_0x1dcb3d?.['is']('element','footnoteRef'))return _0x1dcb3d;return null;}(_0xe8fb93);if(_0x1f5163){const _0x670ec2=_0x1f5163['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x670ec2),_0x975797['preventDefault'](),_0x5d8632['stop']();}},{'context':_0x40e19a});}['_defineClickHandlers'](){const {editor:_0x244439}=this,{editing:_0x12a0d2}=_0x244439;_0x244439['editing']['view']['addObserver'](_0xe15985),_0x244439['editing']['view']['addObserver'](_0x14ca82);let _0x21725d=!0x1;this['listenTo'](_0x12a0d2['view']['document'],'pointerdown',(_0x4af1de,_0x870252)=>{const {target:_0x423cd2}=_0x870252,_0x362997=_0x12a0d2['view']['document']['selection'];_0x21725d=!(!_0x423cd2['is']('element','sup')||!_0x423cd2['hasClass']('footnote'))&&_0x362997['getSelectedElement']()===_0x423cd2;},{'priority':'high'}),this['listenTo'](_0x12a0d2['view']['document'],'click',(_0x338399,_0x57ea17)=>{const {target:_0x219ac5}=_0x57ea17,_0x2f7269=_0x219ac5['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x2f7269['slice'](0x1)),_0x338399['stop'](),_0x57ea17['preventDefault']();},{'priority':'high','context':_0x53f6bc=>_0x53f6bc['is']('element','sup')&&_0x53f6bc['hasClass']('footnote')&&_0x21725d}),this['listenTo'](_0x12a0d2['view']['document'],'click',(_0x10b73c,_0x45018c)=>{const {target:_0x1e9214}=_0x45018c;if(!_0x1e9214['is']('element','a'))return;let _0x4e5005=_0x1e9214['getAttribute']('href');if(!_0x4e5005?.['startsWith']('#'))return;_0x4e5005=_0x4e5005['slice'](0x1);let _0x2367ca=!0x1;(_0x4e5005['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x4e5005['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x4e5005))&&(_0x2367ca=!0x0),_0x2367ca&&(_0x45018c['preventDefault'](),_0x10b73c['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x54a5ad}={}){return(_0x535d0e,{writer:_0x365987})=>{if(!h(_0x535d0e))return null;if(!_0x54a5ad)return _0x365987['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x14d836=_0x365987['createContainerElement']('p');return _0x365987['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x14d836),_0x14d836;};}function h(_0x35cb54){const {parent:_0x3d36a9}=_0x35cb54;if(!_0x3d36a9?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3d36a9['childCount'])return!0x1;for(const _0x51e9f9 of _0x35cb54['getAttributeKeys']())if(!_0x51e9f9['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x51e9f9)return!0x1;return!0x0;}function p(_0x56a0c7,_0x3c8fea){if(!_0x56a0c7['is']('element','paragraph'))return!0x1;const _0x27341e=_0x3c8fea['toViewElement'](_0x56a0c7);return!!_0x27341e&&h(_0x56a0c7)!==_0x27341e['is']('element','span');}function J(_0x53d6d9){return _0x40e19a(_0x53d6d9)&&_0x53d6d9['is']('containerElement')&&!!_0x53d6d9['getCustomProperty']('footnotesDefinitions');}function g(_0x517872,_0x43097c={}){const _0x106cd4=_0x517872['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x10777e=_0x517872['createContainerElement']('ol',{'class':'footnotes-list'},_0x517872['createSlot']());return _0x517872['createContainerElement']('div',{'class':'footnotes',..._0x43097c},[_0x106cd4,_0x10777e]);}function D(_0x36e171,_0x3c09a3){const _0x8160be=_0x36e171['getAttribute']('footnoteId'),_0x302c01=_0x36e171['getAttribute']('footnoteCounter'),_0x4ffb11=_0x3c09a3['createUIElement']('a',{'href':'#'+_0x8160be},function(_0x50b174){const _0x46426c=this['toDomElement'](_0x50b174);return _0x46426c['textContent']=_0x302c01,_0x46426c;}),_0x4fbaa0=_0x3c09a3['createContainerElement']('sup',{'id':'ref-'+_0x8160be,'class':'footnote'},[_0x4ffb11]);return _0x4fbaa0['getFillerOffset']=()=>null,_0x4fbaa0;}function v(_0x4e991c,_0x4816c2,_0x38cf70,{dataPipeline:_0x325ec4}={}){const {t:t}=_0x38cf70,_0xeee69e=_0x4e991c['getAttribute']('footnoteId'),_0x3b581d=_0x4816c2['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xeee69e},function(_0x30b903){const _0x9ad6b5=this['toDomElement'](_0x30b903);return _0x9ad6b5['innerText']='^',_0x9ad6b5;}),_0x35c5b2=_0x325ec4?_0x4816c2['createContainerElement']('div',{'class':'footnote-content'}):_0x4da06a(_0x4816c2['createEditableElement']('div',{'class':'footnote-content'}),_0x4816c2,{'label':t('Footnote\x20content.')});return _0x4816c2['insert'](_0x4816c2['createPositionAt'](_0x35c5b2,0x0),_0x4816c2['createSlot']()),_0x4816c2['createContainerElement']('li',{'class':'footnote-definition','id':_0xeee69e},[_0x3b581d,_0x35c5b2]);}class e extends _0x7f6a27{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x2cf428];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x17c7df}=this,{plugins:_0xdddf78,model:_0x55ad97}=_0x17c7df,_0x47aa23=_0xdddf78['get'](_0x2cf428),_0x3031fc=_0xdddf78['get'](c);this['listenTo'](_0x47aa23,'outputTransformation',(_0x36cd1c,_0x3fa2b5)=>{const _0x3fa8ee=function(_0x1c0145,_0x56288b){const _0x5203c8=new Set();for(const {item:_0x56491a}of _0x1c0145['createRangeIn'](_0x56288b))_0x56491a['is']('element','footnoteRef')&&_0x5203c8['add'](_0x56491a['getAttribute']('footnoteId'));return Array['from'](_0x5203c8);}(_0x55ad97,_0x3fa2b5['content']);if(!_0x3fa8ee['length'])return;const _0x1dca46=_0x3031fc['getFootnotes'](),_0x2a4f20=_0x3fa8ee['reduce']((_0x1e0eda,_0x4fb78f)=>{const _0x31fb45=_0x1dca46['find'](_0x14a888=>_0x14a888['id']===_0x4fb78f);if(_0x31fb45){const _0x2ac6ad=_0x17c7df['data']['toView'](_0x31fb45['definition'],{'isClipboardPipeline':!0x0}),_0x5a12ab=_0x17c7df['data']['htmlProcessor']['toData'](_0x2ac6ad);_0x1e0eda[_0x31fb45['id']]=_0x5a12ab;}return _0x1e0eda;},Object['create'](null));_0x3fa2b5['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x2a4f20));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x3f2222}=this,{model:_0x378413,plugins:_0x308cc8}=_0x3f2222,{view:_0x40446e}=_0x3f2222['editing'],_0x2e1b54=_0x308cc8['get'](_0x2cf428),_0x3034e2=_0x308cc8['get'](c);let _0x1b7529=null;this['listenTo'](_0x40446e['document'],'clipboardInput',(_0x3fbb12,_0x569d97)=>{const _0x4b6e7b=_0x569d97['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x1b7529=_0x4b6e7b?JSON['parse'](_0x4b6e7b):null;}),this['listenTo'](_0x2e1b54,'contentInsertion',(_0x16360a,_0x1f29f1)=>{if(!_0x1b7529)return;const _0x5f1d7d=_0x1f29f1['sourceEditorId']===this['editor']['id'];_0x5f1d7d&&'drop'===_0x1f29f1['method']||_0x378413['change'](_0xa8cbf=>{!function(_0x45c216,_0x73e267){const _0x79d721=[];for(const {item:_0x567593}of _0x45c216['createRangeIn'](_0x73e267))_0x567593['is']('element','footnotesDefinitions')&&_0x79d721['push'](_0x567593);for(const _0x406087 of _0x79d721)_0x45c216['remove'](_0x406087);}(_0xa8cbf,_0x1f29f1['content']);let _0x451d55=_0x3034e2['getFootnotesDefinitionsObjectElement']();if(!_0x451d55){const _0x364503=_0x378413['document']['selection']['getFirstRange']()['root'];_0x451d55=_0x3034e2['_insertEmptyFootnotesDefinitionsContainer'](_0xa8cbf,_0x364503);}const _0x1615ed=function(_0x39a1aa,_0x5b1828,_0x300ceb){const _0x45994c=Object['create'](null);for(const {item:_0x366263}of _0x39a1aa['createRangeIn'](_0x5b1828))if(_0x366263['is']('element','footnoteRef')){const _0x3f70e2=_0x366263['getAttribute']('footnoteId');if(!_0x300ceb(_0x3f70e2))continue;_0x45994c[_0x3f70e2]||(_0x45994c[_0x3f70e2]=_0x124e5b()),_0x39a1aa['setAttribute']('footnoteId',_0x45994c[_0x3f70e2],_0x366263);}return _0x45994c;}(_0xa8cbf,_0x1f29f1['content'],_0x4ec874=>!_0x5f1d7d||null!==_0x3034e2['getFootnote'](_0x4ec874));for(const [_0x27a81d,_0x437bf7]of Object['entries'](_0x1b7529)){const _0x243572=_0x1615ed[_0x27a81d]||_0x27a81d,_0x54adef=_0xa8cbf['createElement']('footnoteDefinition',{'footnoteId':_0x243572}),_0x4ca4a3=_0x3f2222['data']['htmlProcessor']['toView'](_0x437bf7),_0x9d786=_0x3f2222['data']['toModel'](_0x4ca4a3,_0x54adef);_0xa8cbf['append'](_0x9d786,_0x54adef),_0xa8cbf['insert'](_0x54adef,_0x451d55,'end');}_0x1b7529=null;});});}}class i extends _0x7f6a27{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x51cb24}=this,{componentFactory:_0x4ab36f}=_0x51cb24['ui'];_0x4ab36f['add']('insertFootnote',x(_0x51cb24,_0x285e75)),_0x4ab36f['add']('menuBar:insertFootnote',x(_0x51cb24,_0x3de1ec)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x13b1d3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1e20ae;for(const _0xd548c7 in _0x13b1d3){const _0x1a2de9=_0xd548c7,_0x45b9ea=_0x13b1d3[_0x1a2de9];if('footnotesLicenseKeyValid'==_0x45b9ea||'footnotesLicenseKeyInvalid'==_0x45b9ea||'footnotesLicenseKeyExpired'==_0x45b9ea||'footnotesLicenseKeyDomainLimit'==_0x45b9ea||'footnotesLicenseKeyNotAllowed'==_0x45b9ea||'footnotesLicenseKeyEvaluationLimit'==_0x45b9ea||'footnotesLicenseKeyTrialLimit'==_0x45b9ea||'footnotesLicenseKeyUsageLimit'==_0x45b9ea){delete _0x13b1d3[_0x1a2de9],_0x1e20ae=_0x45b9ea,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x273210,_0x336f94){const _0x5f2f28=_0x273210['commands']['get']('insertFootnote');return _0x4e8cbb=>{const {t:t}=_0x4e8cbb,_0x3734f2=new _0x336f94(_0x4e8cbb),_0x2fade6=_0x3734f2 instanceof _0x3de1ec;return _0x3734f2['bind']('isEnabled')['to'](_0x5f2f28,'isEnabled'),_0x3734f2['set']({'label':t(_0x2fade6?'Footnote':'Insert\x20footnote'),'icon':_0x2a043f,'tooltip':!0x0}),_0x3734f2['on']('execute',()=>{_0x5f2f28['execute'](),_0x273210['editing']['view']['focus']();}),_0x3734f2;};}class nt extends _0x7f6a27{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 _0x1849a9{['refresh'](){const {editor:_0x34052c}=this,_0x4ce5f3=_0x34052c['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4ce5f3,this['value']=_0x4ce5f3?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x58d4f3}){const {editor:_0x4efd7d}=this,_0x1b0e36=_0x4efd7d['plugins']['get'](c),_0x5326cf=_0x1b0e36['getFootnotesDefinitionsObjectElement']();_0x5326cf&&Q['includes'](_0x58d4f3)&&_0x4efd7d['model']['change'](_0x58d17e=>{_0x58d17e['setAttribute']('footnotesListStyle',_0x58d4f3,_0x5326cf),_0x1b0e36['_updateFootnotesCounters'](_0x58d17e);});}}class b extends _0x1849a9{['refresh'](){const {editor:_0x5f408e}=this,_0x13e702=_0x5f408e['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x13e702,this['value']=_0x13e702?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x9644e2}){const {editor:_0x4c68f2}=this,_0x33bb4d=_0x4c68f2['plugins']['get'](c),_0x1709bc=_0x33bb4d['getFootnotesDefinitionsObjectElement']();_0x1709bc&&Number['isInteger'](_0x9644e2)&&_0x4c68f2['model']['change'](_0x1e7387=>{_0x1e7387['setAttribute']('footnotesListStart',_0x9644e2,_0x1709bc),_0x33bb4d['_updateFootnotesCounters'](_0x1e7387);});}}class P extends _0x7f6a27{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2c0f75}=this;_0x2c0f75['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x2c0f75['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x2c0f75['commands']['add']('footnotesStyle',new S(_0x2c0f75)),_0x2c0f75['commands']['add']('footnotesStart',new b(_0x2c0f75)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x2561a3}=this,{schema:_0x5c175f}=_0x2561a3['model'];_0x5c175f['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x412757}=this,{conversion:_0x7a78e5,model:_0x240179}=_0x412757,{schema:_0x3c1131}=_0x240179;_0x7a78e5['for']('upcast')['add'](_0x5d675c=>{_0x5d675c['on']('element:ol',(_0x363ce2,_0x5598c1,_0x12d1e5)=>{const _0x16eaf4=_0x5598c1['viewItem'],_0x370664=_0x5598c1['modelCursor']?.['parent'];_0x16eaf4['hasClass']('footnotes-list')&&_0x370664?.['is']('element','footnotesDefinitions')&&(function(_0x51be2d,_0x4313c1,_0x5b2811,_0x39681c){if(!_0x39681c['checkAttribute'](_0x4313c1,'footnotesListStart'))return;let _0x21aab2=0x1;const _0x5242d1=_0x5b2811['consumable']['consume'](_0x51be2d,{'attributes':'start'});if(_0x5242d1){const _0x407198=Number['parseInt'](_0x51be2d['getAttribute']('start'),0xa);Number['isNaN'](_0x407198)||(_0x21aab2=_0x407198);}!_0x5242d1&&_0x4313c1['hasAttribute']('footnotesListStart')||_0x5b2811['writer']['setAttribute']('footnotesListStart',_0x21aab2,_0x4313c1);}(_0x16eaf4,_0x370664,_0x12d1e5,_0x3c1131),function(_0x111a80,_0xfe5c99,_0x4e9918,_0x10c3dc){if(!_0x10c3dc['checkAttribute'](_0xfe5c99,'footnotesListStyle'))return;let _0x5e08ab='decimal',_0x4fc76b=!0x1;if(_0x4e9918['consumable']['consume'](_0x111a80,{'attributes':'type'})){const _0x129b5a={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x111a80['getAttribute']('type')];_0x129b5a&&(_0x5e08ab=_0x129b5a),_0x4fc76b=!0x0;}_0x4e9918['consumable']['consume'](_0x111a80,{'styles':'list-style-type'})&&(_0x5e08ab=_0x111a80['getStyle']('list-style-type'),_0x4fc76b=!0x0),!_0x4fc76b&&_0xfe5c99['hasAttribute']('footnotesListStyle')||_0x4e9918['writer']['setAttribute']('footnotesListStyle',_0x5e08ab,_0xfe5c99);}(_0x16eaf4,_0x370664,_0x12d1e5,_0x3c1131));});}),_0x7a78e5['for']('downcast')['add'](_0x1a489f=>{_0x1a489f['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x1d3df6,_0x298898,_0x41bbb4)=>{if(!_0x41bbb4['consumable']['consume'](_0x298898['item'],_0x1d3df6['name']))return;const _0x2fa8ff=C(_0x298898['item'],_0x41bbb4['mapper']),{attributeNewValue:_0x59070e}=_0x298898;null==_0x59070e||0x1===_0x59070e?_0x41bbb4['writer']['removeAttribute']('start',_0x2fa8ff):_0x41bbb4['writer']['setAttribute']('start',String(_0x59070e),_0x2fa8ff);}),_0x1a489f['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x29c826,_0x1b0db8,_0x14f5f5)=>{if(!_0x14f5f5['consumable']['consume'](_0x1b0db8['item'],_0x29c826['name']))return;const _0x1fb197=C(_0x1b0db8['item'],_0x14f5f5['mapper']),{attributeNewValue:_0xd1fd5d}=_0x1b0db8;_0xd1fd5d&&'decimal'!==_0xd1fd5d?_0x14f5f5['writer']['setStyle']('list-style-type',_0xd1fd5d,_0x1fb197):_0x14f5f5['writer']['removeStyle']('list-style-type',_0x1fb197);});});}['_definePostfixer'](){const {editor:_0x2f4e33}=this,{model:_0xb570a3}=_0x2f4e33,_0xb4dbd7=_0x2f4e33['plugins']['get'](c),_0x5b1368=this['_getDefaultListStyle'](),_0x579d70=this['_getDefaultStartIndex']();_0xb570a3['document']['registerPostFixer'](_0x4ff28b=>{const _0x1af146=_0xb570a3['document']['differ']['getChanges']();let _0x1742c6=!0x1;for(const _0x4f20f3 of _0x1af146){if('insert'!==_0x4f20f3['type']||'$text'===_0x4f20f3['name'])continue;const _0x32b967=_0xb570a3['createRangeOn'](_0x4f20f3['position']['nodeAfter']);for(const _0x1e9928 of _0x32b967['getItems']())_0x1e9928['is']('element','footnotesDefinitions')&&(!_0x1e9928['hasAttribute']('footnotesListStart')&&_0xb570a3['schema']['checkAttribute'](_0x1e9928,'footnotesListStart')&&(_0x4ff28b['setAttribute']('footnotesListStart',_0x579d70,_0x1e9928),_0x1742c6=!0x0),!_0x1e9928['hasAttribute']('footnotesListStyle')&&_0xb570a3['schema']['checkAttribute'](_0x1e9928,'footnotesListStyle')&&(_0x4ff28b['setAttribute']('footnotesListStyle',_0x5b1368,_0x1e9928),_0x1742c6=!0x0));}return _0x1742c6&&_0xb4dbd7['_updateFootnotesCounters'](_0x4ff28b),_0x1742c6;});}['_defineFormatter'](){const {editor:_0x2e1a07}=this;_0x2e1a07['plugins']['get'](c)['setFootnoteFormatter'](_0x23971d=>this['_formatFootnoteListValue'](_0x23971d));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x11a0c5,value:_0x36221b,digits:_0x2a1230}){const _0x40e481=_0x11a0c5['getAttribute']('footnotesListStyle'),_0x442639=_0x11a0c5['getAttribute']('footnotesListStart'),_0x2a3237=Math['floor'](_0x36221b)+(_0x442639??0x1)-0x1;switch(_0x40e481){case'decimal-leading-zero':return function(_0xeeea4,_0x48a873){return String(_0xeeea4)['padStart'](_0x48a873,'0');}(_0x2a3237,Math['max'](0x2,_0x2a1230));case'lower-alpha':case'lower-latin':return M(_0x2a3237,!0x1);case'upper-alpha':case'upper-latin':return M(_0x2a3237,!0x0);case'lower-roman':return V(_0x2a3237,!0x1);case'upper-roman':return V(_0x2a3237,!0x0);default:return String(_0x2a3237);}}}function C(_0x589422,_0xd1100b){const _0x19ccf5=_0xd1100b['toViewElement'](_0x589422);return Array['from'](_0x19ccf5['getChildren']())['find'](_0x407055=>_0x407055['is']('element','ol')&&_0x407055['hasClass']('footnotes-list'));}function M(_0x47aff0,_0x2435e5){let _0x29cc9e='',_0x284670=_0x47aff0;for(;_0x284670>0x0;){const _0x14c8fd=(_0x284670-0x1)%0x1a;_0x29cc9e=String['fromCharCode'](0x61+_0x14c8fd)+_0x29cc9e,_0x284670=Math['floor']((_0x284670-0x1)/0x1a);}return _0x2435e5?_0x29cc9e['toUpperCase']():_0x29cc9e;}const N=[{'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 V(_0x838b19,_0x969cef){let _0x3cb70f='',_0x33b00a=_0x838b19;for(const {value:_0x1acb94,numeral:_0x1c6394}of N)for(;_0x33b00a>=_0x1acb94;)_0x3cb70f+=_0x1c6394,_0x33b00a-=_0x1acb94;return _0x969cef?_0x3cb70f:_0x3cb70f['toLowerCase']();}class H extends _0x1c8606{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x573d1f();['focusCycler'];constructor(_0x321127,{styleButtonViews:_0x5c2c15,styleGridAriaLabel:_0x26d030}){super(_0x321127),(this['focusCycler']=new _0x59a5b9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x5c2c15,_0x26d030),[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 _0x20e66d of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x20e66d['element']);_0x48ec16({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>rt['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 _0x49a498=_0x1e964a=>_0x1e964a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x49a498),this['keystrokes']['set']('arrowleft',_0x49a498),this['keystrokes']['set']('arrowup',_0x49a498),this['keystrokes']['set']('arrowdown',_0x49a498);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x160945,_0x1a9bf7){const _0x3dcd2d=new _0x1c8606(this['locale']);return _0x3dcd2d['children']=_0x3dcd2d['createCollection'](),_0x3dcd2d['children']['addMany'](_0x160945),_0x3dcd2d['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1a9bf7,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x3dcd2d['children']}),_0x3dcd2d['children']['delegate']('execute')['to'](this),_0x3dcd2d['focus']=function(){for(const _0x1756e8 of this['children'])if(_0x1756e8 instanceof _0x285e75&&_0x1756e8['isOn'])return void _0x1756e8['focus']();this['children']['first']['focus']();},_0x3dcd2d['focusTracker']=new et(),_0x3dcd2d['keystrokes']=new ot(),_0x3dcd2d['render'](),_0x3dcd2d['keystrokes']['listenTo'](_0x3dcd2d['element']),this['children']['add'](_0x3dcd2d),_0x3dcd2d;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x35fd95=this['_createStartIndexPropertyView'](),_0x309fad=[_0x35fd95],_0x34a2bd=new tt(this['locale'],_0x309fad);return _0x34a2bd['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x34a2bd['buttonView']['bind']('isEnabled')['toMany'](_0x309fad,'isEnabled',(..._0x2661d4)=>_0x2661d4['some'](_0x539f3b=>_0x539f3b)),_0x34a2bd['buttonView']['on']('change:isEnabled',(_0x4d26d0,_0x1b6278,_0x41edb2)=>{_0x41edb2||(_0x34a2bd['isCollapsed']=!0x0);}),this['children']['add'](_0x34a2bd),[_0x35fd95,_0x34a2bd];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2e321d=new st(this['locale'],it);return _0x2e321d['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2e321d['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2e321d['fieldView']['on']('input',()=>{const _0x48beca=_0x2e321d['fieldView']['element'],_0x139cc5=_0x48beca['valueAsNumber'];Number['isNaN'](_0x139cc5)?_0x2e321d['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x48beca['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x139cc5}):_0x2e321d['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x2e321d;}}class j extends _0x7f6a27{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x16c286,_0x850f85];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x334345}=this,{componentFactory:_0x5ce326}=_0x334345['ui'];_0x334345['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x5ce326['add']('footnotesStyle',function(_0x41f9e3){return _0x4a6dcd=>{const {t:t}=_0x4a6dcd,_0x3f6d7c=_0x41f9e3['commands']['get']('footnotesStyle'),_0x5b24f0=_0x45bc8e(_0x4a6dcd),{buttonView:_0x274243}=_0x5b24f0;return _0x5b24f0['class']='ck-footnotes-styles-dropdown',_0x5b24f0['bind']('isEnabled')['to'](_0x3f6d7c,'isEnabled'),_0x274243['set']({'label':t('Footnotes\x20style'),'icon':_0x2a043f,'tooltip':!0x0}),_0x5b24f0['once']('change:isOpen',()=>{const _0x4a0eb9=function({editor:_0x2c053b,dropdownView:_0x224016}){const {t:t}=_0x2c053b['locale'],_0x2d4b23=t('Footnotes\x20definitions\x20styles'),_0x118345=function(_0x51c226){const t=_0x51c226['locale']['t'],_0x3479e3=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x4a05ec},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x401dfc},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x3bdc31},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x5491ae},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x57ead2},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x57e61b}];return _0x3479e3['map'](function(_0x4a8339){const _0x491d21=_0x4a8339['locale'];return({label:_0x2455aa,icon:_0x2040a2,tooltip:_0x139fdd,style:_0x48eba6})=>{const _0x132ece=_0x4a8339['commands']['get']('footnotesStyle'),_0x35ae11=new _0x285e75(_0x491d21);return _0x35ae11['set']({'label':_0x2455aa,'icon':_0x2040a2,'tooltip':_0x139fdd}),_0x35ae11['bind']('isOn')['to'](_0x132ece,'value',_0x81d195=>_0x81d195===_0x48eba6),_0x35ae11['bind']('isEnabled')['to'](_0x132ece,'isEnabled'),_0x35ae11['on']('execute',()=>{_0x4a8339['execute']('footnotesStyle',{'value':_0x48eba6}),_0x4a8339['editing']['view']['focus']();}),_0x35ae11;};}(_0x51c226));}(_0x2c053b),_0x224316=new H(_0x2c053b['locale'],{'styleGridAriaLabel':_0x2d4b23,'styleButtonViews':_0x118345});return _0x224316['delegate']('execute')['to'](_0x224016),_0x224316['on']('footnotesListStart',(_0x181ef2,_0x832771)=>{_0x2c053b['execute']('footnotesStart',{'value':_0x832771['startIndex']});}),_0x224316;}({'editor':_0x41f9e3,'dropdownView':_0x5b24f0});_0x5b24f0['panelView']['children']['add'](_0x4a0eb9);}),_0x5b24f0;};}(_0x334345));}['afterInit'](){const {editor:_0x2fde9d}=this,{t:t}=_0x2fde9d['locale'],_0x3f7d16=_0x2fde9d['plugins']['get'](_0x850f85),{defaultPositions:_0x1a6aa2}=_0x5e807c;_0x3f7d16['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x2fde9d['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x230f8a=>{let _0x3ad18f=_0x230f8a['getFirstPosition']()?.['parent'];return _0x3ad18f?.['is']('$text')&&(_0x3ad18f=_0x3ad18f['parent']),_0x3ad18f?.['is']('element')?_0x3ad18f['findAncestor'](J):null;},'positions':[_0x1a6aa2['southArrowNorth'],_0x1a6aa2['southArrowNorthMiddleWest'],_0x1a6aa2['southArrowNorthMiddleEast'],_0x1a6aa2['southArrowNorthWest'],_0x1a6aa2['southArrowNorthEast'],_0x1a6aa2['northArrowSouth'],_0x1a6aa2['northArrowSouthMiddleWest'],_0x1a6aa2['northArrowSouthMiddleEast'],_0x1a6aa2['northArrowSouthWest'],_0x1a6aa2['northArrowSouthEast'],_0x1a6aa2['viewportStickyNorth']]});}}class lt extends _0x7f6a27{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,lt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,b as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w as InsertFootnoteCommand};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-footnotes",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20251027.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-
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20251027.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251027.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251027.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251027.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251027.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251027.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251027.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251027.0"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (http://cksource.com/)",
|
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x5bd6aa}from'ckeditor5/src/core.js';import{isWidget as _0x45e7ca,toWidget as _0x1f0949,toWidgetEditable as _0x5cfdc7}from'ckeditor5/src/widget.js';import{uid as _0x20db9b}from'ckeditor5/src/utils.js';import{PointerObserver as _0x3139b1,ClickObserver as _0x129df2}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x5ce8d9}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x2334ee}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x5bd6aa{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x5ce8d9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x151750}=this;_0x151750['config']['define']('footnotes.multiBlock',!0x0),_0x151750['commands']['add']('insertFootnote',new _0x2334ee(_0x151750)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x5a9bf6){const _0x29ddf=_0xec3fa3([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]),_0x5780c8=0x47a28506,_0xcef18f=0x47a5f24e^_0x5780c8,_0x16e721=window[_0xec3fa3([0x44,0x61,0x74,0x65])][_0xec3fa3([0x6e,0x6f,0x77])](),_0x2e5d0f=_0x5a9bf6[_0xec3fa3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a8180=new window[(_0xec3fa3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc603a3=>{_0x2e5d0f[_0xec3fa3([0x6f,0x6e,0x63,0x65])](_0xec3fa3([0x72,0x65,0x61,0x64,0x79]),_0xc603a3);}),_0x541e2d={[_0xec3fa3([0x6b,0x74,0x79])]:_0xec3fa3([0x45,0x43]),[_0xec3fa3([0x75,0x73,0x65])]:_0xec3fa3([0x73,0x69,0x67]),[_0xec3fa3([0x63,0x72,0x76])]:_0xec3fa3([0x50,0x2d,0x32,0x35,0x36]),[_0xec3fa3([0x78])]:_0xec3fa3([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]),[_0xec3fa3([0x79])]:_0xec3fa3([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]),[_0xec3fa3([0x61,0x6c,0x67])]:_0xec3fa3([0x45,0x53,0x32,0x35,0x36])},_0x173172=_0x2e5d0f[_0xec3fa3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xec3fa3([0x67,0x65,0x74])](_0xec3fa3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x97d266(){let _0x2de4c6,_0x49e1c5=null,_0x2d06d5=null;try{if(_0x173172==_0xec3fa3([0x47,0x50,0x4c]))return _0xec3fa3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2de4c6=_0x2dbe13(),!_0x2de4c6)return _0xec3fa3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2de4c6[_0xec3fa3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d06d5=_0x756480(_0x2de4c6[_0xec3fa3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2de4c6[_0xec3fa3([0x6a,0x74,0x69])])),await _0x3a2307()?_0x329eaf()?_0x48cb72()?_0xec3fa3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x46b682()?(_0x2de4c6[_0xec3fa3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xec3fa3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x49e1c5=_0x5a24bc(_0xec3fa3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2de4c6[_0xec3fa3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xec3fa3([0x74,0x72,0x69,0x61,0x6c])&&(_0x49e1c5=_0x5a24bc(_0xec3fa3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5233da()):_0xec3fa3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xec3fa3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xec3fa3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xec3fa3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x48cb72(){const _0x5b3aec=[_0xec3fa3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xec3fa3([0x74,0x72,0x69,0x61,0x6c])][_0xec3fa3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2de4c6[_0xec3fa3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x16e721/0x3e8:0xe10*_0xcef18f;return _0x2de4c6[_0xec3fa3([0x65,0x78,0x70])]<_0x5b3aec;}function _0x329eaf(){const _0x396625=_0x2de4c6[_0xec3fa3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x396625&&(!!_0x396625[_0xec3fa3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xec3fa3([0x2a]))||!!_0x396625[_0xec3fa3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xec3fa3([0x46,0x4f,0x4f])));}function _0x46b682(){const _0x3f8b2c=_0x2de4c6[_0xec3fa3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3f8b2c||0x0==_0x3f8b2c[_0xec3fa3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2fbc2a}=new URL(window[_0xec3fa3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3f8b2c[_0xec3fa3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fbc2a))return!0x0;const _0x461ffc=_0x2fbc2a[_0xec3fa3([0x73,0x70,0x6c,0x69,0x74])](_0xec3fa3([0x2e]));return _0x3f8b2c[_0xec3fa3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54a60d=>_0x54a60d[_0xec3fa3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xec3fa3([0x2a])))[_0xec3fa3([0x6d,0x61,0x70])](_0x3829d7=>_0x3829d7[_0xec3fa3([0x73,0x70,0x6c,0x69,0x74])](_0xec3fa3([0x2e])))[_0xec3fa3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f2b05=>_0x1f2b05[_0xec3fa3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x461ffc[_0xec3fa3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xec3fa3([0x6d,0x61,0x70])](_0xd77d4b=>Array(_0x461ffc[_0xec3fa3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xd77d4b[_0xec3fa3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xec3fa3([0x66,0x69,0x6c,0x6c])](_0xd77d4b[0x0]===_0xec3fa3([0x2a])?_0xec3fa3([0x2a]):'')[_0xec3fa3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xd77d4b))[_0xec3fa3([0x73,0x6f,0x6d,0x65])](_0x4fc27c=>_0x461ffc[_0xec3fa3([0x65,0x76,0x65,0x72,0x79])]((_0x25ab07,_0x23c7a7)=>_0x4fc27c[_0x23c7a7]===_0x25ab07||_0x4fc27c[_0x23c7a7]===_0xec3fa3([0x2a])));}function _0x5233da(){return _0x49e1c5&&_0x2d06d5?new window[(_0xec3fa3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c10d9,_0x51e21d)=>{_0x49e1c5[_0xec3fa3([0x74,0x68,0x65,0x6e])](_0x5c10d9,_0x51e21d),_0x2d06d5[_0xec3fa3([0x74,0x68,0x65,0x6e])](_0x5532aa=>{_0x5532aa!=_0xec3fa3([0x56,0x61,0x6c,0x69,0x64])&&_0x5c10d9(_0x5532aa);},_0x51e21d);}):_0x49e1c5||_0x2d06d5||_0xec3fa3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x756480(_0x280e70,_0x2a50e4){return new window[(_0xec3fa3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x591595=>{if(_0x9e1c92())return _0x591595(_0xec3fa3([0x56,0x61,0x6c,0x69,0x64]));_0x5f349b(),_0x2e5d0f[_0xec3fa3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xec3fa3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x95c4b0=!0x1;const _0x1b2cf3=_0x20db9b();function _0x5b790e(_0x35ff4e){return!!_0x35ff4e&&(typeof _0x35ff4e===_0xec3fa3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x35ff4e===_0xec3fa3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x35ff4e[_0xec3fa3([0x74,0x68,0x65,0x6e])]===_0xec3fa3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x35ff4e[_0xec3fa3([0x63,0x61,0x74,0x63,0x68])]===_0xec3fa3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4317b6(_0x3b8b37){_0x40003b(_0x3b8b37)[_0xec3fa3([0x74,0x68,0x65,0x6e])](_0x58887b=>{if(!_0x58887b||_0x58887b[_0xec3fa3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xec3fa3([0x6f,0x6b]))return _0xec3fa3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x38001d(_0x2fbb9d(_0x1b2cf3+_0x2a50e4))!=_0x58887b[_0xec3fa3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xec3fa3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xec3fa3([0x56,0x61,0x6c,0x69,0x64]);})[_0xec3fa3([0x74,0x68,0x65,0x6e])](_0x25e46e=>(_0x5088ba(),_0x25e46e),()=>{const _0x1979f8=_0x1d665c();return null==_0x1979f8?(_0x5088ba(),_0xec3fa3([0x56,0x61,0x6c,0x69,0x64])):_0xec3fa3(_0x16e721-_0x1979f8>(0x63ae0106^_0x5780c8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xec3fa3([0x74,0x68,0x65,0x6e])](_0x591595)[_0xec3fa3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x591595(_0xec3fa3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a41bf=0x47946b86^_0x5780c8;function _0x5088ba(){const _0x419fea=_0xec3fa3([0x6c,0x6c,0x63,0x74,0x2d])+_0x38001d(_0x2fbb9d(_0x280e70)),_0x38bbb6=_0x498fa2(_0x38001d(window[_0xec3fa3([0x4d,0x61,0x74,0x68])][_0xec3fa3([0x63,0x65,0x69,0x6c])](_0x16e721/_0x2a41bf)));window[_0xec3fa3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xec3fa3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x419fea,_0x38bbb6);}function _0x1d665c(){const _0x1185d7=_0xec3fa3([0x6c,0x6c,0x63,0x74,0x2d])+_0x38001d(_0x2fbb9d(_0x280e70)),_0x82b384=window[_0xec3fa3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xec3fa3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1185d7);return _0x82b384?window[_0xec3fa3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x498fa2(_0x82b384),0x10)*_0x2a41bf:null;}function _0x40003b(_0x294cec){return new window[(_0xec3fa3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe13104,_0x502f0c)=>{_0x294cec[_0xec3fa3([0x74,0x68,0x65,0x6e])](_0xe13104,_0x502f0c),window[_0xec3fa3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x502f0c,0x47a351c6^_0x5780c8);});}}_0x2e5d0f[_0xec3fa3([0x6f,0x6e])](_0xec3fa3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xce6b65,_0x1efb9a)=>{if(_0x1efb9a[0x0]!=_0x280e70)return _0x591595(_0xec3fa3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1efb9a[0x1]={..._0x1efb9a[0x1],[_0xec3fa3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b2cf3};},{[_0xec3fa3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xec3fa3([0x68,0x69,0x67,0x68])}),_0x2e5d0f[_0xec3fa3([0x6f,0x6e])](_0xec3fa3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x36ed41=>{_0x5b790e(_0x36ed41[_0xec3fa3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x95c4b0=!0x0,_0x4317b6(_0x36ed41[_0xec3fa3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xec3fa3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xec3fa3([0x6c,0x6f,0x77])}),_0x5a8180[_0xec3fa3([0x74,0x68,0x65,0x6e])](()=>{_0x95c4b0||_0x591595(_0xec3fa3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x9e1c92(){return _0x2e5d0f[_0xec3fa3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xec3fa3([0x76,0x69,0x65,0x77])][_0xec3fa3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xec3fa3([0x61,0x75,0x74,0x6f]);}function _0x5f349b(){_0x2e5d0f[_0xec3fa3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xec3fa3([0x76,0x69,0x65,0x77])][_0xec3fa3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xec3fa3([0x61,0x75,0x74,0x6f]);}}function _0x5a24bc(_0xac373a){const _0x2dd0a8=[new window[(_0xec3fa3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30694e=>setTimeout(_0x30694e,0x47abbbca^_0x5780c8)),_0x5a8180[_0xec3fa3([0x74,0x68,0x65,0x6e])](()=>new window[(_0xec3fa3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x236e70=>{let _0x1fedc2=0x0;_0x2e5d0f[_0xec3fa3([0x6d,0x6f,0x64,0x65,0x6c])][_0xec3fa3([0x6f,0x6e])](_0xec3fa3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x33ef79,_0x3a3512)=>{_0x3a3512[0x0][_0xec3fa3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1fedc2++,_0x1fedc2==(0x47a284fe^_0x5780c8)&&(_0x236e70(),_0x33ef79[_0xec3fa3([0x6f,0x66,0x66])]());});}))];return window[_0xec3fa3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xec3fa3([0x72,0x61,0x63,0x65])](_0x2dd0a8)[_0xec3fa3([0x74,0x68,0x65,0x6e])](()=>_0xac373a);}async function _0x130676(){await _0x5a8180,_0x2e5d0f[_0xec3fa3([0x6d,0x6f,0x64,0x65,0x6c])][_0xec3fa3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x290253,_0x2e5d0f[_0xec3fa3([0x6d,0x6f,0x64,0x65,0x6c])][_0xec3fa3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x290253,_0x2e5d0f[_0xec3fa3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xec3fa3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1eabc7(_0x2130a7){const _0x46a49c=_0x13baff();_0x2e5d0f[_0x46a49c]=_0xec3fa3([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2130a7,_0x2130a7!=_0xec3fa3([0x56,0x61,0x6c,0x69,0x64])&&_0x130676();}function _0x13baff(){const _0x5cca3f=window[_0xec3fa3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xec3fa3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xec3fa3([0x6e,0x6f,0x77])]())[_0xec3fa3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xec3fa3([0x2e]),'');let _0x344e09=_0xec3fa3([0x75]);for(let _0xcb40c8=0x0;_0xcb40c8<_0x5cca3f[_0xec3fa3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcb40c8+=0x2){let _0x1bbe0d=window[_0xec3fa3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cca3f[_0xec3fa3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcb40c8,_0xcb40c8+0x2));_0x1bbe0d>=_0x29ddf[_0xec3fa3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1bbe0d-=_0x29ddf[_0xec3fa3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x344e09+=_0x29ddf[_0x1bbe0d];}return _0x344e09;}function _0x2dbe13(){const _0x3b1a46=_0x173172[_0xec3fa3([0x73,0x70,0x6c,0x69,0x74])](_0xec3fa3([0x2e]));if(0x3!=_0x3b1a46[_0xec3fa3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1b644e(_0x3b1a46[0x1]);function _0x1b644e(_0x5a1d0c){const _0x3f7997=_0x1cd60a(_0x5a1d0c);return _0x3f7997&&_0x3f61fc()?_0x3f7997:null;function _0x3f61fc(){const _0x5508bc=_0x3f7997[_0xec3fa3([0x6a,0x74,0x69])],_0x3095a8=window[_0xec3fa3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5508bc[_0xec3fa3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5508bc[_0xec3fa3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f87a2={..._0x3f7997,[_0xec3fa3([0x6a,0x74,0x69])]:_0x5508bc[_0xec3fa3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5508bc[_0xec3fa3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f87a2[_0xec3fa3([0x76,0x63])],_0x2fbb9d(_0x2f87a2)==_0x3095a8;}}}async function _0x3a2307(){let _0x2e8570=!0x0;try{const _0x107f86=_0x173172[_0xec3fa3([0x73,0x70,0x6c,0x69,0x74])](_0xec3fa3([0x2e])),[_0x740836,_0x452643,_0x4ba37d]=_0x107f86;return _0x41615b(_0x740836),await _0x4632ba(_0x740836,_0x452643,_0x4ba37d),_0x2e8570;}catch{return!0x1;}function _0x41615b(_0x5bce93){const _0x4c1d29=_0x1cd60a(_0x5bce93);_0x4c1d29&&_0x4c1d29[_0xec3fa3([0x61,0x6c,0x67])]==_0xec3fa3([0x45,0x53,0x32,0x35,0x36])||(_0x2e8570=!0x1);}async function _0x4632ba(_0x18fbf7,_0x19f15a,_0x15bbaa){const _0x81c5d9=window[_0xec3fa3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xec3fa3([0x66,0x72,0x6f,0x6d])](_0x4857ff(_0x15bbaa),_0x5804d7=>_0x5804d7[_0xec3fa3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x11eb1d=new window[(_0xec3fa3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xec3fa3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x18fbf7+_0xec3fa3([0x2e])+_0x19f15a),_0x4d7680=window[_0xec3fa3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xec3fa3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d7680)return;const _0x5457a5=await _0x4d7680[_0xec3fa3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xec3fa3([0x6a,0x77,0x6b]),_0x541e2d,{[_0xec3fa3([0x6e,0x61,0x6d,0x65])]:_0xec3fa3([0x45,0x43,0x44,0x53,0x41]),[_0xec3fa3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xec3fa3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xec3fa3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d7680[_0xec3fa3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xec3fa3([0x6e,0x61,0x6d,0x65])]:_0xec3fa3([0x45,0x43,0x44,0x53,0x41]),[_0xec3fa3([0x68,0x61,0x73,0x68])]:{[_0xec3fa3([0x6e,0x61,0x6d,0x65])]:_0xec3fa3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5457a5,_0x81c5d9,_0x11eb1d)||(_0x2e8570=!0x1);}}function _0x1cd60a(_0x35ab02){return _0x35ab02[_0xec3fa3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xec3fa3([0x65,0x79]))?JSON[_0xec3fa3([0x70,0x61,0x72,0x73,0x65])](_0x4857ff(_0x35ab02)):null;}function _0x4857ff(_0x25bdc4){return window[_0xec3fa3([0x61,0x74,0x6f,0x62])](_0x25bdc4[_0xec3fa3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xec3fa3([0x2b]))[_0xec3fa3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xec3fa3([0x2f])));}function _0x2fbb9d(_0x45a32d){let _0x19f795=0x1505;function _0x16ef62(_0x5c45c1){for(let _0x58c1f=0x0;_0x58c1f<_0x5c45c1[_0xec3fa3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x58c1f++){const _0x580f21=_0x5c45c1[_0xec3fa3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x58c1f);_0x19f795=(_0x19f795<<0x5)+_0x19f795+_0x580f21,_0x19f795&=_0x19f795;}}function _0x403f8c(_0x254402){Array[_0xec3fa3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x254402)?_0x254402[_0xec3fa3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x403f8c):_0x254402&&typeof _0x254402==_0xec3fa3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xec3fa3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x254402)[_0xec3fa3([0x73,0x6f,0x72,0x74])]()[_0xec3fa3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2fbbd5,_0x3610a1])=>{_0x16ef62(_0x2fbbd5),_0x403f8c(_0x3610a1);}):_0x16ef62(window[_0xec3fa3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x254402));}return _0x403f8c(_0x45a32d),_0x19f795>>>0x0;}function _0x38001d(_0x8a596d){return _0x8a596d[_0xec3fa3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xec3fa3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xec3fa3([0x30]));}function _0x498fa2(_0x2d69b2){return _0x2d69b2[_0xec3fa3([0x73,0x70,0x6c,0x69,0x74])]('')[_0xec3fa3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xec3fa3([0x6a,0x6f,0x69,0x6e])]('');}function _0x290253(){}function _0xec3fa3(_0x45b4b5){return _0x45b4b5['map'](_0x11fe0e=>String['fromCharCode'](_0x11fe0e))['join']('');}_0x1eabc7(await _0x97d266());}(this);}['_moveSelectionToFootnoteDefinition'](_0xcfcff6){const {plugins:_0x3febfd,editing:_0x53c0a6,model:_0x354a9e}=this['editor'],_0x5e8afc=_0x3febfd['get'](_0x5ce8d9)['getFootnote'](_0xcfcff6);return!!_0x5e8afc&&(_0x354a9e['change'](_0x18d553=>{_0x18d553['setSelection'](_0x18d553['createPositionAt'](_0x5e8afc['definition'],'end'));}),_0x53c0a6['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x53e64a){const {plugins:_0x4a3b52,editing:_0x9ef6dd,model:_0x2472c9}=this['editor'],_0x29a90c=_0x4a3b52['get'](_0x5ce8d9)['getFootnote'](_0x53e64a);return!!_0x29a90c&&(_0x2472c9['change'](_0x4dd944=>{_0x4dd944['setSelection'](_0x29a90c['reference'],'on');}),_0x9ef6dd['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x43714f}=this['editor']['model'],_0x4d3118=this['editor']['config']['get']('footnotes.multiBlock');_0x43714f['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x43714f['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x43714f['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x4d3118?_0x43714f['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x43714f['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x43714f['addChildCheck'](_0xea7f3f=>{for(const _0x5b47e0 of _0xea7f3f)if('footnoteDefinition'===_0x5b47e0['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x889749}=this,{conversion:_0x232070,editing:_0x7e9365}=_0x889749,{t:t}=_0x889749['locale'];_0x232070['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x1f0628,{writer:_0x3ca6cc,consumable:_0x59c9b5})=>{const _0x2802bc=_0x1f0628['getChild'](0x0);if(!_0x2802bc||!_0x2802bc['is']('element','a'))return null;const _0x3847e2=_0x2802bc['getAttribute']('href')||'';if(!_0x3847e2['startsWith']('#'))return null;const _0x1d5ff9=_0x3847e2['replace'](/^#/,'');if(!_0x1d5ff9)return null;_0x59c9b5['consume'](_0x2802bc,{'name':!0x0,'attributes':['href']});for(const {item:_0x5695f6}of _0x7e9365['view']['createRangeIn'](_0x2802bc))_0x5695f6['is']('$textProxy')?_0x59c9b5['consume'](_0x5695f6['textNode'],{'name':!0x0}):_0x5695f6['is']('element')&&_0x59c9b5['consume'](_0x5695f6,{'name':!0x0});return _0x3ca6cc['createElement']('footnoteRef',{'footnoteId':_0x1d5ff9});}}),_0x232070['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x229188,{writer:_0x46e8ff})=>D(_0x229188,_0x46e8ff)}),_0x232070['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x27d1d1,{writer:_0x556c5a})=>{const _0x299f4b=_0x27d1d1['getAttribute']('footnoteCounter');return _0x1f0949(D(_0x27d1d1,_0x556c5a),_0x556c5a,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x299f4b)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4acd33}=this,{t:t}=_0x4acd33['locale'],{conversion:_0x3b9f82}=_0x4acd33;_0x3b9f82['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3b9f82['for']('upcast')['add'](_0x533f2f=>{_0x533f2f['on']('element:ol',(_0x35ac9e,_0xa0eea5,_0x182f62)=>{const _0x1492fa=_0xa0eea5['viewItem'];if(!_0x1492fa['hasClass']('footnotes-list')||!_0xa0eea5['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x182f62['consumable']['consume'](_0x1492fa,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x3e285a,modelCursor:_0x47b3de}=_0x182f62['convertChildren'](_0xa0eea5['viewItem'],_0xa0eea5['modelCursor']);_0xa0eea5['modelRange']=_0x3e285a,_0xa0eea5['modelCursor']=_0x47b3de;}),_0x533f2f['on']('element:hr',(_0x1b0b76,_0x565f53,_0x180401)=>{const _0x42e09f=_0x565f53['viewItem'];_0x42e09f['hasClass']('footnotes-divider')&&_0x565f53['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x180401['consumable']['consume'](_0x42e09f,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3b9f82['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2e091a,{writer:_0x50f84c})=>g(_0x50f84c)}),_0x3b9f82['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x310fbc,{writer:_0x5dab4})=>{const _0x3b2fab=g(_0x5dab4,{'data-footnotes-list-label':t('Footnotes')}),_0xa5fc94=_0x1f0949(_0x3b2fab,_0x5dab4,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x5dab4['setCustomProperty']('footnotesDefinitions',!0x0,_0xa5fc94),_0xa5fc94;}});}['_defineDefinitionConverters'](){const {editor:_0xd5adfe}=this,{conversion:_0x39b1e5,locale:_0x15655e}=_0xd5adfe,_0x5664a2=_0xd5adfe['config']['get']('footnotes.multiBlock');_0x39b1e5['for']('upcast')['add'](_0x1b37a9=>{_0x1b37a9['on']('element:li',(_0x1cda48,_0x123b99,_0x5cd47d)=>{const _0x4e72ad=_0x123b99['viewItem'];if(!_0x4e72ad['hasClass']('footnote-definition')||!_0x4e72ad['getAttribute']('id'))return;const _0x102045=_0x4e72ad['parent'];if(!_0x102045['is']('element','ol')||!_0x102045['hasClass']('footnotes-list'))return;if(!_0x5cd47d['consumable']['test'](_0x4e72ad,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3d4102=_0x5cd47d['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x4e72ad['getAttribute']('id')});if(!_0x5cd47d['safeInsert'](_0x3d4102,_0x123b99['modelCursor']))return;_0x5cd47d['consumable']['consume'](_0x4e72ad,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4dba03=Array['from'](_0x4e72ad['getChildren']())['find'](_0x5a3d29=>_0x5a3d29['is']('element')&&_0x5a3d29['hasClass']('footnote-content'));for(const _0x143f88 of _0x4e72ad['getChildren']())_0x143f88['is']('element')&&(_0x5cd47d['consumable']['consume'](_0x143f88,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5cd47d['consumable']['consume'](_0x143f88,{'name':!0x0,'classes':'footnote-content'}));if(_0x4dba03){if(_0x5664a2)_0x5cd47d['convertChildren'](_0x4dba03,_0x3d4102);else{const _0x48ca97=_0x5cd47d['writer']['createElement']('footnoteInlineContent');_0x5cd47d['writer']['insert'](_0x48ca97,_0x3d4102),_0x5cd47d['convertChildren'](_0x4dba03,_0x48ca97);}}_0x5cd47d['updateConversionResult'](_0x3d4102,_0x123b99);});}),_0x39b1e5['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3149d4,{writer:_0x4c1620})=>v(_0x3149d4,_0x4c1620,_0x15655e,{'dataPipeline':!0x0})}),_0x39b1e5['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x33ea4a,{writer:_0x2e67d9})=>v(_0x33ea4a,_0x2e67d9,_0x15655e)});}['_defineBogusParagraphConverters'](){const {editor:_0x19257d}=this,{conversion:_0x31fba2}=_0x19257d;_0x19257d['config']['get']('footnotes.multiBlock')?(_0x31fba2['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x31fba2['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x19257d['model']['document'],'change:data',()=>{!function(_0x4e44c8,_0xe7b162){const _0x8d9cc4=_0x4e44c8['document']['differ'],_0x149775=new Set();for(const _0x4312ed of _0x8d9cc4['getChanges']()){const _0x5cf403='attribute'==_0x4312ed['type']?_0x4312ed['range']['start']['parent']:_0x4312ed['position']['parent'];_0x5cf403['is']('element','footnoteDefinition')&&_0x149775['add'](_0x5cf403);}for(const _0x2a094c of _0x149775['values']()){const _0x525f68=Array['from'](_0x2a094c['getChildren']())['filter'](_0x1a76bf=>p(_0x1a76bf,_0xe7b162['mapper']));for(const _0x28477f of _0x525f68)_0xe7b162['reconvertItem'](_0x28477f);}}(_0x19257d['model'],_0x19257d['editing']);})):(_0x31fba2['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x31fba2['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3655b3,{writer:_0x17ae48})=>{const _0x878486=_0x17ae48['createContainerElement']('span');return _0x17ae48['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x878486),_0x878486;}}));}['_defineKeyboardHandlers'](){const {editor:_0x358daf}=this,{editing:_0x3797de,t:t}=_0x358daf,_0x30a617=_0x358daf['model']['document']['selection'];_0x358daf['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x358daf['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x3797de['view']['document'],'enter',(_0x43b8b5,_0x3539d1)=>{const _0x2540c7=function(_0x40c5a9){const _0x295968=_0x40c5a9['getSelectedElement']();if(_0x295968?.['is']('element','footnoteRef'))return _0x295968;return null;}(_0x30a617);if(_0x2540c7){const _0x1a5c45=_0x2540c7['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1a5c45),_0x3539d1['preventDefault'](),_0x43b8b5['stop']();}},{'context':_0x45e7ca});}['_defineClickHandlers'](){const {editor:_0x2b2ef8}=this,{editing:_0x445dd3}=_0x2b2ef8;_0x2b2ef8['editing']['view']['addObserver'](_0x3139b1),_0x2b2ef8['editing']['view']['addObserver'](_0x129df2);let _0x6d0e55=!0x1;this['listenTo'](_0x445dd3['view']['document'],'pointerdown',(_0x5d9f25,_0x1bc9a4)=>{const {target:_0x3e0f37}=_0x1bc9a4,_0x2c3c47=_0x445dd3['view']['document']['selection'];_0x6d0e55=!(!_0x3e0f37['is']('element','sup')||!_0x3e0f37['hasClass']('footnote'))&&_0x2c3c47['getSelectedElement']()===_0x3e0f37;},{'priority':'high'}),this['listenTo'](_0x445dd3['view']['document'],'click',(_0x2a8354,_0x46ab8c)=>{const {target:_0x373b54}=_0x46ab8c,_0x124a94=_0x373b54['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x124a94['slice'](0x1)),_0x2a8354['stop'](),_0x46ab8c['preventDefault']();},{'priority':'high','context':_0x4ee784=>_0x4ee784['is']('element','sup')&&_0x4ee784['hasClass']('footnote')&&_0x6d0e55}),this['listenTo'](_0x445dd3['view']['document'],'click',(_0x6c310a,_0x5c199c)=>{const {target:_0x5d5efa}=_0x5c199c;if(!_0x5d5efa['is']('element','a'))return;let _0x3bf33d=_0x5d5efa['getAttribute']('href');if(!_0x3bf33d?.['startsWith']('#'))return;_0x3bf33d=_0x3bf33d['slice'](0x1);let _0x24efc6=!0x1;(_0x3bf33d['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x3bf33d['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x3bf33d))&&(_0x24efc6=!0x0),_0x24efc6&&(_0x5c199c['preventDefault'](),_0x6c310a['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x13fb77}={}){return(_0x4b2f45,{writer:_0xb68572})=>{if(!h(_0x4b2f45))return null;if(!_0x13fb77)return _0xb68572['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x5cd54c=_0xb68572['createContainerElement']('p');return _0xb68572['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5cd54c),_0x5cd54c;};}function h(_0x4d9d42){const {parent:_0x499aed}=_0x4d9d42;if(!_0x499aed?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x499aed['childCount'])return!0x1;for(const _0x34dc23 of _0x4d9d42['getAttributeKeys']())if(!_0x34dc23['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x34dc23)return!0x1;return!0x0;}function p(_0x501ea3,_0x15a793){if(!_0x501ea3['is']('element','paragraph'))return!0x1;const _0x31a12c=_0x15a793['toViewElement'](_0x501ea3);return!!_0x31a12c&&h(_0x501ea3)!==_0x31a12c['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x434591){return _0x45e7ca(_0x434591)&&_0x434591['is']('containerElement')&&!!_0x434591['getCustomProperty']('footnotesDefinitions');}function g(_0x1988f3,_0x2b3781={}){const _0x1296a0=_0x1988f3['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x46e444=_0x1988f3['createContainerElement']('ol',{'class':'footnotes-list'},_0x1988f3['createSlot']());return _0x1988f3['createContainerElement']('div',{'class':'footnotes',..._0x2b3781},[_0x1296a0,_0x46e444]);}function D(_0x187933,_0x36ebd1){const _0x5d6df3=_0x187933['getAttribute']('footnoteId'),_0x5d6e9b=_0x187933['getAttribute']('footnoteCounter'),_0x3bd2f3=_0x36ebd1['createUIElement']('a',{'href':'#'+_0x5d6df3},function(_0x12c736){const _0x8d5b8c=this['toDomElement'](_0x12c736);return _0x8d5b8c['textContent']=_0x5d6e9b,_0x8d5b8c;}),_0x4f0dc1=_0x36ebd1['createContainerElement']('sup',{'id':'ref-'+_0x5d6df3,'class':'footnote'},[_0x3bd2f3]);return _0x4f0dc1['getFillerOffset']=()=>null,_0x4f0dc1;}function v(_0x56a759,_0x6898f8,_0x5abe45,{dataPipeline:_0x66d810}={}){const {t:t}=_0x5abe45,_0x5758d5=_0x56a759['getAttribute']('footnoteId'),_0x12f6d0=_0x6898f8['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5758d5},function(_0x39c13a){const _0x1b720d=this['toDomElement'](_0x39c13a);return _0x1b720d['innerText']='^',_0x1b720d;}),_0x5223c8=_0x66d810?_0x6898f8['createContainerElement']('div',{'class':'footnote-content'}):_0x5cfdc7(_0x6898f8['createEditableElement']('div',{'class':'footnote-content'}),_0x6898f8,{'label':t('Footnote\x20content.')});return _0x6898f8['insert'](_0x6898f8['createPositionAt'](_0x5223c8,0x0),_0x6898f8['createSlot']()),_0x6898f8['createContainerElement']('li',{'class':'footnote-definition','id':_0x5758d5},[_0x12f6d0,_0x5223c8]);}
|
|
23
|
+
import{Plugin as _0x56ac54}from'ckeditor5/src/core.js';import{isWidget as _0x3e139b,toWidget as _0x4e823f,toWidgetEditable as _0x217a51}from'ckeditor5/src/widget.js';import{uid as _0x4ff677}from'ckeditor5/src/utils.js';import{PointerObserver as _0x3751dc,ClickObserver as _0x371439}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x22b8f2}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x1aa36b}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x56ac54{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x22b8f2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x12b193}=this;_0x12b193['config']['define']('footnotes.multiBlock',!0x0),_0x12b193['commands']['add']('insertFootnote',new _0x1aa36b(_0x12b193)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x537214){const _0x334bc5=_0x3adfe8([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]),_0x35bd68=0x47a28506,_0x45dca6=0x47a5f266^_0x35bd68,_0x4d16d4=window[_0x3adfe8([0x44,0x61,0x74,0x65])][_0x3adfe8([0x6e,0x6f,0x77])](),_0x41cb0e=_0x537214[_0x3adfe8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x54edb9=new window[(_0x3adfe8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16b10c=>{_0x41cb0e[_0x3adfe8([0x6f,0x6e,0x63,0x65])](_0x3adfe8([0x72,0x65,0x61,0x64,0x79]),_0x16b10c);}),_0x262d61={[_0x3adfe8([0x6b,0x74,0x79])]:_0x3adfe8([0x45,0x43]),[_0x3adfe8([0x75,0x73,0x65])]:_0x3adfe8([0x73,0x69,0x67]),[_0x3adfe8([0x63,0x72,0x76])]:_0x3adfe8([0x50,0x2d,0x32,0x35,0x36]),[_0x3adfe8([0x78])]:_0x3adfe8([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]),[_0x3adfe8([0x79])]:_0x3adfe8([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]),[_0x3adfe8([0x61,0x6c,0x67])]:_0x3adfe8([0x45,0x53,0x32,0x35,0x36])},_0x50d160=_0x41cb0e[_0x3adfe8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3adfe8([0x67,0x65,0x74])](_0x3adfe8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xabe689(){let _0x47676d,_0x194dee=null,_0x1e7e69=null;try{if(_0x50d160==_0x3adfe8([0x47,0x50,0x4c]))return _0x3adfe8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47676d=_0x16f7e1(),!_0x47676d)return _0x3adfe8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x47676d[_0x3adfe8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e7e69=_0x4a3fb0(_0x47676d[_0x3adfe8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47676d[_0x3adfe8([0x6a,0x74,0x69])])),await _0x580c62()?_0x4bc44b()?_0x1a903b()?_0x3adfe8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xfb497()?(_0x47676d[_0x3adfe8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3adfe8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x194dee=_0x1fdae0(_0x3adfe8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x47676d[_0x3adfe8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3adfe8([0x74,0x72,0x69,0x61,0x6c])&&(_0x194dee=_0x1fdae0(_0x3adfe8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5801cf()):_0x3adfe8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3adfe8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3adfe8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3adfe8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1a903b(){const _0x492d75=[_0x3adfe8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3adfe8([0x74,0x72,0x69,0x61,0x6c])][_0x3adfe8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47676d[_0x3adfe8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4d16d4/0x3e8:0xe10*_0x45dca6;return _0x47676d[_0x3adfe8([0x65,0x78,0x70])]<_0x492d75;}function _0x4bc44b(){const _0x90f914=_0x47676d[_0x3adfe8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x90f914&&(!!_0x90f914[_0x3adfe8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3adfe8([0x2a]))||!!_0x90f914[_0x3adfe8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3adfe8([0x46,0x4f,0x4f])));}function _0xfb497(){const _0xf4dc45=_0x47676d[_0x3adfe8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xf4dc45||0x0==_0xf4dc45[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x449cfe}=new URL(window[_0x3adfe8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xf4dc45[_0x3adfe8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x449cfe))return!0x0;const _0x369e01=_0x449cfe[_0x3adfe8([0x73,0x70,0x6c,0x69,0x74])](_0x3adfe8([0x2e]));return _0xf4dc45[_0x3adfe8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f98d4=>_0x4f98d4[_0x3adfe8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3adfe8([0x2a])))[_0x3adfe8([0x6d,0x61,0x70])](_0x23f611=>_0x23f611[_0x3adfe8([0x73,0x70,0x6c,0x69,0x74])](_0x3adfe8([0x2e])))[_0x3adfe8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x56e941=>_0x56e941[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x369e01[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3adfe8([0x6d,0x61,0x70])](_0x497351=>Array(_0x369e01[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x497351[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3adfe8([0x66,0x69,0x6c,0x6c])](_0x497351[0x0]===_0x3adfe8([0x2a])?_0x3adfe8([0x2a]):'')[_0x3adfe8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x497351))[_0x3adfe8([0x73,0x6f,0x6d,0x65])](_0x5e80d5=>_0x369e01[_0x3adfe8([0x65,0x76,0x65,0x72,0x79])]((_0x21d259,_0x5c1caa)=>_0x5e80d5[_0x5c1caa]===_0x21d259||_0x5e80d5[_0x5c1caa]===_0x3adfe8([0x2a])));}function _0x5801cf(){return _0x194dee&&_0x1e7e69?new window[(_0x3adfe8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43de78,_0x64350f)=>{_0x194dee[_0x3adfe8([0x74,0x68,0x65,0x6e])](_0x43de78,_0x64350f),_0x1e7e69[_0x3adfe8([0x74,0x68,0x65,0x6e])](_0x237bc7=>{_0x237bc7!=_0x3adfe8([0x56,0x61,0x6c,0x69,0x64])&&_0x43de78(_0x237bc7);},_0x64350f);}):_0x194dee||_0x1e7e69||_0x3adfe8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4a3fb0(_0x453e05,_0x1a5b94){return new window[(_0x3adfe8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x107a93=>{if(_0x573685())return _0x107a93(_0x3adfe8([0x56,0x61,0x6c,0x69,0x64]));_0x35bcc9(),_0x41cb0e[_0x3adfe8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3adfe8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4bceea=!0x1;const _0x496133=_0x4ff677();function _0x2f91fc(_0x1054ec){return!!_0x1054ec&&(typeof _0x1054ec===_0x3adfe8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1054ec===_0x3adfe8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1054ec[_0x3adfe8([0x74,0x68,0x65,0x6e])]===_0x3adfe8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1054ec[_0x3adfe8([0x63,0x61,0x74,0x63,0x68])]===_0x3adfe8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x37b110(_0x44009a){_0x4d221c(_0x44009a)[_0x3adfe8([0x74,0x68,0x65,0x6e])](_0xff21fc=>{if(!_0xff21fc||_0xff21fc[_0x3adfe8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3adfe8([0x6f,0x6b]))return _0x3adfe8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x163ed5(_0x1b40a4(_0x496133+_0x1a5b94))!=_0xff21fc[_0x3adfe8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3adfe8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3adfe8([0x56,0x61,0x6c,0x69,0x64]);})[_0x3adfe8([0x74,0x68,0x65,0x6e])](_0x45fd19=>(_0x5346e0(),_0x45fd19),()=>{const _0x1deded=_0x274862();return null==_0x1deded?(_0x5346e0(),_0x3adfe8([0x56,0x61,0x6c,0x69,0x64])):_0x3adfe8(_0x4d16d4-_0x1deded>(0x63ae0106^_0x35bd68)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3adfe8([0x74,0x68,0x65,0x6e])](_0x107a93)[_0x3adfe8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x107a93(_0x3adfe8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1d65d4=0x47946b86^_0x35bd68;function _0x5346e0(){const _0x2a8cbe=_0x3adfe8([0x6c,0x6c,0x63,0x74,0x2d])+_0x163ed5(_0x1b40a4(_0x453e05)),_0x3a47f5=_0x2cda0f(_0x163ed5(window[_0x3adfe8([0x4d,0x61,0x74,0x68])][_0x3adfe8([0x63,0x65,0x69,0x6c])](_0x4d16d4/_0x1d65d4)));window[_0x3adfe8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3adfe8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a8cbe,_0x3a47f5);}function _0x274862(){const _0x2cad5e=_0x3adfe8([0x6c,0x6c,0x63,0x74,0x2d])+_0x163ed5(_0x1b40a4(_0x453e05)),_0x394abc=window[_0x3adfe8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3adfe8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2cad5e);return _0x394abc?window[_0x3adfe8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cda0f(_0x394abc),0x10)*_0x1d65d4:null;}function _0x4d221c(_0x2fbb96){return new window[(_0x3adfe8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b1648,_0x4f82e3)=>{_0x2fbb96[_0x3adfe8([0x74,0x68,0x65,0x6e])](_0x1b1648,_0x4f82e3),window[_0x3adfe8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f82e3,0x47a351c6^_0x35bd68);});}}_0x41cb0e[_0x3adfe8([0x6f,0x6e])](_0x3adfe8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1ff027,_0xe0fe96)=>{if(_0xe0fe96[0x0]!=_0x453e05)return _0x107a93(_0x3adfe8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe0fe96[0x1]={..._0xe0fe96[0x1],[_0x3adfe8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x496133};},{[_0x3adfe8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3adfe8([0x68,0x69,0x67,0x68])}),_0x41cb0e[_0x3adfe8([0x6f,0x6e])](_0x3adfe8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x360c97=>{_0x2f91fc(_0x360c97[_0x3adfe8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4bceea=!0x0,_0x37b110(_0x360c97[_0x3adfe8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3adfe8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3adfe8([0x6c,0x6f,0x77])}),_0x54edb9[_0x3adfe8([0x74,0x68,0x65,0x6e])](()=>{_0x4bceea||_0x107a93(_0x3adfe8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x573685(){return _0x41cb0e[_0x3adfe8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3adfe8([0x76,0x69,0x65,0x77])][_0x3adfe8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3adfe8([0x61,0x75,0x74,0x6f]);}function _0x35bcc9(){_0x41cb0e[_0x3adfe8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3adfe8([0x76,0x69,0x65,0x77])][_0x3adfe8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3adfe8([0x61,0x75,0x74,0x6f]);}}function _0x1fdae0(_0x1d319e){const _0x12642b=[new window[(_0x3adfe8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcc2760=>setTimeout(_0xcc2760,0x47abbbca^_0x35bd68)),_0x54edb9[_0x3adfe8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3adfe8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x444a0b=>{let _0x2d7a1c=0x0;_0x41cb0e[_0x3adfe8([0x6d,0x6f,0x64,0x65,0x6c])][_0x3adfe8([0x6f,0x6e])](_0x3adfe8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x325881,_0x18e28a)=>{_0x18e28a[0x0][_0x3adfe8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d7a1c++,_0x2d7a1c==(0x47a284fe^_0x35bd68)&&(_0x444a0b(),_0x325881[_0x3adfe8([0x6f,0x66,0x66])]());});}))];return window[_0x3adfe8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3adfe8([0x72,0x61,0x63,0x65])](_0x12642b)[_0x3adfe8([0x74,0x68,0x65,0x6e])](()=>_0x1d319e);}async function _0x320ac9(){await _0x54edb9,_0x41cb0e[_0x3adfe8([0x6d,0x6f,0x64,0x65,0x6c])][_0x3adfe8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7c3340,_0x41cb0e[_0x3adfe8([0x6d,0x6f,0x64,0x65,0x6c])][_0x3adfe8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7c3340,_0x41cb0e[_0x3adfe8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3adfe8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x438e49(_0x2fcb2e){const _0x4f87c2=_0x472926();_0x41cb0e[_0x4f87c2]=_0x3adfe8([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2fcb2e,_0x2fcb2e!=_0x3adfe8([0x56,0x61,0x6c,0x69,0x64])&&_0x320ac9();}function _0x472926(){const _0x397a05=window[_0x3adfe8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3adfe8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3adfe8([0x6e,0x6f,0x77])]())[_0x3adfe8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3adfe8([0x2e]),'');let _0x300ca5=_0x3adfe8([0x75]);for(let _0x518db4=0x0;_0x518db4<_0x397a05[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x518db4+=0x2){let _0x330f20=window[_0x3adfe8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x397a05[_0x3adfe8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x518db4,_0x518db4+0x2));_0x330f20>=_0x334bc5[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x330f20-=_0x334bc5[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x300ca5+=_0x334bc5[_0x330f20];}return _0x300ca5;}function _0x16f7e1(){const _0x55e54c=_0x50d160[_0x3adfe8([0x73,0x70,0x6c,0x69,0x74])](_0x3adfe8([0x2e]));if(0x3!=_0x55e54c[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x478599(_0x55e54c[0x1]);function _0x478599(_0x4cb845){const _0x362a8e=_0x2b4f27(_0x4cb845);return _0x362a8e&&_0x3892c9()?_0x362a8e:null;function _0x3892c9(){const _0x31a331=_0x362a8e[_0x3adfe8([0x6a,0x74,0x69])],_0x5d0ef8=window[_0x3adfe8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31a331[_0x3adfe8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31a331[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1fa8ad={..._0x362a8e,[_0x3adfe8([0x6a,0x74,0x69])]:_0x31a331[_0x3adfe8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31a331[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1fa8ad[_0x3adfe8([0x76,0x63])],_0x1b40a4(_0x1fa8ad)==_0x5d0ef8;}}}async function _0x580c62(){let _0x28621a=!0x0;try{const _0x8e3e2b=_0x50d160[_0x3adfe8([0x73,0x70,0x6c,0x69,0x74])](_0x3adfe8([0x2e])),[_0x4a1026,_0x2bee38,_0x2fc068]=_0x8e3e2b;return _0x31d983(_0x4a1026),await _0xe194cc(_0x4a1026,_0x2bee38,_0x2fc068),_0x28621a;}catch{return!0x1;}function _0x31d983(_0x1babf7){const _0x21cf80=_0x2b4f27(_0x1babf7);_0x21cf80&&_0x21cf80[_0x3adfe8([0x61,0x6c,0x67])]==_0x3adfe8([0x45,0x53,0x32,0x35,0x36])||(_0x28621a=!0x1);}async function _0xe194cc(_0x16b48a,_0x54aa97,_0x50e14f){const _0x19ab7d=window[_0x3adfe8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3adfe8([0x66,0x72,0x6f,0x6d])](_0x173959(_0x50e14f),_0x757b3b=>_0x757b3b[_0x3adfe8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x571dba=new window[(_0x3adfe8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3adfe8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x16b48a+_0x3adfe8([0x2e])+_0x54aa97),_0x139a51=window[_0x3adfe8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3adfe8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x139a51)return;const _0x40ff06=await _0x139a51[_0x3adfe8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3adfe8([0x6a,0x77,0x6b]),_0x262d61,{[_0x3adfe8([0x6e,0x61,0x6d,0x65])]:_0x3adfe8([0x45,0x43,0x44,0x53,0x41]),[_0x3adfe8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3adfe8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3adfe8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x139a51[_0x3adfe8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3adfe8([0x6e,0x61,0x6d,0x65])]:_0x3adfe8([0x45,0x43,0x44,0x53,0x41]),[_0x3adfe8([0x68,0x61,0x73,0x68])]:{[_0x3adfe8([0x6e,0x61,0x6d,0x65])]:_0x3adfe8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40ff06,_0x19ab7d,_0x571dba)||(_0x28621a=!0x1);}}function _0x2b4f27(_0x546406){return _0x546406[_0x3adfe8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3adfe8([0x65,0x79]))?JSON[_0x3adfe8([0x70,0x61,0x72,0x73,0x65])](_0x173959(_0x546406)):null;}function _0x173959(_0x347cd2){return window[_0x3adfe8([0x61,0x74,0x6f,0x62])](_0x347cd2[_0x3adfe8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3adfe8([0x2b]))[_0x3adfe8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3adfe8([0x2f])));}function _0x1b40a4(_0xaf3ba0){let _0x5aa83=0x1505;function _0x2f5dc9(_0x3e37f2){for(let _0xc842cc=0x0;_0xc842cc<_0x3e37f2[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc842cc++){const _0x3b9ae4=_0x3e37f2[_0x3adfe8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xc842cc);_0x5aa83=(_0x5aa83<<0x5)+_0x5aa83+_0x3b9ae4,_0x5aa83&=_0x5aa83;}}function _0xd1ea0f(_0x9b40d7){Array[_0x3adfe8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9b40d7)?_0x9b40d7[_0x3adfe8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd1ea0f):_0x9b40d7&&typeof _0x9b40d7==_0x3adfe8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3adfe8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9b40d7)[_0x3adfe8([0x73,0x6f,0x72,0x74])]()[_0x3adfe8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x125358,_0x4032d])=>{_0x2f5dc9(_0x125358),_0xd1ea0f(_0x4032d);}):_0x2f5dc9(window[_0x3adfe8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9b40d7));}return _0xd1ea0f(_0xaf3ba0),_0x5aa83>>>0x0;}function _0x163ed5(_0x2c7fbb){return _0x2c7fbb[_0x3adfe8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3adfe8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3adfe8([0x30]));}function _0x2cda0f(_0x18aeb5){return _0x18aeb5[_0x3adfe8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3adfe8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3adfe8([0x6a,0x6f,0x69,0x6e])]('');}function _0x7c3340(){}function _0x3adfe8(_0x272048){return _0x272048['map'](_0x423e9f=>String['fromCharCode'](_0x423e9f))['join']('');}_0x438e49(await _0xabe689());}(this);}['_moveSelectionToFootnoteDefinition'](_0x39c3a3){const {plugins:_0x3f7b37,editing:_0x2231f3,model:_0x4610ce}=this['editor'],_0x98fe4e=_0x3f7b37['get'](_0x22b8f2)['getFootnote'](_0x39c3a3);return!!_0x98fe4e&&(_0x4610ce['change'](_0x42da27=>{_0x42da27['setSelection'](_0x42da27['createPositionAt'](_0x98fe4e['definition'],'end'));}),_0x2231f3['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x13f045){const {plugins:_0x58a615,editing:_0x166c66,model:_0x37f62e}=this['editor'],_0x497a82=_0x58a615['get'](_0x22b8f2)['getFootnote'](_0x13f045);return!!_0x497a82&&(_0x37f62e['change'](_0x7782a7=>{_0x7782a7['setSelection'](_0x497a82['reference'],'on');}),_0x166c66['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x140b46}=this['editor']['model'],_0x26e2f6=this['editor']['config']['get']('footnotes.multiBlock');_0x140b46['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x140b46['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x140b46['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x26e2f6?_0x140b46['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x140b46['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x140b46['addChildCheck'](_0x5ba99c=>{for(const _0x4a1fef of _0x5ba99c)if('footnoteDefinition'===_0x4a1fef['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5e36e5}=this,{conversion:_0xd1e4a7,editing:_0x414cbc}=_0x5e36e5,{t:t}=_0x5e36e5['locale'];_0xd1e4a7['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x3c93b3,{writer:_0x4ebdee,consumable:_0x10e538})=>{const _0x38b7e6=_0x3c93b3['getChild'](0x0);if(!_0x38b7e6||!_0x38b7e6['is']('element','a'))return null;const _0x9221c9=_0x38b7e6['getAttribute']('href')||'';if(!_0x9221c9['startsWith']('#'))return null;const _0x2ebb64=_0x9221c9['replace'](/^#/,'');if(!_0x2ebb64)return null;_0x10e538['consume'](_0x38b7e6,{'name':!0x0,'attributes':['href']});for(const {item:_0x299726}of _0x414cbc['view']['createRangeIn'](_0x38b7e6))_0x299726['is']('$textProxy')?_0x10e538['consume'](_0x299726['textNode'],{'name':!0x0}):_0x299726['is']('element')&&_0x10e538['consume'](_0x299726,{'name':!0x0});return _0x4ebdee['createElement']('footnoteRef',{'footnoteId':_0x2ebb64});}}),_0xd1e4a7['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x497bfb,{writer:_0x16e110})=>D(_0x497bfb,_0x16e110)}),_0xd1e4a7['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x300f08,{writer:_0x15f7cc})=>{const _0x24ebe9=_0x300f08['getAttribute']('footnoteCounter');return _0x4e823f(D(_0x300f08,_0x15f7cc),_0x15f7cc,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x24ebe9)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5019c9}=this,{t:t}=_0x5019c9['locale'],{conversion:_0x2b1e5b}=_0x5019c9;_0x2b1e5b['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x2b1e5b['for']('upcast')['add'](_0x4f191e=>{_0x4f191e['on']('element:ol',(_0x1c8aff,_0x52ae63,_0x1d8680)=>{const _0x41d809=_0x52ae63['viewItem'];if(!_0x41d809['hasClass']('footnotes-list')||!_0x52ae63['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1d8680['consumable']['consume'](_0x41d809,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5b20d6,modelCursor:_0x412371}=_0x1d8680['convertChildren'](_0x52ae63['viewItem'],_0x52ae63['modelCursor']);_0x52ae63['modelRange']=_0x5b20d6,_0x52ae63['modelCursor']=_0x412371;}),_0x4f191e['on']('element:hr',(_0x5381a1,_0x138acc,_0x3fbd2e)=>{const _0x2039a5=_0x138acc['viewItem'];_0x2039a5['hasClass']('footnotes-divider')&&_0x138acc['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3fbd2e['consumable']['consume'](_0x2039a5,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x2b1e5b['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x342687,{writer:_0x8b3f7c})=>g(_0x8b3f7c)}),_0x2b1e5b['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x39764d,{writer:_0x177291})=>{const _0x1d84b4=g(_0x177291,{'data-footnotes-list-label':t('Footnotes')}),_0x40d1e1=_0x4e823f(_0x1d84b4,_0x177291,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x177291['setCustomProperty']('footnotesDefinitions',!0x0,_0x40d1e1),_0x40d1e1;}});}['_defineDefinitionConverters'](){const {editor:_0x197326}=this,{conversion:_0x28c5fd,locale:_0x4449de}=_0x197326,_0x4ca8a9=_0x197326['config']['get']('footnotes.multiBlock');_0x28c5fd['for']('upcast')['add'](_0x1cbee5=>{_0x1cbee5['on']('element:li',(_0x2e345d,_0x2e88d4,_0x20b44b)=>{const _0x54e140=_0x2e88d4['viewItem'];if(!_0x54e140['hasClass']('footnote-definition')||!_0x54e140['getAttribute']('id'))return;const _0x55aabc=_0x54e140['parent'];if(!_0x55aabc['is']('element','ol')||!_0x55aabc['hasClass']('footnotes-list'))return;if(!_0x20b44b['consumable']['test'](_0x54e140,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x6ce5da=_0x20b44b['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x54e140['getAttribute']('id')});if(!_0x20b44b['safeInsert'](_0x6ce5da,_0x2e88d4['modelCursor']))return;_0x20b44b['consumable']['consume'](_0x54e140,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1ec1f0=Array['from'](_0x54e140['getChildren']())['find'](_0x1b3700=>_0x1b3700['is']('element')&&_0x1b3700['hasClass']('footnote-content'));for(const _0x584f83 of _0x54e140['getChildren']())_0x584f83['is']('element')&&(_0x20b44b['consumable']['consume'](_0x584f83,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x20b44b['consumable']['consume'](_0x584f83,{'name':!0x0,'classes':'footnote-content'}));if(_0x1ec1f0){if(_0x4ca8a9)_0x20b44b['convertChildren'](_0x1ec1f0,_0x6ce5da);else{const _0x2b0786=_0x20b44b['writer']['createElement']('footnoteInlineContent');_0x20b44b['writer']['insert'](_0x2b0786,_0x6ce5da),_0x20b44b['convertChildren'](_0x1ec1f0,_0x2b0786);}}_0x20b44b['updateConversionResult'](_0x6ce5da,_0x2e88d4);});}),_0x28c5fd['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x20b5cd,{writer:_0x9fc4f7})=>v(_0x20b5cd,_0x9fc4f7,_0x4449de,{'dataPipeline':!0x0})}),_0x28c5fd['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x42db95,{writer:_0xd12790})=>v(_0x42db95,_0xd12790,_0x4449de)});}['_defineBogusParagraphConverters'](){const {editor:_0x3cfc60}=this,{conversion:_0x89b509}=_0x3cfc60;_0x3cfc60['config']['get']('footnotes.multiBlock')?(_0x89b509['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x89b509['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3cfc60['model']['document'],'change:data',()=>{!function(_0x182649,_0x2847a9){const _0x4d0ec5=_0x182649['document']['differ'],_0x421cd6=new Set();for(const _0x5c0ba9 of _0x4d0ec5['getChanges']()){const _0x564e9e='attribute'==_0x5c0ba9['type']?_0x5c0ba9['range']['start']['parent']:_0x5c0ba9['position']['parent'];_0x564e9e['is']('element','footnoteDefinition')&&_0x421cd6['add'](_0x564e9e);}for(const _0x46bf83 of _0x421cd6['values']()){const _0x12f06d=Array['from'](_0x46bf83['getChildren']())['filter'](_0x2ed3ab=>p(_0x2ed3ab,_0x2847a9['mapper']));for(const _0x2e0090 of _0x12f06d)_0x2847a9['reconvertItem'](_0x2e0090);}}(_0x3cfc60['model'],_0x3cfc60['editing']);})):(_0x89b509['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x89b509['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1d9c6e,{writer:_0x20ce57})=>{const _0x4e1d53=_0x20ce57['createContainerElement']('span');return _0x20ce57['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4e1d53),_0x4e1d53;}}));}['_defineKeyboardHandlers'](){const {editor:_0xdabf32}=this,{editing:_0x321d04,t:t}=_0xdabf32,_0x5374e5=_0xdabf32['model']['document']['selection'];_0xdabf32['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0xdabf32['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x321d04['view']['document'],'enter',(_0x22bae1,_0x5a8ec8)=>{const _0x345d65=function(_0x91cb8f){const _0x5143f4=_0x91cb8f['getSelectedElement']();if(_0x5143f4?.['is']('element','footnoteRef'))return _0x5143f4;return null;}(_0x5374e5);if(_0x345d65){const _0x135836=_0x345d65['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x135836),_0x5a8ec8['preventDefault'](),_0x22bae1['stop']();}},{'context':_0x3e139b});}['_defineClickHandlers'](){const {editor:_0x35b78}=this,{editing:_0x564c99}=_0x35b78;_0x35b78['editing']['view']['addObserver'](_0x3751dc),_0x35b78['editing']['view']['addObserver'](_0x371439);let _0x193c0c=!0x1;this['listenTo'](_0x564c99['view']['document'],'pointerdown',(_0x379e5a,_0x53e0c6)=>{const {target:_0x31de1a}=_0x53e0c6,_0x5763c1=_0x564c99['view']['document']['selection'];_0x193c0c=!(!_0x31de1a['is']('element','sup')||!_0x31de1a['hasClass']('footnote'))&&_0x5763c1['getSelectedElement']()===_0x31de1a;},{'priority':'high'}),this['listenTo'](_0x564c99['view']['document'],'click',(_0xcb978d,_0x448dba)=>{const {target:_0x53935f}=_0x448dba,_0x3e6f05=_0x53935f['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x3e6f05['slice'](0x1)),_0xcb978d['stop'](),_0x448dba['preventDefault']();},{'priority':'high','context':_0x5b0620=>_0x5b0620['is']('element','sup')&&_0x5b0620['hasClass']('footnote')&&_0x193c0c}),this['listenTo'](_0x564c99['view']['document'],'click',(_0x52b19c,_0x361fec)=>{const {target:_0x45d59b}=_0x361fec;if(!_0x45d59b['is']('element','a'))return;let _0x25df90=_0x45d59b['getAttribute']('href');if(!_0x25df90?.['startsWith']('#'))return;_0x25df90=_0x25df90['slice'](0x1);let _0x17329c=!0x1;(_0x25df90['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x25df90['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x25df90))&&(_0x17329c=!0x0),_0x17329c&&(_0x361fec['preventDefault'](),_0x52b19c['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x334cbc}={}){return(_0x4edf76,{writer:_0x103350})=>{if(!h(_0x4edf76))return null;if(!_0x334cbc)return _0x103350['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x23f1d4=_0x103350['createContainerElement']('p');return _0x103350['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x23f1d4),_0x23f1d4;};}function h(_0x41e7e5){const {parent:_0x4770bd}=_0x41e7e5;if(!_0x4770bd?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x4770bd['childCount'])return!0x1;for(const _0x53b280 of _0x41e7e5['getAttributeKeys']())if(!_0x53b280['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x53b280)return!0x1;return!0x0;}function p(_0x3967f3,_0xab2d60){if(!_0x3967f3['is']('element','paragraph'))return!0x1;const _0x98c9a9=_0xab2d60['toViewElement'](_0x3967f3);return!!_0x98c9a9&&h(_0x3967f3)!==_0x98c9a9['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x3ebd49){return _0x3e139b(_0x3ebd49)&&_0x3ebd49['is']('containerElement')&&!!_0x3ebd49['getCustomProperty']('footnotesDefinitions');}function g(_0x28d9dd,_0x256609={}){const _0x518f28=_0x28d9dd['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x56dd5e=_0x28d9dd['createContainerElement']('ol',{'class':'footnotes-list'},_0x28d9dd['createSlot']());return _0x28d9dd['createContainerElement']('div',{'class':'footnotes',..._0x256609},[_0x518f28,_0x56dd5e]);}function D(_0x2a6669,_0x38a1ff){const _0x123030=_0x2a6669['getAttribute']('footnoteId'),_0x32e135=_0x2a6669['getAttribute']('footnoteCounter'),_0x29252b=_0x38a1ff['createUIElement']('a',{'href':'#'+_0x123030},function(_0x328d94){const _0x27fa57=this['toDomElement'](_0x328d94);return _0x27fa57['textContent']=_0x32e135,_0x27fa57;}),_0x5cd8ee=_0x38a1ff['createContainerElement']('sup',{'id':'ref-'+_0x123030,'class':'footnote'},[_0x29252b]);return _0x5cd8ee['getFillerOffset']=()=>null,_0x5cd8ee;}function v(_0x498133,_0x1e0b83,_0x44f264,{dataPipeline:_0x50ed22}={}){const {t:t}=_0x44f264,_0x5d4260=_0x498133['getAttribute']('footnoteId'),_0x10c8f3=_0x1e0b83['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5d4260},function(_0x3cdb1e){const _0x108ef8=this['toDomElement'](_0x3cdb1e);return _0x108ef8['innerText']='^',_0x108ef8;}),_0x2423f4=_0x50ed22?_0x1e0b83['createContainerElement']('div',{'class':'footnote-content'}):_0x217a51(_0x1e0b83['createEditableElement']('div',{'class':'footnote-content'}),_0x1e0b83,{'label':t('Footnote\x20content.')});return _0x1e0b83['insert'](_0x1e0b83['createPositionAt'](_0x2423f4,0x0),_0x1e0b83['createSlot']()),_0x1e0b83['createContainerElement']('li',{'class':'footnote-definition','id':_0x5d4260},[_0x10c8f3,_0x2423f4]);}
|