@ckeditor/ckeditor5-footnotes 0.0.0-nightly-next-20251221.0 → 0.0.0-nightly-next-20251222.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
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>J,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=c();return(r=function(t,e){return o[t-=213]})(t,e)}const a=r;function c(){const t=["_getElementKey","add","position","type","3310aDcrEO","_elementName","clear","root","843125kdTDYx","element","length","flat","remove","createRangeOn","15pDgPtr","473672ZZSPbM","$text","126313eISESR","reset","rootName","slice","6KhRgak","elementName","name","set","get","has","4632qlzGCc","1490420GfpZEC","insert","attributes","nodeAfter","getItems","getElementKey","1567476wDXqOK","9611uLPKbQ","getChanges","3981912eLgGWr","push","_model","_trackedElements","values","$graveyard","delete","from"];return(c=function(){return t})()}!function(t){const e=r,o=t();for(;;)try{if(581746===-parseInt(e(224))/1+parseInt(e(231))/2*(parseInt(e(237))/3)+parseInt(e(244))/4*(-parseInt(e(230))/5)+parseInt(e(243))/6*(-parseInt(e(251))/7)+-parseInt(e(253))/8+-parseInt(e(250))/9+parseInt(e(220))/10*(parseInt(e(233))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[a(255)];[a(221)];[a(216)];[a(256)]=new Map;constructor(t,e){const o=a;this[o(255)]=t,this[o(221)]=e[o(238)],this[o(216)]=e[o(249)]}[a(234)](){const t=a;this[t(256)][t(222)]()}[a(252)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(245)===i[e(219)]&&e(232)!==i[e(239)]&&i[e(218)][e(247)]){const t=this[e(255)][e(229)](i[e(218)][e(247)]);for(const o of t[e(248)]()){if(!o.is(e(225),this[e(221)]))continue;const t=this[e(216)](o);n[e(242)](t)||n[e(240)](t,[]),n[e(241)](t)[e(254)](o)}}if(e(228)===i[e(219)]&&i[e(239)]===this[e(221)]){const t=this[e(216)]({getAttribute:t=>i[e(246)][e(241)](t)});o[e(217)](t)}}for(const[t,n]of this[e(256)])e(213)===n[e(223)][e(235)]&&o[e(217)](t);for(const t of o)this[e(256)][e(214)](t);for(const[t,o]of n)this[e(256)][e(240)](t,o[o[e(226)]-1]);const i=new Set;for(const[t,s]of n)o[e(242)](t)&&(i[e(217)](s[0]),s[e(226)]>1?n[e(240)](t,s[e(236)](1)):n[e(214)](t),o[e(214)](t));return{removed:Array[e(215)](o),inserted:Array[e(215)](n[e(257)]())[e(227)](),moved:Array[e(215)](i)}}}function u(t,e){const o=h();return(u=function(t,e){return o[t-=202]})(t,e)}const f=u;!function(t){const e=u,o=t();for(;;)try{if(481154===parseInt(e(247))/1*(parseInt(e(213))/2)+parseInt(e(222))/3*(-parseInt(e(303))/4)+-parseInt(e(294))/5+parseInt(e(273))/6*(-parseInt(e(216))/7)+-parseInt(e(261))/8*(-parseInt(e(242))/9)+parseInt(e(252))/10*(parseInt(e(283))/11)+parseInt(e(263))/12*(parseInt(e(239))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class d extends t.Plugin{[f(284)]=[];[f(290)]=null;[f(251)]=null;[f(256)];[f(285)];[f(225)];static get[f(295)](){return f(260)}static get[f(272)](){return!0}static get[f(281)](){return!0}constructor(t){const e=f;super(t),this[e(256)]=new l(this[e(218)][e(259)],{elementName:e(210),getElementKey:()=>e(245)}),this[e(285)]=new l(this[e(218)][e(259)],{elementName:e(204),getElementKey:t=>t[e(237)](e(214))}),this[e(225)]=new l(this[e(218)][e(259)],{elementName:e(209),getElementKey:t=>t[e(237)](e(214))})}[f(291)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(253)][t(240)](e=>{const n=t,i=o[n(253)][n(246)][n(274)]();let s=!1;return this[n(230)](e,i)&&(s=!0),this[n(255)](e,i)&&(s=!0),this[n(235)](e,i)&&(s=!0),this[n(206)](e)&&(s=!0),this[n(276)](e)&&(s=!0),this[n(280)](e)&&(s=!0),s}),this[t(297)](o[t(253)],t(231),()=>{const e=t;o[e(292)]({isUndoable:!1},t=>{this[e(286)](t)})},{priority:t(271)}),this[t(297)](n,t(243),()=>{const e=t;this[e(284)]=[],this[e(256)][e(289)](),this[e(285)][e(289)](),this[e(225)][e(289)]()},{priority:t(233)})}[f(234)](){return this[f(290)]}[f(224)](t){const e=f;return this[e(284)][e(267)](e=>e.id===t)||null}[f(293)](){const t=f;return Array[t(258)](this[t(284)])}[f(278)](){return this[f(251)]}[f(241)](t){this[f(251)]=t}[f(219)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(284)][o(268)];i++)this[o(215)](t,i)&&(n=!0);return n}[f(205)](t,e){const o=f,n=t[o(304)](o(210),{});return t[o(298)](n,e),this[o(290)]=n,n}[f(286)](t){const e=f;if(!this[e(284)][e(268)]||this[e(290)])return;const o=this[e(284)][0][e(277)][e(288)],n=this[e(205)](t,o);for(const o of this[e(284)])o[e(228)][e(265)]||t[e(299)](o[e(228)],n,e(302));this[e(219)](t)}[f(230)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(256)][o(274)](e);if(r[o(268)]&&(this[o(290)]=r[0]),i[o(268)])if(i[o(268)]>1||this[o(290)]&&i[o(270)](t=>t!==this[o(290)])){const e=t[o(304)](o(210),{}),s=[];this[o(290)]&&s[o(236)](this[o(290)]),s[o(236)](...i),t[o(299)](e,s[0],o(223));for(const n of s)t[o(266)](t[o(248)](n),t[o(226)](e,o(302))),t[o(202)](n);this[o(290)]=e,this[o(219)](t),n=!0}else this[o(290)]=i[0];if(s[o(268)]&&o(220)===this[o(290)]?.[o(288)][o(305)]){for(const e of this[o(284)])t[o(202)](e[o(277)]),n=!0;this[o(284)]=[],this[o(290)]=null}return n}[f(255)](t,e){const o=f;let n=!1;const i=this[o(218)][o(269)][o(282)](o(238)),{inserted:s,moved:r}=this[o(225)][o(274)](e);for(const e of[...r,...s]){const s=e[o(237)](o(214)),r=this[o(224)](s);r&&(r[o(228)]=e),p(t,i,e)&&(n=!0)}return n}[f(235)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(285)][o(274)](e);for(const e of i)this[o(203)](t,e)&&(n=!0);for(const e of s)this[o(227)](t,e)&&(n=!0);for(const e of r)this[o(208)](t,e)&&(n=!0);return n}[f(276)](t){const e=f;if(!this[e(290)])return!1;let o=!1;if(this[e(290)][e(300)]!==this[e(284)][e(268)]){const n=[];for(const t of this[e(290)][e(296)]()){const i=t[e(237)](e(214));this[e(224)](i)||(n[e(211)](t),o=!0)}for(const o of n)t[e(202)](o)}const n=new Set,i=[];for(const t of this[e(290)][e(296)]()){const s=t[e(237)](e(214));n[e(250)](s)?(i[e(211)](t),o=!0):n[e(262)](s)}for(const o of i)t[e(202)](o);return this[e(290)][e(300)]||(t[e(202)](this[e(290)]),this[e(290)]=null,o=!0),o}[f(227)](t,e){const o=f;if(this[o(284)][o(267)](t=>t[o(277)]===e))return!1;let n=!1;const i=e[o(237)](o(214)),s=this[o(284)][o(257)](t=>t.id===i);-1!==s&&(t[o(202)](this[o(284)][s][o(277)]),this[o(284)][o(221)](s,1),n=!0);let r=this[o(290)]?function(t,e){const n=o;for(const o of t[n(296)]())if(o[n(237)](n(214))===e)return o;return null}(this[o(290)],i):null;r||(r=t[o(304)](o(209),{footnoteId:i}),this[o(290)]&&(t[o(299)](r,this[o(290)],o(302)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(218)][o(259)],this[o(284)],e);this[o(284)][o(221)](c,0,a);let l=c;return-1!==s&&(l=Math[o(207)](c,s)),this[o(219)](t,l)&&(n=!0),n}[f(203)](t,e){const o=f,n=this[o(284)][o(257)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(284)][n];return o(220)!==s[o(228)][o(288)][o(305)]&&(t[o(202)](s[o(228)]),i=!0),this[o(284)][o(221)](n,1),this[o(219)](t,n)&&(i=!0),i}[f(208)](t,e){const o=f,n=e[o(237)](o(214)),i=this[o(284)][o(257)](t=>t.id===n),s=this[o(284)][i];let r=!1;s[o(277)]=e,this[o(284)][o(221)](i,1);const a=m(this[o(218)][o(259)],this[o(284)],e);return this[o(284)][o(221)](a,0,s),this[o(219)](t,Math[o(207)](i,a))&&(r=!0),r}[f(215)](t,e){const o=f;if(!this[o(290)])return!1;const n=this[o(284)][e];let i;return i=this[o(251)]?this[o(251)]({footnote:n,container:this[o(290)],digits:String(this[o(284)][o(268)])[o(268)],value:e+1}):String(e+1),n[o(277)][o(237)](o(244))!=i&&(t[o(279)](o(244),i,n[o(277)]),!0)}[f(280)](t){const e=f;if(!this[e(290)]||this[e(284)][e(268)]<2)return!1;if(function(t,o){const n=e;if(t[n(268)]!==o[n(268)])return!1;for(let e=0;e<t[n(268)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(284)][e(232)](t=>t.id),Array[e(258)](this[e(290)][e(296)]())[e(232)](t=>t[e(237)](e(214)))))return!1;let o=!1;for(let n=0;n<this[e(284)][e(268)];n++){const i=this[e(284)][n],s=t[e(254)](i[e(228)]),r=t[e(226)](this[e(290)],n);s[e(212)](r)||(t[e(266)](t[e(275)](i[e(228)]),r),o=!0)}return o}[f(206)](t){const e=f;if(!this[e(284)][e(268)])return!1;const{model:o}=this[e(218)];let n=!1;for(let i=0;i<this[e(284)][e(268)]-1;i++){const s=this[e(284)][i],r=this[e(284)][i+1],a=o[e(254)](s[e(277)]),c=o[e(254)](r[e(277)]);e(264)===a[e(287)](c)&&(this[e(208)](t,s[e(277)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(300)])return!1;const i=n(e?217:301);return t[n(299)](t[n(304)](i),o),!0}function h(){const t=["getFootnotes","3774710gzlMVX","pluginName","getChildren","listenTo","append","insert","childCount","footnoteInlineContent","end","164cfgktW","createElement","rootName","remove","_handleRemoveFootnoteReferenceById","footnoteRef","_insertEmptyFootnotesDefinitionsContainer","_ensureFootnotesReferencesHaveProperOrder","min","_handleMovedFootnoteReference","footnoteDefinition","footnotesDefinitions","unshift","isEqual","94uyKjQG","footnoteId","_updateFootnoteRefCounter","626374itavFC","paragraph","editor","_updateFootnotesCounters","$graveyard","splice","26463oYFUDB","before","getFootnote","_footnoteDefsTracker","createPositionAt","_handleInsertedFootnoteReference","definition","getRootNames","_handleFootnotesDefinitionsObjectChanges","change:data","map","high","getFootnotesDefinitionsObjectElement","_handleFootnoteReferencesChanges","push","getAttribute","footnotes.multiBlock","689uHUukK","registerPostFixer","setFootnoteFormatter","1423881XfbiLy","set","footnoteCounter","singleton","differ","12339lesrWI","createRangeIn","indexOf","has","_footnoteFormatter","830IeWLlX","document","createPositionBefore","_handleFootnoteDefinitionsChanges","_footnoteDefsContainerTracker","findIndex","from","model","FootnotesTracker","40TvqjZr","add","109884UYOHdr","after","parent","move","find","length","config","some","low","isOfficialPlugin","60vzMuKG","getChanges","createRangeOn","_handleFootnotesDefinitionsObjectSync","reference","getFootnotesFormatter","setAttribute","_sortFootnoteDefinitions","isPremiumPlugin","get","84326qZciUq","_footnotes","_footnoteRefsTracker","_ensureFootnotesDefinitionsContainerExists","compareWith","root","reset","_footnotesDefinitions","init","enqueueChange"];return(h=function(){return t})()}function m(t,e,o){const n=f;if(0===e[n(268)])return 0;const i=t[n(254)](o);for(let o=0;o<e[n(268)];o++){const s=e[o],r=t[n(254)](s[n(277)]);if(n(223)===i[n(287)](r))return o}const s=o[n(288)];let r=-1;for(let t=e[n(268)]-1;t>=0;t--)if(e[t][n(277)][n(288)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(253)][n(229)](),c=a[n(249)](s[n(305)]),l=a[c+1];if(l)for(let t=0;t<e[n(268)];t++)if(e[t][n(277)][n(288)][n(305)]===l)return t;return e[n(268)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=460]})(t,e)}function y(){const t=["insert-footnote-command-executed-with-invalid-id","525BXpYpj","footnoteId","get","isBlock","260YxjvOQ","editor","checkChild","footnoteRef","change","test","954CuIFqB","isObject","1494AZRJpQ","string","model","getFirstRange","refresh","end","185064pbjppN","_getPositionToInsertFootnote","_moveSelectionToFootnoteDefinition","11372ijnHau","document","insertObject","FootnotesEditing","2888394NCOjvs","getItems","31472vBhPyU","selection","length","createElement","execute","plugins","1767300xOAsBs","isEnabled","857bUSnXn","4602703ZTUhEU"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(366516===-parseInt(e(471))/1*(parseInt(e(486))/2)+-parseInt(e(474))/3*(-parseInt(e(495))/4)+parseInt(e(469))/5+-parseInt(e(461))/6+parseInt(e(472))/7+-parseInt(e(463))/8*(-parseInt(e(484))/9)+-parseInt(e(478))/10*(parseInt(e(492))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(490)](){const t=g,e=this[t(479)][t(488)][t(496)][t(464)],o=this[t(493)](e);this[t(470)]=!!o}[g(467)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(496)],r=this[e(493)](s);if(!r)return;const a=o[e(468)][e(476)](e(460)),c=t?.[e(475)]??(0,i.uid)();!function(t){const o=e;return o(487)==typeof t&&t[o(465)]>0&&!/\s/[o(483)](t)&&!/^\d/[o(483)](t)}(c)?(0,i.logWarning)(e(473)):(n[e(482)](t=>{const o=e,i=t[o(466)](o(481),{footnoteId:c});n[o(497)](i,r,null)}),a[e(494)](c))}[g(493)](t){const e=g,{model:o}=this[e(479)],{schema:n}=o,i=t[e(489)]();for(const t of i[e(462)]())if(n[e(477)](t)||n[e(485)](t))return null;const s=i[e(491)];return n[e(480)](s,e(481))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new 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++,1512==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1766275200;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const A=D;function T(){const t=["getAttribute","cloneElement","toView","780536KhaWBB","createRangeIn","parse","footnoteId","config","toData","getRanges","1536euDytP","length","3810JzqzVV","get","outputTransformation","method","getFootnote","45HKgQIX","remove","footnotes.multiBlock","11QzOiRp","8198500nJeiOI","init","stringify","_handleCopyFootnotesDefinitions","54460cXyHBg","dataTransfer","selection","getChildren","_handlePasteFootnotesDefinitions","insert","document","clipboardInput","definition","isPremiumPlugin","listenTo","contentInsertion","footnoteDefinition","reduce","pluginName","editor","getFirstRange","element","requires","end","create","245401gWjAze","from","setAttribute","FootnotesClipboard","push","entries","getData","toModel","sourceEditorId","flatMap","_defineClipboardIntegration","footnotesDefinitions","footnoteRef","createElement","application/ckeditor5-footnotes","includes","find","setData","274OFdyMY","htmlProcessor","getFootnotesDefinitionsObjectElement","data","footnoteInlineContent","397064DnbXcN","change","drop","content","getSelectedBlocks","isOfficialPlugin","string","9735WdlDri","64JYjmqO","getFootnotes","_insertEmptyFootnotesDefinitionsContainer","root","append","hasAttribute","5579UhFDBH","keys","add","editing"];return(T=function(){return t})()}function D(t,e){const o=T();return(D=function(t,e){return o[t-=329]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(454963===-parseInt(e(352))/1+-parseInt(e(413))/2*(parseInt(e(338))/3)+parseInt(e(339))/4*(-parseInt(e(374))/5)+parseInt(e(361))/6*(parseInt(e(345))/7)+-parseInt(e(331))/8*(parseInt(e(366))/9)+parseInt(e(370))/10*(-parseInt(e(369))/11)+parseInt(e(359))/12*(parseInt(e(395))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class _ extends t.Plugin{static get[A(388)](){return A(398)}static get[A(392)](){return[v,P.ClipboardPipeline]}static get[A(336)](){return!0}static get[A(383)](){return!0}[A(371)](){this[A(405)]()}[A(405)](){const t=A;this[t(373)](),this[t(378)]()}[A(373)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(362)](P.ClipboardPipeline),s=o[t(362)](d);this[t(384)](i,t(363),(o,i)=>{const r=t,a=O(n[r(353)](i[r(334)]));if(!a[r(360)])return;const c=s[r(340)](),l=a[r(387)]((t,o)=>{const n=r,i=c[n(411)](t=>t.id===o);if(i){const o=e[n(329)][n(351)](i[n(382)],{isClipboardPipeline:!0}),s=e[n(329)][n(414)][n(357)](o);t[i.id]=s}return t},Object[r(394)](null));i[r(375)][r(412)](r(409),JSON[r(372)](l))})}[A(378)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(348)],r=n[t(362)](P.ClipboardPipeline),a=n[t(362)](d),c=e[t(356)][t(362)](t(368));let l=null;this[t(384)](s[t(380)],t(381),(e,o)=>{const n=t,i=o[n(375)][n(401)](n(409));l=i?JSON[n(354)](i):null}),this[t(384)](r,t(385),(n,s)=>{const r=t,u=s[r(403)]===this[r(389)].id;u&&r(333)===s[r(364)]||o[r(332)](t=>{const n=r;let f=a[n(415)]();const d=!!f&&Array[n(396)](o[n(380)][n(376)][n(335)]())[n(410)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(391),e(407)))return!0;return!1}(o[n(353)](s[n(334)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(394)](null);for(const e of i[o(377)]())e.is(o(391),o(386))&&e[o(344)](o(355))&&(s[e[o(349)](o(355))]=t[o(350)](e,!0));return Object[o(346)](s)[o(360)]?s:null}(t,s[n(334)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(353)](e))n.is(o(391),o(406))&&i[o(399)](n);for(const e of i)t[o(367)](e)}(t,s[n(334)]),!l)return;const{selection:p}=o[n(380)],h=p[n(390)]()[n(342)];f&&!d||(f=L(t,s[n(334)]),f||=a[n(341)](t,h));const m=Array[n(396)](p[n(358)]())[n(404)](O),g=function(t,e,o){const s=n,r=Object[s(394)](null);for(const{item:n}of t[s(353)](e))if(n.is(s(391),s(407))){const e=n[s(349)](s(355));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(397)](s(355),r[e],n)}return r}(t,s[n(334)],t=>{const e=n;return!u||!!a[e(365)](t)&&!m[e(410)](t)});for(const[o,i]of Object[n(400)](l)){const s=g[o]||o;let r;if(n(337)!=typeof i)r=i,s!==o&&t[n(397)](n(355),s,r);else{r=t[n(408)](n(386),{footnoteId:s});const o=e[n(329)][n(414)][n(351)](i);let a;if(c)a=e[n(329)][n(402)](o,r);else{a=t[n(408)](n(330));const i=e[n(329)][n(402)](o,a);t[n(379)](i,a)}t[n(343)](a,r)}t[n(379)](r,f,n(393))}l=null})})}}function L(t,e){const o=A;for(const{item:n}of t[o(353)](e))if(n.is(o(391),o(406)))return n;return null}function O(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(391),e(407))&&o[e(347)](n[e(349)](e(355)));return Array[e(396)](o)}var V=o(311),N=o(355),R=o(929),K=o.n(R),j=o(297),M=o.n(j),B=o(102),z=o.n(B),U=o(123),W=o.n(U),H=o(741),q=o.n(H),X=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=W(),G.insert=z().bind(null,"head"),G.domAPI=M(),G.insertStyleElement=q();K()(X.A,G);X.A&&X.A.locals&&X.A.locals;class J 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",Y(t,V.ButtonView)),e.add("menuBar:insertFootnote",Y(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Y(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Z=$;function Q(){var t=["Footnotes","17541OVSQXy","106KdwgPR","isPremiumPlugin","1788024WDrNGm","isOfficialPlugin","3347364wdrURy","1397018BtaOiW","12KEKTNi","18hmyaql","4082793OjTGCc","7060330HAdxXh","8176780bsOQuG","pluginName","requires"];return(Q=function(){return t})()}function $(t,e){var o=Q();return($=function(t,e){return o[t-=194]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(868738===parseInt(e(206))/1*(-parseInt(e(207))/2)+parseInt(e(200))/3+parseInt(e(196))/4+parseInt(e(202))/5+parseInt(e(198))/6*(-parseInt(e(197))/7)+-parseInt(e(194))/8+parseInt(e(199))/9*(-parseInt(e(201))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Q);class tt extends t.Plugin{static get[Z(203)](){return Z(205)}static get[Z(204)](){return[v,_,J]}static get[Z(195)](){return!0}static get[Z(208)](){return!0}}function et(){const t=["11xoNVrb","decimal-leading-zero","49mwJHza","upper-latin","101636EpSbbm","lower-alpha","lower-latin","decimal","335078MCIzDu","lower-roman","211494YsTyiP","upper-alpha","673146AGfBUq","2358WRfyXf","16312NWYPVH","upper-roman","8195290MMTbbZ","1136050ekQSOr","6MIbKBD"];return(et=function(){return t})()}const ot=nt;function nt(t,e){const o=et();return(nt=function(t,e){return o[t-=157]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(447087===-parseInt(e(161))/1+parseInt(e(163))/2+-parseInt(e(171))/3*(parseInt(e(157))/4)+parseInt(e(170))/5+parseInt(e(165))/6*(parseInt(e(174))/7)+-parseInt(e(167))/8*(-parseInt(e(166))/9)+-parseInt(e(169))/10*(parseInt(e(172))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(et);const it=[ot(160),ot(173),ot(159),ot(175),ot(158),ot(164),ot(162),ot(168)],st=rt;function rt(t,e){const o=at();return(rt=function(t,e){return o[t-=267]})(t,e)}function at(){const t=["51261TqCAEh","getFootnotesDefinitionsObjectElement","4fBnzbb","includes","_updateFootnotesCounters","1733eudsAV","refresh","change","plugins","421195rgkfFz","getAttribute","80aVwdfV","isEnabled","1135080dycJGF","8469350XKVzJS","358UlbUqw","execute","model","setAttribute","1154427zqwVET","3528114rqgdKs","footnotesListStyle","get","value"];return(at=function(){return t})()}!function(t){const e=rt,o=t();for(;;)try{if(299425===parseInt(e(271))/1*(parseInt(e(281))/2)+-parseInt(e(285))/3+parseInt(e(268))/4*(-parseInt(e(275))/5)+-parseInt(e(286))/6+-parseInt(e(290))/7*(-parseInt(e(277))/8)+parseInt(e(279))/9+parseInt(e(280))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[st(272)](){const t=st,{editor:e}=this,o=e[t(274)][t(288)](d)[t(267)]();this[t(278)]=!!o,this[t(289)]=o?.[t(276)](t(287))??null}[st(282)]({value:t}){const e=st,{editor:o}=this,n=o[e(274)][e(288)](d),i=n[e(267)]();i&&it[e(269)](t)&&o[e(283)][e(273)](o=>{const s=e;o[s(284)](s(287),t,i),n[s(270)](o)})}}const lt=ut;function ut(t,e){const o=ft();return(ut=function(t,e){return o[t-=199]})(t,e)}function ft(){const t=["getAttribute","value","56VehpEZ","refresh","plugins","33901aUKveW","276465jppDiv","_updateFootnotesCounters","4IBcvQO","getFootnotesDefinitionsObjectElement","isEnabled","footnotesListStart","348399YtBviA","setAttribute","433378ilOyju","1208705ZZJXrY","get","17230xgOHAX","isInteger","99502pelpLR","execute","change","354csMeJN","model"];return(ft=function(){return t})()}!function(t){const e=ut,o=t();for(;;)try{if(150122===parseInt(e(219))/1+parseInt(e(214))/2+parseInt(e(206))/3+-parseInt(e(208))/4*(parseInt(e(215))/5)+-parseInt(e(222))/6*(parseInt(e(205))/7)+parseInt(e(202))/8*(parseInt(e(212))/9)+-parseInt(e(217))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[lt(203)](){const t=lt,{editor:e}=this,o=e[t(204)][t(216)](d)[t(209)]();this[t(210)]=!!o,this[t(201)]=o?.[t(200)](t(211))??null}[lt(220)]({value:t}){const e=lt,{editor:o}=this,n=o[e(204)][e(216)](d),i=n[e(209)]();i&&Number[e(218)](t)&&o[e(199)][e(221)](o=>{const s=e;o[s(213)](s(211),t,i),n[s(207)](o)})}}const pt=ht;function ht(t,e){const o=mt();return(ht=function(t,e){return o[t-=462]})(t,e)}function mt(){const t=["footnotes.footnotesProperties.defaultStartIndex","getChanges","upper-alpha","element:ol","12fSPjuD","hasAttribute","getChildren","createRangeOn","setStyle","isNaN","38qAQytx","parent","extend","plugins","find","getItems","downcast","getStyle","26479WqXukL","insert","init","hasClass","_formatFootnoteListValue","removeStyle","footnotes-list","mapper","registerPostFixer","_defineSchema","setFootnoteFormatter","isPremiumPlugin","item","lower-alpha","document","attribute:footnotesListStyle:footnotesDefinitions","footnotesListStart","for","writer","upper-latin","attribute:footnotesListStart:footnotesDefinitions","toViewElement","type","define","18216330ifoWSf","_getDefaultListStyle","footnotesStart","_updateFootnotesCounters","modelCursor","toLowerCase","decimal","16bZlRgh","consumable","removeAttribute","upcast","upper-roman","_defineFormatter","footnotes.footnotesProperties.defaultListStyle","161080zYOGtf","add","FootnotesPropertiesEditing","setAttribute","element","getAttribute","list-style-type","viewItem","63rUAnog","commands","652596jmtDGw","1840560cuRmwl","lower-roman","from","_getDefaultStartIndex","model","parseInt","2082mDHlSA","start","position","isOfficialPlugin","lower-latin","432141eUfzlu","padStart","requires","decimal-leading-zero","fromCharCode","floor","footnotesStyle","consume","editor","pluginName","config","schema","toUpperCase","get","footnotesListStyle","_defineConverters","differ","_definePostfixer","max","$text","checkAttribute","nodeAfter","3675dPMNEN","name","footnotesDefinitions"];return(mt=function(){return t})()}!function(t){const e=ht,o=t();for(;;)try{if(371813===-parseInt(e(481))/1*(parseInt(e(473))/2)+-parseInt(e(541))/3*(parseInt(e(512))/4)+parseInt(e(563))/5*(-parseInt(e(536))/6)+parseInt(e(529))/7+parseInt(e(519))/8*(parseInt(e(527))/9)+-parseInt(e(530))/10+-parseInt(e(505))/11*(-parseInt(e(467))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(mt);class gt extends t.Plugin{static get[pt(550)](){return pt(521)}static get[pt(543)](){return[v,d]}static get[pt(539)](){return!0}static get[pt(492)](){return!0}[pt(483)](){const t=pt,{editor:e}=this;e[t(551)][t(504)](t(518),t(511)),e[t(551)][t(504)](t(463),1),e[t(528)][t(520)](t(547),new ct(e)),e[t(528)][t(520)](t(507),new dt(e)),this[t(490)](),this[t(556)](),this[t(517)](),this[t(558)]()}[pt(490)](){const t=pt,{editor:e}=this,{schema:o}=e[t(534)];o[t(475)](t(462),{allowAttributes:[t(555),t(497)]})}[pt(556)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(498)](t(515))[t(520)](e=>{const o=t;e.on(o(466),(t,e,n)=>{const s=o,r=e[s(526)],a=e[s(509)]?.[s(474)];r[s(484)](s(487))&&a?.is(s(523),s(462))&&(function(t,e,o,n){const i=s;if(!n[i(561)](e,i(497)))return;let r=1;const a=o[i(513)][i(548)](t,{attributes:i(537)});if(a){const e=Number[i(535)](t[i(524)](i(537)),10);Number[i(472)](e)||(r=e)}!a&&e[i(468)](i(497))||o[i(499)][i(522)](i(497),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(561)](e,i(555)))return;let r=i(511),a=!1;if(o[i(513)][i(548)](t,{attributes:i(503)})){const e={1:i(511),a:i(494),A:i(465),i:i(531),I:i(516)}[t[i(524)](i(503))];e&&(r=e),a=!0}o[i(513)][i(548)](t,{styles:i(525)})&&(r=function(t){const e=i;switch(t){case e(494):return e(540);case e(465):return e(500);default:return t}}(t[i(480)](i(525))),a=!0),!a&&e[i(468)](i(555))||o[i(499)][i(522)](i(555),r,e)}(r,a,n,i))})}),o[t(498)](t(479))[t(520)](e=>{const o=t;e.on(o(501),(t,e,n)=>{const i=o;if(!n[i(513)][i(548)](e[i(493)],t[i(564)]))return;const s=wt(e[i(493)],n[i(488)]),{attributeNewValue:r}=e;null==r||1===r?n[i(499)][i(514)](i(537),s):n[i(499)][i(522)](i(537),String(r),s)}),e.on(o(496),(t,e,n)=>{const i=o;if(!n[i(513)][i(548)](e[i(493)],t[i(564)]))return;const s=wt(e[i(493)],n[i(488)]),{attributeNewValue:r}=e;r&&i(511)!==r?n[i(499)][i(471)](i(525),r,s):n[i(499)][i(486)](i(525),s)})})}[pt(558)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(476)][t(554)](d),i=this[t(506)](),s=this[t(533)]();o[t(495)][t(489)](e=>{const r=t,a=o[r(495)][r(557)][r(464)]();let c=!1;for(const t of a){if(r(482)!==t[r(503)]||r(560)===t[r(564)])continue;const n=o[r(470)](t[r(538)][r(562)]);for(const t of n[r(478)]())t.is(r(523),r(462))&&(!t[r(468)](r(497))&&o[r(552)][r(561)](t,r(497))&&(e[r(522)](r(497),s,t),c=!0),!t[r(468)](r(555))&&o[r(552)][r(561)](t,r(555))&&(e[r(522)](r(555),i,t),c=!0))}return c&&n[r(508)](e),c})}[pt(517)](){const t=pt,{editor:e}=this;e[t(476)][t(554)](d)[t(491)](e=>this[t(485)](e))}[pt(506)](){const t=pt;return this[t(549)][t(551)][t(554)](t(518))}[pt(533)](){const t=pt;return this[t(549)][t(551)][t(554)](t(463))}[pt(485)]({container:t,value:e,digits:o}){const n=pt,i=t[n(524)](n(555)),s=t[n(524)](n(497)),r=Math[n(546)](e)+(s??1)-1;switch(i){case n(544):return function(t,e){const o=n;return String(t)[o(542)](e,"0")}(r,Math[n(559)](2,o));case n(494):case n(540):return yt(r,!1);case n(465):case n(500):return yt(r,!0);case n(531):return vt(r,!1);case n(516):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=pt,n=e[o(502)](t);return Array[o(532)](n[o(469)]())[o(477)](t=>t.is(o(523),"ol")&&t[o(484)](o(487)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(545)](97+t)+n,i=Math[o(546)]((i-1)/26)}return e?n[o(553)]():n}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function vt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(510)]()}class It extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=z().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=158]})(t,e)}function St(){var t=["286390GAEWUw","211348Bcphua","4cMjZVw","isOfficialPlugin","503634JrMnYf","requires","1706928zOxkJx","isPremiumPlugin","126133OZXJRw","197097GoLMTi","pluginName","3791568fJVWpH","FootnotesProperties"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(190311===-parseInt(e(166))/1+-parseInt(e(169))/2+parseInt(e(161))/3*(-parseInt(e(167))/4)+-parseInt(e(165))/5+parseInt(e(158))/6+parseInt(e(160))/7+parseInt(e(163))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Pt extends t.Plugin{static get[xt(162)](){return xt(164)}static get[xt(170)](){return[gt,Ft]}static get[xt(168)](){return!0}static get[xt(159)](){return!0}}function At(t,e){var o=Tt();return(At=function(t,e){return o[t-=176]})(t,e)}function Tt(){var t=["3bFWfvK","12086808YzoNwN","2359388imGraz","423035dZmXHN","10004643mPwhSH","654970XbdWrN","1200318XGOPln","8564066NCYNiX","102rLTuYQ"];return(Tt=function(){return t})()}!function(t){for(var e=At,o=t();;)try{if(943331===-parseInt(e(178))/1+-parseInt(e(177))/2*(parseInt(e(181))/3)+-parseInt(e(183))/4+-parseInt(e(184))/5*(-parseInt(e(180))/6)+parseInt(e(179))/7+parseInt(e(182))/8+-parseInt(e(176))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
5
|
+
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>J,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=c();return(r=function(t,e){return o[t-=213]})(t,e)}const a=r;function c(){const t=["_getElementKey","add","position","type","3310aDcrEO","_elementName","clear","root","843125kdTDYx","element","length","flat","remove","createRangeOn","15pDgPtr","473672ZZSPbM","$text","126313eISESR","reset","rootName","slice","6KhRgak","elementName","name","set","get","has","4632qlzGCc","1490420GfpZEC","insert","attributes","nodeAfter","getItems","getElementKey","1567476wDXqOK","9611uLPKbQ","getChanges","3981912eLgGWr","push","_model","_trackedElements","values","$graveyard","delete","from"];return(c=function(){return t})()}!function(t){const e=r,o=t();for(;;)try{if(581746===-parseInt(e(224))/1+parseInt(e(231))/2*(parseInt(e(237))/3)+parseInt(e(244))/4*(-parseInt(e(230))/5)+parseInt(e(243))/6*(-parseInt(e(251))/7)+-parseInt(e(253))/8+-parseInt(e(250))/9+parseInt(e(220))/10*(parseInt(e(233))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[a(255)];[a(221)];[a(216)];[a(256)]=new Map;constructor(t,e){const o=a;this[o(255)]=t,this[o(221)]=e[o(238)],this[o(216)]=e[o(249)]}[a(234)](){const t=a;this[t(256)][t(222)]()}[a(252)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(245)===i[e(219)]&&e(232)!==i[e(239)]&&i[e(218)][e(247)]){const t=this[e(255)][e(229)](i[e(218)][e(247)]);for(const o of t[e(248)]()){if(!o.is(e(225),this[e(221)]))continue;const t=this[e(216)](o);n[e(242)](t)||n[e(240)](t,[]),n[e(241)](t)[e(254)](o)}}if(e(228)===i[e(219)]&&i[e(239)]===this[e(221)]){const t=this[e(216)]({getAttribute:t=>i[e(246)][e(241)](t)});o[e(217)](t)}}for(const[t,n]of this[e(256)])e(213)===n[e(223)][e(235)]&&o[e(217)](t);for(const t of o)this[e(256)][e(214)](t);for(const[t,o]of n)this[e(256)][e(240)](t,o[o[e(226)]-1]);const i=new Set;for(const[t,s]of n)o[e(242)](t)&&(i[e(217)](s[0]),s[e(226)]>1?n[e(240)](t,s[e(236)](1)):n[e(214)](t),o[e(214)](t));return{removed:Array[e(215)](o),inserted:Array[e(215)](n[e(257)]())[e(227)](),moved:Array[e(215)](i)}}}function u(t,e){const o=h();return(u=function(t,e){return o[t-=202]})(t,e)}const f=u;!function(t){const e=u,o=t();for(;;)try{if(481154===parseInt(e(247))/1*(parseInt(e(213))/2)+parseInt(e(222))/3*(-parseInt(e(303))/4)+-parseInt(e(294))/5+parseInt(e(273))/6*(-parseInt(e(216))/7)+-parseInt(e(261))/8*(-parseInt(e(242))/9)+parseInt(e(252))/10*(parseInt(e(283))/11)+parseInt(e(263))/12*(parseInt(e(239))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class d extends t.Plugin{[f(284)]=[];[f(290)]=null;[f(251)]=null;[f(256)];[f(285)];[f(225)];static get[f(295)](){return f(260)}static get[f(272)](){return!0}static get[f(281)](){return!0}constructor(t){const e=f;super(t),this[e(256)]=new l(this[e(218)][e(259)],{elementName:e(210),getElementKey:()=>e(245)}),this[e(285)]=new l(this[e(218)][e(259)],{elementName:e(204),getElementKey:t=>t[e(237)](e(214))}),this[e(225)]=new l(this[e(218)][e(259)],{elementName:e(209),getElementKey:t=>t[e(237)](e(214))})}[f(291)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(253)][t(240)](e=>{const n=t,i=o[n(253)][n(246)][n(274)]();let s=!1;return this[n(230)](e,i)&&(s=!0),this[n(255)](e,i)&&(s=!0),this[n(235)](e,i)&&(s=!0),this[n(206)](e)&&(s=!0),this[n(276)](e)&&(s=!0),this[n(280)](e)&&(s=!0),s}),this[t(297)](o[t(253)],t(231),()=>{const e=t;o[e(292)]({isUndoable:!1},t=>{this[e(286)](t)})},{priority:t(271)}),this[t(297)](n,t(243),()=>{const e=t;this[e(284)]=[],this[e(256)][e(289)](),this[e(285)][e(289)](),this[e(225)][e(289)]()},{priority:t(233)})}[f(234)](){return this[f(290)]}[f(224)](t){const e=f;return this[e(284)][e(267)](e=>e.id===t)||null}[f(293)](){const t=f;return Array[t(258)](this[t(284)])}[f(278)](){return this[f(251)]}[f(241)](t){this[f(251)]=t}[f(219)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(284)][o(268)];i++)this[o(215)](t,i)&&(n=!0);return n}[f(205)](t,e){const o=f,n=t[o(304)](o(210),{});return t[o(298)](n,e),this[o(290)]=n,n}[f(286)](t){const e=f;if(!this[e(284)][e(268)]||this[e(290)])return;const o=this[e(284)][0][e(277)][e(288)],n=this[e(205)](t,o);for(const o of this[e(284)])o[e(228)][e(265)]||t[e(299)](o[e(228)],n,e(302));this[e(219)](t)}[f(230)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(256)][o(274)](e);if(r[o(268)]&&(this[o(290)]=r[0]),i[o(268)])if(i[o(268)]>1||this[o(290)]&&i[o(270)](t=>t!==this[o(290)])){const e=t[o(304)](o(210),{}),s=[];this[o(290)]&&s[o(236)](this[o(290)]),s[o(236)](...i),t[o(299)](e,s[0],o(223));for(const n of s)t[o(266)](t[o(248)](n),t[o(226)](e,o(302))),t[o(202)](n);this[o(290)]=e,this[o(219)](t),n=!0}else this[o(290)]=i[0];if(s[o(268)]&&o(220)===this[o(290)]?.[o(288)][o(305)]){for(const e of this[o(284)])t[o(202)](e[o(277)]),n=!0;this[o(284)]=[],this[o(290)]=null}return n}[f(255)](t,e){const o=f;let n=!1;const i=this[o(218)][o(269)][o(282)](o(238)),{inserted:s,moved:r}=this[o(225)][o(274)](e);for(const e of[...r,...s]){const s=e[o(237)](o(214)),r=this[o(224)](s);r&&(r[o(228)]=e),p(t,i,e)&&(n=!0)}return n}[f(235)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(285)][o(274)](e);for(const e of i)this[o(203)](t,e)&&(n=!0);for(const e of s)this[o(227)](t,e)&&(n=!0);for(const e of r)this[o(208)](t,e)&&(n=!0);return n}[f(276)](t){const e=f;if(!this[e(290)])return!1;let o=!1;if(this[e(290)][e(300)]!==this[e(284)][e(268)]){const n=[];for(const t of this[e(290)][e(296)]()){const i=t[e(237)](e(214));this[e(224)](i)||(n[e(211)](t),o=!0)}for(const o of n)t[e(202)](o)}const n=new Set,i=[];for(const t of this[e(290)][e(296)]()){const s=t[e(237)](e(214));n[e(250)](s)?(i[e(211)](t),o=!0):n[e(262)](s)}for(const o of i)t[e(202)](o);return this[e(290)][e(300)]||(t[e(202)](this[e(290)]),this[e(290)]=null,o=!0),o}[f(227)](t,e){const o=f;if(this[o(284)][o(267)](t=>t[o(277)]===e))return!1;let n=!1;const i=e[o(237)](o(214)),s=this[o(284)][o(257)](t=>t.id===i);-1!==s&&(t[o(202)](this[o(284)][s][o(277)]),this[o(284)][o(221)](s,1),n=!0);let r=this[o(290)]?function(t,e){const n=o;for(const o of t[n(296)]())if(o[n(237)](n(214))===e)return o;return null}(this[o(290)],i):null;r||(r=t[o(304)](o(209),{footnoteId:i}),this[o(290)]&&(t[o(299)](r,this[o(290)],o(302)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(218)][o(259)],this[o(284)],e);this[o(284)][o(221)](c,0,a);let l=c;return-1!==s&&(l=Math[o(207)](c,s)),this[o(219)](t,l)&&(n=!0),n}[f(203)](t,e){const o=f,n=this[o(284)][o(257)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(284)][n];return o(220)!==s[o(228)][o(288)][o(305)]&&(t[o(202)](s[o(228)]),i=!0),this[o(284)][o(221)](n,1),this[o(219)](t,n)&&(i=!0),i}[f(208)](t,e){const o=f,n=e[o(237)](o(214)),i=this[o(284)][o(257)](t=>t.id===n),s=this[o(284)][i];let r=!1;s[o(277)]=e,this[o(284)][o(221)](i,1);const a=m(this[o(218)][o(259)],this[o(284)],e);return this[o(284)][o(221)](a,0,s),this[o(219)](t,Math[o(207)](i,a))&&(r=!0),r}[f(215)](t,e){const o=f;if(!this[o(290)])return!1;const n=this[o(284)][e];let i;return i=this[o(251)]?this[o(251)]({footnote:n,container:this[o(290)],digits:String(this[o(284)][o(268)])[o(268)],value:e+1}):String(e+1),n[o(277)][o(237)](o(244))!=i&&(t[o(279)](o(244),i,n[o(277)]),!0)}[f(280)](t){const e=f;if(!this[e(290)]||this[e(284)][e(268)]<2)return!1;if(function(t,o){const n=e;if(t[n(268)]!==o[n(268)])return!1;for(let e=0;e<t[n(268)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(284)][e(232)](t=>t.id),Array[e(258)](this[e(290)][e(296)]())[e(232)](t=>t[e(237)](e(214)))))return!1;let o=!1;for(let n=0;n<this[e(284)][e(268)];n++){const i=this[e(284)][n],s=t[e(254)](i[e(228)]),r=t[e(226)](this[e(290)],n);s[e(212)](r)||(t[e(266)](t[e(275)](i[e(228)]),r),o=!0)}return o}[f(206)](t){const e=f;if(!this[e(284)][e(268)])return!1;const{model:o}=this[e(218)];let n=!1;for(let i=0;i<this[e(284)][e(268)]-1;i++){const s=this[e(284)][i],r=this[e(284)][i+1],a=o[e(254)](s[e(277)]),c=o[e(254)](r[e(277)]);e(264)===a[e(287)](c)&&(this[e(208)](t,s[e(277)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(300)])return!1;const i=n(e?217:301);return t[n(299)](t[n(304)](i),o),!0}function h(){const t=["getFootnotes","3774710gzlMVX","pluginName","getChildren","listenTo","append","insert","childCount","footnoteInlineContent","end","164cfgktW","createElement","rootName","remove","_handleRemoveFootnoteReferenceById","footnoteRef","_insertEmptyFootnotesDefinitionsContainer","_ensureFootnotesReferencesHaveProperOrder","min","_handleMovedFootnoteReference","footnoteDefinition","footnotesDefinitions","unshift","isEqual","94uyKjQG","footnoteId","_updateFootnoteRefCounter","626374itavFC","paragraph","editor","_updateFootnotesCounters","$graveyard","splice","26463oYFUDB","before","getFootnote","_footnoteDefsTracker","createPositionAt","_handleInsertedFootnoteReference","definition","getRootNames","_handleFootnotesDefinitionsObjectChanges","change:data","map","high","getFootnotesDefinitionsObjectElement","_handleFootnoteReferencesChanges","push","getAttribute","footnotes.multiBlock","689uHUukK","registerPostFixer","setFootnoteFormatter","1423881XfbiLy","set","footnoteCounter","singleton","differ","12339lesrWI","createRangeIn","indexOf","has","_footnoteFormatter","830IeWLlX","document","createPositionBefore","_handleFootnoteDefinitionsChanges","_footnoteDefsContainerTracker","findIndex","from","model","FootnotesTracker","40TvqjZr","add","109884UYOHdr","after","parent","move","find","length","config","some","low","isOfficialPlugin","60vzMuKG","getChanges","createRangeOn","_handleFootnotesDefinitionsObjectSync","reference","getFootnotesFormatter","setAttribute","_sortFootnoteDefinitions","isPremiumPlugin","get","84326qZciUq","_footnotes","_footnoteRefsTracker","_ensureFootnotesDefinitionsContainerExists","compareWith","root","reset","_footnotesDefinitions","init","enqueueChange"];return(h=function(){return t})()}function m(t,e,o){const n=f;if(0===e[n(268)])return 0;const i=t[n(254)](o);for(let o=0;o<e[n(268)];o++){const s=e[o],r=t[n(254)](s[n(277)]);if(n(223)===i[n(287)](r))return o}const s=o[n(288)];let r=-1;for(let t=e[n(268)]-1;t>=0;t--)if(e[t][n(277)][n(288)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(253)][n(229)](),c=a[n(249)](s[n(305)]),l=a[c+1];if(l)for(let t=0;t<e[n(268)];t++)if(e[t][n(277)][n(288)][n(305)]===l)return t;return e[n(268)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=460]})(t,e)}function y(){const t=["insert-footnote-command-executed-with-invalid-id","525BXpYpj","footnoteId","get","isBlock","260YxjvOQ","editor","checkChild","footnoteRef","change","test","954CuIFqB","isObject","1494AZRJpQ","string","model","getFirstRange","refresh","end","185064pbjppN","_getPositionToInsertFootnote","_moveSelectionToFootnoteDefinition","11372ijnHau","document","insertObject","FootnotesEditing","2888394NCOjvs","getItems","31472vBhPyU","selection","length","createElement","execute","plugins","1767300xOAsBs","isEnabled","857bUSnXn","4602703ZTUhEU"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(366516===-parseInt(e(471))/1*(parseInt(e(486))/2)+-parseInt(e(474))/3*(-parseInt(e(495))/4)+parseInt(e(469))/5+-parseInt(e(461))/6+parseInt(e(472))/7+-parseInt(e(463))/8*(-parseInt(e(484))/9)+-parseInt(e(478))/10*(parseInt(e(492))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(490)](){const t=g,e=this[t(479)][t(488)][t(496)][t(464)],o=this[t(493)](e);this[t(470)]=!!o}[g(467)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(496)],r=this[e(493)](s);if(!r)return;const a=o[e(468)][e(476)](e(460)),c=t?.[e(475)]??(0,i.uid)();!function(t){const o=e;return o(487)==typeof t&&t[o(465)]>0&&!/\s/[o(483)](t)&&!/^\d/[o(483)](t)}(c)?(0,i.logWarning)(e(473)):(n[e(482)](t=>{const o=e,i=t[o(466)](o(481),{footnoteId:c});n[o(497)](i,r,null)}),a[e(494)](c))}[g(493)](t){const e=g,{model:o}=this[e(479)],{schema:n}=o,i=t[e(489)]();for(const t of i[e(462)]())if(n[e(477)](t)||n[e(485)](t))return null;const s=i[e(491)];return n[e(480)](s,e(481))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new 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++,1512==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1766361600;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const A=D;function T(){const t=["getAttribute","cloneElement","toView","780536KhaWBB","createRangeIn","parse","footnoteId","config","toData","getRanges","1536euDytP","length","3810JzqzVV","get","outputTransformation","method","getFootnote","45HKgQIX","remove","footnotes.multiBlock","11QzOiRp","8198500nJeiOI","init","stringify","_handleCopyFootnotesDefinitions","54460cXyHBg","dataTransfer","selection","getChildren","_handlePasteFootnotesDefinitions","insert","document","clipboardInput","definition","isPremiumPlugin","listenTo","contentInsertion","footnoteDefinition","reduce","pluginName","editor","getFirstRange","element","requires","end","create","245401gWjAze","from","setAttribute","FootnotesClipboard","push","entries","getData","toModel","sourceEditorId","flatMap","_defineClipboardIntegration","footnotesDefinitions","footnoteRef","createElement","application/ckeditor5-footnotes","includes","find","setData","274OFdyMY","htmlProcessor","getFootnotesDefinitionsObjectElement","data","footnoteInlineContent","397064DnbXcN","change","drop","content","getSelectedBlocks","isOfficialPlugin","string","9735WdlDri","64JYjmqO","getFootnotes","_insertEmptyFootnotesDefinitionsContainer","root","append","hasAttribute","5579UhFDBH","keys","add","editing"];return(T=function(){return t})()}function D(t,e){const o=T();return(D=function(t,e){return o[t-=329]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(454963===-parseInt(e(352))/1+-parseInt(e(413))/2*(parseInt(e(338))/3)+parseInt(e(339))/4*(-parseInt(e(374))/5)+parseInt(e(361))/6*(parseInt(e(345))/7)+-parseInt(e(331))/8*(parseInt(e(366))/9)+parseInt(e(370))/10*(-parseInt(e(369))/11)+parseInt(e(359))/12*(parseInt(e(395))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class _ extends t.Plugin{static get[A(388)](){return A(398)}static get[A(392)](){return[v,P.ClipboardPipeline]}static get[A(336)](){return!0}static get[A(383)](){return!0}[A(371)](){this[A(405)]()}[A(405)](){const t=A;this[t(373)](),this[t(378)]()}[A(373)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(362)](P.ClipboardPipeline),s=o[t(362)](d);this[t(384)](i,t(363),(o,i)=>{const r=t,a=O(n[r(353)](i[r(334)]));if(!a[r(360)])return;const c=s[r(340)](),l=a[r(387)]((t,o)=>{const n=r,i=c[n(411)](t=>t.id===o);if(i){const o=e[n(329)][n(351)](i[n(382)],{isClipboardPipeline:!0}),s=e[n(329)][n(414)][n(357)](o);t[i.id]=s}return t},Object[r(394)](null));i[r(375)][r(412)](r(409),JSON[r(372)](l))})}[A(378)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(348)],r=n[t(362)](P.ClipboardPipeline),a=n[t(362)](d),c=e[t(356)][t(362)](t(368));let l=null;this[t(384)](s[t(380)],t(381),(e,o)=>{const n=t,i=o[n(375)][n(401)](n(409));l=i?JSON[n(354)](i):null}),this[t(384)](r,t(385),(n,s)=>{const r=t,u=s[r(403)]===this[r(389)].id;u&&r(333)===s[r(364)]||o[r(332)](t=>{const n=r;let f=a[n(415)]();const d=!!f&&Array[n(396)](o[n(380)][n(376)][n(335)]())[n(410)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(391),e(407)))return!0;return!1}(o[n(353)](s[n(334)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(394)](null);for(const e of i[o(377)]())e.is(o(391),o(386))&&e[o(344)](o(355))&&(s[e[o(349)](o(355))]=t[o(350)](e,!0));return Object[o(346)](s)[o(360)]?s:null}(t,s[n(334)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(353)](e))n.is(o(391),o(406))&&i[o(399)](n);for(const e of i)t[o(367)](e)}(t,s[n(334)]),!l)return;const{selection:p}=o[n(380)],h=p[n(390)]()[n(342)];f&&!d||(f=L(t,s[n(334)]),f||=a[n(341)](t,h));const m=Array[n(396)](p[n(358)]())[n(404)](O),g=function(t,e,o){const s=n,r=Object[s(394)](null);for(const{item:n}of t[s(353)](e))if(n.is(s(391),s(407))){const e=n[s(349)](s(355));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(397)](s(355),r[e],n)}return r}(t,s[n(334)],t=>{const e=n;return!u||!!a[e(365)](t)&&!m[e(410)](t)});for(const[o,i]of Object[n(400)](l)){const s=g[o]||o;let r;if(n(337)!=typeof i)r=i,s!==o&&t[n(397)](n(355),s,r);else{r=t[n(408)](n(386),{footnoteId:s});const o=e[n(329)][n(414)][n(351)](i);let a;if(c)a=e[n(329)][n(402)](o,r);else{a=t[n(408)](n(330));const i=e[n(329)][n(402)](o,a);t[n(379)](i,a)}t[n(343)](a,r)}t[n(379)](r,f,n(393))}l=null})})}}function L(t,e){const o=A;for(const{item:n}of t[o(353)](e))if(n.is(o(391),o(406)))return n;return null}function O(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(391),e(407))&&o[e(347)](n[e(349)](e(355)));return Array[e(396)](o)}var V=o(311),N=o(355),R=o(929),K=o.n(R),j=o(297),M=o.n(j),B=o(102),z=o.n(B),U=o(123),W=o.n(U),H=o(741),q=o.n(H),X=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=W(),G.insert=z().bind(null,"head"),G.domAPI=M(),G.insertStyleElement=q();K()(X.A,G);X.A&&X.A.locals&&X.A.locals;class J 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",Y(t,V.ButtonView)),e.add("menuBar:insertFootnote",Y(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Y(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Z=$;function Q(){var t=["Footnotes","17541OVSQXy","106KdwgPR","isPremiumPlugin","1788024WDrNGm","isOfficialPlugin","3347364wdrURy","1397018BtaOiW","12KEKTNi","18hmyaql","4082793OjTGCc","7060330HAdxXh","8176780bsOQuG","pluginName","requires"];return(Q=function(){return t})()}function $(t,e){var o=Q();return($=function(t,e){return o[t-=194]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(868738===parseInt(e(206))/1*(-parseInt(e(207))/2)+parseInt(e(200))/3+parseInt(e(196))/4+parseInt(e(202))/5+parseInt(e(198))/6*(-parseInt(e(197))/7)+-parseInt(e(194))/8+parseInt(e(199))/9*(-parseInt(e(201))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Q);class tt extends t.Plugin{static get[Z(203)](){return Z(205)}static get[Z(204)](){return[v,_,J]}static get[Z(195)](){return!0}static get[Z(208)](){return!0}}function et(){const t=["11xoNVrb","decimal-leading-zero","49mwJHza","upper-latin","101636EpSbbm","lower-alpha","lower-latin","decimal","335078MCIzDu","lower-roman","211494YsTyiP","upper-alpha","673146AGfBUq","2358WRfyXf","16312NWYPVH","upper-roman","8195290MMTbbZ","1136050ekQSOr","6MIbKBD"];return(et=function(){return t})()}const ot=nt;function nt(t,e){const o=et();return(nt=function(t,e){return o[t-=157]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(447087===-parseInt(e(161))/1+parseInt(e(163))/2+-parseInt(e(171))/3*(parseInt(e(157))/4)+parseInt(e(170))/5+parseInt(e(165))/6*(parseInt(e(174))/7)+-parseInt(e(167))/8*(-parseInt(e(166))/9)+-parseInt(e(169))/10*(parseInt(e(172))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(et);const it=[ot(160),ot(173),ot(159),ot(175),ot(158),ot(164),ot(162),ot(168)],st=rt;function rt(t,e){const o=at();return(rt=function(t,e){return o[t-=267]})(t,e)}function at(){const t=["51261TqCAEh","getFootnotesDefinitionsObjectElement","4fBnzbb","includes","_updateFootnotesCounters","1733eudsAV","refresh","change","plugins","421195rgkfFz","getAttribute","80aVwdfV","isEnabled","1135080dycJGF","8469350XKVzJS","358UlbUqw","execute","model","setAttribute","1154427zqwVET","3528114rqgdKs","footnotesListStyle","get","value"];return(at=function(){return t})()}!function(t){const e=rt,o=t();for(;;)try{if(299425===parseInt(e(271))/1*(parseInt(e(281))/2)+-parseInt(e(285))/3+parseInt(e(268))/4*(-parseInt(e(275))/5)+-parseInt(e(286))/6+-parseInt(e(290))/7*(-parseInt(e(277))/8)+parseInt(e(279))/9+parseInt(e(280))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[st(272)](){const t=st,{editor:e}=this,o=e[t(274)][t(288)](d)[t(267)]();this[t(278)]=!!o,this[t(289)]=o?.[t(276)](t(287))??null}[st(282)]({value:t}){const e=st,{editor:o}=this,n=o[e(274)][e(288)](d),i=n[e(267)]();i&&it[e(269)](t)&&o[e(283)][e(273)](o=>{const s=e;o[s(284)](s(287),t,i),n[s(270)](o)})}}const lt=ut;function ut(t,e){const o=ft();return(ut=function(t,e){return o[t-=199]})(t,e)}function ft(){const t=["getAttribute","value","56VehpEZ","refresh","plugins","33901aUKveW","276465jppDiv","_updateFootnotesCounters","4IBcvQO","getFootnotesDefinitionsObjectElement","isEnabled","footnotesListStart","348399YtBviA","setAttribute","433378ilOyju","1208705ZZJXrY","get","17230xgOHAX","isInteger","99502pelpLR","execute","change","354csMeJN","model"];return(ft=function(){return t})()}!function(t){const e=ut,o=t();for(;;)try{if(150122===parseInt(e(219))/1+parseInt(e(214))/2+parseInt(e(206))/3+-parseInt(e(208))/4*(parseInt(e(215))/5)+-parseInt(e(222))/6*(parseInt(e(205))/7)+parseInt(e(202))/8*(parseInt(e(212))/9)+-parseInt(e(217))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[lt(203)](){const t=lt,{editor:e}=this,o=e[t(204)][t(216)](d)[t(209)]();this[t(210)]=!!o,this[t(201)]=o?.[t(200)](t(211))??null}[lt(220)]({value:t}){const e=lt,{editor:o}=this,n=o[e(204)][e(216)](d),i=n[e(209)]();i&&Number[e(218)](t)&&o[e(199)][e(221)](o=>{const s=e;o[s(213)](s(211),t,i),n[s(207)](o)})}}const pt=ht;function ht(t,e){const o=mt();return(ht=function(t,e){return o[t-=462]})(t,e)}function mt(){const t=["footnotes.footnotesProperties.defaultStartIndex","getChanges","upper-alpha","element:ol","12fSPjuD","hasAttribute","getChildren","createRangeOn","setStyle","isNaN","38qAQytx","parent","extend","plugins","find","getItems","downcast","getStyle","26479WqXukL","insert","init","hasClass","_formatFootnoteListValue","removeStyle","footnotes-list","mapper","registerPostFixer","_defineSchema","setFootnoteFormatter","isPremiumPlugin","item","lower-alpha","document","attribute:footnotesListStyle:footnotesDefinitions","footnotesListStart","for","writer","upper-latin","attribute:footnotesListStart:footnotesDefinitions","toViewElement","type","define","18216330ifoWSf","_getDefaultListStyle","footnotesStart","_updateFootnotesCounters","modelCursor","toLowerCase","decimal","16bZlRgh","consumable","removeAttribute","upcast","upper-roman","_defineFormatter","footnotes.footnotesProperties.defaultListStyle","161080zYOGtf","add","FootnotesPropertiesEditing","setAttribute","element","getAttribute","list-style-type","viewItem","63rUAnog","commands","652596jmtDGw","1840560cuRmwl","lower-roman","from","_getDefaultStartIndex","model","parseInt","2082mDHlSA","start","position","isOfficialPlugin","lower-latin","432141eUfzlu","padStart","requires","decimal-leading-zero","fromCharCode","floor","footnotesStyle","consume","editor","pluginName","config","schema","toUpperCase","get","footnotesListStyle","_defineConverters","differ","_definePostfixer","max","$text","checkAttribute","nodeAfter","3675dPMNEN","name","footnotesDefinitions"];return(mt=function(){return t})()}!function(t){const e=ht,o=t();for(;;)try{if(371813===-parseInt(e(481))/1*(parseInt(e(473))/2)+-parseInt(e(541))/3*(parseInt(e(512))/4)+parseInt(e(563))/5*(-parseInt(e(536))/6)+parseInt(e(529))/7+parseInt(e(519))/8*(parseInt(e(527))/9)+-parseInt(e(530))/10+-parseInt(e(505))/11*(-parseInt(e(467))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(mt);class gt extends t.Plugin{static get[pt(550)](){return pt(521)}static get[pt(543)](){return[v,d]}static get[pt(539)](){return!0}static get[pt(492)](){return!0}[pt(483)](){const t=pt,{editor:e}=this;e[t(551)][t(504)](t(518),t(511)),e[t(551)][t(504)](t(463),1),e[t(528)][t(520)](t(547),new ct(e)),e[t(528)][t(520)](t(507),new dt(e)),this[t(490)](),this[t(556)](),this[t(517)](),this[t(558)]()}[pt(490)](){const t=pt,{editor:e}=this,{schema:o}=e[t(534)];o[t(475)](t(462),{allowAttributes:[t(555),t(497)]})}[pt(556)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(498)](t(515))[t(520)](e=>{const o=t;e.on(o(466),(t,e,n)=>{const s=o,r=e[s(526)],a=e[s(509)]?.[s(474)];r[s(484)](s(487))&&a?.is(s(523),s(462))&&(function(t,e,o,n){const i=s;if(!n[i(561)](e,i(497)))return;let r=1;const a=o[i(513)][i(548)](t,{attributes:i(537)});if(a){const e=Number[i(535)](t[i(524)](i(537)),10);Number[i(472)](e)||(r=e)}!a&&e[i(468)](i(497))||o[i(499)][i(522)](i(497),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(561)](e,i(555)))return;let r=i(511),a=!1;if(o[i(513)][i(548)](t,{attributes:i(503)})){const e={1:i(511),a:i(494),A:i(465),i:i(531),I:i(516)}[t[i(524)](i(503))];e&&(r=e),a=!0}o[i(513)][i(548)](t,{styles:i(525)})&&(r=function(t){const e=i;switch(t){case e(494):return e(540);case e(465):return e(500);default:return t}}(t[i(480)](i(525))),a=!0),!a&&e[i(468)](i(555))||o[i(499)][i(522)](i(555),r,e)}(r,a,n,i))})}),o[t(498)](t(479))[t(520)](e=>{const o=t;e.on(o(501),(t,e,n)=>{const i=o;if(!n[i(513)][i(548)](e[i(493)],t[i(564)]))return;const s=wt(e[i(493)],n[i(488)]),{attributeNewValue:r}=e;null==r||1===r?n[i(499)][i(514)](i(537),s):n[i(499)][i(522)](i(537),String(r),s)}),e.on(o(496),(t,e,n)=>{const i=o;if(!n[i(513)][i(548)](e[i(493)],t[i(564)]))return;const s=wt(e[i(493)],n[i(488)]),{attributeNewValue:r}=e;r&&i(511)!==r?n[i(499)][i(471)](i(525),r,s):n[i(499)][i(486)](i(525),s)})})}[pt(558)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(476)][t(554)](d),i=this[t(506)](),s=this[t(533)]();o[t(495)][t(489)](e=>{const r=t,a=o[r(495)][r(557)][r(464)]();let c=!1;for(const t of a){if(r(482)!==t[r(503)]||r(560)===t[r(564)])continue;const n=o[r(470)](t[r(538)][r(562)]);for(const t of n[r(478)]())t.is(r(523),r(462))&&(!t[r(468)](r(497))&&o[r(552)][r(561)](t,r(497))&&(e[r(522)](r(497),s,t),c=!0),!t[r(468)](r(555))&&o[r(552)][r(561)](t,r(555))&&(e[r(522)](r(555),i,t),c=!0))}return c&&n[r(508)](e),c})}[pt(517)](){const t=pt,{editor:e}=this;e[t(476)][t(554)](d)[t(491)](e=>this[t(485)](e))}[pt(506)](){const t=pt;return this[t(549)][t(551)][t(554)](t(518))}[pt(533)](){const t=pt;return this[t(549)][t(551)][t(554)](t(463))}[pt(485)]({container:t,value:e,digits:o}){const n=pt,i=t[n(524)](n(555)),s=t[n(524)](n(497)),r=Math[n(546)](e)+(s??1)-1;switch(i){case n(544):return function(t,e){const o=n;return String(t)[o(542)](e,"0")}(r,Math[n(559)](2,o));case n(494):case n(540):return yt(r,!1);case n(465):case n(500):return yt(r,!0);case n(531):return vt(r,!1);case n(516):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=pt,n=e[o(502)](t);return Array[o(532)](n[o(469)]())[o(477)](t=>t.is(o(523),"ol")&&t[o(484)](o(487)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(545)](97+t)+n,i=Math[o(546)]((i-1)/26)}return e?n[o(553)]():n}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function vt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(510)]()}class It extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=z().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=158]})(t,e)}function St(){var t=["286390GAEWUw","211348Bcphua","4cMjZVw","isOfficialPlugin","503634JrMnYf","requires","1706928zOxkJx","isPremiumPlugin","126133OZXJRw","197097GoLMTi","pluginName","3791568fJVWpH","FootnotesProperties"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(190311===-parseInt(e(166))/1+-parseInt(e(169))/2+parseInt(e(161))/3*(-parseInt(e(167))/4)+-parseInt(e(165))/5+parseInt(e(158))/6+parseInt(e(160))/7+parseInt(e(163))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Pt extends t.Plugin{static get[xt(162)](){return xt(164)}static get[xt(170)](){return[gt,Ft]}static get[xt(168)](){return!0}static get[xt(159)](){return!0}}function At(t,e){var o=Tt();return(At=function(t,e){return o[t-=176]})(t,e)}function Tt(){var t=["3bFWfvK","12086808YzoNwN","2359388imGraz","423035dZmXHN","10004643mPwhSH","654970XbdWrN","1200318XGOPln","8564066NCYNiX","102rLTuYQ"];return(Tt=function(){return t})()}!function(t){for(var e=At,o=t();;)try{if(943331===-parseInt(e(178))/1+-parseInt(e(177))/2*(parseInt(e(181))/3)+-parseInt(e(183))/4+-parseInt(e(184))/5*(-parseInt(e(180))/6)+parseInt(e(179))/7+parseInt(e(182))/8+-parseInt(e(176))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0xc7f63b,Command as _0x13958d}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x49bc24,isWidget as _0x34f8f3,toWidgetEditable as _0x452896,WidgetToolbarRepository as _0x5e5ac2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x5bfbcd,logWarning as _0x4685e1,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x1b61a6,ClickObserver as _0x480d34}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x422a37}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x3b4fc0,ButtonView as _0x2db5b5,View as _0x5f09d0,ViewCollection as _0x1959fc,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x57252f,BalloonPanelView as _0x2596a5,createDropdown as _0x499324}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x319d7d,IconListStyleDecimal as _0x4a8bd5,IconListStyleDecimalLeadingZero as _0x3a1276,IconListStyleLowerRoman as _0xad7cae,IconListStyleUpperRoman as _0x2b6f24,IconListStyleLowerLatin as _0x1b7c59,IconListStyleUpperLatin as _0x15df0c}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x17e783,_0x558ca6){this['_model']=_0x17e783,this['_elementName']=_0x558ca6['elementName'],this['_getElementKey']=_0x558ca6['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x42bd29){const _0x2eaf42=new Set(),_0x4355b5=new Map();for(const _0x23f183 of _0x42bd29){if('insert'===_0x23f183['type']&&'$text'!==_0x23f183['name']&&_0x23f183['position']['nodeAfter']){const _0x1cb366=this['_model']['createRangeOn'](_0x23f183['position']['nodeAfter']);for(const _0x1536c3 of _0x1cb366['getItems']()){if(!_0x1536c3['is']('element',this['_elementName']))continue;const _0x2cd74d=this['_getElementKey'](_0x1536c3);_0x4355b5['has'](_0x2cd74d)||_0x4355b5['set'](_0x2cd74d,[]),_0x4355b5['get'](_0x2cd74d)['push'](_0x1536c3);}}if('remove'===_0x23f183['type']&&_0x23f183['name']===this['_elementName']){const _0x23d2af=this['_getElementKey']({'getAttribute':_0x153ce9=>_0x23f183['attributes']['get'](_0x153ce9)});_0x2eaf42['add'](_0x23d2af);}}for(const [_0x4da4f2,_0x4e5686]of this['_trackedElements'])'$graveyard'===_0x4e5686['root']['rootName']&&_0x2eaf42['add'](_0x4da4f2);for(const _0x8e5475 of _0x2eaf42)this['_trackedElements']['delete'](_0x8e5475);for(const [_0x25942e,_0x2caab5]of _0x4355b5)this['_trackedElements']['set'](_0x25942e,_0x2caab5[_0x2caab5['length']-0x1]);const _0x80132e=new Set();for(const [_0x2d1d04,_0x4e7523]of _0x4355b5)_0x2eaf42['has'](_0x2d1d04)&&(_0x80132e['add'](_0x4e7523[0x0]),_0x4e7523['length']>0x1?_0x4355b5['set'](_0x2d1d04,_0x4e7523['slice'](0x1)):_0x4355b5['delete'](_0x2d1d04),_0x2eaf42['delete'](_0x2d1d04));return{'removed':Array['from'](_0x2eaf42),'inserted':Array['from'](_0x4355b5['values']())['flat'](),'moved':Array['from'](_0x80132e)};}}class f extends _0xc7f63b{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e27a3){super(_0x4e27a3),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x36c9bf=>_0x36c9bf['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x55e457=>_0x55e457['getAttribute']('footnoteId')});}['init'](){const {editor:_0x27b4fb}=this,{model:_0x22fb88,data:_0x10f0a2}=_0x27b4fb;_0x22fb88['document']['registerPostFixer'](_0x150f04=>{const _0x23ad4f=_0x22fb88['document']['differ']['getChanges']();let _0x2a8d4a=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x150f04,_0x23ad4f)&&(_0x2a8d4a=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x150f04,_0x23ad4f)&&(_0x2a8d4a=!0x0),this['_handleFootnoteReferencesChanges'](_0x150f04,_0x23ad4f)&&(_0x2a8d4a=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x150f04)&&(_0x2a8d4a=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x150f04)&&(_0x2a8d4a=!0x0),this['_sortFootnoteDefinitions'](_0x150f04)&&(_0x2a8d4a=!0x0),_0x2a8d4a;}),this['listenTo'](_0x22fb88['document'],'change:data',()=>{_0x22fb88['enqueueChange']({'isUndoable':!0x1},_0x440f69=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x440f69);});},{'priority':'low'}),this['listenTo'](_0x10f0a2,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x26c4f1){return this['_footnotes']['find'](_0x26519f=>_0x26519f['id']===_0x26c4f1)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x32b812){this['_footnoteFormatter']=_0x32b812;}['_updateFootnotesCounters'](_0x410cf8,_0x17685f=0x0){let _0x4e2932=!0x1;for(let _0x21df24=_0x17685f;_0x21df24<this['_footnotes']['length'];_0x21df24++)this['_updateFootnoteRefCounter'](_0x410cf8,_0x21df24)&&(_0x4e2932=!0x0);return _0x4e2932;}['_insertEmptyFootnotesDefinitionsContainer'](_0x125f77,_0x45db48){const _0x197462=_0x125f77['createElement']('footnotesDefinitions',{});return _0x125f77['append'](_0x197462,_0x45db48),this['_footnotesDefinitions']=_0x197462,_0x197462;}['_ensureFootnotesDefinitionsContainerExists'](_0x3fa342){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0xcb2ff3=this['_footnotes'][0x0]['reference']['root'],_0x472623=this['_insertEmptyFootnotesDefinitionsContainer'](_0x3fa342,_0xcb2ff3);for(const _0x3052fc of this['_footnotes'])_0x3052fc['definition']['parent']||_0x3fa342['insert'](_0x3052fc['definition'],_0x472623,'end');this['_updateFootnotesCounters'](_0x3fa342);}['_handleFootnotesDefinitionsObjectChanges'](_0x34b8c9,_0x13fe4e){let _0x584c14=!0x1;const {inserted:_0xc04d1d,removed:_0x4f60a4,moved:_0x5bea75}=this['_footnoteDefsContainerTracker']['getChanges'](_0x13fe4e);if(_0x5bea75['length']&&(this['_footnotesDefinitions']=_0x5bea75[0x0]),_0xc04d1d['length']){if(_0xc04d1d['length']>0x1||this['_footnotesDefinitions']&&_0xc04d1d['some'](_0x2b72c8=>_0x2b72c8!==this['_footnotesDefinitions'])){const _0x1a307b=_0x34b8c9['createElement']('footnotesDefinitions',{}),_0x5a0f80=[];this['_footnotesDefinitions']&&_0x5a0f80['push'](this['_footnotesDefinitions']),_0x5a0f80['push'](..._0xc04d1d),_0x34b8c9['insert'](_0x1a307b,_0x5a0f80[0x0],'before');for(const _0x4a3066 of _0x5a0f80)_0x34b8c9['move'](_0x34b8c9['createRangeIn'](_0x4a3066),_0x34b8c9['createPositionAt'](_0x1a307b,'end')),_0x34b8c9['remove'](_0x4a3066);this['_footnotesDefinitions']=_0x1a307b,this['_updateFootnotesCounters'](_0x34b8c9),_0x584c14=!0x0;}else this['_footnotesDefinitions']=_0xc04d1d[0x0];}if(_0x4f60a4['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x5626ca of this['_footnotes'])_0x34b8c9['remove'](_0x5626ca['reference']),_0x584c14=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x584c14;}['_handleFootnoteDefinitionsChanges'](_0x177d5f,_0x14dec9){let _0x47259f=!0x1;const _0x4901ca=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x44af0c,moved:_0x5b8450}=this['_footnoteDefsTracker']['getChanges'](_0x14dec9);for(const _0x331deb of[..._0x5b8450,..._0x44af0c]){const _0x55b375=_0x331deb['getAttribute']('footnoteId'),_0x3a09c6=this['getFootnote'](_0x55b375);_0x3a09c6&&(_0x3a09c6['definition']=_0x331deb),_(_0x177d5f,_0x4901ca,_0x331deb)&&(_0x47259f=!0x0);}return _0x47259f;}['_handleFootnoteReferencesChanges'](_0x84c32e,_0x202df2){let _0x47cb54=!0x1;const {removed:_0x1d51b2,inserted:_0x2af505,moved:_0x59fd38}=this['_footnoteRefsTracker']['getChanges'](_0x202df2);for(const _0x56c59a of _0x1d51b2)this['_handleRemoveFootnoteReferenceById'](_0x84c32e,_0x56c59a)&&(_0x47cb54=!0x0);for(const _0x486b38 of _0x2af505)this['_handleInsertedFootnoteReference'](_0x84c32e,_0x486b38)&&(_0x47cb54=!0x0);for(const _0xe70480 of _0x59fd38)this['_handleMovedFootnoteReference'](_0x84c32e,_0xe70480)&&(_0x47cb54=!0x0);return _0x47cb54;}['_handleFootnotesDefinitionsObjectSync'](_0x55b4cc){if(!this['_footnotesDefinitions'])return!0x1;let _0x45008f=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x49ceec=[];for(const _0x114335 of this['_footnotesDefinitions']['getChildren']()){const _0x4b19f0=_0x114335['getAttribute']('footnoteId');this['getFootnote'](_0x4b19f0)||(_0x49ceec['unshift'](_0x114335),_0x45008f=!0x0);}for(const _0x388b19 of _0x49ceec)_0x55b4cc['remove'](_0x388b19);}const _0x4877fa=new Set(),_0x15d9b1=[];for(const _0x2d5fdd of this['_footnotesDefinitions']['getChildren']()){const _0x5270ec=_0x2d5fdd['getAttribute']('footnoteId');_0x4877fa['has'](_0x5270ec)?(_0x15d9b1['unshift'](_0x2d5fdd),_0x45008f=!0x0):_0x4877fa['add'](_0x5270ec);}for(const _0x35b978 of _0x15d9b1)_0x55b4cc['remove'](_0x35b978);return this['_footnotesDefinitions']['childCount']||(_0x55b4cc['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x45008f=!0x0),_0x45008f;}['_handleInsertedFootnoteReference'](_0x1589e0,_0x5ab5e7){if(this['_footnotes']['find'](_0x31938c=>_0x31938c['reference']===_0x5ab5e7))return!0x1;let _0x1942d4=!0x1;const _0x38016d=_0x5ab5e7['getAttribute']('footnoteId'),_0x590aac=this['_footnotes']['findIndex'](_0x1a0f6f=>_0x1a0f6f['id']===_0x38016d);-0x1!==_0x590aac&&(_0x1589e0['remove'](this['_footnotes'][_0x590aac]['reference']),this['_footnotes']['splice'](_0x590aac,0x1),_0x1942d4=!0x0);let _0x38d065=this['_footnotesDefinitions']?function(_0x4a5d99,_0x2f0e13){for(const _0xbf2f86 of _0x4a5d99['getChildren']())if(_0xbf2f86['getAttribute']('footnoteId')===_0x2f0e13)return _0xbf2f86;return null;}(this['_footnotesDefinitions'],_0x38016d):null;_0x38d065||(_0x38d065=_0x1589e0['createElement']('footnoteDefinition',{'footnoteId':_0x38016d}),this['_footnotesDefinitions']&&(_0x1589e0['insert'](_0x38d065,this['_footnotesDefinitions'],'end'),_0x1942d4=!0x0));const _0x5af934={'id':_0x38016d,'reference':_0x5ab5e7,'definition':_0x38d065},_0x2d224e=I(this['editor']['model'],this['_footnotes'],_0x5ab5e7);this['_footnotes']['splice'](_0x2d224e,0x0,_0x5af934);let _0x4502e8=_0x2d224e;return-0x1!==_0x590aac&&(_0x4502e8=Math['min'](_0x2d224e,_0x590aac)),this['_updateFootnotesCounters'](_0x1589e0,_0x4502e8)&&(_0x1942d4=!0x0),_0x1942d4;}['_handleRemoveFootnoteReferenceById'](_0x15048b,_0xb72dbb){const _0x5179b0=this['_footnotes']['findIndex'](_0x5ad4ea=>_0x5ad4ea['id']===_0xb72dbb);if(-0x1===_0x5179b0)return!0x1;let _0x1b23e1=!0x1;const _0x33d088=this['_footnotes'][_0x5179b0];return'$graveyard'!==_0x33d088['definition']['root']['rootName']&&(_0x15048b['remove'](_0x33d088['definition']),_0x1b23e1=!0x0),this['_footnotes']['splice'](_0x5179b0,0x1),this['_updateFootnotesCounters'](_0x15048b,_0x5179b0)&&(_0x1b23e1=!0x0),_0x1b23e1;}['_handleMovedFootnoteReference'](_0x483dcd,_0x48afb4){const _0x4fa033=_0x48afb4['getAttribute']('footnoteId'),_0x3a5f00=this['_footnotes']['findIndex'](_0x2dcf10=>_0x2dcf10['id']===_0x4fa033),_0x57dbb3=this['_footnotes'][_0x3a5f00];let _0x101f8a=!0x1;_0x57dbb3['reference']=_0x48afb4,this['_footnotes']['splice'](_0x3a5f00,0x1);const _0x7f0031=I(this['editor']['model'],this['_footnotes'],_0x48afb4);return this['_footnotes']['splice'](_0x7f0031,0x0,_0x57dbb3),this['_updateFootnotesCounters'](_0x483dcd,Math['min'](_0x3a5f00,_0x7f0031))&&(_0x101f8a=!0x0),_0x101f8a;}['_updateFootnoteRefCounter'](_0x432f85,_0x29c632){if(!this['_footnotesDefinitions'])return!0x1;const _0x24ada1=this['_footnotes'][_0x29c632];let _0x443c7a;return _0x443c7a=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x24ada1,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x29c632+0x1}):String(_0x29c632+0x1),_0x24ada1['reference']['getAttribute']('footnoteCounter')!=_0x443c7a&&(_0x432f85['setAttribute']('footnoteCounter',_0x443c7a,_0x24ada1['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x507fd4){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x3c7752,_0xd3bcca){if(_0x3c7752['length']!==_0xd3bcca['length'])return!0x1;for(let _0x23d149=0x0;_0x23d149<_0x3c7752['length'];_0x23d149++)if(_0x3c7752[_0x23d149]!==_0xd3bcca[_0x23d149])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x4c98e1=>_0x4c98e1['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x388107=>_0x388107['getAttribute']('footnoteId'))))return!0x1;let _0x332ae4=!0x1;for(let _0x107861=0x0;_0x107861<this['_footnotes']['length'];_0x107861++){const _0x4e2b0d=this['_footnotes'][_0x107861],_0x42ef9d=_0x507fd4['createPositionBefore'](_0x4e2b0d['definition']),_0x15dd38=_0x507fd4['createPositionAt'](this['_footnotesDefinitions'],_0x107861);_0x42ef9d['isEqual'](_0x15dd38)||(_0x507fd4['move'](_0x507fd4['createRangeOn'](_0x4e2b0d['definition']),_0x15dd38),_0x332ae4=!0x0);}return _0x332ae4;}['_ensureFootnotesReferencesHaveProperOrder'](_0x567d06){if(!this['_footnotes']['length'])return!0x1;const {model:_0x48b90d}=this['editor'];let _0x2604a2=!0x1;for(let _0x4d0d44=0x0;_0x4d0d44<this['_footnotes']['length']-0x1;_0x4d0d44++){const _0x4f36a1=this['_footnotes'][_0x4d0d44],_0x166c63=this['_footnotes'][_0x4d0d44+0x1],_0x458676=_0x48b90d['createPositionBefore'](_0x4f36a1['reference']),_0x3e82ef=_0x48b90d['createPositionBefore'](_0x166c63['reference']);'after'===_0x458676['compareWith'](_0x3e82ef)&&(this['_handleMovedFootnoteReference'](_0x567d06,_0x4f36a1['reference']),_0x4d0d44=-0x1,_0x2604a2=!0x0);}return _0x2604a2;}}function _(_0x460fd5,_0x4a7cdd,_0x1ade44){if(_0x1ade44['childCount'])return!0x1;const _0x517a8f=_0x4a7cdd?'paragraph':'footnoteInlineContent';return _0x460fd5['insert'](_0x460fd5['createElement'](_0x517a8f),_0x1ade44),!0x0;}function I(_0x2fae08,_0x400576,_0x5f3dcb){if(0x0===_0x400576['length'])return 0x0;const _0x404e00=_0x2fae08['createPositionBefore'](_0x5f3dcb);for(let _0x4b383b=0x0;_0x4b383b<_0x400576['length'];_0x4b383b++){const _0x1a6bcb=_0x400576[_0x4b383b],_0x34da39=_0x2fae08['createPositionBefore'](_0x1a6bcb['reference']);if('before'===_0x404e00['compareWith'](_0x34da39))return _0x4b383b;}const _0xc1afef=_0x5f3dcb['root'];let _0x462eb9=-0x1;for(let _0x40cd0e=_0x400576['length']-0x1;_0x40cd0e>=0x0;_0x40cd0e--)if(_0x400576[_0x40cd0e]['reference']['root']===_0xc1afef){_0x462eb9=_0x40cd0e;break;}if(-0x1!==_0x462eb9)return _0x462eb9+0x1;const _0x204a17=_0x2fae08['document']['getRootNames'](),_0x59ce72=_0x204a17['indexOf'](_0xc1afef['rootName']),_0x59d256=_0x204a17[_0x59ce72+0x1];if(_0x59d256){for(let _0x273bf0=0x0;_0x273bf0<_0x400576['length'];_0x273bf0++)if(_0x400576[_0x273bf0]['reference']['root']['rootName']===_0x59d256)return _0x273bf0;}return _0x400576['length'];}class h extends _0x13958d{['refresh'](){const _0x3741c5=this['editor']['model']['document']['selection'],_0x1de19c=this['_getPositionToInsertFootnote'](_0x3741c5);this['isEnabled']=!!_0x1de19c;}['execute'](_0x5b7cb6){const {editor:_0x1a0eb6}=this,{model:_0x252a24}=_0x1a0eb6,{selection:_0x56a4b9}=_0x252a24['document'],_0x408445=this['_getPositionToInsertFootnote'](_0x56a4b9);if(!_0x408445)return;const _0x2cabd2=_0x1a0eb6['plugins']['get']('FootnotesEditing'),_0x479358=_0x5b7cb6?.['footnoteId']??_0x5bfbcd();!function(_0x111f21){return'string'==typeof _0x111f21&&_0x111f21['length']>0x0&&!/\s/['test'](_0x111f21)&&!/^\d/['test'](_0x111f21);}(_0x479358)?_0x4685e1('insert-footnote-command-executed-with-invalid-id'):(_0x252a24['change'](_0x36099a=>{const _0x50e7ed=_0x36099a['createElement']('footnoteRef',{'footnoteId':_0x479358});_0x252a24['insertObject'](_0x50e7ed,_0x408445,null);}),_0x2cabd2['_moveSelectionToFootnoteDefinition'](_0x479358));}['_getPositionToInsertFootnote'](_0x1e2f56){const {model:_0x1c8806}=this['editor'],{schema:_0x13a65e}=_0x1c8806,_0x5af4a5=_0x1e2f56['getFirstRange']();for(const _0x4a2aa2 of _0x5af4a5['getItems']())if(_0x13a65e['isBlock'](_0x4a2aa2)||_0x13a65e['isObject'](_0x4a2aa2))return null;const _0x1e02c4=_0x5af4a5['end'];return _0x13a65e['checkChild'](_0x1e02c4,'footnoteRef')?_0x1e02c4:null;}}class r extends _0xc7f63b{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xa8921a}=this;_0xa8921a['config']['define']('footnotes.multiBlock',!0x0),_0xa8921a['commands']['add']('insertFootnote',new h(_0xa8921a)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x52ac42){const _0x169ed8=_0x275e78([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]),_0x15c025=0x47a28506,_0x63e02a=0x47a5f98e^_0x15c025,_0x2bf3fe=window[_0x275e78([0x44,0x61,0x74,0x65])][_0x275e78([0x6e,0x6f,0x77])](),_0x140f7a=_0x52ac42[_0x275e78([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19f6f2=new window[(_0x275e78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20ccca=>{_0x140f7a[_0x275e78([0x6f,0x6e,0x63,0x65])](_0x275e78([0x72,0x65,0x61,0x64,0x79]),_0x20ccca);}),_0x387371={[_0x275e78([0x6b,0x74,0x79])]:_0x275e78([0x45,0x43]),[_0x275e78([0x75,0x73,0x65])]:_0x275e78([0x73,0x69,0x67]),[_0x275e78([0x63,0x72,0x76])]:_0x275e78([0x50,0x2d,0x32,0x35,0x36]),[_0x275e78([0x78])]:_0x275e78([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]),[_0x275e78([0x79])]:_0x275e78([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]),[_0x275e78([0x61,0x6c,0x67])]:_0x275e78([0x45,0x53,0x32,0x35,0x36])},_0x4acea4=_0x140f7a[_0x275e78([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x275e78([0x67,0x65,0x74])](_0x275e78([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1ce1eb(){let _0x1f1e2d,_0x1efa58=null,_0x1f6115=null;try{if(_0x4acea4==_0x275e78([0x47,0x50,0x4c]))return _0x275e78([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1f1e2d=_0x35503c(),!_0x1f1e2d)return _0x275e78([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1f1e2d[_0x275e78([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f6115=_0x5c3a8c(_0x1f1e2d[_0x275e78([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1f1e2d[_0x275e78([0x6a,0x74,0x69])])),await _0x21b6b1()?_0x5e1275()?_0x46ad04()?_0x275e78([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3bb5dc()?(_0x1f1e2d[_0x275e78([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x275e78([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1efa58=_0x4fedc1(_0x275e78([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1f1e2d[_0x275e78([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x275e78([0x74,0x72,0x69,0x61,0x6c])&&(_0x1efa58=_0x4fedc1(_0x275e78([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e5f6d()):_0x275e78([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x275e78([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x275e78([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x275e78([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x46ad04(){const _0x4720bb=[_0x275e78([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x275e78([0x74,0x72,0x69,0x61,0x6c])][_0x275e78([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1e2d[_0x275e78([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2bf3fe/0x3e8:0xe10*_0x63e02a;return _0x1f1e2d[_0x275e78([0x65,0x78,0x70])]<_0x4720bb;}function _0x5e1275(){const _0x184afc=_0x1f1e2d[_0x275e78([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x184afc&&(!!_0x184afc[_0x275e78([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x275e78([0x2a]))||!!_0x184afc[_0x275e78([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x275e78([0x46,0x4f,0x4f])));}function _0x3bb5dc(){const _0x49a2d3=_0x1f1e2d[_0x275e78([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x49a2d3||0x0==_0x49a2d3[_0x275e78([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x296b29}=new URL(window[_0x275e78([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x49a2d3[_0x275e78([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x296b29))return!0x0;const _0x39c6ca=_0x296b29[_0x275e78([0x73,0x70,0x6c,0x69,0x74])](_0x275e78([0x2e]));return _0x49a2d3[_0x275e78([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x464290=>_0x464290[_0x275e78([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x275e78([0x2a])))[_0x275e78([0x6d,0x61,0x70])](_0xf6c4a0=>_0xf6c4a0[_0x275e78([0x73,0x70,0x6c,0x69,0x74])](_0x275e78([0x2e])))[_0x275e78([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34ad61=>_0x34ad61[_0x275e78([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x39c6ca[_0x275e78([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x275e78([0x6d,0x61,0x70])](_0x46a047=>Array(_0x39c6ca[_0x275e78([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x46a047[_0x275e78([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x275e78([0x66,0x69,0x6c,0x6c])](_0x46a047[0x0]===_0x275e78([0x2a])?_0x275e78([0x2a]):'')[_0x275e78([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x46a047))[_0x275e78([0x73,0x6f,0x6d,0x65])](_0x2b7494=>_0x39c6ca[_0x275e78([0x65,0x76,0x65,0x72,0x79])]((_0x5b1596,_0x23f5c3)=>_0x2b7494[_0x23f5c3]===_0x5b1596||_0x2b7494[_0x23f5c3]===_0x275e78([0x2a])));}function _0x5e5f6d(){return _0x1efa58&&_0x1f6115?new window[(_0x275e78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17023d,_0xfafd05)=>{_0x1efa58[_0x275e78([0x74,0x68,0x65,0x6e])](_0x17023d,_0xfafd05),_0x1f6115[_0x275e78([0x74,0x68,0x65,0x6e])](_0x4885ba=>{_0x4885ba!=_0x275e78([0x56,0x61,0x6c,0x69,0x64])&&_0x17023d(_0x4885ba);},_0xfafd05);}):_0x1efa58||_0x1f6115||_0x275e78([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5c3a8c(_0x31baa5,_0x6bf6d1){return new window[(_0x275e78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22eda4=>{if(_0x57218d())return _0x22eda4(_0x275e78([0x56,0x61,0x6c,0x69,0x64]));_0x531f9b(),_0x140f7a[_0x275e78([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x275e78([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1f5ff9=!0x1;const _0x438be5=_0x5bfbcd();function _0x1badbf(_0x40be83){return!!_0x40be83&&(typeof _0x40be83===_0x275e78([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40be83===_0x275e78([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40be83[_0x275e78([0x74,0x68,0x65,0x6e])]===_0x275e78([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40be83[_0x275e78([0x63,0x61,0x74,0x63,0x68])]===_0x275e78([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x34552b(_0x1a5b05){_0x617f80(_0x1a5b05)[_0x275e78([0x74,0x68,0x65,0x6e])](_0x41ca64=>{if(!_0x41ca64||_0x41ca64[_0x275e78([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x275e78([0x6f,0x6b]))return _0x275e78([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x181b06(_0x26c481(_0x438be5+_0x6bf6d1))!=_0x41ca64[_0x275e78([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x275e78([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x275e78([0x56,0x61,0x6c,0x69,0x64]);})[_0x275e78([0x74,0x68,0x65,0x6e])](_0x4d1c7d=>(_0x5b0bb8(),_0x4d1c7d),()=>{const _0x552f6f=_0x44be5f();return null==_0x552f6f?(_0x5b0bb8(),_0x275e78([0x56,0x61,0x6c,0x69,0x64])):_0x275e78(_0x2bf3fe-_0x552f6f>(0x63ae0106^_0x15c025)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x275e78([0x74,0x68,0x65,0x6e])](_0x22eda4)[_0x275e78([0x63,0x61,0x74,0x63,0x68])](()=>{_0x22eda4(_0x275e78([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x304d19=0x47946b86^_0x15c025;function _0x5b0bb8(){const _0x53bafe=_0x275e78([0x6c,0x6c,0x63,0x74,0x2d])+_0x181b06(_0x26c481(_0x31baa5)),_0x83f046=_0x187fa6(_0x181b06(window[_0x275e78([0x4d,0x61,0x74,0x68])][_0x275e78([0x63,0x65,0x69,0x6c])](_0x2bf3fe/_0x304d19)));window[_0x275e78([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x275e78([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53bafe,_0x83f046);}function _0x44be5f(){const _0x119488=_0x275e78([0x6c,0x6c,0x63,0x74,0x2d])+_0x181b06(_0x26c481(_0x31baa5)),_0x2569ad=window[_0x275e78([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x275e78([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x119488);return _0x2569ad?window[_0x275e78([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x187fa6(_0x2569ad),0x10)*_0x304d19:null;}function _0x617f80(_0x3a2efe){return new window[(_0x275e78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16f7d8,_0x3bf649)=>{_0x3a2efe[_0x275e78([0x74,0x68,0x65,0x6e])](_0x16f7d8,_0x3bf649),window[_0x275e78([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3bf649,0x47a351c6^_0x15c025);});}}_0x140f7a[_0x275e78([0x6f,0x6e])](_0x275e78([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5c556a,_0x153a69)=>{if(_0x153a69[0x0]!=_0x31baa5)return _0x22eda4(_0x275e78([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x153a69[0x1]={..._0x153a69[0x1],[_0x275e78([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x438be5};},{[_0x275e78([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x275e78([0x68,0x69,0x67,0x68])}),_0x140f7a[_0x275e78([0x6f,0x6e])](_0x275e78([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x195a83=>{_0x1badbf(_0x195a83[_0x275e78([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1f5ff9=!0x0,_0x34552b(_0x195a83[_0x275e78([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x275e78([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x275e78([0x6c,0x6f,0x77])}),_0x19f6f2[_0x275e78([0x74,0x68,0x65,0x6e])](()=>{_0x1f5ff9||_0x22eda4(_0x275e78([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x57218d(){return _0x140f7a[_0x275e78([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x275e78([0x76,0x69,0x65,0x77])][_0x275e78([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x275e78([0x61,0x75,0x74,0x6f]);}function _0x531f9b(){_0x140f7a[_0x275e78([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x275e78([0x76,0x69,0x65,0x77])][_0x275e78([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x275e78([0x61,0x75,0x74,0x6f]);}}function _0x4fedc1(_0x2625ae){const _0x16667f=[new window[(_0x275e78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4741d2=>setTimeout(_0x4741d2,0x47abbbca^_0x15c025)),_0x19f6f2[_0x275e78([0x74,0x68,0x65,0x6e])](()=>new window[(_0x275e78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cbb23=>{let _0x306455=0x0;_0x140f7a[_0x275e78([0x6d,0x6f,0x64,0x65,0x6c])][_0x275e78([0x6f,0x6e])](_0x275e78([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x35673a,_0x5e2257)=>{_0x5e2257[0x0][_0x275e78([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x306455++,_0x306455==(0x47a280ee^_0x15c025)&&(_0x4cbb23(),_0x35673a[_0x275e78([0x6f,0x66,0x66])]());});}))];return window[_0x275e78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x275e78([0x72,0x61,0x63,0x65])](_0x16667f)[_0x275e78([0x74,0x68,0x65,0x6e])](()=>_0x2625ae);}async function _0xd67205(){await _0x19f6f2,_0x140f7a[_0x275e78([0x6d,0x6f,0x64,0x65,0x6c])][_0x275e78([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b926f,_0x140f7a[_0x275e78([0x6d,0x6f,0x64,0x65,0x6c])][_0x275e78([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b926f,_0x140f7a[_0x275e78([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x275e78([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x59d1df(_0x55cd11){const _0x567fbd=_0x4c4bfd();_0x140f7a[_0x567fbd]=_0x275e78([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x55cd11,_0x55cd11!=_0x275e78([0x56,0x61,0x6c,0x69,0x64])&&_0xd67205();}function _0x4c4bfd(){const _0x1e4ce2=window[_0x275e78([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x275e78([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x275e78([0x6e,0x6f,0x77])]())[_0x275e78([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x275e78([0x2e]),'');let _0x5d9622=_0x275e78([0x75]);for(let _0x393658=0x0;_0x393658<_0x1e4ce2[_0x275e78([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x393658+=0x2){let _0x3bf09f=window[_0x275e78([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e4ce2[_0x275e78([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x393658,_0x393658+0x2));_0x3bf09f>=_0x169ed8[_0x275e78([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3bf09f-=_0x169ed8[_0x275e78([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d9622+=_0x169ed8[_0x3bf09f];}return _0x5d9622;}function _0x35503c(){const _0x3128ff=_0x4acea4[_0x275e78([0x73,0x70,0x6c,0x69,0x74])](_0x275e78([0x2e]));if(0x3!=_0x3128ff[_0x275e78([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4a1c76(_0x3128ff[0x1]);function _0x4a1c76(_0x53b98d){const _0x173a5c=_0x43357d(_0x53b98d);return _0x173a5c&&_0x54dc94()?_0x173a5c:null;function _0x54dc94(){const _0x5314ab=_0x173a5c[_0x275e78([0x6a,0x74,0x69])],_0x3854aa=window[_0x275e78([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5314ab[_0x275e78([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5314ab[_0x275e78([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x44d05a={..._0x173a5c,[_0x275e78([0x6a,0x74,0x69])]:_0x5314ab[_0x275e78([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5314ab[_0x275e78([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x44d05a[_0x275e78([0x76,0x63])],_0x26c481(_0x44d05a)==_0x3854aa;}}}async function _0x21b6b1(){let _0x5dee6a=!0x0;try{const _0x35d558=_0x4acea4[_0x275e78([0x73,0x70,0x6c,0x69,0x74])](_0x275e78([0x2e])),[_0x31102d,_0x18abff,_0x59e5b4]=_0x35d558;return _0x3dee33(_0x31102d),await _0x40e93e(_0x31102d,_0x18abff,_0x59e5b4),_0x5dee6a;}catch{return!0x1;}function _0x3dee33(_0x29d077){const _0x91ca62=_0x43357d(_0x29d077);_0x91ca62&&_0x91ca62[_0x275e78([0x61,0x6c,0x67])]==_0x275e78([0x45,0x53,0x32,0x35,0x36])||(_0x5dee6a=!0x1);}async function _0x40e93e(_0x44ae6b,_0x2ca17f,_0x590dff){const _0x3353a3=window[_0x275e78([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x275e78([0x66,0x72,0x6f,0x6d])](_0x58c424(_0x590dff),_0x2f80c6=>_0x2f80c6[_0x275e78([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3b3a41=new window[(_0x275e78([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x275e78([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x44ae6b+_0x275e78([0x2e])+_0x2ca17f),_0xeef5df=window[_0x275e78([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x275e78([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xeef5df)return;const _0x4c8d7d=await _0xeef5df[_0x275e78([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x275e78([0x6a,0x77,0x6b]),_0x387371,{[_0x275e78([0x6e,0x61,0x6d,0x65])]:_0x275e78([0x45,0x43,0x44,0x53,0x41]),[_0x275e78([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x275e78([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x275e78([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xeef5df[_0x275e78([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x275e78([0x6e,0x61,0x6d,0x65])]:_0x275e78([0x45,0x43,0x44,0x53,0x41]),[_0x275e78([0x68,0x61,0x73,0x68])]:{[_0x275e78([0x6e,0x61,0x6d,0x65])]:_0x275e78([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4c8d7d,_0x3353a3,_0x3b3a41)||(_0x5dee6a=!0x1);}}function _0x43357d(_0x392d3f){return _0x392d3f[_0x275e78([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x275e78([0x65,0x79]))?JSON[_0x275e78([0x70,0x61,0x72,0x73,0x65])](_0x58c424(_0x392d3f)):null;}function _0x58c424(_0x31e407){return window[_0x275e78([0x61,0x74,0x6f,0x62])](_0x31e407[_0x275e78([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x275e78([0x2b]))[_0x275e78([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x275e78([0x2f])));}function _0x26c481(_0x1c9609){let _0x4790d8=0x1505;function _0x4588c5(_0x310a4f){for(let _0x127de1=0x0;_0x127de1<_0x310a4f[_0x275e78([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x127de1++){const _0x517844=_0x310a4f[_0x275e78([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x127de1);_0x4790d8=(_0x4790d8<<0x5)+_0x4790d8+_0x517844,_0x4790d8&=_0x4790d8;}}function _0x25b3b3(_0x4c8b89){Array[_0x275e78([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4c8b89)?_0x4c8b89[_0x275e78([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x25b3b3):_0x4c8b89&&typeof _0x4c8b89==_0x275e78([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x275e78([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4c8b89)[_0x275e78([0x73,0x6f,0x72,0x74])]()[_0x275e78([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x36e088,_0x19228c])=>{_0x4588c5(_0x36e088),_0x25b3b3(_0x19228c);}):_0x4588c5(window[_0x275e78([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4c8b89));}return _0x25b3b3(_0x1c9609),_0x4790d8>>>0x0;}function _0x181b06(_0x341541){return _0x341541[_0x275e78([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x275e78([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x275e78([0x30]));}function _0x187fa6(_0x14bf14){return _0x14bf14[_0x275e78([0x73,0x70,0x6c,0x69,0x74])]('')[_0x275e78([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x275e78([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b926f(){}function _0x275e78(_0x3e2248){return _0x3e2248['map'](_0x1e676c=>String['fromCharCode'](_0x1e676c))['join']('');}_0x59d1df(await _0x1ce1eb());}(this);}['_moveSelectionToFootnoteDefinition'](_0xfcec8f){const {plugins:_0x4f4046,editing:_0x5d39da,model:_0x1a7266}=this['editor'],_0x3447f4=_0x4f4046['get'](f)['getFootnote'](_0xfcec8f);return!!_0x3447f4&&(_0x1a7266['change'](_0x44eb8c=>{_0x44eb8c['setSelection'](_0x44eb8c['createPositionAt'](_0x3447f4['definition'],'end'));}),_0x5d39da['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x1a16ee){const {plugins:_0x1713f7,editing:_0x2865bb,model:_0x3c3011}=this['editor'],_0x3332fb=_0x1713f7['get'](f)['getFootnote'](_0x1a16ee);return!!_0x3332fb&&(_0x3c3011['change'](_0x22a857=>{_0x22a857['setSelection'](_0x3332fb['reference'],'on');}),_0x2865bb['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x8fa39d}=this['editor']['model'],_0x3477fe=this['editor']['config']['get']('footnotes.multiBlock');_0x8fa39d['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x8fa39d['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x8fa39d['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3477fe?_0x8fa39d['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x8fa39d['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x8fa39d['addChildCheck'](_0x413cba=>{for(const _0x2e32df of _0x413cba)if('footnoteDefinition'===_0x2e32df['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5f1582}=this,{conversion:_0x2681fd,editing:_0x53001a}=_0x5f1582,{t:t}=_0x5f1582['locale'];_0x2681fd['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4578b9,{writer:_0x7d1478,consumable:_0xcb9521})=>{const _0xd7166f=_0x4578b9['getChild'](0x0);if(!_0xd7166f||!_0xd7166f['is']('element','a'))return null;const _0x15e73f=_0xd7166f['getAttribute']('href')||'';if(!_0x15e73f['startsWith']('#'))return null;const _0x33e00f=_0x15e73f['replace'](/^#/,'');if(!_0x33e00f)return null;_0xcb9521['consume'](_0xd7166f,{'name':!0x0,'attributes':['href']});for(const {item:_0x59b657}of _0x53001a['view']['createRangeIn'](_0xd7166f))_0x59b657['is']('$textProxy')?_0xcb9521['consume'](_0x59b657['textNode'],{'name':!0x0}):_0x59b657['is']('element')&&_0xcb9521['consume'](_0x59b657,{'name':!0x0});return _0x7d1478['createElement']('footnoteRef',{'footnoteId':_0x33e00f});}}),_0x2681fd['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4dbc10,{writer:_0x97bf80})=>b(_0x4dbc10,_0x97bf80)}),_0x2681fd['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4b70d8,{writer:_0x38ed4f})=>{const _0x58ffb4=_0x4b70d8['getAttribute']('footnoteCounter');return _0x49bc24(b(_0x4b70d8,_0x38ed4f),_0x38ed4f,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x58ffb4)});}});}['_defineDefinitionsConverters'](){const {editor:_0x43f103}=this,{t:t}=_0x43f103['locale'],{conversion:_0x127c4b}=_0x43f103;_0x127c4b['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x127c4b['for']('upcast')['add'](_0x36c46e=>{_0x36c46e['on']('element:ol',(_0x1b920d,_0x400bf2,_0x1ad457)=>{const _0x19e181=_0x400bf2['viewItem'];if(!_0x19e181['hasClass']('footnotes-list')||!_0x400bf2['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1ad457['consumable']['consume'](_0x19e181,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xbf355,modelCursor:_0x3f9aee}=_0x1ad457['convertChildren'](_0x400bf2['viewItem'],_0x400bf2['modelCursor']);_0x400bf2['modelRange']=_0xbf355,_0x400bf2['modelCursor']=_0x3f9aee;}),_0x36c46e['on']('element:hr',(_0x5b0b26,_0xa6432f,_0x2578a0)=>{const _0x5006ce=_0xa6432f['viewItem'];_0x5006ce['hasClass']('footnotes-divider')&&_0xa6432f['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x2578a0['consumable']['consume'](_0x5006ce,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x127c4b['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x25f763,{writer:_0x574845})=>D(_0x574845)}),_0x127c4b['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x52b19f,{writer:_0x23036d})=>{const _0x592082=D(_0x23036d,{'data-footnotes-list-label':t('Footnotes')}),_0x2baba2=_0x49bc24(_0x592082,_0x23036d,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x23036d['setCustomProperty']('footnotesDefinitions',!0x0,_0x2baba2),_0x2baba2;}});}['_defineDefinitionConverters'](){const {editor:_0x4fbdd9}=this,{conversion:_0x191d7d,locale:_0x51a1fb}=_0x4fbdd9,_0x246109=_0x4fbdd9['config']['get']('footnotes.multiBlock');_0x191d7d['for']('upcast')['add'](_0x42e17c=>{_0x42e17c['on']('element:li',(_0x5c49d3,_0x453e34,_0x5f07f7)=>{const _0x465c90=_0x453e34['viewItem'];if(!_0x465c90['hasClass']('footnote-definition')||!_0x465c90['getAttribute']('id'))return;const _0x4fecc2=_0x465c90['parent'];if(!_0x4fecc2['is']('element','ol')||!_0x4fecc2['hasClass']('footnotes-list'))return;if(!_0x5f07f7['consumable']['test'](_0x465c90,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x598bbb=_0x5f07f7['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x465c90['getAttribute']('id')});if(!_0x5f07f7['safeInsert'](_0x598bbb,_0x453e34['modelCursor']))return;_0x5f07f7['consumable']['consume'](_0x465c90,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2d0c52=Array['from'](_0x465c90['getChildren']())['find'](_0x5b42b1=>_0x5b42b1['is']('element')&&_0x5b42b1['hasClass']('footnote-content'));for(const _0xfd6f2e of _0x465c90['getChildren']())_0xfd6f2e['is']('element')&&(_0x5f07f7['consumable']['consume'](_0xfd6f2e,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5f07f7['consumable']['consume'](_0xfd6f2e,{'name':!0x0,'classes':'footnote-content'}));if(_0x2d0c52){if(_0x246109)_0x5f07f7['convertChildren'](_0x2d0c52,_0x598bbb);else{const _0x5d9e5c=_0x5f07f7['writer']['createElement']('footnoteInlineContent');_0x5f07f7['writer']['insert'](_0x5d9e5c,_0x598bbb),_0x5f07f7['convertChildren'](_0x2d0c52,_0x5d9e5c);}}_0x5f07f7['updateConversionResult'](_0x598bbb,_0x453e34);});}),_0x191d7d['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xa43c,{writer:_0x59c121})=>y(_0xa43c,_0x59c121,_0x51a1fb,{'dataPipeline':!0x0})}),_0x191d7d['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x11769c,{writer:_0x3c2c28})=>y(_0x11769c,_0x3c2c28,_0x51a1fb)});}['_defineBogusParagraphConverters'](){const {editor:_0x4a3a3e}=this,{conversion:_0x390aeb}=_0x4a3a3e;_0x4a3a3e['config']['get']('footnotes.multiBlock')?(_0x390aeb['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x390aeb['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4a3a3e['model']['document'],'change:data',()=>{!function(_0x26c496,_0x360426){const _0x3b0a61=_0x26c496['document']['differ'],_0x43eaca=new Set();for(const _0x1df80b of _0x3b0a61['getChanges']()){const _0x325f85='attribute'==_0x1df80b['type']?_0x1df80b['range']['start']['parent']:_0x1df80b['position']['parent'];_0x325f85['is']('element','footnoteDefinition')&&_0x43eaca['add'](_0x325f85);}for(const _0x2da1aa of _0x43eaca['values']()){const _0x5f4a3=Array['from'](_0x2da1aa['getChildren']())['filter'](_0x406626=>v(_0x406626,_0x360426['mapper']));for(const _0x6e77f4 of _0x5f4a3)_0x360426['reconvertItem'](_0x6e77f4);}}(_0x4a3a3e['model'],_0x4a3a3e['editing']);})):(_0x390aeb['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x390aeb['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x56c6ad,{writer:_0x5dabd3})=>{const _0xdc710a=_0x5dabd3['createContainerElement']('span');return _0x5dabd3['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xdc710a),_0xdc710a;}}));}['_defineKeyboardHandlers'](){const {editor:_0x6b4e1a}=this,{editing:_0x11f2d3,t:t}=_0x6b4e1a,_0x4814e4=_0x6b4e1a['model']['document']['selection'];_0x6b4e1a['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x6b4e1a['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x11f2d3['view']['document'],'enter',(_0x550968,_0x2151cf)=>{const _0x1baa6b=function(_0x40f0a1){const _0xb53151=_0x40f0a1['getSelectedElement']();if(_0xb53151?.['is']('element','footnoteRef'))return _0xb53151;return null;}(_0x4814e4);if(_0x1baa6b){const _0x1a433b=_0x1baa6b['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1a433b),_0x2151cf['preventDefault'](),_0x550968['stop']();}},{'context':_0x34f8f3});}['_defineClickHandlers'](){const {editor:_0x3ac002}=this,{editing:_0x29bf6a}=_0x3ac002;_0x3ac002['editing']['view']['addObserver'](_0x1b61a6),_0x3ac002['editing']['view']['addObserver'](_0x480d34);let _0x36a8bb=!0x1;this['listenTo'](_0x29bf6a['view']['document'],'pointerdown',(_0x269c33,_0x3d47e4)=>{const {target:_0x24d513}=_0x3d47e4,_0x2876dd=_0x29bf6a['view']['document']['selection'];_0x36a8bb=!!(_0x24d513?.['is']('element','a')&&_0x24d513['parent']?.['is']('element','sup')&&_0x24d513['parent']['hasClass']('footnote'))&&_0x2876dd['getSelectedElement']()===_0x24d513['parent'];},{'priority':'high'}),this['listenTo'](_0x29bf6a['view']['document'],'click',(_0xbd7df1,_0x73df76)=>{const {target:_0x15385a}=_0x73df76;if(!_0x15385a?.['is']('element','a'))return;if(_0x15385a['parent']?.['is']('element','sup')&&_0x15385a['parent']['hasClass']('footnote')&&!_0x36a8bb)return void _0x73df76['preventDefault']();let _0x96eed3=_0x15385a['getAttribute']('href');if(!_0x96eed3?.['startsWith']('#'))return;_0x96eed3=_0x96eed3['slice'](0x1);let _0x2f9b62=!0x1;(_0x96eed3['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x96eed3['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x96eed3))&&(_0x2f9b62=!0x0),_0x2f9b62&&(_0x73df76['preventDefault'](),_0xbd7df1['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x241593}={}){return(_0xec5ba5,{writer:_0x3ddcce})=>{if(!g(_0xec5ba5))return null;if(!_0x241593)return _0x3ddcce['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x9906ca=_0x3ddcce['createContainerElement']('p');return _0x3ddcce['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x9906ca),_0x9906ca;};}function g(_0x18e296){const {parent:_0x469974}=_0x18e296;if(!_0x469974?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x469974['childCount'])return!0x1;for(const _0x2210d8 of _0x18e296['getAttributeKeys']())if(!_0x2210d8['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x2210d8)return!0x1;return!0x0;}function v(_0x488a05,_0x4a4026){if(!_0x488a05['is']('element','paragraph'))return!0x1;const _0xcfdbdc=_0x4a4026['toViewElement'](_0x488a05);return!!_0xcfdbdc&&g(_0x488a05)!==_0xcfdbdc['is']('element','span');}function Q(_0x230395){return _0x34f8f3(_0x230395)&&_0x230395['is']('containerElement')&&!!_0x230395['getCustomProperty']('footnotesDefinitions');}function D(_0x2db2ec,_0x365ff4={}){const _0xcc7815=_0x2db2ec['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x54098a=_0x2db2ec['createContainerElement']('ol',{'class':'footnotes-list'},_0x2db2ec['createSlot']());return _0x2db2ec['createContainerElement']('div',{'class':'footnotes',..._0x365ff4},[_0xcc7815,_0x54098a]);}function b(_0x1ac178,_0x4f571e){const _0x6ccdcd=_0x1ac178['getAttribute']('footnoteId'),_0x4bfc3e=_0x1ac178['getAttribute']('footnoteCounter'),_0x2bb792=_0x4f571e['createUIElement']('a',{'href':'#'+_0x6ccdcd},function(_0x11b303){const _0x143eda=this['toDomElement'](_0x11b303);return _0x143eda['textContent']=_0x4bfc3e,_0x143eda;}),_0xaae379=_0x4f571e['createContainerElement']('sup',{'id':'ref-'+_0x6ccdcd,'class':'footnote'},[_0x2bb792]);return _0xaae379['getFillerOffset']=()=>null,_0xaae379;}function y(_0xe7a578,_0xa29f1e,_0x2c0174,{dataPipeline:_0x3f7f4d}={}){const {t:t}=_0x2c0174,_0x2025e0=_0xe7a578['getAttribute']('footnoteId'),_0x13ecaa=_0xa29f1e['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2025e0},function(_0xf0dcf){const _0x106855=this['toDomElement'](_0xf0dcf);return _0x106855['innerText']='^',_0x106855;}),_0x12396f=_0x3f7f4d?_0xa29f1e['createContainerElement']('div',{'class':'footnote-content'}):_0x452896(_0xa29f1e['createEditableElement']('div',{'class':'footnote-content'}),_0xa29f1e,{'label':t('Footnote\x20content.')});return _0xa29f1e['insert'](_0xa29f1e['createPositionAt'](_0x12396f,0x0),_0xa29f1e['createSlot']()),_0xa29f1e['createContainerElement']('li',{'class':'footnote-definition','id':_0x2025e0},[_0x13ecaa,_0x12396f]);}class e extends _0xc7f63b{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x422a37];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x311d87}=this,{plugins:_0x2283a5,model:_0x5c0464}=_0x311d87,_0xb10c76=_0x2283a5['get'](_0x422a37),_0x32308e=_0x2283a5['get'](f);this['listenTo'](_0xb10c76,'outputTransformation',(_0x1584eb,_0x41094f)=>{const _0x1f1f98=l(_0x5c0464['createRangeIn'](_0x41094f['content']));if(!_0x1f1f98['length'])return;const _0x5655df=_0x32308e['getFootnotes'](),_0x3a043e=_0x1f1f98['reduce']((_0x282861,_0x164813)=>{const _0x573141=_0x5655df['find'](_0x2b6839=>_0x2b6839['id']===_0x164813);if(_0x573141){const _0x424622=_0x311d87['data']['toView'](_0x573141['definition'],{'isClipboardPipeline':!0x0}),_0x541b8e=_0x311d87['data']['htmlProcessor']['toData'](_0x424622);_0x282861[_0x573141['id']]=_0x541b8e;}return _0x282861;},Object['create'](null));_0x41094f['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x3a043e));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x6aada1}=this,{model:_0x50dd68,plugins:_0x98c2e}=_0x6aada1,{view:_0x7fda69}=_0x6aada1['editing'],_0x746d9d=_0x98c2e['get'](_0x422a37),_0x3dce91=_0x98c2e['get'](f),_0x385f05=_0x6aada1['config']['get']('footnotes.multiBlock');let _0x36268b=null;this['listenTo'](_0x7fda69['document'],'clipboardInput',(_0x157976,_0x112441)=>{const _0x5bb41a=_0x112441['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x36268b=_0x5bb41a?JSON['parse'](_0x5bb41a):null;}),this['listenTo'](_0x746d9d,'contentInsertion',(_0x593ae6,_0x184e80)=>{const _0x458045=_0x184e80['sourceEditorId']===this['editor']['id'];_0x458045&&'drop'===_0x184e80['method']||_0x50dd68['change'](_0x336278=>{let _0xf0cfbd=_0x3dce91['getFootnotesDefinitionsObjectElement']();const _0x3985cb=!!_0xf0cfbd&&Array['from'](_0x50dd68['document']['selection']['getSelectedBlocks']())['includes'](_0xf0cfbd);if(!_0x36268b&&function(_0x46f45b){for(const {item:_0x377b96}of _0x46f45b)if(_0x377b96['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x50dd68['createRangeIn'](_0x184e80['content']))&&(_0x36268b=function(_0x52ab48,_0x5de465){const _0x48dd98=c(_0x52ab48,_0x5de465);if(!_0x48dd98)return null;const _0x5ab917=Object['create'](null);for(const _0x564ff8 of _0x48dd98['getChildren']())_0x564ff8['is']('element','footnoteDefinition')&&_0x564ff8['hasAttribute']('footnoteId')&&(_0x5ab917[_0x564ff8['getAttribute']('footnoteId')]=_0x52ab48['cloneElement'](_0x564ff8,!0x0));return Object['keys'](_0x5ab917)['length']?_0x5ab917:null;}(_0x336278,_0x184e80['content'])),(_0xf0cfbd&&!_0x3985cb||!_0xf0cfbd&&!_0x36268b)&&function(_0x4b6218,_0x246bc0){const _0x10b878=[];for(const {item:_0x201893}of _0x4b6218['createRangeIn'](_0x246bc0))_0x201893['is']('element','footnotesDefinitions')&&_0x10b878['push'](_0x201893);for(const _0x1c66a9 of _0x10b878)_0x4b6218['remove'](_0x1c66a9);}(_0x336278,_0x184e80['content']),!_0x36268b)return;const {selection:_0x328c5e}=_0x50dd68['document'],_0x271338=_0x328c5e['getFirstRange']()['root'];_0xf0cfbd&&!_0x3985cb||(_0xf0cfbd=c(_0x336278,_0x184e80['content']),_0xf0cfbd||=_0x3dce91['_insertEmptyFootnotesDefinitionsContainer'](_0x336278,_0x271338));const _0x17ffb3=Array['from'](_0x328c5e['getRanges']())['flatMap'](l),_0x558625=function(_0x1c3f5f,_0x2fab06,_0x45ad47){const _0x51c5a4=Object['create'](null);for(const {item:_0x592ca3}of _0x1c3f5f['createRangeIn'](_0x2fab06))if(_0x592ca3['is']('element','footnoteRef')){const _0x446ba4=_0x592ca3['getAttribute']('footnoteId');if(!_0x45ad47(_0x446ba4))continue;_0x51c5a4[_0x446ba4]||(_0x51c5a4[_0x446ba4]=_0x5bfbcd()),_0x1c3f5f['setAttribute']('footnoteId',_0x51c5a4[_0x446ba4],_0x592ca3);}return _0x51c5a4;}(_0x336278,_0x184e80['content'],_0x1640bb=>{if(!_0x458045)return!0x0;return!!_0x3dce91['getFootnote'](_0x1640bb)&&!_0x17ffb3['includes'](_0x1640bb);});for(const [_0x4679af,_0x464b54]of Object['entries'](_0x36268b)){const _0x2097e0=_0x558625[_0x4679af]||_0x4679af;let _0x36479a;if('string'!=typeof _0x464b54)_0x36479a=_0x464b54,_0x2097e0!==_0x4679af&&_0x336278['setAttribute']('footnoteId',_0x2097e0,_0x36479a);else{_0x36479a=_0x336278['createElement']('footnoteDefinition',{'footnoteId':_0x2097e0});const _0x4b6942=_0x6aada1['data']['htmlProcessor']['toView'](_0x464b54);let _0x265adf;if(_0x385f05)_0x265adf=_0x6aada1['data']['toModel'](_0x4b6942,_0x36479a);else{_0x265adf=_0x336278['createElement']('footnoteInlineContent');const _0x33e59b=_0x6aada1['data']['toModel'](_0x4b6942,_0x265adf);_0x336278['insert'](_0x33e59b,_0x265adf);}_0x336278['append'](_0x265adf,_0x36479a);}_0x336278['insert'](_0x36479a,_0xf0cfbd,'end');}_0x36268b=null;});});}}function c(_0x37e86b,_0x1b1fdf){for(const {item:_0x3e2d4f}of _0x37e86b['createRangeIn'](_0x1b1fdf))if(_0x3e2d4f['is']('element','footnotesDefinitions'))return _0x3e2d4f;return null;}function l(_0x416520){const _0x400ad5=new Set();for(const {item:_0x15625b}of _0x416520)_0x15625b['is']('element','footnoteRef')&&_0x400ad5['add'](_0x15625b['getAttribute']('footnoteId'));return Array['from'](_0x400ad5);}class i extends _0xc7f63b{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3d38f3}=this,{componentFactory:_0x5cea89}=_0x3d38f3['ui'];_0x5cea89['add']('insertFootnote',E(_0x3d38f3,_0x2db5b5)),_0x5cea89['add']('menuBar:insertFootnote',E(_0x3d38f3,_0x3b4fc0)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5aff84=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x6736aa;for(const _0x41b359 in _0x5aff84){const _0x4e3889=_0x41b359,_0x4b1e35=_0x5aff84[_0x4e3889];if('footnotesLicenseKeyValid'==_0x4b1e35||'footnotesLicenseKeyInvalid'==_0x4b1e35||'footnotesLicenseKeyExpired'==_0x4b1e35||'footnotesLicenseKeyDomainLimit'==_0x4b1e35||'footnotesLicenseKeyNotAllowed'==_0x4b1e35||'footnotesLicenseKeyEvaluationLimit'==_0x4b1e35||'footnotesLicenseKeyTrialLimit'==_0x4b1e35||'footnotesLicenseKeyUsageLimit'==_0x4b1e35){delete _0x5aff84[_0x4e3889],_0x6736aa=_0x4b1e35,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x6736aa&&_0x5aff84['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x6736aa&&_0x5aff84['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x6736aa&&_0x5aff84['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x6736aa&&_0x5aff84['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x6736aa&&_0x5aff84['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x6736aa&&_0x5aff84['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x6736aa&&_0x5aff84['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x25c8b4,_0x500885){const _0x375ff5=_0x25c8b4['commands']['get']('insertFootnote');return _0xfe2325=>{const {t:t}=_0xfe2325,_0x458ee9=new _0x500885(_0xfe2325),_0x272362=_0x458ee9 instanceof _0x3b4fc0;return _0x458ee9['bind']('isEnabled')['to'](_0x375ff5,'isEnabled'),_0x458ee9['set']({'label':t(_0x272362?'Footnote':'Insert\x20footnote'),'icon':_0x319d7d,'tooltip':!0x0}),_0x458ee9['on']('execute',()=>{_0x375ff5['execute'](),_0x25c8b4['editing']['view']['focus']();}),_0x458ee9;};}class lt extends _0xc7f63b{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const W=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x13958d{['refresh'](){const {editor:_0x3156ea}=this,_0x2ee345=_0x3156ea['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x2ee345,this['value']=_0x2ee345?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x4612d9}){const {editor:_0x1920a0}=this,_0x5c6668=_0x1920a0['plugins']['get'](f),_0x5a8e42=_0x5c6668['getFootnotesDefinitionsObjectElement']();_0x5a8e42&&W['includes'](_0x4612d9)&&_0x1920a0['model']['change'](_0x264fa4=>{_0x264fa4['setAttribute']('footnotesListStyle',_0x4612d9,_0x5a8e42),_0x5c6668['_updateFootnotesCounters'](_0x264fa4);});}}class C extends _0x13958d{['refresh'](){const {editor:_0x4178cc}=this,_0x489253=_0x4178cc['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x489253,this['value']=_0x489253?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x393a91}){const {editor:_0x48cd1f}=this,_0x348d80=_0x48cd1f['plugins']['get'](f),_0x137e08=_0x348d80['getFootnotesDefinitionsObjectElement']();_0x137e08&&Number['isInteger'](_0x393a91)&&_0x48cd1f['model']['change'](_0x2b31ca=>{_0x2b31ca['setAttribute']('footnotesListStart',_0x393a91,_0x137e08),_0x348d80['_updateFootnotesCounters'](_0x2b31ca);});}}class P extends _0xc7f63b{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4f3a9c}=this;_0x4f3a9c['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x4f3a9c['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x4f3a9c['commands']['add']('footnotesStyle',new S(_0x4f3a9c)),_0x4f3a9c['commands']['add']('footnotesStart',new C(_0x4f3a9c)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x30855b}=this,{schema:_0x270f03}=_0x30855b['model'];_0x270f03['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x53b221}=this,{conversion:_0x228ed3,model:_0x4e6cd2}=_0x53b221,{schema:_0x35b5f5}=_0x4e6cd2;_0x228ed3['for']('upcast')['add'](_0x3004f1=>{_0x3004f1['on']('element:ol',(_0x3cf00d,_0x399f3d,_0x1182b1)=>{const _0xc44932=_0x399f3d['viewItem'],_0x3e6f22=_0x399f3d['modelCursor']?.['parent'];_0xc44932['hasClass']('footnotes-list')&&_0x3e6f22?.['is']('element','footnotesDefinitions')&&(function(_0x4062c8,_0x5461b0,_0x1ae8c4,_0x2229ec){if(!_0x2229ec['checkAttribute'](_0x5461b0,'footnotesListStart'))return;let _0x28a379=0x1;const _0x341bcf=_0x1ae8c4['consumable']['consume'](_0x4062c8,{'attributes':'start'});if(_0x341bcf){const _0xc27df1=Number['parseInt'](_0x4062c8['getAttribute']('start'),0xa);Number['isNaN'](_0xc27df1)||(_0x28a379=_0xc27df1);}!_0x341bcf&&_0x5461b0['hasAttribute']('footnotesListStart')||_0x1ae8c4['writer']['setAttribute']('footnotesListStart',_0x28a379,_0x5461b0);}(_0xc44932,_0x3e6f22,_0x1182b1,_0x35b5f5),function(_0xfdd737,_0xb44490,_0x4e49a4,_0x25aa1d){if(!_0x25aa1d['checkAttribute'](_0xb44490,'footnotesListStyle'))return;let _0x254af5='decimal',_0x2c4c65=!0x1;if(_0x4e49a4['consumable']['consume'](_0xfdd737,{'attributes':'type'})){const _0x75a820={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0xfdd737['getAttribute']('type')];_0x75a820&&(_0x254af5=_0x75a820),_0x2c4c65=!0x0;}_0x4e49a4['consumable']['consume'](_0xfdd737,{'styles':'list-style-type'})&&(_0x254af5=function(_0x83399b){switch(_0x83399b){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x83399b;}}(_0xfdd737['getStyle']('list-style-type')),_0x2c4c65=!0x0),!_0x2c4c65&&_0xb44490['hasAttribute']('footnotesListStyle')||_0x4e49a4['writer']['setAttribute']('footnotesListStyle',_0x254af5,_0xb44490);}(_0xc44932,_0x3e6f22,_0x1182b1,_0x35b5f5));});}),_0x228ed3['for']('downcast')['add'](_0x437448=>{_0x437448['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x210b2e,_0x54e57f,_0x317725)=>{if(!_0x317725['consumable']['consume'](_0x54e57f['item'],_0x210b2e['name']))return;const _0x55f7d6=M(_0x54e57f['item'],_0x317725['mapper']),{attributeNewValue:_0x4ec051}=_0x54e57f;null==_0x4ec051||0x1===_0x4ec051?_0x317725['writer']['removeAttribute']('start',_0x55f7d6):_0x317725['writer']['setAttribute']('start',String(_0x4ec051),_0x55f7d6);}),_0x437448['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0xc634ea,_0x2d248c,_0xad3c06)=>{if(!_0xad3c06['consumable']['consume'](_0x2d248c['item'],_0xc634ea['name']))return;const _0x39c835=M(_0x2d248c['item'],_0xad3c06['mapper']),{attributeNewValue:_0x9a44f5}=_0x2d248c;_0x9a44f5&&'decimal'!==_0x9a44f5?_0xad3c06['writer']['setStyle']('list-style-type',_0x9a44f5,_0x39c835):_0xad3c06['writer']['removeStyle']('list-style-type',_0x39c835);});});}['_definePostfixer'](){const {editor:_0x574010}=this,{model:_0x1653c2}=_0x574010,_0x2c1b5b=_0x574010['plugins']['get'](f),_0x25f68b=this['_getDefaultListStyle'](),_0x50711a=this['_getDefaultStartIndex']();_0x1653c2['document']['registerPostFixer'](_0x66d6df=>{const _0x3e935c=_0x1653c2['document']['differ']['getChanges']();let _0x36c8fa=!0x1;for(const _0x57890d of _0x3e935c){if('insert'!==_0x57890d['type']||'$text'===_0x57890d['name'])continue;const _0x1b8697=_0x1653c2['createRangeOn'](_0x57890d['position']['nodeAfter']);for(const _0x65b48e of _0x1b8697['getItems']())_0x65b48e['is']('element','footnotesDefinitions')&&(!_0x65b48e['hasAttribute']('footnotesListStart')&&_0x1653c2['schema']['checkAttribute'](_0x65b48e,'footnotesListStart')&&(_0x66d6df['setAttribute']('footnotesListStart',_0x50711a,_0x65b48e),_0x36c8fa=!0x0),!_0x65b48e['hasAttribute']('footnotesListStyle')&&_0x1653c2['schema']['checkAttribute'](_0x65b48e,'footnotesListStyle')&&(_0x66d6df['setAttribute']('footnotesListStyle',_0x25f68b,_0x65b48e),_0x36c8fa=!0x0));}return _0x36c8fa&&_0x2c1b5b['_updateFootnotesCounters'](_0x66d6df),_0x36c8fa;});}['_defineFormatter'](){const {editor:_0x40fca7}=this;_0x40fca7['plugins']['get'](f)['setFootnoteFormatter'](_0x1f7217=>this['_formatFootnoteListValue'](_0x1f7217));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x53e144,value:_0x374dd6,digits:_0x593374}){const _0x542f2d=_0x53e144['getAttribute']('footnotesListStyle'),_0x38dbfa=_0x53e144['getAttribute']('footnotesListStart'),_0x1732bc=Math['floor'](_0x374dd6)+(_0x38dbfa??0x1)-0x1;switch(_0x542f2d){case'decimal-leading-zero':return function(_0x500dba,_0x30c595){return String(_0x500dba)['padStart'](_0x30c595,'0');}(_0x1732bc,Math['max'](0x2,_0x593374));case'lower-alpha':case'lower-latin':return N(_0x1732bc,!0x1);case'upper-alpha':case'upper-latin':return N(_0x1732bc,!0x0);case'lower-roman':return X(_0x1732bc,!0x1);case'upper-roman':return X(_0x1732bc,!0x0);default:return String(_0x1732bc);}}}function M(_0x375880,_0x387cad){const _0x529bee=_0x387cad['toViewElement'](_0x375880);return Array['from'](_0x529bee['getChildren']())['find'](_0x17995f=>_0x17995f['is']('element','ol')&&_0x17995f['hasClass']('footnotes-list'));}function N(_0x2d534b,_0x1b4e16){let _0x5a0102='',_0x59e295=_0x2d534b;for(;_0x59e295>0x0;){const _0x24ef33=(_0x59e295-0x1)%0x1a;_0x5a0102=String['fromCharCode'](0x61+_0x24ef33)+_0x5a0102,_0x59e295=Math['floor']((_0x59e295-0x1)/0x1a);}return _0x1b4e16?_0x5a0102['toUpperCase']():_0x5a0102;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0x145af2,_0x592832){let _0xaa2b6='',_0x4acc09=_0x145af2;for(const {value:_0x40f4d1,numeral:_0x2fb1fb}of V)for(;_0x4acc09>=_0x40f4d1;)_0xaa2b6+=_0x2fb1fb,_0x4acc09-=_0x40f4d1;return _0x592832?_0xaa2b6:_0xaa2b6['toLowerCase']();}class J extends _0x5f09d0{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x1959fc();['focusCycler'];constructor(_0x811517,{styleButtonViews:_0x365f92,styleGridAriaLabel:_0x3555cf}){super(_0x811517),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x365f92,_0x3555cf),[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 _0x3099d6 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3099d6['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['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 _0x5bffe6=_0x7f135f=>_0x7f135f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5bffe6),this['keystrokes']['set']('arrowleft',_0x5bffe6),this['keystrokes']['set']('arrowup',_0x5bffe6),this['keystrokes']['set']('arrowdown',_0x5bffe6);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x436732,_0x40a796){const _0x1f3df2=new _0x5f09d0(this['locale']);return _0x1f3df2['children']=_0x1f3df2['createCollection'](),_0x1f3df2['children']['addMany'](_0x436732),_0x1f3df2['setTemplate']({'tag':'div','attributes':{'aria-label':_0x40a796,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x1f3df2['children']}),_0x1f3df2['children']['delegate']('execute')['to'](this),_0x1f3df2['focus']=function(){for(const _0x3c0149 of this['children'])if(_0x3c0149 instanceof _0x2db5b5&&_0x3c0149['isOn'])return void _0x3c0149['focus']();this['children']['first']['focus']();},_0x1f3df2['focusTracker']=new rt(),_0x1f3df2['keystrokes']=new nt(),_0x1f3df2['render'](),_0x1f3df2['keystrokes']['listenTo'](_0x1f3df2['element']),this['children']['add'](_0x1f3df2),_0x1f3df2;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x22f093=this['_createStartIndexPropertyView'](),_0x3bcd44=[_0x22f093],_0x2836d5=new it(this['locale'],_0x3bcd44);return _0x2836d5['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x2836d5['buttonView']['bind']('isEnabled')['toMany'](_0x3bcd44,'isEnabled',(..._0x2c8b08)=>_0x2c8b08['some'](_0x2f2171=>_0x2f2171)),_0x2836d5['buttonView']['on']('change:isEnabled',(_0x568357,_0x964bb3,_0x48037d)=>{_0x48037d||(_0x2836d5['isCollapsed']=!0x0);}),this['children']['add'](_0x2836d5),[_0x22f093,_0x2836d5];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x11a566=new et(this['locale'],ot);return _0x11a566['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x11a566['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x11a566['fieldView']['on']('input',()=>{const _0x504a6e=_0x11a566['fieldView']['element'],_0x1a7b26=_0x504a6e['valueAsNumber'];Number['isNaN'](_0x1a7b26)?_0x11a566['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x504a6e['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x1a7b26}):_0x11a566['errorText']=t(_0x1a7b26<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x11a566;}}class j extends _0xc7f63b{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x57252f,_0x5e5ac2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x49beef}=this,{componentFactory:_0x50530e}=_0x49beef['ui'];_0x49beef['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x50530e['add']('footnotesStyle',function(_0x297127){return _0x4d7cfa=>{const {t:t}=_0x4d7cfa,_0x53ea03=_0x297127['commands']['get']('footnotesStyle'),_0x56ac4d=_0x499324(_0x4d7cfa),{buttonView:_0x12e7f3}=_0x56ac4d;return _0x56ac4d['class']='ck-footnotes-styles-dropdown',_0x56ac4d['bind']('isEnabled')['to'](_0x53ea03,'isEnabled'),_0x12e7f3['set']({'label':t('Footnotes\x20style'),'icon':_0x319d7d,'tooltip':!0x0}),_0x56ac4d['once']('change:isOpen',()=>{const _0x18f554=function({editor:_0x39e9bd,dropdownView:_0x452992}){const {t:t}=_0x39e9bd['locale'],_0xe24a04=t('Footnotes\x20definitions\x20styles'),_0x4516ce=function(_0x59f93c){const t=_0x59f93c['locale']['t'],_0x2af004=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x4a8bd5},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x3a1276},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0xad7cae},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x2b6f24},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x1b7c59},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x15df0c}];return _0x2af004['map'](function(_0x450776){const _0x1cb427=_0x450776['locale'];return({label:_0x3a1407,icon:_0x4abe9b,tooltip:_0x214c35,style:_0x5de310})=>{const _0x672324=_0x450776['commands']['get']('footnotesStyle'),_0x24e761=new _0x2db5b5(_0x1cb427);return _0x24e761['set']({'label':_0x3a1407,'icon':_0x4abe9b,'tooltip':_0x214c35}),_0x24e761['bind']('isOn')['to'](_0x672324,'value',_0x223fad=>_0x223fad===_0x5de310),_0x24e761['bind']('isEnabled')['to'](_0x672324,'isEnabled'),_0x24e761['on']('execute',()=>{_0x450776['execute']('footnotesStyle',{'value':_0x5de310}),_0x450776['editing']['view']['focus']();}),_0x24e761;};}(_0x59f93c));}(_0x39e9bd),_0x452d36=new J(_0x39e9bd['locale'],{'styleGridAriaLabel':_0xe24a04,'styleButtonViews':_0x4516ce}),_0x267ce6=_0x39e9bd['commands']['get']('footnotesStart');return _0x452d36['startIndexFieldView']['bind']('isEnabled')['to'](_0x267ce6),_0x452d36['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x267ce6),_0x452d36['on']('footnotesListStart',(_0x2fb2db,_0xe04a59)=>{_0x39e9bd['execute']('footnotesStart',{'value':_0xe04a59['startIndex']});}),_0x452d36['delegate']('execute')['to'](_0x452992),_0x452d36;}({'editor':_0x297127,'dropdownView':_0x56ac4d});_0x56ac4d['panelView']['children']['add'](_0x18f554);}),_0x56ac4d;};}(_0x49beef));}['afterInit'](){const {editor:_0x2b792f}=this,{t:t}=_0x2b792f['locale'],_0xccb259=_0x2b792f['plugins']['get'](_0x5e5ac2),{defaultPositions:_0x5c8437}=_0x2596a5;_0xccb259['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x2b792f['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x5df068=>{let _0xbf6f3d=_0x5df068['getFirstPosition']()?.['parent'];return _0xbf6f3d?.['is']('$text')&&(_0xbf6f3d=_0xbf6f3d['parent']),_0xbf6f3d?.['is']('element')?_0xbf6f3d['findAncestor'](Q):null;},'positions':[_0x5c8437['southArrowNorth'],_0x5c8437['southArrowNorthMiddleWest'],_0x5c8437['southArrowNorthMiddleEast'],_0x5c8437['southArrowNorthWest'],_0x5c8437['southArrowNorthEast'],_0x5c8437['northArrowSouth'],_0x5c8437['northArrowSouthMiddleWest'],_0x5c8437['northArrowSouthMiddleEast'],_0x5c8437['northArrowSouthWest'],_0x5c8437['northArrowSouthEast'],_0x5c8437['viewportStickyNorth']]});}}class ft extends _0xc7f63b{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,h as InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0x29e4b9,Command as _0x105de7}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x85a6ac,isWidget as _0x1d1793,toWidgetEditable as _0x531eee,WidgetToolbarRepository as _0x3af8ff}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x298719,logWarning as _0x5da817,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x15843f,ClickObserver as _0x2aba41}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x334eaf}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x3b0c15,ButtonView as _0x33ea5c,View as _0x3bdf1a,ViewCollection as _0x1d6abf,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x272901,BalloonPanelView as _0x522a04,createDropdown as _0x3945d5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x11833d,IconListStyleDecimal as _0x1a91c9,IconListStyleDecimalLeadingZero as _0x442f15,IconListStyleLowerRoman as _0x5a7583,IconListStyleUpperRoman as _0x770039,IconListStyleLowerLatin as _0x424893,IconListStyleUpperLatin as _0x17a52b}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x23c304,_0x33b8f1){this['_model']=_0x23c304,this['_elementName']=_0x33b8f1['elementName'],this['_getElementKey']=_0x33b8f1['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x507250){const _0x2f5cd1=new Set(),_0x492b59=new Map();for(const _0x587339 of _0x507250){if('insert'===_0x587339['type']&&'$text'!==_0x587339['name']&&_0x587339['position']['nodeAfter']){const _0x5dc03f=this['_model']['createRangeOn'](_0x587339['position']['nodeAfter']);for(const _0x31dda1 of _0x5dc03f['getItems']()){if(!_0x31dda1['is']('element',this['_elementName']))continue;const _0x4ca8f8=this['_getElementKey'](_0x31dda1);_0x492b59['has'](_0x4ca8f8)||_0x492b59['set'](_0x4ca8f8,[]),_0x492b59['get'](_0x4ca8f8)['push'](_0x31dda1);}}if('remove'===_0x587339['type']&&_0x587339['name']===this['_elementName']){const _0x1def60=this['_getElementKey']({'getAttribute':_0x2c2aef=>_0x587339['attributes']['get'](_0x2c2aef)});_0x2f5cd1['add'](_0x1def60);}}for(const [_0xf51d80,_0x183fdf]of this['_trackedElements'])'$graveyard'===_0x183fdf['root']['rootName']&&_0x2f5cd1['add'](_0xf51d80);for(const _0x1b0b72 of _0x2f5cd1)this['_trackedElements']['delete'](_0x1b0b72);for(const [_0x4ff36d,_0x1eafba]of _0x492b59)this['_trackedElements']['set'](_0x4ff36d,_0x1eafba[_0x1eafba['length']-0x1]);const _0x422104=new Set();for(const [_0x4a8abc,_0x20ab62]of _0x492b59)_0x2f5cd1['has'](_0x4a8abc)&&(_0x422104['add'](_0x20ab62[0x0]),_0x20ab62['length']>0x1?_0x492b59['set'](_0x4a8abc,_0x20ab62['slice'](0x1)):_0x492b59['delete'](_0x4a8abc),_0x2f5cd1['delete'](_0x4a8abc));return{'removed':Array['from'](_0x2f5cd1),'inserted':Array['from'](_0x492b59['values']())['flat'](),'moved':Array['from'](_0x422104)};}}class f extends _0x29e4b9{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9866bc){super(_0x9866bc),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x2ccebb=>_0x2ccebb['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x4175e4=>_0x4175e4['getAttribute']('footnoteId')});}['init'](){const {editor:_0x517f55}=this,{model:_0x25f5e4,data:_0x50faa4}=_0x517f55;_0x25f5e4['document']['registerPostFixer'](_0x40858f=>{const _0x5a1828=_0x25f5e4['document']['differ']['getChanges']();let _0xcc1c2d=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x40858f,_0x5a1828)&&(_0xcc1c2d=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x40858f,_0x5a1828)&&(_0xcc1c2d=!0x0),this['_handleFootnoteReferencesChanges'](_0x40858f,_0x5a1828)&&(_0xcc1c2d=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x40858f)&&(_0xcc1c2d=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x40858f)&&(_0xcc1c2d=!0x0),this['_sortFootnoteDefinitions'](_0x40858f)&&(_0xcc1c2d=!0x0),_0xcc1c2d;}),this['listenTo'](_0x25f5e4['document'],'change:data',()=>{_0x25f5e4['enqueueChange']({'isUndoable':!0x1},_0x4fdfa1=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x4fdfa1);});},{'priority':'low'}),this['listenTo'](_0x50faa4,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x3415fb){return this['_footnotes']['find'](_0x34737a=>_0x34737a['id']===_0x3415fb)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x3c317a){this['_footnoteFormatter']=_0x3c317a;}['_updateFootnotesCounters'](_0x48eb29,_0x174941=0x0){let _0x3bf1ca=!0x1;for(let _0x16e6c8=_0x174941;_0x16e6c8<this['_footnotes']['length'];_0x16e6c8++)this['_updateFootnoteRefCounter'](_0x48eb29,_0x16e6c8)&&(_0x3bf1ca=!0x0);return _0x3bf1ca;}['_insertEmptyFootnotesDefinitionsContainer'](_0xbf0fe,_0x1e9097){const _0x18a144=_0xbf0fe['createElement']('footnotesDefinitions',{});return _0xbf0fe['append'](_0x18a144,_0x1e9097),this['_footnotesDefinitions']=_0x18a144,_0x18a144;}['_ensureFootnotesDefinitionsContainerExists'](_0x37f783){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x30a713=this['_footnotes'][0x0]['reference']['root'],_0x4e943a=this['_insertEmptyFootnotesDefinitionsContainer'](_0x37f783,_0x30a713);for(const _0x2dce3a of this['_footnotes'])_0x2dce3a['definition']['parent']||_0x37f783['insert'](_0x2dce3a['definition'],_0x4e943a,'end');this['_updateFootnotesCounters'](_0x37f783);}['_handleFootnotesDefinitionsObjectChanges'](_0x930e21,_0x1889e9){let _0x4d2078=!0x1;const {inserted:_0x56cafc,removed:_0xc29757,moved:_0x59cae1}=this['_footnoteDefsContainerTracker']['getChanges'](_0x1889e9);if(_0x59cae1['length']&&(this['_footnotesDefinitions']=_0x59cae1[0x0]),_0x56cafc['length']){if(_0x56cafc['length']>0x1||this['_footnotesDefinitions']&&_0x56cafc['some'](_0x45049d=>_0x45049d!==this['_footnotesDefinitions'])){const _0x19ab5e=_0x930e21['createElement']('footnotesDefinitions',{}),_0x8dce1f=[];this['_footnotesDefinitions']&&_0x8dce1f['push'](this['_footnotesDefinitions']),_0x8dce1f['push'](..._0x56cafc),_0x930e21['insert'](_0x19ab5e,_0x8dce1f[0x0],'before');for(const _0x4de902 of _0x8dce1f)_0x930e21['move'](_0x930e21['createRangeIn'](_0x4de902),_0x930e21['createPositionAt'](_0x19ab5e,'end')),_0x930e21['remove'](_0x4de902);this['_footnotesDefinitions']=_0x19ab5e,this['_updateFootnotesCounters'](_0x930e21),_0x4d2078=!0x0;}else this['_footnotesDefinitions']=_0x56cafc[0x0];}if(_0xc29757['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x1fbc43 of this['_footnotes'])_0x930e21['remove'](_0x1fbc43['reference']),_0x4d2078=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x4d2078;}['_handleFootnoteDefinitionsChanges'](_0x1b9896,_0x18025b){let _0x552ef4=!0x1;const _0x4b8d82=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x10314d,moved:_0x31fc3d}=this['_footnoteDefsTracker']['getChanges'](_0x18025b);for(const _0x2189f8 of[..._0x31fc3d,..._0x10314d]){const _0x2a10cf=_0x2189f8['getAttribute']('footnoteId'),_0x5001b2=this['getFootnote'](_0x2a10cf);_0x5001b2&&(_0x5001b2['definition']=_0x2189f8),_(_0x1b9896,_0x4b8d82,_0x2189f8)&&(_0x552ef4=!0x0);}return _0x552ef4;}['_handleFootnoteReferencesChanges'](_0x5b2fc5,_0xedb87b){let _0x19fecb=!0x1;const {removed:_0x302604,inserted:_0x1b1fc4,moved:_0x1f733f}=this['_footnoteRefsTracker']['getChanges'](_0xedb87b);for(const _0x506cdb of _0x302604)this['_handleRemoveFootnoteReferenceById'](_0x5b2fc5,_0x506cdb)&&(_0x19fecb=!0x0);for(const _0x4a0197 of _0x1b1fc4)this['_handleInsertedFootnoteReference'](_0x5b2fc5,_0x4a0197)&&(_0x19fecb=!0x0);for(const _0x50c920 of _0x1f733f)this['_handleMovedFootnoteReference'](_0x5b2fc5,_0x50c920)&&(_0x19fecb=!0x0);return _0x19fecb;}['_handleFootnotesDefinitionsObjectSync'](_0x5a038d){if(!this['_footnotesDefinitions'])return!0x1;let _0x1f0fc1=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x4f6949=[];for(const _0xe6973d of this['_footnotesDefinitions']['getChildren']()){const _0x11e3e2=_0xe6973d['getAttribute']('footnoteId');this['getFootnote'](_0x11e3e2)||(_0x4f6949['unshift'](_0xe6973d),_0x1f0fc1=!0x0);}for(const _0x56c2e2 of _0x4f6949)_0x5a038d['remove'](_0x56c2e2);}const _0x507fe0=new Set(),_0x3f02a0=[];for(const _0x3aff90 of this['_footnotesDefinitions']['getChildren']()){const _0x4ac1c5=_0x3aff90['getAttribute']('footnoteId');_0x507fe0['has'](_0x4ac1c5)?(_0x3f02a0['unshift'](_0x3aff90),_0x1f0fc1=!0x0):_0x507fe0['add'](_0x4ac1c5);}for(const _0x134c16 of _0x3f02a0)_0x5a038d['remove'](_0x134c16);return this['_footnotesDefinitions']['childCount']||(_0x5a038d['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x1f0fc1=!0x0),_0x1f0fc1;}['_handleInsertedFootnoteReference'](_0x31cacd,_0x16e7bb){if(this['_footnotes']['find'](_0x3dbfef=>_0x3dbfef['reference']===_0x16e7bb))return!0x1;let _0x473f61=!0x1;const _0x54126f=_0x16e7bb['getAttribute']('footnoteId'),_0x20358e=this['_footnotes']['findIndex'](_0x43236a=>_0x43236a['id']===_0x54126f);-0x1!==_0x20358e&&(_0x31cacd['remove'](this['_footnotes'][_0x20358e]['reference']),this['_footnotes']['splice'](_0x20358e,0x1),_0x473f61=!0x0);let _0x419abc=this['_footnotesDefinitions']?function(_0x58fda0,_0x1e6916){for(const _0x2f0b60 of _0x58fda0['getChildren']())if(_0x2f0b60['getAttribute']('footnoteId')===_0x1e6916)return _0x2f0b60;return null;}(this['_footnotesDefinitions'],_0x54126f):null;_0x419abc||(_0x419abc=_0x31cacd['createElement']('footnoteDefinition',{'footnoteId':_0x54126f}),this['_footnotesDefinitions']&&(_0x31cacd['insert'](_0x419abc,this['_footnotesDefinitions'],'end'),_0x473f61=!0x0));const _0x2d6ee0={'id':_0x54126f,'reference':_0x16e7bb,'definition':_0x419abc},_0x433534=I(this['editor']['model'],this['_footnotes'],_0x16e7bb);this['_footnotes']['splice'](_0x433534,0x0,_0x2d6ee0);let _0x13c189=_0x433534;return-0x1!==_0x20358e&&(_0x13c189=Math['min'](_0x433534,_0x20358e)),this['_updateFootnotesCounters'](_0x31cacd,_0x13c189)&&(_0x473f61=!0x0),_0x473f61;}['_handleRemoveFootnoteReferenceById'](_0x35528a,_0x24339f){const _0x5d16f0=this['_footnotes']['findIndex'](_0x316bdf=>_0x316bdf['id']===_0x24339f);if(-0x1===_0x5d16f0)return!0x1;let _0x5be2d9=!0x1;const _0x36154a=this['_footnotes'][_0x5d16f0];return'$graveyard'!==_0x36154a['definition']['root']['rootName']&&(_0x35528a['remove'](_0x36154a['definition']),_0x5be2d9=!0x0),this['_footnotes']['splice'](_0x5d16f0,0x1),this['_updateFootnotesCounters'](_0x35528a,_0x5d16f0)&&(_0x5be2d9=!0x0),_0x5be2d9;}['_handleMovedFootnoteReference'](_0x535b8a,_0x1d028a){const _0x524c64=_0x1d028a['getAttribute']('footnoteId'),_0x3270dd=this['_footnotes']['findIndex'](_0x5b4390=>_0x5b4390['id']===_0x524c64),_0x176a37=this['_footnotes'][_0x3270dd];let _0x10ccc7=!0x1;_0x176a37['reference']=_0x1d028a,this['_footnotes']['splice'](_0x3270dd,0x1);const _0x5bf3ab=I(this['editor']['model'],this['_footnotes'],_0x1d028a);return this['_footnotes']['splice'](_0x5bf3ab,0x0,_0x176a37),this['_updateFootnotesCounters'](_0x535b8a,Math['min'](_0x3270dd,_0x5bf3ab))&&(_0x10ccc7=!0x0),_0x10ccc7;}['_updateFootnoteRefCounter'](_0x1d2317,_0xb859df){if(!this['_footnotesDefinitions'])return!0x1;const _0x480e95=this['_footnotes'][_0xb859df];let _0x16d91d;return _0x16d91d=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x480e95,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0xb859df+0x1}):String(_0xb859df+0x1),_0x480e95['reference']['getAttribute']('footnoteCounter')!=_0x16d91d&&(_0x1d2317['setAttribute']('footnoteCounter',_0x16d91d,_0x480e95['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x1aa9c0){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x403e9c,_0x31e43f){if(_0x403e9c['length']!==_0x31e43f['length'])return!0x1;for(let _0x3516e0=0x0;_0x3516e0<_0x403e9c['length'];_0x3516e0++)if(_0x403e9c[_0x3516e0]!==_0x31e43f[_0x3516e0])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x443d03=>_0x443d03['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x35277d=>_0x35277d['getAttribute']('footnoteId'))))return!0x1;let _0x2a70ff=!0x1;for(let _0x495152=0x0;_0x495152<this['_footnotes']['length'];_0x495152++){const _0xfd5987=this['_footnotes'][_0x495152],_0x4373ff=_0x1aa9c0['createPositionBefore'](_0xfd5987['definition']),_0x2cc2f8=_0x1aa9c0['createPositionAt'](this['_footnotesDefinitions'],_0x495152);_0x4373ff['isEqual'](_0x2cc2f8)||(_0x1aa9c0['move'](_0x1aa9c0['createRangeOn'](_0xfd5987['definition']),_0x2cc2f8),_0x2a70ff=!0x0);}return _0x2a70ff;}['_ensureFootnotesReferencesHaveProperOrder'](_0x462868){if(!this['_footnotes']['length'])return!0x1;const {model:_0x190547}=this['editor'];let _0x10251e=!0x1;for(let _0x2f99bd=0x0;_0x2f99bd<this['_footnotes']['length']-0x1;_0x2f99bd++){const _0xc93119=this['_footnotes'][_0x2f99bd],_0x85dbd2=this['_footnotes'][_0x2f99bd+0x1],_0x243f24=_0x190547['createPositionBefore'](_0xc93119['reference']),_0x4f27af=_0x190547['createPositionBefore'](_0x85dbd2['reference']);'after'===_0x243f24['compareWith'](_0x4f27af)&&(this['_handleMovedFootnoteReference'](_0x462868,_0xc93119['reference']),_0x2f99bd=-0x1,_0x10251e=!0x0);}return _0x10251e;}}function _(_0x4151bb,_0x3b59ae,_0x181fb5){if(_0x181fb5['childCount'])return!0x1;const _0x3181c1=_0x3b59ae?'paragraph':'footnoteInlineContent';return _0x4151bb['insert'](_0x4151bb['createElement'](_0x3181c1),_0x181fb5),!0x0;}function I(_0x262271,_0x302bce,_0x106759){if(0x0===_0x302bce['length'])return 0x0;const _0x13f621=_0x262271['createPositionBefore'](_0x106759);for(let _0x1f639a=0x0;_0x1f639a<_0x302bce['length'];_0x1f639a++){const _0x2ff83f=_0x302bce[_0x1f639a],_0x386273=_0x262271['createPositionBefore'](_0x2ff83f['reference']);if('before'===_0x13f621['compareWith'](_0x386273))return _0x1f639a;}const _0x44472c=_0x106759['root'];let _0x938268=-0x1;for(let _0x256d5d=_0x302bce['length']-0x1;_0x256d5d>=0x0;_0x256d5d--)if(_0x302bce[_0x256d5d]['reference']['root']===_0x44472c){_0x938268=_0x256d5d;break;}if(-0x1!==_0x938268)return _0x938268+0x1;const _0x586855=_0x262271['document']['getRootNames'](),_0x336ca5=_0x586855['indexOf'](_0x44472c['rootName']),_0x347722=_0x586855[_0x336ca5+0x1];if(_0x347722){for(let _0x6cb866=0x0;_0x6cb866<_0x302bce['length'];_0x6cb866++)if(_0x302bce[_0x6cb866]['reference']['root']['rootName']===_0x347722)return _0x6cb866;}return _0x302bce['length'];}class h extends _0x105de7{['refresh'](){const _0x9522fe=this['editor']['model']['document']['selection'],_0x926552=this['_getPositionToInsertFootnote'](_0x9522fe);this['isEnabled']=!!_0x926552;}['execute'](_0x58f58b){const {editor:_0x3495ec}=this,{model:_0x49f9dc}=_0x3495ec,{selection:_0x89f293}=_0x49f9dc['document'],_0x4d00a3=this['_getPositionToInsertFootnote'](_0x89f293);if(!_0x4d00a3)return;const _0x3185b6=_0x3495ec['plugins']['get']('FootnotesEditing'),_0x3a7708=_0x58f58b?.['footnoteId']??_0x298719();!function(_0x594eac){return'string'==typeof _0x594eac&&_0x594eac['length']>0x0&&!/\s/['test'](_0x594eac)&&!/^\d/['test'](_0x594eac);}(_0x3a7708)?_0x5da817('insert-footnote-command-executed-with-invalid-id'):(_0x49f9dc['change'](_0x1a9185=>{const _0xb4131b=_0x1a9185['createElement']('footnoteRef',{'footnoteId':_0x3a7708});_0x49f9dc['insertObject'](_0xb4131b,_0x4d00a3,null);}),_0x3185b6['_moveSelectionToFootnoteDefinition'](_0x3a7708));}['_getPositionToInsertFootnote'](_0x4ac0bf){const {model:_0x43fe39}=this['editor'],{schema:_0x540ee4}=_0x43fe39,_0x42fdc2=_0x4ac0bf['getFirstRange']();for(const _0xc0b7bc of _0x42fdc2['getItems']())if(_0x540ee4['isBlock'](_0xc0b7bc)||_0x540ee4['isObject'](_0xc0b7bc))return null;const _0xcce163=_0x42fdc2['end'];return _0x540ee4['checkChild'](_0xcce163,'footnoteRef')?_0xcce163:null;}}class r extends _0x29e4b9{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x216d25}=this;_0x216d25['config']['define']('footnotes.multiBlock',!0x0),_0x216d25['commands']['add']('insertFootnote',new h(_0x216d25)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1edbab){const _0x5162e8=_0x35fca8([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]),_0x4b722f=0x47a28506,_0x29e6d4=0x47a5f9a6^_0x4b722f,_0x5088a6=window[_0x35fca8([0x44,0x61,0x74,0x65])][_0x35fca8([0x6e,0x6f,0x77])](),_0x46a951=_0x1edbab[_0x35fca8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x80a774=new window[(_0x35fca8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ac8ae=>{_0x46a951[_0x35fca8([0x6f,0x6e,0x63,0x65])](_0x35fca8([0x72,0x65,0x61,0x64,0x79]),_0x5ac8ae);}),_0x22487f={[_0x35fca8([0x6b,0x74,0x79])]:_0x35fca8([0x45,0x43]),[_0x35fca8([0x75,0x73,0x65])]:_0x35fca8([0x73,0x69,0x67]),[_0x35fca8([0x63,0x72,0x76])]:_0x35fca8([0x50,0x2d,0x32,0x35,0x36]),[_0x35fca8([0x78])]:_0x35fca8([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]),[_0x35fca8([0x79])]:_0x35fca8([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]),[_0x35fca8([0x61,0x6c,0x67])]:_0x35fca8([0x45,0x53,0x32,0x35,0x36])},_0x37aab5=_0x46a951[_0x35fca8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x35fca8([0x67,0x65,0x74])](_0x35fca8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x585beb(){let _0x3bcc38,_0x44999e=null,_0x573dfa=null;try{if(_0x37aab5==_0x35fca8([0x47,0x50,0x4c]))return _0x35fca8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3bcc38=_0x109b7f(),!_0x3bcc38)return _0x35fca8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3bcc38[_0x35fca8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x573dfa=_0x449c6d(_0x3bcc38[_0x35fca8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3bcc38[_0x35fca8([0x6a,0x74,0x69])])),await _0x331cba()?_0x3fae3e()?_0x290287()?_0x35fca8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5029e0()?(_0x3bcc38[_0x35fca8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x35fca8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x44999e=_0x3ad8ad(_0x35fca8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3bcc38[_0x35fca8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x35fca8([0x74,0x72,0x69,0x61,0x6c])&&(_0x44999e=_0x3ad8ad(_0x35fca8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xe931bd()):_0x35fca8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x35fca8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x35fca8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x35fca8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x290287(){const _0x7a4b06=[_0x35fca8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x35fca8([0x74,0x72,0x69,0x61,0x6c])][_0x35fca8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bcc38[_0x35fca8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5088a6/0x3e8:0xe10*_0x29e6d4;return _0x3bcc38[_0x35fca8([0x65,0x78,0x70])]<_0x7a4b06;}function _0x3fae3e(){const _0x2c89ef=_0x3bcc38[_0x35fca8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2c89ef&&(!!_0x2c89ef[_0x35fca8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35fca8([0x2a]))||!!_0x2c89ef[_0x35fca8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35fca8([0x46,0x4f,0x4f])));}function _0x5029e0(){const _0x2b03b2=_0x3bcc38[_0x35fca8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b03b2||0x0==_0x2b03b2[_0x35fca8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x198f27}=new URL(window[_0x35fca8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2b03b2[_0x35fca8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x198f27))return!0x0;const _0x422343=_0x198f27[_0x35fca8([0x73,0x70,0x6c,0x69,0x74])](_0x35fca8([0x2e]));return _0x2b03b2[_0x35fca8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4eba1c=>_0x4eba1c[_0x35fca8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35fca8([0x2a])))[_0x35fca8([0x6d,0x61,0x70])](_0x5c1b6c=>_0x5c1b6c[_0x35fca8([0x73,0x70,0x6c,0x69,0x74])](_0x35fca8([0x2e])))[_0x35fca8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x44d8ef=>_0x44d8ef[_0x35fca8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x422343[_0x35fca8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x35fca8([0x6d,0x61,0x70])](_0x4f0dd6=>Array(_0x422343[_0x35fca8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4f0dd6[_0x35fca8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x35fca8([0x66,0x69,0x6c,0x6c])](_0x4f0dd6[0x0]===_0x35fca8([0x2a])?_0x35fca8([0x2a]):'')[_0x35fca8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4f0dd6))[_0x35fca8([0x73,0x6f,0x6d,0x65])](_0x3215b9=>_0x422343[_0x35fca8([0x65,0x76,0x65,0x72,0x79])]((_0x3cc15e,_0x16d014)=>_0x3215b9[_0x16d014]===_0x3cc15e||_0x3215b9[_0x16d014]===_0x35fca8([0x2a])));}function _0xe931bd(){return _0x44999e&&_0x573dfa?new window[(_0x35fca8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a3ad1,_0x5e494d)=>{_0x44999e[_0x35fca8([0x74,0x68,0x65,0x6e])](_0x1a3ad1,_0x5e494d),_0x573dfa[_0x35fca8([0x74,0x68,0x65,0x6e])](_0x507ff4=>{_0x507ff4!=_0x35fca8([0x56,0x61,0x6c,0x69,0x64])&&_0x1a3ad1(_0x507ff4);},_0x5e494d);}):_0x44999e||_0x573dfa||_0x35fca8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x449c6d(_0x34795b,_0x4126e2){return new window[(_0x35fca8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f671b=>{if(_0x315cd0())return _0x3f671b(_0x35fca8([0x56,0x61,0x6c,0x69,0x64]));_0x44dc58(),_0x46a951[_0x35fca8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x35fca8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x36bd88=!0x1;const _0x135606=_0x298719();function _0x234579(_0x2afce2){return!!_0x2afce2&&(typeof _0x2afce2===_0x35fca8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2afce2===_0x35fca8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2afce2[_0x35fca8([0x74,0x68,0x65,0x6e])]===_0x35fca8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2afce2[_0x35fca8([0x63,0x61,0x74,0x63,0x68])]===_0x35fca8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5717d1(_0x10edd0){_0xa377f1(_0x10edd0)[_0x35fca8([0x74,0x68,0x65,0x6e])](_0x1ed540=>{if(!_0x1ed540||_0x1ed540[_0x35fca8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x35fca8([0x6f,0x6b]))return _0x35fca8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x10e34b(_0x674ef3(_0x135606+_0x4126e2))!=_0x1ed540[_0x35fca8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x35fca8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x35fca8([0x56,0x61,0x6c,0x69,0x64]);})[_0x35fca8([0x74,0x68,0x65,0x6e])](_0x1d85a0=>(_0x619734(),_0x1d85a0),()=>{const _0x5dac9e=_0x464407();return null==_0x5dac9e?(_0x619734(),_0x35fca8([0x56,0x61,0x6c,0x69,0x64])):_0x35fca8(_0x5088a6-_0x5dac9e>(0x63ae0106^_0x4b722f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x35fca8([0x74,0x68,0x65,0x6e])](_0x3f671b)[_0x35fca8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3f671b(_0x35fca8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x44676a=0x47946b86^_0x4b722f;function _0x619734(){const _0x3c55db=_0x35fca8([0x6c,0x6c,0x63,0x74,0x2d])+_0x10e34b(_0x674ef3(_0x34795b)),_0x520e9d=_0x957385(_0x10e34b(window[_0x35fca8([0x4d,0x61,0x74,0x68])][_0x35fca8([0x63,0x65,0x69,0x6c])](_0x5088a6/_0x44676a)));window[_0x35fca8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35fca8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c55db,_0x520e9d);}function _0x464407(){const _0x43fd57=_0x35fca8([0x6c,0x6c,0x63,0x74,0x2d])+_0x10e34b(_0x674ef3(_0x34795b)),_0x4b12ba=window[_0x35fca8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35fca8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43fd57);return _0x4b12ba?window[_0x35fca8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x957385(_0x4b12ba),0x10)*_0x44676a:null;}function _0xa377f1(_0x8bf47f){return new window[(_0x35fca8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b87e7,_0xc8921f)=>{_0x8bf47f[_0x35fca8([0x74,0x68,0x65,0x6e])](_0x3b87e7,_0xc8921f),window[_0x35fca8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc8921f,0x47a351c6^_0x4b722f);});}}_0x46a951[_0x35fca8([0x6f,0x6e])](_0x35fca8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4451f1,_0x2f4c87)=>{if(_0x2f4c87[0x0]!=_0x34795b)return _0x3f671b(_0x35fca8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f4c87[0x1]={..._0x2f4c87[0x1],[_0x35fca8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x135606};},{[_0x35fca8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35fca8([0x68,0x69,0x67,0x68])}),_0x46a951[_0x35fca8([0x6f,0x6e])](_0x35fca8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xbac0b7=>{_0x234579(_0xbac0b7[_0x35fca8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x36bd88=!0x0,_0x5717d1(_0xbac0b7[_0x35fca8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x35fca8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35fca8([0x6c,0x6f,0x77])}),_0x80a774[_0x35fca8([0x74,0x68,0x65,0x6e])](()=>{_0x36bd88||_0x3f671b(_0x35fca8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x315cd0(){return _0x46a951[_0x35fca8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35fca8([0x76,0x69,0x65,0x77])][_0x35fca8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x35fca8([0x61,0x75,0x74,0x6f]);}function _0x44dc58(){_0x46a951[_0x35fca8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35fca8([0x76,0x69,0x65,0x77])][_0x35fca8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x35fca8([0x61,0x75,0x74,0x6f]);}}function _0x3ad8ad(_0x291990){const _0x14d85a=[new window[(_0x35fca8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdbd81f=>setTimeout(_0xdbd81f,0x47abbbca^_0x4b722f)),_0x80a774[_0x35fca8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x35fca8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2215d6=>{let _0x4a4358=0x0;_0x46a951[_0x35fca8([0x6d,0x6f,0x64,0x65,0x6c])][_0x35fca8([0x6f,0x6e])](_0x35fca8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x29b17e,_0x28a374)=>{_0x28a374[0x0][_0x35fca8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a4358++,_0x4a4358==(0x47a280ee^_0x4b722f)&&(_0x2215d6(),_0x29b17e[_0x35fca8([0x6f,0x66,0x66])]());});}))];return window[_0x35fca8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x35fca8([0x72,0x61,0x63,0x65])](_0x14d85a)[_0x35fca8([0x74,0x68,0x65,0x6e])](()=>_0x291990);}async function _0x11c8b8(){await _0x80a774,_0x46a951[_0x35fca8([0x6d,0x6f,0x64,0x65,0x6c])][_0x35fca8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x59d669,_0x46a951[_0x35fca8([0x6d,0x6f,0x64,0x65,0x6c])][_0x35fca8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x59d669,_0x46a951[_0x35fca8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x35fca8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xc9b335(_0x5d0a01){const _0x2325b3=_0x544d54();_0x46a951[_0x2325b3]=_0x35fca8([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d0a01,_0x5d0a01!=_0x35fca8([0x56,0x61,0x6c,0x69,0x64])&&_0x11c8b8();}function _0x544d54(){const _0x4c44cc=window[_0x35fca8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x35fca8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x35fca8([0x6e,0x6f,0x77])]())[_0x35fca8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x35fca8([0x2e]),'');let _0x241d2b=_0x35fca8([0x75]);for(let _0x5408c6=0x0;_0x5408c6<_0x4c44cc[_0x35fca8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5408c6+=0x2){let _0xcf7d96=window[_0x35fca8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c44cc[_0x35fca8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5408c6,_0x5408c6+0x2));_0xcf7d96>=_0x5162e8[_0x35fca8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xcf7d96-=_0x5162e8[_0x35fca8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x241d2b+=_0x5162e8[_0xcf7d96];}return _0x241d2b;}function _0x109b7f(){const _0x5adaa5=_0x37aab5[_0x35fca8([0x73,0x70,0x6c,0x69,0x74])](_0x35fca8([0x2e]));if(0x3!=_0x5adaa5[_0x35fca8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x533348(_0x5adaa5[0x1]);function _0x533348(_0x56fec5){const _0x1e007a=_0x417be1(_0x56fec5);return _0x1e007a&&_0x5babfd()?_0x1e007a:null;function _0x5babfd(){const _0x44ec46=_0x1e007a[_0x35fca8([0x6a,0x74,0x69])],_0x1ed7b6=window[_0x35fca8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44ec46[_0x35fca8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44ec46[_0x35fca8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5f1600={..._0x1e007a,[_0x35fca8([0x6a,0x74,0x69])]:_0x44ec46[_0x35fca8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x44ec46[_0x35fca8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5f1600[_0x35fca8([0x76,0x63])],_0x674ef3(_0x5f1600)==_0x1ed7b6;}}}async function _0x331cba(){let _0x3c46c9=!0x0;try{const _0x59177f=_0x37aab5[_0x35fca8([0x73,0x70,0x6c,0x69,0x74])](_0x35fca8([0x2e])),[_0x2fec02,_0x46e962,_0x1c6590]=_0x59177f;return _0x69b3ed(_0x2fec02),await _0x14b161(_0x2fec02,_0x46e962,_0x1c6590),_0x3c46c9;}catch{return!0x1;}function _0x69b3ed(_0x3d45d0){const _0x385a3b=_0x417be1(_0x3d45d0);_0x385a3b&&_0x385a3b[_0x35fca8([0x61,0x6c,0x67])]==_0x35fca8([0x45,0x53,0x32,0x35,0x36])||(_0x3c46c9=!0x1);}async function _0x14b161(_0x45fb1a,_0x50d81f,_0x3acb4c){const _0x3e4b08=window[_0x35fca8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x35fca8([0x66,0x72,0x6f,0x6d])](_0x2afd71(_0x3acb4c),_0xf3ad78=>_0xf3ad78[_0x35fca8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x48d43a=new window[(_0x35fca8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x35fca8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x45fb1a+_0x35fca8([0x2e])+_0x50d81f),_0x2e1bec=window[_0x35fca8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x35fca8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e1bec)return;const _0x2c6af3=await _0x2e1bec[_0x35fca8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x35fca8([0x6a,0x77,0x6b]),_0x22487f,{[_0x35fca8([0x6e,0x61,0x6d,0x65])]:_0x35fca8([0x45,0x43,0x44,0x53,0x41]),[_0x35fca8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x35fca8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x35fca8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e1bec[_0x35fca8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x35fca8([0x6e,0x61,0x6d,0x65])]:_0x35fca8([0x45,0x43,0x44,0x53,0x41]),[_0x35fca8([0x68,0x61,0x73,0x68])]:{[_0x35fca8([0x6e,0x61,0x6d,0x65])]:_0x35fca8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2c6af3,_0x3e4b08,_0x48d43a)||(_0x3c46c9=!0x1);}}function _0x417be1(_0x5007fd){return _0x5007fd[_0x35fca8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x35fca8([0x65,0x79]))?JSON[_0x35fca8([0x70,0x61,0x72,0x73,0x65])](_0x2afd71(_0x5007fd)):null;}function _0x2afd71(_0x3da77b){return window[_0x35fca8([0x61,0x74,0x6f,0x62])](_0x3da77b[_0x35fca8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x35fca8([0x2b]))[_0x35fca8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x35fca8([0x2f])));}function _0x674ef3(_0x2c20b2){let _0xdde42=0x1505;function _0x1bbb1e(_0x1c3baf){for(let _0x20c084=0x0;_0x20c084<_0x1c3baf[_0x35fca8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20c084++){const _0x1903c4=_0x1c3baf[_0x35fca8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x20c084);_0xdde42=(_0xdde42<<0x5)+_0xdde42+_0x1903c4,_0xdde42&=_0xdde42;}}function _0x2a7287(_0x1498fb){Array[_0x35fca8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1498fb)?_0x1498fb[_0x35fca8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2a7287):_0x1498fb&&typeof _0x1498fb==_0x35fca8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x35fca8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1498fb)[_0x35fca8([0x73,0x6f,0x72,0x74])]()[_0x35fca8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x59fc03,_0x1aeb30])=>{_0x1bbb1e(_0x59fc03),_0x2a7287(_0x1aeb30);}):_0x1bbb1e(window[_0x35fca8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1498fb));}return _0x2a7287(_0x2c20b2),_0xdde42>>>0x0;}function _0x10e34b(_0x183d4e){return _0x183d4e[_0x35fca8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x35fca8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x35fca8([0x30]));}function _0x957385(_0x4a713b){return _0x4a713b[_0x35fca8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x35fca8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x35fca8([0x6a,0x6f,0x69,0x6e])]('');}function _0x59d669(){}function _0x35fca8(_0x485c59){return _0x485c59['map'](_0x59b097=>String['fromCharCode'](_0x59b097))['join']('');}_0xc9b335(await _0x585beb());}(this);}['_moveSelectionToFootnoteDefinition'](_0x535dcd){const {plugins:_0x3c9d06,editing:_0x28699e,model:_0x46b2f8}=this['editor'],_0x9cdf5f=_0x3c9d06['get'](f)['getFootnote'](_0x535dcd);return!!_0x9cdf5f&&(_0x46b2f8['change'](_0x4a86cb=>{_0x4a86cb['setSelection'](_0x4a86cb['createPositionAt'](_0x9cdf5f['definition'],'end'));}),_0x28699e['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x413802){const {plugins:_0x296e0f,editing:_0x5211e2,model:_0x4a307a}=this['editor'],_0x591a82=_0x296e0f['get'](f)['getFootnote'](_0x413802);return!!_0x591a82&&(_0x4a307a['change'](_0x474fda=>{_0x474fda['setSelection'](_0x591a82['reference'],'on');}),_0x5211e2['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x258032}=this['editor']['model'],_0x37aa81=this['editor']['config']['get']('footnotes.multiBlock');_0x258032['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x258032['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x258032['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x37aa81?_0x258032['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x258032['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x258032['addChildCheck'](_0x13d0e5=>{for(const _0x3490fc of _0x13d0e5)if('footnoteDefinition'===_0x3490fc['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2e2659}=this,{conversion:_0x26a53c,editing:_0x3ae249}=_0x2e2659,{t:t}=_0x2e2659['locale'];_0x26a53c['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5cd7ca,{writer:_0x287eed,consumable:_0x504529})=>{const _0x20b292=_0x5cd7ca['getChild'](0x0);if(!_0x20b292||!_0x20b292['is']('element','a'))return null;const _0xb9962f=_0x20b292['getAttribute']('href')||'';if(!_0xb9962f['startsWith']('#'))return null;const _0x2132fb=_0xb9962f['replace'](/^#/,'');if(!_0x2132fb)return null;_0x504529['consume'](_0x20b292,{'name':!0x0,'attributes':['href']});for(const {item:_0xeae596}of _0x3ae249['view']['createRangeIn'](_0x20b292))_0xeae596['is']('$textProxy')?_0x504529['consume'](_0xeae596['textNode'],{'name':!0x0}):_0xeae596['is']('element')&&_0x504529['consume'](_0xeae596,{'name':!0x0});return _0x287eed['createElement']('footnoteRef',{'footnoteId':_0x2132fb});}}),_0x26a53c['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x15cfef,{writer:_0x9aa7cc})=>b(_0x15cfef,_0x9aa7cc)}),_0x26a53c['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2c9902,{writer:_0x374505})=>{const _0x47a7e7=_0x2c9902['getAttribute']('footnoteCounter');return _0x85a6ac(b(_0x2c9902,_0x374505),_0x374505,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x47a7e7)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5ae460}=this,{t:t}=_0x5ae460['locale'],{conversion:_0x33b3c9}=_0x5ae460;_0x33b3c9['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x33b3c9['for']('upcast')['add'](_0x24beeb=>{_0x24beeb['on']('element:ol',(_0x33c857,_0x1d77ab,_0x3cbb33)=>{const _0xc34ee0=_0x1d77ab['viewItem'];if(!_0xc34ee0['hasClass']('footnotes-list')||!_0x1d77ab['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3cbb33['consumable']['consume'](_0xc34ee0,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5a4317,modelCursor:_0x2bc80a}=_0x3cbb33['convertChildren'](_0x1d77ab['viewItem'],_0x1d77ab['modelCursor']);_0x1d77ab['modelRange']=_0x5a4317,_0x1d77ab['modelCursor']=_0x2bc80a;}),_0x24beeb['on']('element:hr',(_0xe386bb,_0x45d28c,_0x33f733)=>{const _0x3f0bd9=_0x45d28c['viewItem'];_0x3f0bd9['hasClass']('footnotes-divider')&&_0x45d28c['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x33f733['consumable']['consume'](_0x3f0bd9,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x33b3c9['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5b0b1e,{writer:_0x213979})=>D(_0x213979)}),_0x33b3c9['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x240651,{writer:_0x5ba530})=>{const _0x1cb0df=D(_0x5ba530,{'data-footnotes-list-label':t('Footnotes')}),_0x545bf0=_0x85a6ac(_0x1cb0df,_0x5ba530,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x5ba530['setCustomProperty']('footnotesDefinitions',!0x0,_0x545bf0),_0x545bf0;}});}['_defineDefinitionConverters'](){const {editor:_0x3d614f}=this,{conversion:_0x3e4eaa,locale:_0x1d5909}=_0x3d614f,_0xc45a63=_0x3d614f['config']['get']('footnotes.multiBlock');_0x3e4eaa['for']('upcast')['add'](_0x39c111=>{_0x39c111['on']('element:li',(_0x317603,_0x3c5584,_0x109215)=>{const _0x7e19d4=_0x3c5584['viewItem'];if(!_0x7e19d4['hasClass']('footnote-definition')||!_0x7e19d4['getAttribute']('id'))return;const _0x228ed1=_0x7e19d4['parent'];if(!_0x228ed1['is']('element','ol')||!_0x228ed1['hasClass']('footnotes-list'))return;if(!_0x109215['consumable']['test'](_0x7e19d4,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x317e5e=_0x109215['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x7e19d4['getAttribute']('id')});if(!_0x109215['safeInsert'](_0x317e5e,_0x3c5584['modelCursor']))return;_0x109215['consumable']['consume'](_0x7e19d4,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x13a070=Array['from'](_0x7e19d4['getChildren']())['find'](_0x6e6d6c=>_0x6e6d6c['is']('element')&&_0x6e6d6c['hasClass']('footnote-content'));for(const _0x36bd68 of _0x7e19d4['getChildren']())_0x36bd68['is']('element')&&(_0x109215['consumable']['consume'](_0x36bd68,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x109215['consumable']['consume'](_0x36bd68,{'name':!0x0,'classes':'footnote-content'}));if(_0x13a070){if(_0xc45a63)_0x109215['convertChildren'](_0x13a070,_0x317e5e);else{const _0x1ee6f2=_0x109215['writer']['createElement']('footnoteInlineContent');_0x109215['writer']['insert'](_0x1ee6f2,_0x317e5e),_0x109215['convertChildren'](_0x13a070,_0x1ee6f2);}}_0x109215['updateConversionResult'](_0x317e5e,_0x3c5584);});}),_0x3e4eaa['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x260913,{writer:_0x1b7def})=>y(_0x260913,_0x1b7def,_0x1d5909,{'dataPipeline':!0x0})}),_0x3e4eaa['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x393353,{writer:_0x759244})=>y(_0x393353,_0x759244,_0x1d5909)});}['_defineBogusParagraphConverters'](){const {editor:_0x34666a}=this,{conversion:_0x558f52}=_0x34666a;_0x34666a['config']['get']('footnotes.multiBlock')?(_0x558f52['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x558f52['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x34666a['model']['document'],'change:data',()=>{!function(_0x4854e5,_0x1af73a){const _0x3f9477=_0x4854e5['document']['differ'],_0x4a0261=new Set();for(const _0xf6fc79 of _0x3f9477['getChanges']()){const _0x4465d3='attribute'==_0xf6fc79['type']?_0xf6fc79['range']['start']['parent']:_0xf6fc79['position']['parent'];_0x4465d3['is']('element','footnoteDefinition')&&_0x4a0261['add'](_0x4465d3);}for(const _0x4a481a of _0x4a0261['values']()){const _0x2476f2=Array['from'](_0x4a481a['getChildren']())['filter'](_0x15d751=>v(_0x15d751,_0x1af73a['mapper']));for(const _0x1b8927 of _0x2476f2)_0x1af73a['reconvertItem'](_0x1b8927);}}(_0x34666a['model'],_0x34666a['editing']);})):(_0x558f52['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x558f52['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x319d99,{writer:_0x50504f})=>{const _0xc13491=_0x50504f['createContainerElement']('span');return _0x50504f['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xc13491),_0xc13491;}}));}['_defineKeyboardHandlers'](){const {editor:_0x42c0c0}=this,{editing:_0x43c02d,t:t}=_0x42c0c0,_0x39b818=_0x42c0c0['model']['document']['selection'];_0x42c0c0['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x42c0c0['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x43c02d['view']['document'],'enter',(_0x5275a6,_0x233d97)=>{const _0x5c98f3=function(_0x1e8ddc){const _0x53e4f1=_0x1e8ddc['getSelectedElement']();if(_0x53e4f1?.['is']('element','footnoteRef'))return _0x53e4f1;return null;}(_0x39b818);if(_0x5c98f3){const _0x183501=_0x5c98f3['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x183501),_0x233d97['preventDefault'](),_0x5275a6['stop']();}},{'context':_0x1d1793});}['_defineClickHandlers'](){const {editor:_0x4cce84}=this,{editing:_0xcbe2c2}=_0x4cce84;_0x4cce84['editing']['view']['addObserver'](_0x15843f),_0x4cce84['editing']['view']['addObserver'](_0x2aba41);let _0x1e108a=!0x1;this['listenTo'](_0xcbe2c2['view']['document'],'pointerdown',(_0x404efb,_0x48c598)=>{const {target:_0x46bf9b}=_0x48c598,_0x363c2a=_0xcbe2c2['view']['document']['selection'];_0x1e108a=!!(_0x46bf9b?.['is']('element','a')&&_0x46bf9b['parent']?.['is']('element','sup')&&_0x46bf9b['parent']['hasClass']('footnote'))&&_0x363c2a['getSelectedElement']()===_0x46bf9b['parent'];},{'priority':'high'}),this['listenTo'](_0xcbe2c2['view']['document'],'click',(_0x1900e0,_0x7981eb)=>{const {target:_0xc95eda}=_0x7981eb;if(!_0xc95eda?.['is']('element','a'))return;if(_0xc95eda['parent']?.['is']('element','sup')&&_0xc95eda['parent']['hasClass']('footnote')&&!_0x1e108a)return void _0x7981eb['preventDefault']();let _0x15c225=_0xc95eda['getAttribute']('href');if(!_0x15c225?.['startsWith']('#'))return;_0x15c225=_0x15c225['slice'](0x1);let _0x4ee0dd=!0x1;(_0x15c225['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x15c225['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x15c225))&&(_0x4ee0dd=!0x0),_0x4ee0dd&&(_0x7981eb['preventDefault'](),_0x1900e0['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x588847}={}){return(_0x1d8344,{writer:_0x2c93bb})=>{if(!g(_0x1d8344))return null;if(!_0x588847)return _0x2c93bb['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x28b426=_0x2c93bb['createContainerElement']('p');return _0x2c93bb['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x28b426),_0x28b426;};}function g(_0x3d0de5){const {parent:_0xa7523a}=_0x3d0de5;if(!_0xa7523a?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0xa7523a['childCount'])return!0x1;for(const _0x16ac0e of _0x3d0de5['getAttributeKeys']())if(!_0x16ac0e['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x16ac0e)return!0x1;return!0x0;}function v(_0x3dbeac,_0x815b9e){if(!_0x3dbeac['is']('element','paragraph'))return!0x1;const _0x416145=_0x815b9e['toViewElement'](_0x3dbeac);return!!_0x416145&&g(_0x3dbeac)!==_0x416145['is']('element','span');}function Q(_0x1ad17b){return _0x1d1793(_0x1ad17b)&&_0x1ad17b['is']('containerElement')&&!!_0x1ad17b['getCustomProperty']('footnotesDefinitions');}function D(_0x132443,_0x168f5c={}){const _0x5f4651=_0x132443['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x144b38=_0x132443['createContainerElement']('ol',{'class':'footnotes-list'},_0x132443['createSlot']());return _0x132443['createContainerElement']('div',{'class':'footnotes',..._0x168f5c},[_0x5f4651,_0x144b38]);}function b(_0x583e2b,_0x42b673){const _0x42e675=_0x583e2b['getAttribute']('footnoteId'),_0x3e9572=_0x583e2b['getAttribute']('footnoteCounter'),_0x40fc56=_0x42b673['createUIElement']('a',{'href':'#'+_0x42e675},function(_0x1d4621){const _0x565a06=this['toDomElement'](_0x1d4621);return _0x565a06['textContent']=_0x3e9572,_0x565a06;}),_0x25ae9d=_0x42b673['createContainerElement']('sup',{'id':'ref-'+_0x42e675,'class':'footnote'},[_0x40fc56]);return _0x25ae9d['getFillerOffset']=()=>null,_0x25ae9d;}function y(_0x1a9b88,_0x5990dc,_0x4a3695,{dataPipeline:_0x560f02}={}){const {t:t}=_0x4a3695,_0x51841d=_0x1a9b88['getAttribute']('footnoteId'),_0x4b8723=_0x5990dc['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x51841d},function(_0x160314){const _0x30f545=this['toDomElement'](_0x160314);return _0x30f545['innerText']='^',_0x30f545;}),_0x1aae9c=_0x560f02?_0x5990dc['createContainerElement']('div',{'class':'footnote-content'}):_0x531eee(_0x5990dc['createEditableElement']('div',{'class':'footnote-content'}),_0x5990dc,{'label':t('Footnote\x20content.')});return _0x5990dc['insert'](_0x5990dc['createPositionAt'](_0x1aae9c,0x0),_0x5990dc['createSlot']()),_0x5990dc['createContainerElement']('li',{'class':'footnote-definition','id':_0x51841d},[_0x4b8723,_0x1aae9c]);}class e extends _0x29e4b9{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x334eaf];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x473c81}=this,{plugins:_0x450358,model:_0x51ed40}=_0x473c81,_0x4ef758=_0x450358['get'](_0x334eaf),_0x3d0534=_0x450358['get'](f);this['listenTo'](_0x4ef758,'outputTransformation',(_0x46f0cd,_0x3d8b00)=>{const _0x4101b2=l(_0x51ed40['createRangeIn'](_0x3d8b00['content']));if(!_0x4101b2['length'])return;const _0x5e7525=_0x3d0534['getFootnotes'](),_0x43505c=_0x4101b2['reduce']((_0x9bd0ba,_0x1c725f)=>{const _0x6d70f9=_0x5e7525['find'](_0x13f02d=>_0x13f02d['id']===_0x1c725f);if(_0x6d70f9){const _0x2c27cf=_0x473c81['data']['toView'](_0x6d70f9['definition'],{'isClipboardPipeline':!0x0}),_0x13012b=_0x473c81['data']['htmlProcessor']['toData'](_0x2c27cf);_0x9bd0ba[_0x6d70f9['id']]=_0x13012b;}return _0x9bd0ba;},Object['create'](null));_0x3d8b00['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x43505c));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x3da167}=this,{model:_0x57d857,plugins:_0x488d88}=_0x3da167,{view:_0x161a7a}=_0x3da167['editing'],_0x5c4e6d=_0x488d88['get'](_0x334eaf),_0x2ca35a=_0x488d88['get'](f),_0x1395b5=_0x3da167['config']['get']('footnotes.multiBlock');let _0x24da10=null;this['listenTo'](_0x161a7a['document'],'clipboardInput',(_0x3f993e,_0x2d52d8)=>{const _0x4b2545=_0x2d52d8['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x24da10=_0x4b2545?JSON['parse'](_0x4b2545):null;}),this['listenTo'](_0x5c4e6d,'contentInsertion',(_0x74a73d,_0xecd150)=>{const _0x1509bf=_0xecd150['sourceEditorId']===this['editor']['id'];_0x1509bf&&'drop'===_0xecd150['method']||_0x57d857['change'](_0x57ccb2=>{let _0x506e94=_0x2ca35a['getFootnotesDefinitionsObjectElement']();const _0x3ee4ff=!!_0x506e94&&Array['from'](_0x57d857['document']['selection']['getSelectedBlocks']())['includes'](_0x506e94);if(!_0x24da10&&function(_0x1822fa){for(const {item:_0x15d874}of _0x1822fa)if(_0x15d874['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x57d857['createRangeIn'](_0xecd150['content']))&&(_0x24da10=function(_0x489675,_0x2a39d3){const _0x4d7c1c=c(_0x489675,_0x2a39d3);if(!_0x4d7c1c)return null;const _0x43d7af=Object['create'](null);for(const _0x317b84 of _0x4d7c1c['getChildren']())_0x317b84['is']('element','footnoteDefinition')&&_0x317b84['hasAttribute']('footnoteId')&&(_0x43d7af[_0x317b84['getAttribute']('footnoteId')]=_0x489675['cloneElement'](_0x317b84,!0x0));return Object['keys'](_0x43d7af)['length']?_0x43d7af:null;}(_0x57ccb2,_0xecd150['content'])),(_0x506e94&&!_0x3ee4ff||!_0x506e94&&!_0x24da10)&&function(_0x441f10,_0x2d009f){const _0x513a15=[];for(const {item:_0x29aea3}of _0x441f10['createRangeIn'](_0x2d009f))_0x29aea3['is']('element','footnotesDefinitions')&&_0x513a15['push'](_0x29aea3);for(const _0x13e6d7 of _0x513a15)_0x441f10['remove'](_0x13e6d7);}(_0x57ccb2,_0xecd150['content']),!_0x24da10)return;const {selection:_0x3d3a24}=_0x57d857['document'],_0x6f6f00=_0x3d3a24['getFirstRange']()['root'];_0x506e94&&!_0x3ee4ff||(_0x506e94=c(_0x57ccb2,_0xecd150['content']),_0x506e94||=_0x2ca35a['_insertEmptyFootnotesDefinitionsContainer'](_0x57ccb2,_0x6f6f00));const _0x4a228a=Array['from'](_0x3d3a24['getRanges']())['flatMap'](l),_0x16169b=function(_0x181ed5,_0x5875d4,_0x49ea7a){const _0x859f34=Object['create'](null);for(const {item:_0x58f126}of _0x181ed5['createRangeIn'](_0x5875d4))if(_0x58f126['is']('element','footnoteRef')){const _0x45a84=_0x58f126['getAttribute']('footnoteId');if(!_0x49ea7a(_0x45a84))continue;_0x859f34[_0x45a84]||(_0x859f34[_0x45a84]=_0x298719()),_0x181ed5['setAttribute']('footnoteId',_0x859f34[_0x45a84],_0x58f126);}return _0x859f34;}(_0x57ccb2,_0xecd150['content'],_0x206ee2=>{if(!_0x1509bf)return!0x0;return!!_0x2ca35a['getFootnote'](_0x206ee2)&&!_0x4a228a['includes'](_0x206ee2);});for(const [_0x3b7e67,_0x1ede1a]of Object['entries'](_0x24da10)){const _0x2e3683=_0x16169b[_0x3b7e67]||_0x3b7e67;let _0x231dd2;if('string'!=typeof _0x1ede1a)_0x231dd2=_0x1ede1a,_0x2e3683!==_0x3b7e67&&_0x57ccb2['setAttribute']('footnoteId',_0x2e3683,_0x231dd2);else{_0x231dd2=_0x57ccb2['createElement']('footnoteDefinition',{'footnoteId':_0x2e3683});const _0x1db8a9=_0x3da167['data']['htmlProcessor']['toView'](_0x1ede1a);let _0x1b61da;if(_0x1395b5)_0x1b61da=_0x3da167['data']['toModel'](_0x1db8a9,_0x231dd2);else{_0x1b61da=_0x57ccb2['createElement']('footnoteInlineContent');const _0x2d0f19=_0x3da167['data']['toModel'](_0x1db8a9,_0x1b61da);_0x57ccb2['insert'](_0x2d0f19,_0x1b61da);}_0x57ccb2['append'](_0x1b61da,_0x231dd2);}_0x57ccb2['insert'](_0x231dd2,_0x506e94,'end');}_0x24da10=null;});});}}function c(_0x56c652,_0x28e423){for(const {item:_0x4b9fe1}of _0x56c652['createRangeIn'](_0x28e423))if(_0x4b9fe1['is']('element','footnotesDefinitions'))return _0x4b9fe1;return null;}function l(_0x595412){const _0x42b9b5=new Set();for(const {item:_0x52699c}of _0x595412)_0x52699c['is']('element','footnoteRef')&&_0x42b9b5['add'](_0x52699c['getAttribute']('footnoteId'));return Array['from'](_0x42b9b5);}class i extends _0x29e4b9{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3fb855}=this,{componentFactory:_0x5d5d72}=_0x3fb855['ui'];_0x5d5d72['add']('insertFootnote',E(_0x3fb855,_0x33ea5c)),_0x5d5d72['add']('menuBar:insertFootnote',E(_0x3fb855,_0x3b0c15)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x233b57=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4ee83c;for(const _0x355209 in _0x233b57){const _0x4349cd=_0x355209,_0x58dd26=_0x233b57[_0x4349cd];if('footnotesLicenseKeyValid'==_0x58dd26||'footnotesLicenseKeyInvalid'==_0x58dd26||'footnotesLicenseKeyExpired'==_0x58dd26||'footnotesLicenseKeyDomainLimit'==_0x58dd26||'footnotesLicenseKeyNotAllowed'==_0x58dd26||'footnotesLicenseKeyEvaluationLimit'==_0x58dd26||'footnotesLicenseKeyTrialLimit'==_0x58dd26||'footnotesLicenseKeyUsageLimit'==_0x58dd26){delete _0x233b57[_0x4349cd],_0x4ee83c=_0x58dd26,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x4ee83c&&_0x233b57['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x4ee83c&&_0x233b57['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x4ee83c&&_0x233b57['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x4ee83c&&_0x233b57['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x4ee83c&&_0x233b57['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x4ee83c&&_0x233b57['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x4ee83c&&_0x233b57['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x4ba400,_0x29aa7a){const _0x1addde=_0x4ba400['commands']['get']('insertFootnote');return _0x41ff37=>{const {t:t}=_0x41ff37,_0x164a45=new _0x29aa7a(_0x41ff37),_0xbda563=_0x164a45 instanceof _0x3b0c15;return _0x164a45['bind']('isEnabled')['to'](_0x1addde,'isEnabled'),_0x164a45['set']({'label':t(_0xbda563?'Footnote':'Insert\x20footnote'),'icon':_0x11833d,'tooltip':!0x0}),_0x164a45['on']('execute',()=>{_0x1addde['execute'](),_0x4ba400['editing']['view']['focus']();}),_0x164a45;};}class lt extends _0x29e4b9{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const W=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x105de7{['refresh'](){const {editor:_0x5a753a}=this,_0x418dd9=_0x5a753a['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x418dd9,this['value']=_0x418dd9?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x465aa9}){const {editor:_0x4a7f8a}=this,_0x3896c0=_0x4a7f8a['plugins']['get'](f),_0x3abef9=_0x3896c0['getFootnotesDefinitionsObjectElement']();_0x3abef9&&W['includes'](_0x465aa9)&&_0x4a7f8a['model']['change'](_0x25436d=>{_0x25436d['setAttribute']('footnotesListStyle',_0x465aa9,_0x3abef9),_0x3896c0['_updateFootnotesCounters'](_0x25436d);});}}class C extends _0x105de7{['refresh'](){const {editor:_0xd1e54b}=this,_0x17cd83=_0xd1e54b['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x17cd83,this['value']=_0x17cd83?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x1a52e5}){const {editor:_0x32cfca}=this,_0x501c12=_0x32cfca['plugins']['get'](f),_0x2f550d=_0x501c12['getFootnotesDefinitionsObjectElement']();_0x2f550d&&Number['isInteger'](_0x1a52e5)&&_0x32cfca['model']['change'](_0x352778=>{_0x352778['setAttribute']('footnotesListStart',_0x1a52e5,_0x2f550d),_0x501c12['_updateFootnotesCounters'](_0x352778);});}}class P extends _0x29e4b9{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4f5e85}=this;_0x4f5e85['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x4f5e85['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x4f5e85['commands']['add']('footnotesStyle',new S(_0x4f5e85)),_0x4f5e85['commands']['add']('footnotesStart',new C(_0x4f5e85)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x32746e}=this,{schema:_0x25a4ab}=_0x32746e['model'];_0x25a4ab['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x1e215e}=this,{conversion:_0x39f58d,model:_0x3c2a8b}=_0x1e215e,{schema:_0x52c642}=_0x3c2a8b;_0x39f58d['for']('upcast')['add'](_0x254305=>{_0x254305['on']('element:ol',(_0x57a313,_0x561e04,_0x46c91a)=>{const _0x29a6ec=_0x561e04['viewItem'],_0x7fa1a2=_0x561e04['modelCursor']?.['parent'];_0x29a6ec['hasClass']('footnotes-list')&&_0x7fa1a2?.['is']('element','footnotesDefinitions')&&(function(_0x369719,_0x23127a,_0x215386,_0x1b1d06){if(!_0x1b1d06['checkAttribute'](_0x23127a,'footnotesListStart'))return;let _0x3f8c7e=0x1;const _0xb3548b=_0x215386['consumable']['consume'](_0x369719,{'attributes':'start'});if(_0xb3548b){const _0x38b16b=Number['parseInt'](_0x369719['getAttribute']('start'),0xa);Number['isNaN'](_0x38b16b)||(_0x3f8c7e=_0x38b16b);}!_0xb3548b&&_0x23127a['hasAttribute']('footnotesListStart')||_0x215386['writer']['setAttribute']('footnotesListStart',_0x3f8c7e,_0x23127a);}(_0x29a6ec,_0x7fa1a2,_0x46c91a,_0x52c642),function(_0x49a6ba,_0x573018,_0x771c42,_0x2332fe){if(!_0x2332fe['checkAttribute'](_0x573018,'footnotesListStyle'))return;let _0xcced0b='decimal',_0x233d08=!0x1;if(_0x771c42['consumable']['consume'](_0x49a6ba,{'attributes':'type'})){const _0x11eba3={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x49a6ba['getAttribute']('type')];_0x11eba3&&(_0xcced0b=_0x11eba3),_0x233d08=!0x0;}_0x771c42['consumable']['consume'](_0x49a6ba,{'styles':'list-style-type'})&&(_0xcced0b=function(_0x21e109){switch(_0x21e109){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x21e109;}}(_0x49a6ba['getStyle']('list-style-type')),_0x233d08=!0x0),!_0x233d08&&_0x573018['hasAttribute']('footnotesListStyle')||_0x771c42['writer']['setAttribute']('footnotesListStyle',_0xcced0b,_0x573018);}(_0x29a6ec,_0x7fa1a2,_0x46c91a,_0x52c642));});}),_0x39f58d['for']('downcast')['add'](_0x1628a7=>{_0x1628a7['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x876e19,_0x2b42ea,_0x2bf840)=>{if(!_0x2bf840['consumable']['consume'](_0x2b42ea['item'],_0x876e19['name']))return;const _0x535dbf=M(_0x2b42ea['item'],_0x2bf840['mapper']),{attributeNewValue:_0xef7b51}=_0x2b42ea;null==_0xef7b51||0x1===_0xef7b51?_0x2bf840['writer']['removeAttribute']('start',_0x535dbf):_0x2bf840['writer']['setAttribute']('start',String(_0xef7b51),_0x535dbf);}),_0x1628a7['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0xc8994e,_0x2b1787,_0x126921)=>{if(!_0x126921['consumable']['consume'](_0x2b1787['item'],_0xc8994e['name']))return;const _0x562f91=M(_0x2b1787['item'],_0x126921['mapper']),{attributeNewValue:_0x1f64c3}=_0x2b1787;_0x1f64c3&&'decimal'!==_0x1f64c3?_0x126921['writer']['setStyle']('list-style-type',_0x1f64c3,_0x562f91):_0x126921['writer']['removeStyle']('list-style-type',_0x562f91);});});}['_definePostfixer'](){const {editor:_0x3a3821}=this,{model:_0x3edf56}=_0x3a3821,_0x555e29=_0x3a3821['plugins']['get'](f),_0x3ef4e5=this['_getDefaultListStyle'](),_0x99d3a4=this['_getDefaultStartIndex']();_0x3edf56['document']['registerPostFixer'](_0x35b54f=>{const _0x2ab9a5=_0x3edf56['document']['differ']['getChanges']();let _0xc162cb=!0x1;for(const _0x38a86f of _0x2ab9a5){if('insert'!==_0x38a86f['type']||'$text'===_0x38a86f['name'])continue;const _0x31b3e5=_0x3edf56['createRangeOn'](_0x38a86f['position']['nodeAfter']);for(const _0x10d779 of _0x31b3e5['getItems']())_0x10d779['is']('element','footnotesDefinitions')&&(!_0x10d779['hasAttribute']('footnotesListStart')&&_0x3edf56['schema']['checkAttribute'](_0x10d779,'footnotesListStart')&&(_0x35b54f['setAttribute']('footnotesListStart',_0x99d3a4,_0x10d779),_0xc162cb=!0x0),!_0x10d779['hasAttribute']('footnotesListStyle')&&_0x3edf56['schema']['checkAttribute'](_0x10d779,'footnotesListStyle')&&(_0x35b54f['setAttribute']('footnotesListStyle',_0x3ef4e5,_0x10d779),_0xc162cb=!0x0));}return _0xc162cb&&_0x555e29['_updateFootnotesCounters'](_0x35b54f),_0xc162cb;});}['_defineFormatter'](){const {editor:_0x5f29a0}=this;_0x5f29a0['plugins']['get'](f)['setFootnoteFormatter'](_0x391bf3=>this['_formatFootnoteListValue'](_0x391bf3));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0xe4b938,value:_0x5ed2a0,digits:_0x13e3c0}){const _0x5019a2=_0xe4b938['getAttribute']('footnotesListStyle'),_0x49610b=_0xe4b938['getAttribute']('footnotesListStart'),_0x136daf=Math['floor'](_0x5ed2a0)+(_0x49610b??0x1)-0x1;switch(_0x5019a2){case'decimal-leading-zero':return function(_0x5c51f2,_0x4f9e9){return String(_0x5c51f2)['padStart'](_0x4f9e9,'0');}(_0x136daf,Math['max'](0x2,_0x13e3c0));case'lower-alpha':case'lower-latin':return N(_0x136daf,!0x1);case'upper-alpha':case'upper-latin':return N(_0x136daf,!0x0);case'lower-roman':return X(_0x136daf,!0x1);case'upper-roman':return X(_0x136daf,!0x0);default:return String(_0x136daf);}}}function M(_0x7a3804,_0x41d78b){const _0x25da0e=_0x41d78b['toViewElement'](_0x7a3804);return Array['from'](_0x25da0e['getChildren']())['find'](_0x290e78=>_0x290e78['is']('element','ol')&&_0x290e78['hasClass']('footnotes-list'));}function N(_0x55e28d,_0x149d4a){let _0x4b6269='',_0x378f6b=_0x55e28d;for(;_0x378f6b>0x0;){const _0x1c7180=(_0x378f6b-0x1)%0x1a;_0x4b6269=String['fromCharCode'](0x61+_0x1c7180)+_0x4b6269,_0x378f6b=Math['floor']((_0x378f6b-0x1)/0x1a);}return _0x149d4a?_0x4b6269['toUpperCase']():_0x4b6269;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0x3a0873,_0x366648){let _0x5ea53d='',_0x327126=_0x3a0873;for(const {value:_0x5363cc,numeral:_0x4f7b8b}of V)for(;_0x327126>=_0x5363cc;)_0x5ea53d+=_0x4f7b8b,_0x327126-=_0x5363cc;return _0x366648?_0x5ea53d:_0x5ea53d['toLowerCase']();}class J extends _0x3bdf1a{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x1d6abf();['focusCycler'];constructor(_0xcd5192,{styleButtonViews:_0x49c273,styleGridAriaLabel:_0x5260e0}){super(_0xcd5192),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x49c273,_0x5260e0),[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 _0x5328c4 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x5328c4['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['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 _0x4be0e1=_0x2b038d=>_0x2b038d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4be0e1),this['keystrokes']['set']('arrowleft',_0x4be0e1),this['keystrokes']['set']('arrowup',_0x4be0e1),this['keystrokes']['set']('arrowdown',_0x4be0e1);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x2d8a5f,_0x510814){const _0x296207=new _0x3bdf1a(this['locale']);return _0x296207['children']=_0x296207['createCollection'](),_0x296207['children']['addMany'](_0x2d8a5f),_0x296207['setTemplate']({'tag':'div','attributes':{'aria-label':_0x510814,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x296207['children']}),_0x296207['children']['delegate']('execute')['to'](this),_0x296207['focus']=function(){for(const _0xe97a8c of this['children'])if(_0xe97a8c instanceof _0x33ea5c&&_0xe97a8c['isOn'])return void _0xe97a8c['focus']();this['children']['first']['focus']();},_0x296207['focusTracker']=new rt(),_0x296207['keystrokes']=new nt(),_0x296207['render'](),_0x296207['keystrokes']['listenTo'](_0x296207['element']),this['children']['add'](_0x296207),_0x296207;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x41f07e=this['_createStartIndexPropertyView'](),_0x26ecd9=[_0x41f07e],_0x3c37cf=new it(this['locale'],_0x26ecd9);return _0x3c37cf['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x3c37cf['buttonView']['bind']('isEnabled')['toMany'](_0x26ecd9,'isEnabled',(..._0x5cde78)=>_0x5cde78['some'](_0x459cc2=>_0x459cc2)),_0x3c37cf['buttonView']['on']('change:isEnabled',(_0xe3c025,_0x4316f3,_0x4179a1)=>{_0x4179a1||(_0x3c37cf['isCollapsed']=!0x0);}),this['children']['add'](_0x3c37cf),[_0x41f07e,_0x3c37cf];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x1adb91=new et(this['locale'],ot);return _0x1adb91['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x1adb91['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x1adb91['fieldView']['on']('input',()=>{const _0x134b04=_0x1adb91['fieldView']['element'],_0x1c8f23=_0x134b04['valueAsNumber'];Number['isNaN'](_0x1c8f23)?_0x1adb91['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x134b04['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x1c8f23}):_0x1adb91['errorText']=t(_0x1c8f23<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x1adb91;}}class j extends _0x29e4b9{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x272901,_0x3af8ff];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x166be3}=this,{componentFactory:_0x2a56e4}=_0x166be3['ui'];_0x166be3['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x2a56e4['add']('footnotesStyle',function(_0x52a92f){return _0x234c56=>{const {t:t}=_0x234c56,_0x10da41=_0x52a92f['commands']['get']('footnotesStyle'),_0x46d360=_0x3945d5(_0x234c56),{buttonView:_0x1a7089}=_0x46d360;return _0x46d360['class']='ck-footnotes-styles-dropdown',_0x46d360['bind']('isEnabled')['to'](_0x10da41,'isEnabled'),_0x1a7089['set']({'label':t('Footnotes\x20style'),'icon':_0x11833d,'tooltip':!0x0}),_0x46d360['once']('change:isOpen',()=>{const _0x8cc0b3=function({editor:_0xfdad6,dropdownView:_0x594502}){const {t:t}=_0xfdad6['locale'],_0x51efb9=t('Footnotes\x20definitions\x20styles'),_0x2cb145=function(_0x56023f){const t=_0x56023f['locale']['t'],_0x5309ad=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x1a91c9},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x442f15},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x5a7583},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x770039},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x424893},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x17a52b}];return _0x5309ad['map'](function(_0xdd2d05){const _0x39d52b=_0xdd2d05['locale'];return({label:_0xa7d00a,icon:_0x488e9f,tooltip:_0x1d860b,style:_0x2fdfbc})=>{const _0x4748c7=_0xdd2d05['commands']['get']('footnotesStyle'),_0x1a5ee9=new _0x33ea5c(_0x39d52b);return _0x1a5ee9['set']({'label':_0xa7d00a,'icon':_0x488e9f,'tooltip':_0x1d860b}),_0x1a5ee9['bind']('isOn')['to'](_0x4748c7,'value',_0x310ee1=>_0x310ee1===_0x2fdfbc),_0x1a5ee9['bind']('isEnabled')['to'](_0x4748c7,'isEnabled'),_0x1a5ee9['on']('execute',()=>{_0xdd2d05['execute']('footnotesStyle',{'value':_0x2fdfbc}),_0xdd2d05['editing']['view']['focus']();}),_0x1a5ee9;};}(_0x56023f));}(_0xfdad6),_0x5eae77=new J(_0xfdad6['locale'],{'styleGridAriaLabel':_0x51efb9,'styleButtonViews':_0x2cb145}),_0x4d41f5=_0xfdad6['commands']['get']('footnotesStart');return _0x5eae77['startIndexFieldView']['bind']('isEnabled')['to'](_0x4d41f5),_0x5eae77['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x4d41f5),_0x5eae77['on']('footnotesListStart',(_0xc6f51d,_0x4f2b18)=>{_0xfdad6['execute']('footnotesStart',{'value':_0x4f2b18['startIndex']});}),_0x5eae77['delegate']('execute')['to'](_0x594502),_0x5eae77;}({'editor':_0x52a92f,'dropdownView':_0x46d360});_0x46d360['panelView']['children']['add'](_0x8cc0b3);}),_0x46d360;};}(_0x166be3));}['afterInit'](){const {editor:_0xb2860b}=this,{t:t}=_0xb2860b['locale'],_0xa91614=_0xb2860b['plugins']['get'](_0x3af8ff),{defaultPositions:_0x2f9275}=_0x522a04;_0xa91614['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0xb2860b['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x3b916a=>{let _0x2158df=_0x3b916a['getFirstPosition']()?.['parent'];return _0x2158df?.['is']('$text')&&(_0x2158df=_0x2158df['parent']),_0x2158df?.['is']('element')?_0x2158df['findAncestor'](Q):null;},'positions':[_0x2f9275['southArrowNorth'],_0x2f9275['southArrowNorthMiddleWest'],_0x2f9275['southArrowNorthMiddleEast'],_0x2f9275['southArrowNorthWest'],_0x2f9275['southArrowNorthEast'],_0x2f9275['northArrowSouth'],_0x2f9275['northArrowSouthMiddleWest'],_0x2f9275['northArrowSouthMiddleEast'],_0x2f9275['northArrowSouthWest'],_0x2f9275['northArrowSouthEast'],_0x2f9275['viewportStickyNorth']]});}}class ft extends _0x29e4b9{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,h as InsertFootnoteCommand};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-footnotes",
|
|
3
|
-
"version": "0.0.0-nightly-next-
|
|
3
|
+
"version": "0.0.0-nightly-next-20251222.0",
|
|
4
4
|
"description": "The footnotes feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"type": "module",
|
|
24
24
|
"main": "src/index.js",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-next-
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-next-
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-next-
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-next-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-next-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20251222.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20251222.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-next-20251222.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20251222.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-next-20251222.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-next-20251222.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20251222.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-next-20251222.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 _0x33788f}from'ckeditor5/src/core.js';import{isWidget as _0x1bd175,toWidget as _0x36cd03,toWidgetEditable as _0x3a6142}from'ckeditor5/src/widget.js';import{uid as _0x31d6e0}from'ckeditor5/src/utils.js';import{PointerObserver as _0x16dad6,ClickObserver as _0x1f899c}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x5e5fdd}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x1b1736}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x33788f{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x5e5fdd];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x40bbf7}=this;_0x40bbf7['config']['define']('footnotes.multiBlock',!0x0),_0x40bbf7['commands']['add']('insertFootnote',new _0x1b1736(_0x40bbf7)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x9e825b){const _0x2e45eb=_0x596403([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]),_0x5130f8=0x47a28506,_0x1e821e=0x47a5f98e^_0x5130f8,_0x3374ae=window[_0x596403([0x44,0x61,0x74,0x65])][_0x596403([0x6e,0x6f,0x77])](),_0x40b2c1=_0x9e825b[_0x596403([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x99ca0=new window[(_0x596403([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26daea=>{_0x40b2c1[_0x596403([0x6f,0x6e,0x63,0x65])](_0x596403([0x72,0x65,0x61,0x64,0x79]),_0x26daea);}),_0x234b07={[_0x596403([0x6b,0x74,0x79])]:_0x596403([0x45,0x43]),[_0x596403([0x75,0x73,0x65])]:_0x596403([0x73,0x69,0x67]),[_0x596403([0x63,0x72,0x76])]:_0x596403([0x50,0x2d,0x32,0x35,0x36]),[_0x596403([0x78])]:_0x596403([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]),[_0x596403([0x79])]:_0x596403([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]),[_0x596403([0x61,0x6c,0x67])]:_0x596403([0x45,0x53,0x32,0x35,0x36])},_0x565291=_0x40b2c1[_0x596403([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x596403([0x67,0x65,0x74])](_0x596403([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x504897(){let _0x9f9968,_0x2ad72d=null,_0xd00c23=null;try{if(_0x565291==_0x596403([0x47,0x50,0x4c]))return _0x596403([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9f9968=_0x322ed5(),!_0x9f9968)return _0x596403([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9f9968[_0x596403([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd00c23=_0x4524a7(_0x9f9968[_0x596403([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9f9968[_0x596403([0x6a,0x74,0x69])])),await _0x199dc8()?_0x5593b4()?_0x2fe4e7()?_0x596403([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4bf7b4()?(_0x9f9968[_0x596403([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x596403([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2ad72d=_0x56fdcd(_0x596403([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x9f9968[_0x596403([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x596403([0x74,0x72,0x69,0x61,0x6c])&&(_0x2ad72d=_0x56fdcd(_0x596403([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2b7b49()):_0x596403([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x596403([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x596403([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x596403([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2fe4e7(){const _0xd528b7=[_0x596403([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x596403([0x74,0x72,0x69,0x61,0x6c])][_0x596403([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9f9968[_0x596403([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3374ae/0x3e8:0xe10*_0x1e821e;return _0x9f9968[_0x596403([0x65,0x78,0x70])]<_0xd528b7;}function _0x5593b4(){const _0x2eaec4=_0x9f9968[_0x596403([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2eaec4&&(!!_0x2eaec4[_0x596403([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x596403([0x2a]))||!!_0x2eaec4[_0x596403([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x596403([0x46,0x4f,0x4f])));}function _0x4bf7b4(){const _0x1d1a30=_0x9f9968[_0x596403([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1d1a30||0x0==_0x1d1a30[_0x596403([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c53e7}=new URL(window[_0x596403([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1d1a30[_0x596403([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c53e7))return!0x0;const _0x27be54=_0x4c53e7[_0x596403([0x73,0x70,0x6c,0x69,0x74])](_0x596403([0x2e]));return _0x1d1a30[_0x596403([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2cfdd9=>_0x2cfdd9[_0x596403([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x596403([0x2a])))[_0x596403([0x6d,0x61,0x70])](_0x330876=>_0x330876[_0x596403([0x73,0x70,0x6c,0x69,0x74])](_0x596403([0x2e])))[_0x596403([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f0221=>_0x2f0221[_0x596403([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x27be54[_0x596403([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x596403([0x6d,0x61,0x70])](_0x2a0799=>Array(_0x27be54[_0x596403([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2a0799[_0x596403([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x596403([0x66,0x69,0x6c,0x6c])](_0x2a0799[0x0]===_0x596403([0x2a])?_0x596403([0x2a]):'')[_0x596403([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2a0799))[_0x596403([0x73,0x6f,0x6d,0x65])](_0x5ad782=>_0x27be54[_0x596403([0x65,0x76,0x65,0x72,0x79])]((_0x4c5e8c,_0x1b0b29)=>_0x5ad782[_0x1b0b29]===_0x4c5e8c||_0x5ad782[_0x1b0b29]===_0x596403([0x2a])));}function _0x2b7b49(){return _0x2ad72d&&_0xd00c23?new window[(_0x596403([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2aaad0,_0x3fce7c)=>{_0x2ad72d[_0x596403([0x74,0x68,0x65,0x6e])](_0x2aaad0,_0x3fce7c),_0xd00c23[_0x596403([0x74,0x68,0x65,0x6e])](_0x165477=>{_0x165477!=_0x596403([0x56,0x61,0x6c,0x69,0x64])&&_0x2aaad0(_0x165477);},_0x3fce7c);}):_0x2ad72d||_0xd00c23||_0x596403([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4524a7(_0x8cf96c,_0x5ea1d0){return new window[(_0x596403([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x158af9=>{if(_0x56bc50())return _0x158af9(_0x596403([0x56,0x61,0x6c,0x69,0x64]));_0x46eb61(),_0x40b2c1[_0x596403([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x596403([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b8363=!0x1;const _0xc4573=_0x31d6e0();function _0x3c1bd1(_0xa24f6d){return!!_0xa24f6d&&(typeof _0xa24f6d===_0x596403([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa24f6d===_0x596403([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa24f6d[_0x596403([0x74,0x68,0x65,0x6e])]===_0x596403([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa24f6d[_0x596403([0x63,0x61,0x74,0x63,0x68])]===_0x596403([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x461bfc(_0x53ba86){_0x41112(_0x53ba86)[_0x596403([0x74,0x68,0x65,0x6e])](_0x4de7ba=>{if(!_0x4de7ba||_0x4de7ba[_0x596403([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x596403([0x6f,0x6b]))return _0x596403([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3cf1d0(_0x209138(_0xc4573+_0x5ea1d0))!=_0x4de7ba[_0x596403([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x596403([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x596403([0x56,0x61,0x6c,0x69,0x64]);})[_0x596403([0x74,0x68,0x65,0x6e])](_0x81e5c5=>(_0x1d578f(),_0x81e5c5),()=>{const _0x36f990=_0x305582();return null==_0x36f990?(_0x1d578f(),_0x596403([0x56,0x61,0x6c,0x69,0x64])):_0x596403(_0x3374ae-_0x36f990>(0x63ae0106^_0x5130f8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x596403([0x74,0x68,0x65,0x6e])](_0x158af9)[_0x596403([0x63,0x61,0x74,0x63,0x68])](()=>{_0x158af9(_0x596403([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7a01f8=0x47946b86^_0x5130f8;function _0x1d578f(){const _0x1f32b0=_0x596403([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cf1d0(_0x209138(_0x8cf96c)),_0x1fc0bb=_0x1da958(_0x3cf1d0(window[_0x596403([0x4d,0x61,0x74,0x68])][_0x596403([0x63,0x65,0x69,0x6c])](_0x3374ae/_0x7a01f8)));window[_0x596403([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x596403([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f32b0,_0x1fc0bb);}function _0x305582(){const _0x23fba6=_0x596403([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cf1d0(_0x209138(_0x8cf96c)),_0x371425=window[_0x596403([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x596403([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23fba6);return _0x371425?window[_0x596403([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1da958(_0x371425),0x10)*_0x7a01f8:null;}function _0x41112(_0x1f53e2){return new window[(_0x596403([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x306f79,_0x394f7c)=>{_0x1f53e2[_0x596403([0x74,0x68,0x65,0x6e])](_0x306f79,_0x394f7c),window[_0x596403([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x394f7c,0x47a351c6^_0x5130f8);});}}_0x40b2c1[_0x596403([0x6f,0x6e])](_0x596403([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2b1a99,_0x516587)=>{if(_0x516587[0x0]!=_0x8cf96c)return _0x158af9(_0x596403([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x516587[0x1]={..._0x516587[0x1],[_0x596403([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xc4573};},{[_0x596403([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x596403([0x68,0x69,0x67,0x68])}),_0x40b2c1[_0x596403([0x6f,0x6e])](_0x596403([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x436449=>{_0x3c1bd1(_0x436449[_0x596403([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b8363=!0x0,_0x461bfc(_0x436449[_0x596403([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x596403([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x596403([0x6c,0x6f,0x77])}),_0x99ca0[_0x596403([0x74,0x68,0x65,0x6e])](()=>{_0x4b8363||_0x158af9(_0x596403([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x56bc50(){return _0x40b2c1[_0x596403([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x596403([0x76,0x69,0x65,0x77])][_0x596403([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x596403([0x61,0x75,0x74,0x6f]);}function _0x46eb61(){_0x40b2c1[_0x596403([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x596403([0x76,0x69,0x65,0x77])][_0x596403([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x596403([0x61,0x75,0x74,0x6f]);}}function _0x56fdcd(_0x182e51){const _0x32e49a=[new window[(_0x596403([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26c1fd=>setTimeout(_0x26c1fd,0x47abbbca^_0x5130f8)),_0x99ca0[_0x596403([0x74,0x68,0x65,0x6e])](()=>new window[(_0x596403([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4eb7d8=>{let _0x367810=0x0;_0x40b2c1[_0x596403([0x6d,0x6f,0x64,0x65,0x6c])][_0x596403([0x6f,0x6e])](_0x596403([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d9572,_0x12488f)=>{_0x12488f[0x0][_0x596403([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x367810++,_0x367810==(0x47a280ee^_0x5130f8)&&(_0x4eb7d8(),_0x1d9572[_0x596403([0x6f,0x66,0x66])]());});}))];return window[_0x596403([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x596403([0x72,0x61,0x63,0x65])](_0x32e49a)[_0x596403([0x74,0x68,0x65,0x6e])](()=>_0x182e51);}async function _0x36c9b3(){await _0x99ca0,_0x40b2c1[_0x596403([0x6d,0x6f,0x64,0x65,0x6c])][_0x596403([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x128ca7,_0x40b2c1[_0x596403([0x6d,0x6f,0x64,0x65,0x6c])][_0x596403([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x128ca7,_0x40b2c1[_0x596403([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x596403([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1d0733(_0x1eb6d1){const _0x360ab5=_0x16bc9c();_0x40b2c1[_0x360ab5]=_0x596403([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1eb6d1,_0x1eb6d1!=_0x596403([0x56,0x61,0x6c,0x69,0x64])&&_0x36c9b3();}function _0x16bc9c(){const _0x1c917f=window[_0x596403([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x596403([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x596403([0x6e,0x6f,0x77])]())[_0x596403([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x596403([0x2e]),'');let _0x223429=_0x596403([0x75]);for(let _0xf045d=0x0;_0xf045d<_0x1c917f[_0x596403([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf045d+=0x2){let _0x3681ce=window[_0x596403([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c917f[_0x596403([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf045d,_0xf045d+0x2));_0x3681ce>=_0x2e45eb[_0x596403([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3681ce-=_0x2e45eb[_0x596403([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x223429+=_0x2e45eb[_0x3681ce];}return _0x223429;}function _0x322ed5(){const _0x38257e=_0x565291[_0x596403([0x73,0x70,0x6c,0x69,0x74])](_0x596403([0x2e]));if(0x3!=_0x38257e[_0x596403([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3c8293(_0x38257e[0x1]);function _0x3c8293(_0x562d35){const _0x1f9f17=_0x1eaca0(_0x562d35);return _0x1f9f17&&_0x312be2()?_0x1f9f17:null;function _0x312be2(){const _0x29a87d=_0x1f9f17[_0x596403([0x6a,0x74,0x69])],_0x32b1b8=window[_0x596403([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29a87d[_0x596403([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29a87d[_0x596403([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4722f2={..._0x1f9f17,[_0x596403([0x6a,0x74,0x69])]:_0x29a87d[_0x596403([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x29a87d[_0x596403([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4722f2[_0x596403([0x76,0x63])],_0x209138(_0x4722f2)==_0x32b1b8;}}}async function _0x199dc8(){let _0x2fb30d=!0x0;try{const _0x37ec02=_0x565291[_0x596403([0x73,0x70,0x6c,0x69,0x74])](_0x596403([0x2e])),[_0x382093,_0x4a7f15,_0x3ba6c9]=_0x37ec02;return _0x407a0c(_0x382093),await _0x2f41da(_0x382093,_0x4a7f15,_0x3ba6c9),_0x2fb30d;}catch{return!0x1;}function _0x407a0c(_0x487c23){const _0x808ead=_0x1eaca0(_0x487c23);_0x808ead&&_0x808ead[_0x596403([0x61,0x6c,0x67])]==_0x596403([0x45,0x53,0x32,0x35,0x36])||(_0x2fb30d=!0x1);}async function _0x2f41da(_0x1d60b,_0x43c597,_0x47359a){const _0x4e83ba=window[_0x596403([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x596403([0x66,0x72,0x6f,0x6d])](_0x53fe22(_0x47359a),_0xb6ea0=>_0xb6ea0[_0x596403([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4fb0d6=new window[(_0x596403([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x596403([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d60b+_0x596403([0x2e])+_0x43c597),_0x4af0f=window[_0x596403([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x596403([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4af0f)return;const _0x34ef6a=await _0x4af0f[_0x596403([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x596403([0x6a,0x77,0x6b]),_0x234b07,{[_0x596403([0x6e,0x61,0x6d,0x65])]:_0x596403([0x45,0x43,0x44,0x53,0x41]),[_0x596403([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x596403([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x596403([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4af0f[_0x596403([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x596403([0x6e,0x61,0x6d,0x65])]:_0x596403([0x45,0x43,0x44,0x53,0x41]),[_0x596403([0x68,0x61,0x73,0x68])]:{[_0x596403([0x6e,0x61,0x6d,0x65])]:_0x596403([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34ef6a,_0x4e83ba,_0x4fb0d6)||(_0x2fb30d=!0x1);}}function _0x1eaca0(_0x1eafdc){return _0x1eafdc[_0x596403([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x596403([0x65,0x79]))?JSON[_0x596403([0x70,0x61,0x72,0x73,0x65])](_0x53fe22(_0x1eafdc)):null;}function _0x53fe22(_0x402c29){return window[_0x596403([0x61,0x74,0x6f,0x62])](_0x402c29[_0x596403([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x596403([0x2b]))[_0x596403([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x596403([0x2f])));}function _0x209138(_0x275fa8){let _0x282826=0x1505;function _0xe1ff(_0x46c83a){for(let _0x219b80=0x0;_0x219b80<_0x46c83a[_0x596403([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x219b80++){const _0x1242af=_0x46c83a[_0x596403([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x219b80);_0x282826=(_0x282826<<0x5)+_0x282826+_0x1242af,_0x282826&=_0x282826;}}function _0x7c795d(_0x295dee){Array[_0x596403([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x295dee)?_0x295dee[_0x596403([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7c795d):_0x295dee&&typeof _0x295dee==_0x596403([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x596403([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x295dee)[_0x596403([0x73,0x6f,0x72,0x74])]()[_0x596403([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4605b8,_0x243a69])=>{_0xe1ff(_0x4605b8),_0x7c795d(_0x243a69);}):_0xe1ff(window[_0x596403([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x295dee));}return _0x7c795d(_0x275fa8),_0x282826>>>0x0;}function _0x3cf1d0(_0x4972bc){return _0x4972bc[_0x596403([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x596403([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x596403([0x30]));}function _0x1da958(_0x2838ac){return _0x2838ac[_0x596403([0x73,0x70,0x6c,0x69,0x74])]('')[_0x596403([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x596403([0x6a,0x6f,0x69,0x6e])]('');}function _0x128ca7(){}function _0x596403(_0x21a184){return _0x21a184['map'](_0x3c8057=>String['fromCharCode'](_0x3c8057))['join']('');}_0x1d0733(await _0x504897());}(this);}['_moveSelectionToFootnoteDefinition'](_0x26582a){const {plugins:_0x1ffc0c,editing:_0x12aaab,model:_0x4a03b1}=this['editor'],_0x4bf8a5=_0x1ffc0c['get'](_0x5e5fdd)['getFootnote'](_0x26582a);return!!_0x4bf8a5&&(_0x4a03b1['change'](_0x55a726=>{_0x55a726['setSelection'](_0x55a726['createPositionAt'](_0x4bf8a5['definition'],'end'));}),_0x12aaab['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x57495a){const {plugins:_0x14d213,editing:_0x4a6362,model:_0xbdb730}=this['editor'],_0x4ad9f2=_0x14d213['get'](_0x5e5fdd)['getFootnote'](_0x57495a);return!!_0x4ad9f2&&(_0xbdb730['change'](_0x44510c=>{_0x44510c['setSelection'](_0x4ad9f2['reference'],'on');}),_0x4a6362['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0xf99b24}=this['editor']['model'],_0x47be77=this['editor']['config']['get']('footnotes.multiBlock');_0xf99b24['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0xf99b24['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0xf99b24['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x47be77?_0xf99b24['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0xf99b24['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0xf99b24['addChildCheck'](_0x513eea=>{for(const _0x41e4b2 of _0x513eea)if('footnoteDefinition'===_0x41e4b2['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x3cc9e5}=this,{conversion:_0x588287,editing:_0x4f9fbb}=_0x3cc9e5,{t:t}=_0x3cc9e5['locale'];_0x588287['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x12cd9b,{writer:_0x2c543f,consumable:_0x461e83})=>{const _0x466d74=_0x12cd9b['getChild'](0x0);if(!_0x466d74||!_0x466d74['is']('element','a'))return null;const _0x2eacba=_0x466d74['getAttribute']('href')||'';if(!_0x2eacba['startsWith']('#'))return null;const _0x31f9c0=_0x2eacba['replace'](/^#/,'');if(!_0x31f9c0)return null;_0x461e83['consume'](_0x466d74,{'name':!0x0,'attributes':['href']});for(const {item:_0x55512e}of _0x4f9fbb['view']['createRangeIn'](_0x466d74))_0x55512e['is']('$textProxy')?_0x461e83['consume'](_0x55512e['textNode'],{'name':!0x0}):_0x55512e['is']('element')&&_0x461e83['consume'](_0x55512e,{'name':!0x0});return _0x2c543f['createElement']('footnoteRef',{'footnoteId':_0x31f9c0});}}),_0x588287['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x33885a,{writer:_0x934f87})=>b(_0x33885a,_0x934f87)}),_0x588287['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x492d01,{writer:_0x5b2c6a})=>{const _0x51f9e5=_0x492d01['getAttribute']('footnoteCounter');return _0x36cd03(b(_0x492d01,_0x5b2c6a),_0x5b2c6a,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x51f9e5)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2f893a}=this,{t:t}=_0x2f893a['locale'],{conversion:_0x5c5a0d}=_0x2f893a;_0x5c5a0d['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5c5a0d['for']('upcast')['add'](_0x565d06=>{_0x565d06['on']('element:ol',(_0x3e6328,_0x2f64c3,_0x1e9a67)=>{const _0x6e6b7d=_0x2f64c3['viewItem'];if(!_0x6e6b7d['hasClass']('footnotes-list')||!_0x2f64c3['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1e9a67['consumable']['consume'](_0x6e6b7d,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x11f70a,modelCursor:_0xe6dd3d}=_0x1e9a67['convertChildren'](_0x2f64c3['viewItem'],_0x2f64c3['modelCursor']);_0x2f64c3['modelRange']=_0x11f70a,_0x2f64c3['modelCursor']=_0xe6dd3d;}),_0x565d06['on']('element:hr',(_0x292055,_0x8298a5,_0x2ea534)=>{const _0x3b5375=_0x8298a5['viewItem'];_0x3b5375['hasClass']('footnotes-divider')&&_0x8298a5['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x2ea534['consumable']['consume'](_0x3b5375,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5c5a0d['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x22f9f5,{writer:_0x388b15})=>D(_0x388b15)}),_0x5c5a0d['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x44079a,{writer:_0xce9b6e})=>{const _0x1f50d0=D(_0xce9b6e,{'data-footnotes-list-label':t('Footnotes')}),_0xe1084a=_0x36cd03(_0x1f50d0,_0xce9b6e,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0xce9b6e['setCustomProperty']('footnotesDefinitions',!0x0,_0xe1084a),_0xe1084a;}});}['_defineDefinitionConverters'](){const {editor:_0x1976ee}=this,{conversion:_0x459e84,locale:_0x408064}=_0x1976ee,_0xd1238c=_0x1976ee['config']['get']('footnotes.multiBlock');_0x459e84['for']('upcast')['add'](_0x2bf66a=>{_0x2bf66a['on']('element:li',(_0x4ccad8,_0x316f28,_0x5e358e)=>{const _0x2c2e80=_0x316f28['viewItem'];if(!_0x2c2e80['hasClass']('footnote-definition')||!_0x2c2e80['getAttribute']('id'))return;const _0x287b62=_0x2c2e80['parent'];if(!_0x287b62['is']('element','ol')||!_0x287b62['hasClass']('footnotes-list'))return;if(!_0x5e358e['consumable']['test'](_0x2c2e80,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x36847e=_0x5e358e['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2c2e80['getAttribute']('id')});if(!_0x5e358e['safeInsert'](_0x36847e,_0x316f28['modelCursor']))return;_0x5e358e['consumable']['consume'](_0x2c2e80,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x3354a6=Array['from'](_0x2c2e80['getChildren']())['find'](_0x1347a5=>_0x1347a5['is']('element')&&_0x1347a5['hasClass']('footnote-content'));for(const _0x52d48e of _0x2c2e80['getChildren']())_0x52d48e['is']('element')&&(_0x5e358e['consumable']['consume'](_0x52d48e,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5e358e['consumable']['consume'](_0x52d48e,{'name':!0x0,'classes':'footnote-content'}));if(_0x3354a6){if(_0xd1238c)_0x5e358e['convertChildren'](_0x3354a6,_0x36847e);else{const _0x5065cf=_0x5e358e['writer']['createElement']('footnoteInlineContent');_0x5e358e['writer']['insert'](_0x5065cf,_0x36847e),_0x5e358e['convertChildren'](_0x3354a6,_0x5065cf);}}_0x5e358e['updateConversionResult'](_0x36847e,_0x316f28);});}),_0x459e84['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3937cc,{writer:_0x215026})=>y(_0x3937cc,_0x215026,_0x408064,{'dataPipeline':!0x0})}),_0x459e84['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3bec88,{writer:_0x2fd489})=>y(_0x3bec88,_0x2fd489,_0x408064)});}['_defineBogusParagraphConverters'](){const {editor:_0x35d860}=this,{conversion:_0x59b9f9}=_0x35d860;_0x35d860['config']['get']('footnotes.multiBlock')?(_0x59b9f9['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x59b9f9['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x35d860['model']['document'],'change:data',()=>{!function(_0x572c1b,_0x2d3d32){const _0x24b895=_0x572c1b['document']['differ'],_0x40dce1=new Set();for(const _0x594b38 of _0x24b895['getChanges']()){const _0x2831f8='attribute'==_0x594b38['type']?_0x594b38['range']['start']['parent']:_0x594b38['position']['parent'];_0x2831f8['is']('element','footnoteDefinition')&&_0x40dce1['add'](_0x2831f8);}for(const _0xd5f0d7 of _0x40dce1['values']()){const _0x3121e0=Array['from'](_0xd5f0d7['getChildren']())['filter'](_0x23e9b8=>v(_0x23e9b8,_0x2d3d32['mapper']));for(const _0x4aeb7b of _0x3121e0)_0x2d3d32['reconvertItem'](_0x4aeb7b);}}(_0x35d860['model'],_0x35d860['editing']);})):(_0x59b9f9['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x59b9f9['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1d6bb2,{writer:_0x57162a})=>{const _0x4ba607=_0x57162a['createContainerElement']('span');return _0x57162a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4ba607),_0x4ba607;}}));}['_defineKeyboardHandlers'](){const {editor:_0x4d9c6a}=this,{editing:_0x278db8,t:t}=_0x4d9c6a,_0x4cc4b7=_0x4d9c6a['model']['document']['selection'];_0x4d9c6a['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x4d9c6a['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x278db8['view']['document'],'enter',(_0x22e664,_0x1a6221)=>{const _0x5ca0bc=function(_0x1fa53e){const _0xff6667=_0x1fa53e['getSelectedElement']();if(_0xff6667?.['is']('element','footnoteRef'))return _0xff6667;return null;}(_0x4cc4b7);if(_0x5ca0bc){const _0x549172=_0x5ca0bc['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x549172),_0x1a6221['preventDefault'](),_0x22e664['stop']();}},{'context':_0x1bd175});}['_defineClickHandlers'](){const {editor:_0xe2ef3f}=this,{editing:_0x84c396}=_0xe2ef3f;_0xe2ef3f['editing']['view']['addObserver'](_0x16dad6),_0xe2ef3f['editing']['view']['addObserver'](_0x1f899c);let _0x522c0e=!0x1;this['listenTo'](_0x84c396['view']['document'],'pointerdown',(_0x1b0331,_0x30eca9)=>{const {target:_0x5a0538}=_0x30eca9,_0x51283d=_0x84c396['view']['document']['selection'];_0x522c0e=!!(_0x5a0538?.['is']('element','a')&&_0x5a0538['parent']?.['is']('element','sup')&&_0x5a0538['parent']['hasClass']('footnote'))&&_0x51283d['getSelectedElement']()===_0x5a0538['parent'];},{'priority':'high'}),this['listenTo'](_0x84c396['view']['document'],'click',(_0x585d8c,_0x89c325)=>{const {target:_0x56385a}=_0x89c325;if(!_0x56385a?.['is']('element','a'))return;if(_0x56385a['parent']?.['is']('element','sup')&&_0x56385a['parent']['hasClass']('footnote')&&!_0x522c0e)return void _0x89c325['preventDefault']();let _0x58d346=_0x56385a['getAttribute']('href');if(!_0x58d346?.['startsWith']('#'))return;_0x58d346=_0x58d346['slice'](0x1);let _0x4c8806=!0x1;(_0x58d346['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x58d346['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x58d346))&&(_0x4c8806=!0x0),_0x4c8806&&(_0x89c325['preventDefault'](),_0x585d8c['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x1c555b}={}){return(_0x13fb98,{writer:_0x715812})=>{if(!g(_0x13fb98))return null;if(!_0x1c555b)return _0x715812['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4de46f=_0x715812['createContainerElement']('p');return _0x715812['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4de46f),_0x4de46f;};}function g(_0x3224ca){const {parent:_0x199268}=_0x3224ca;if(!_0x199268?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x199268['childCount'])return!0x1;for(const _0x4fd6e0 of _0x3224ca['getAttributeKeys']())if(!_0x4fd6e0['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4fd6e0)return!0x1;return!0x0;}function v(_0x463df3,_0x5ef6ed){if(!_0x463df3['is']('element','paragraph'))return!0x1;const _0x2ecb8d=_0x5ef6ed['toViewElement'](_0x463df3);return!!_0x2ecb8d&&g(_0x463df3)!==_0x2ecb8d['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x368481){return _0x1bd175(_0x368481)&&_0x368481['is']('containerElement')&&!!_0x368481['getCustomProperty']('footnotesDefinitions');}function D(_0x38b468,_0x1ed8f5={}){const _0x1764c9=_0x38b468['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0xc5ef30=_0x38b468['createContainerElement']('ol',{'class':'footnotes-list'},_0x38b468['createSlot']());return _0x38b468['createContainerElement']('div',{'class':'footnotes',..._0x1ed8f5},[_0x1764c9,_0xc5ef30]);}function b(_0x1e8c5b,_0x3fd8f7){const _0x41fdf3=_0x1e8c5b['getAttribute']('footnoteId'),_0x43fa25=_0x1e8c5b['getAttribute']('footnoteCounter'),_0x77074e=_0x3fd8f7['createUIElement']('a',{'href':'#'+_0x41fdf3},function(_0x4a0a3b){const _0x1303c4=this['toDomElement'](_0x4a0a3b);return _0x1303c4['textContent']=_0x43fa25,_0x1303c4;}),_0x334be2=_0x3fd8f7['createContainerElement']('sup',{'id':'ref-'+_0x41fdf3,'class':'footnote'},[_0x77074e]);return _0x334be2['getFillerOffset']=()=>null,_0x334be2;}function y(_0x3a3796,_0x476a43,_0x351dd6,{dataPipeline:_0x47822e}={}){const {t:t}=_0x351dd6,_0xe1d914=_0x3a3796['getAttribute']('footnoteId'),_0x3c89b8=_0x476a43['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xe1d914},function(_0x473c25){const _0x464d98=this['toDomElement'](_0x473c25);return _0x464d98['innerText']='^',_0x464d98;}),_0xc99d3f=_0x47822e?_0x476a43['createContainerElement']('div',{'class':'footnote-content'}):_0x3a6142(_0x476a43['createEditableElement']('div',{'class':'footnote-content'}),_0x476a43,{'label':t('Footnote\x20content.')});return _0x476a43['insert'](_0x476a43['createPositionAt'](_0xc99d3f,0x0),_0x476a43['createSlot']()),_0x476a43['createContainerElement']('li',{'class':'footnote-definition','id':_0xe1d914},[_0x3c89b8,_0xc99d3f]);}
|
|
23
|
+
import{Plugin as _0xf65079}from'ckeditor5/src/core.js';import{isWidget as _0x576776,toWidget as _0x485fbd,toWidgetEditable as _0xdd3326}from'ckeditor5/src/widget.js';import{uid as _0x5441dc}from'ckeditor5/src/utils.js';import{PointerObserver as _0x5be418,ClickObserver as _0x5c0923}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x2f79b9}from'./footnotestracker.js';import{InsertFootnoteCommand as _0xf74a6f}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0xf65079{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x2f79b9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4d534d}=this;_0x4d534d['config']['define']('footnotes.multiBlock',!0x0),_0x4d534d['commands']['add']('insertFootnote',new _0xf74a6f(_0x4d534d)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x47f56c){const _0x6c8ad4=_0x3e42f8([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]),_0x829d3a=0x47a28506,_0x1719ca=0x47a5f9a6^_0x829d3a,_0x2518de=window[_0x3e42f8([0x44,0x61,0x74,0x65])][_0x3e42f8([0x6e,0x6f,0x77])](),_0x4db12a=_0x47f56c[_0x3e42f8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x54a7fc=new window[(_0x3e42f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24fbe0=>{_0x4db12a[_0x3e42f8([0x6f,0x6e,0x63,0x65])](_0x3e42f8([0x72,0x65,0x61,0x64,0x79]),_0x24fbe0);}),_0x54c4b8={[_0x3e42f8([0x6b,0x74,0x79])]:_0x3e42f8([0x45,0x43]),[_0x3e42f8([0x75,0x73,0x65])]:_0x3e42f8([0x73,0x69,0x67]),[_0x3e42f8([0x63,0x72,0x76])]:_0x3e42f8([0x50,0x2d,0x32,0x35,0x36]),[_0x3e42f8([0x78])]:_0x3e42f8([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]),[_0x3e42f8([0x79])]:_0x3e42f8([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]),[_0x3e42f8([0x61,0x6c,0x67])]:_0x3e42f8([0x45,0x53,0x32,0x35,0x36])},_0x5c7e55=_0x4db12a[_0x3e42f8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e42f8([0x67,0x65,0x74])](_0x3e42f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x284a5f(){let _0x346f6b,_0x5ef0af=null,_0x3a153b=null;try{if(_0x5c7e55==_0x3e42f8([0x47,0x50,0x4c]))return _0x3e42f8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x346f6b=_0x1c0b9a(),!_0x346f6b)return _0x3e42f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x346f6b[_0x3e42f8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3a153b=_0x3f153e(_0x346f6b[_0x3e42f8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x346f6b[_0x3e42f8([0x6a,0x74,0x69])])),await _0x2f3ad6()?_0x3259b9()?_0x2b989c()?_0x3e42f8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x555f74()?(_0x346f6b[_0x3e42f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e42f8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5ef0af=_0x1d6ce9(_0x3e42f8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x346f6b[_0x3e42f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e42f8([0x74,0x72,0x69,0x61,0x6c])&&(_0x5ef0af=_0x1d6ce9(_0x3e42f8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x16efee()):_0x3e42f8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e42f8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e42f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3e42f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b989c(){const _0x3ccc8e=[_0x3e42f8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e42f8([0x74,0x72,0x69,0x61,0x6c])][_0x3e42f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x346f6b[_0x3e42f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2518de/0x3e8:0xe10*_0x1719ca;return _0x346f6b[_0x3e42f8([0x65,0x78,0x70])]<_0x3ccc8e;}function _0x3259b9(){const _0x3b8f59=_0x346f6b[_0x3e42f8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3b8f59&&(!!_0x3b8f59[_0x3e42f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e42f8([0x2a]))||!!_0x3b8f59[_0x3e42f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e42f8([0x46,0x4f,0x4f])));}function _0x555f74(){const _0x2424d5=_0x346f6b[_0x3e42f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2424d5||0x0==_0x2424d5[_0x3e42f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x9148a}=new URL(window[_0x3e42f8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2424d5[_0x3e42f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9148a))return!0x0;const _0x5430c2=_0x9148a[_0x3e42f8([0x73,0x70,0x6c,0x69,0x74])](_0x3e42f8([0x2e]));return _0x2424d5[_0x3e42f8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x235ea1=>_0x235ea1[_0x3e42f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e42f8([0x2a])))[_0x3e42f8([0x6d,0x61,0x70])](_0xb4f0ff=>_0xb4f0ff[_0x3e42f8([0x73,0x70,0x6c,0x69,0x74])](_0x3e42f8([0x2e])))[_0x3e42f8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2fde87=>_0x2fde87[_0x3e42f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5430c2[_0x3e42f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e42f8([0x6d,0x61,0x70])](_0x14a092=>Array(_0x5430c2[_0x3e42f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x14a092[_0x3e42f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e42f8([0x66,0x69,0x6c,0x6c])](_0x14a092[0x0]===_0x3e42f8([0x2a])?_0x3e42f8([0x2a]):'')[_0x3e42f8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x14a092))[_0x3e42f8([0x73,0x6f,0x6d,0x65])](_0x54b59a=>_0x5430c2[_0x3e42f8([0x65,0x76,0x65,0x72,0x79])]((_0x3c66ee,_0x328f6a)=>_0x54b59a[_0x328f6a]===_0x3c66ee||_0x54b59a[_0x328f6a]===_0x3e42f8([0x2a])));}function _0x16efee(){return _0x5ef0af&&_0x3a153b?new window[(_0x3e42f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x471388,_0x5e8d1c)=>{_0x5ef0af[_0x3e42f8([0x74,0x68,0x65,0x6e])](_0x471388,_0x5e8d1c),_0x3a153b[_0x3e42f8([0x74,0x68,0x65,0x6e])](_0x473751=>{_0x473751!=_0x3e42f8([0x56,0x61,0x6c,0x69,0x64])&&_0x471388(_0x473751);},_0x5e8d1c);}):_0x5ef0af||_0x3a153b||_0x3e42f8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3f153e(_0x3168ae,_0x4b7b9e){return new window[(_0x3e42f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1322da=>{if(_0x215c28())return _0x1322da(_0x3e42f8([0x56,0x61,0x6c,0x69,0x64]));_0x50b025(),_0x4db12a[_0x3e42f8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e42f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x587d0d=!0x1;const _0x51fb75=_0x5441dc();function _0x333a24(_0x578219){return!!_0x578219&&(typeof _0x578219===_0x3e42f8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x578219===_0x3e42f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x578219[_0x3e42f8([0x74,0x68,0x65,0x6e])]===_0x3e42f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x578219[_0x3e42f8([0x63,0x61,0x74,0x63,0x68])]===_0x3e42f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5bbfce(_0x541cac){_0x195f33(_0x541cac)[_0x3e42f8([0x74,0x68,0x65,0x6e])](_0x387ce2=>{if(!_0x387ce2||_0x387ce2[_0x3e42f8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e42f8([0x6f,0x6b]))return _0x3e42f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1376e6(_0x9eb0(_0x51fb75+_0x4b7b9e))!=_0x387ce2[_0x3e42f8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e42f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e42f8([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e42f8([0x74,0x68,0x65,0x6e])](_0x515b35=>(_0x19aabb(),_0x515b35),()=>{const _0x660f71=_0x402423();return null==_0x660f71?(_0x19aabb(),_0x3e42f8([0x56,0x61,0x6c,0x69,0x64])):_0x3e42f8(_0x2518de-_0x660f71>(0x63ae0106^_0x829d3a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e42f8([0x74,0x68,0x65,0x6e])](_0x1322da)[_0x3e42f8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1322da(_0x3e42f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e6563=0x47946b86^_0x829d3a;function _0x19aabb(){const _0xb5efc2=_0x3e42f8([0x6c,0x6c,0x63,0x74,0x2d])+_0x1376e6(_0x9eb0(_0x3168ae)),_0x3d3554=_0x39ff4d(_0x1376e6(window[_0x3e42f8([0x4d,0x61,0x74,0x68])][_0x3e42f8([0x63,0x65,0x69,0x6c])](_0x2518de/_0x2e6563)));window[_0x3e42f8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e42f8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb5efc2,_0x3d3554);}function _0x402423(){const _0x3025fa=_0x3e42f8([0x6c,0x6c,0x63,0x74,0x2d])+_0x1376e6(_0x9eb0(_0x3168ae)),_0x4208cc=window[_0x3e42f8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e42f8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3025fa);return _0x4208cc?window[_0x3e42f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39ff4d(_0x4208cc),0x10)*_0x2e6563:null;}function _0x195f33(_0x455093){return new window[(_0x3e42f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b190c,_0x30358f)=>{_0x455093[_0x3e42f8([0x74,0x68,0x65,0x6e])](_0x2b190c,_0x30358f),window[_0x3e42f8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x30358f,0x47a351c6^_0x829d3a);});}}_0x4db12a[_0x3e42f8([0x6f,0x6e])](_0x3e42f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3c1258,_0x415bef)=>{if(_0x415bef[0x0]!=_0x3168ae)return _0x1322da(_0x3e42f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x415bef[0x1]={..._0x415bef[0x1],[_0x3e42f8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x51fb75};},{[_0x3e42f8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e42f8([0x68,0x69,0x67,0x68])}),_0x4db12a[_0x3e42f8([0x6f,0x6e])](_0x3e42f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x712918=>{_0x333a24(_0x712918[_0x3e42f8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x587d0d=!0x0,_0x5bbfce(_0x712918[_0x3e42f8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e42f8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e42f8([0x6c,0x6f,0x77])}),_0x54a7fc[_0x3e42f8([0x74,0x68,0x65,0x6e])](()=>{_0x587d0d||_0x1322da(_0x3e42f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x215c28(){return _0x4db12a[_0x3e42f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e42f8([0x76,0x69,0x65,0x77])][_0x3e42f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e42f8([0x61,0x75,0x74,0x6f]);}function _0x50b025(){_0x4db12a[_0x3e42f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e42f8([0x76,0x69,0x65,0x77])][_0x3e42f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e42f8([0x61,0x75,0x74,0x6f]);}}function _0x1d6ce9(_0x36b99a){const _0x2579d2=[new window[(_0x3e42f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5385ee=>setTimeout(_0x5385ee,0x47abbbca^_0x829d3a)),_0x54a7fc[_0x3e42f8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e42f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4822dc=>{let _0x494a1f=0x0;_0x4db12a[_0x3e42f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e42f8([0x6f,0x6e])](_0x3e42f8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x541d9b,_0x444b2f)=>{_0x444b2f[0x0][_0x3e42f8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x494a1f++,_0x494a1f==(0x47a280ee^_0x829d3a)&&(_0x4822dc(),_0x541d9b[_0x3e42f8([0x6f,0x66,0x66])]());});}))];return window[_0x3e42f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e42f8([0x72,0x61,0x63,0x65])](_0x2579d2)[_0x3e42f8([0x74,0x68,0x65,0x6e])](()=>_0x36b99a);}async function _0x53723c(){await _0x54a7fc,_0x4db12a[_0x3e42f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e42f8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x157f30,_0x4db12a[_0x3e42f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e42f8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x157f30,_0x4db12a[_0x3e42f8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e42f8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x483262(_0xfda174){const _0x5754ad=_0x16ea25();_0x4db12a[_0x5754ad]=_0x3e42f8([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xfda174,_0xfda174!=_0x3e42f8([0x56,0x61,0x6c,0x69,0x64])&&_0x53723c();}function _0x16ea25(){const _0x22fa14=window[_0x3e42f8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e42f8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e42f8([0x6e,0x6f,0x77])]())[_0x3e42f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e42f8([0x2e]),'');let _0x38eeef=_0x3e42f8([0x75]);for(let _0x42dd7e=0x0;_0x42dd7e<_0x22fa14[_0x3e42f8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42dd7e+=0x2){let _0x4285b2=window[_0x3e42f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22fa14[_0x3e42f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42dd7e,_0x42dd7e+0x2));_0x4285b2>=_0x6c8ad4[_0x3e42f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4285b2-=_0x6c8ad4[_0x3e42f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x38eeef+=_0x6c8ad4[_0x4285b2];}return _0x38eeef;}function _0x1c0b9a(){const _0x41ce0b=_0x5c7e55[_0x3e42f8([0x73,0x70,0x6c,0x69,0x74])](_0x3e42f8([0x2e]));if(0x3!=_0x41ce0b[_0x3e42f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2be5bf(_0x41ce0b[0x1]);function _0x2be5bf(_0x4b11ae){const _0x241c4a=_0x1b2289(_0x4b11ae);return _0x241c4a&&_0x51b837()?_0x241c4a:null;function _0x51b837(){const _0x31c3e8=_0x241c4a[_0x3e42f8([0x6a,0x74,0x69])],_0x4e5532=window[_0x3e42f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31c3e8[_0x3e42f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31c3e8[_0x3e42f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11c840={..._0x241c4a,[_0x3e42f8([0x6a,0x74,0x69])]:_0x31c3e8[_0x3e42f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31c3e8[_0x3e42f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11c840[_0x3e42f8([0x76,0x63])],_0x9eb0(_0x11c840)==_0x4e5532;}}}async function _0x2f3ad6(){let _0x438b98=!0x0;try{const _0x1708be=_0x5c7e55[_0x3e42f8([0x73,0x70,0x6c,0x69,0x74])](_0x3e42f8([0x2e])),[_0x586b3b,_0x4ae04f,_0x3e324e]=_0x1708be;return _0x5e66dd(_0x586b3b),await _0x87b673(_0x586b3b,_0x4ae04f,_0x3e324e),_0x438b98;}catch{return!0x1;}function _0x5e66dd(_0x15c2ad){const _0x42661d=_0x1b2289(_0x15c2ad);_0x42661d&&_0x42661d[_0x3e42f8([0x61,0x6c,0x67])]==_0x3e42f8([0x45,0x53,0x32,0x35,0x36])||(_0x438b98=!0x1);}async function _0x87b673(_0x426db9,_0x1b84d1,_0x3038b){const _0x109052=window[_0x3e42f8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e42f8([0x66,0x72,0x6f,0x6d])](_0x3d2538(_0x3038b),_0x5df4e3=>_0x5df4e3[_0x3e42f8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x52c230=new window[(_0x3e42f8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e42f8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x426db9+_0x3e42f8([0x2e])+_0x1b84d1),_0x1a123f=window[_0x3e42f8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e42f8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1a123f)return;const _0xd6be31=await _0x1a123f[_0x3e42f8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e42f8([0x6a,0x77,0x6b]),_0x54c4b8,{[_0x3e42f8([0x6e,0x61,0x6d,0x65])]:_0x3e42f8([0x45,0x43,0x44,0x53,0x41]),[_0x3e42f8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e42f8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e42f8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1a123f[_0x3e42f8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e42f8([0x6e,0x61,0x6d,0x65])]:_0x3e42f8([0x45,0x43,0x44,0x53,0x41]),[_0x3e42f8([0x68,0x61,0x73,0x68])]:{[_0x3e42f8([0x6e,0x61,0x6d,0x65])]:_0x3e42f8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd6be31,_0x109052,_0x52c230)||(_0x438b98=!0x1);}}function _0x1b2289(_0x1ab412){return _0x1ab412[_0x3e42f8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e42f8([0x65,0x79]))?JSON[_0x3e42f8([0x70,0x61,0x72,0x73,0x65])](_0x3d2538(_0x1ab412)):null;}function _0x3d2538(_0x4dad58){return window[_0x3e42f8([0x61,0x74,0x6f,0x62])](_0x4dad58[_0x3e42f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e42f8([0x2b]))[_0x3e42f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e42f8([0x2f])));}function _0x9eb0(_0x490e45){let _0x40097c=0x1505;function _0x37a7be(_0x200167){for(let _0x9742a1=0x0;_0x9742a1<_0x200167[_0x3e42f8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9742a1++){const _0x55b23e=_0x200167[_0x3e42f8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x9742a1);_0x40097c=(_0x40097c<<0x5)+_0x40097c+_0x55b23e,_0x40097c&=_0x40097c;}}function _0xd48447(_0x7f8e19){Array[_0x3e42f8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x7f8e19)?_0x7f8e19[_0x3e42f8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd48447):_0x7f8e19&&typeof _0x7f8e19==_0x3e42f8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e42f8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x7f8e19)[_0x3e42f8([0x73,0x6f,0x72,0x74])]()[_0x3e42f8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xec6b91,_0x2aadc5])=>{_0x37a7be(_0xec6b91),_0xd48447(_0x2aadc5);}):_0x37a7be(window[_0x3e42f8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x7f8e19));}return _0xd48447(_0x490e45),_0x40097c>>>0x0;}function _0x1376e6(_0x22fb48){return _0x22fb48[_0x3e42f8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e42f8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e42f8([0x30]));}function _0x39ff4d(_0x2fb908){return _0x2fb908[_0x3e42f8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e42f8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e42f8([0x6a,0x6f,0x69,0x6e])]('');}function _0x157f30(){}function _0x3e42f8(_0x4d4d90){return _0x4d4d90['map'](_0x328b5e=>String['fromCharCode'](_0x328b5e))['join']('');}_0x483262(await _0x284a5f());}(this);}['_moveSelectionToFootnoteDefinition'](_0x1c72cd){const {plugins:_0x3694c6,editing:_0x395a64,model:_0x290e3b}=this['editor'],_0xc24792=_0x3694c6['get'](_0x2f79b9)['getFootnote'](_0x1c72cd);return!!_0xc24792&&(_0x290e3b['change'](_0x3901f3=>{_0x3901f3['setSelection'](_0x3901f3['createPositionAt'](_0xc24792['definition'],'end'));}),_0x395a64['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2c398b){const {plugins:_0x2857b2,editing:_0x4d95ba,model:_0x46a90c}=this['editor'],_0x2cc0ea=_0x2857b2['get'](_0x2f79b9)['getFootnote'](_0x2c398b);return!!_0x2cc0ea&&(_0x46a90c['change'](_0x11dd49=>{_0x11dd49['setSelection'](_0x2cc0ea['reference'],'on');}),_0x4d95ba['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x22971b}=this['editor']['model'],_0xb411bc=this['editor']['config']['get']('footnotes.multiBlock');_0x22971b['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x22971b['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x22971b['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0xb411bc?_0x22971b['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x22971b['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x22971b['addChildCheck'](_0x772a2a=>{for(const _0x390420 of _0x772a2a)if('footnoteDefinition'===_0x390420['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x30fbe0}=this,{conversion:_0x238254,editing:_0x1b9f58}=_0x30fbe0,{t:t}=_0x30fbe0['locale'];_0x238254['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x467edd,{writer:_0x46dae8,consumable:_0x399fbb})=>{const _0x1dda12=_0x467edd['getChild'](0x0);if(!_0x1dda12||!_0x1dda12['is']('element','a'))return null;const _0x1eda73=_0x1dda12['getAttribute']('href')||'';if(!_0x1eda73['startsWith']('#'))return null;const _0x3b7fcf=_0x1eda73['replace'](/^#/,'');if(!_0x3b7fcf)return null;_0x399fbb['consume'](_0x1dda12,{'name':!0x0,'attributes':['href']});for(const {item:_0x51bd1a}of _0x1b9f58['view']['createRangeIn'](_0x1dda12))_0x51bd1a['is']('$textProxy')?_0x399fbb['consume'](_0x51bd1a['textNode'],{'name':!0x0}):_0x51bd1a['is']('element')&&_0x399fbb['consume'](_0x51bd1a,{'name':!0x0});return _0x46dae8['createElement']('footnoteRef',{'footnoteId':_0x3b7fcf});}}),_0x238254['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5eeabd,{writer:_0x32643b})=>b(_0x5eeabd,_0x32643b)}),_0x238254['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x51517d,{writer:_0x2cadbc})=>{const _0xc0cce5=_0x51517d['getAttribute']('footnoteCounter');return _0x485fbd(b(_0x51517d,_0x2cadbc),_0x2cadbc,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0xc0cce5)});}});}['_defineDefinitionsConverters'](){const {editor:_0x271e4d}=this,{t:t}=_0x271e4d['locale'],{conversion:_0x102a40}=_0x271e4d;_0x102a40['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x102a40['for']('upcast')['add'](_0x50588a=>{_0x50588a['on']('element:ol',(_0x124c2d,_0x4310d8,_0x533f43)=>{const _0x51a40d=_0x4310d8['viewItem'];if(!_0x51a40d['hasClass']('footnotes-list')||!_0x4310d8['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x533f43['consumable']['consume'](_0x51a40d,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x30d60c,modelCursor:_0xf00174}=_0x533f43['convertChildren'](_0x4310d8['viewItem'],_0x4310d8['modelCursor']);_0x4310d8['modelRange']=_0x30d60c,_0x4310d8['modelCursor']=_0xf00174;}),_0x50588a['on']('element:hr',(_0x4afe1b,_0x3fe43c,_0x179b26)=>{const _0x115243=_0x3fe43c['viewItem'];_0x115243['hasClass']('footnotes-divider')&&_0x3fe43c['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x179b26['consumable']['consume'](_0x115243,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x102a40['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x164473,{writer:_0x36ff90})=>D(_0x36ff90)}),_0x102a40['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x45a039,{writer:_0x2036b8})=>{const _0x42d3ba=D(_0x2036b8,{'data-footnotes-list-label':t('Footnotes')}),_0x442879=_0x485fbd(_0x42d3ba,_0x2036b8,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2036b8['setCustomProperty']('footnotesDefinitions',!0x0,_0x442879),_0x442879;}});}['_defineDefinitionConverters'](){const {editor:_0x46360c}=this,{conversion:_0x1cca65,locale:_0x3ee92a}=_0x46360c,_0x40fded=_0x46360c['config']['get']('footnotes.multiBlock');_0x1cca65['for']('upcast')['add'](_0x3317cf=>{_0x3317cf['on']('element:li',(_0x599ec4,_0x2a1672,_0x5f06cc)=>{const _0x38dab3=_0x2a1672['viewItem'];if(!_0x38dab3['hasClass']('footnote-definition')||!_0x38dab3['getAttribute']('id'))return;const _0x189e95=_0x38dab3['parent'];if(!_0x189e95['is']('element','ol')||!_0x189e95['hasClass']('footnotes-list'))return;if(!_0x5f06cc['consumable']['test'](_0x38dab3,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4b3dc2=_0x5f06cc['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x38dab3['getAttribute']('id')});if(!_0x5f06cc['safeInsert'](_0x4b3dc2,_0x2a1672['modelCursor']))return;_0x5f06cc['consumable']['consume'](_0x38dab3,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x51b3cb=Array['from'](_0x38dab3['getChildren']())['find'](_0xba3ccf=>_0xba3ccf['is']('element')&&_0xba3ccf['hasClass']('footnote-content'));for(const _0x3b924f of _0x38dab3['getChildren']())_0x3b924f['is']('element')&&(_0x5f06cc['consumable']['consume'](_0x3b924f,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5f06cc['consumable']['consume'](_0x3b924f,{'name':!0x0,'classes':'footnote-content'}));if(_0x51b3cb){if(_0x40fded)_0x5f06cc['convertChildren'](_0x51b3cb,_0x4b3dc2);else{const _0x47d640=_0x5f06cc['writer']['createElement']('footnoteInlineContent');_0x5f06cc['writer']['insert'](_0x47d640,_0x4b3dc2),_0x5f06cc['convertChildren'](_0x51b3cb,_0x47d640);}}_0x5f06cc['updateConversionResult'](_0x4b3dc2,_0x2a1672);});}),_0x1cca65['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x595b71,{writer:_0x34d943})=>y(_0x595b71,_0x34d943,_0x3ee92a,{'dataPipeline':!0x0})}),_0x1cca65['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x44be5c,{writer:_0x578e5f})=>y(_0x44be5c,_0x578e5f,_0x3ee92a)});}['_defineBogusParagraphConverters'](){const {editor:_0x32c5ba}=this,{conversion:_0x1e65b7}=_0x32c5ba;_0x32c5ba['config']['get']('footnotes.multiBlock')?(_0x1e65b7['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x1e65b7['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x32c5ba['model']['document'],'change:data',()=>{!function(_0x424f03,_0x2090bd){const _0x35460c=_0x424f03['document']['differ'],_0x557e5c=new Set();for(const _0x21f6d9 of _0x35460c['getChanges']()){const _0x56b183='attribute'==_0x21f6d9['type']?_0x21f6d9['range']['start']['parent']:_0x21f6d9['position']['parent'];_0x56b183['is']('element','footnoteDefinition')&&_0x557e5c['add'](_0x56b183);}for(const _0x1dc451 of _0x557e5c['values']()){const _0x309272=Array['from'](_0x1dc451['getChildren']())['filter'](_0x412c53=>v(_0x412c53,_0x2090bd['mapper']));for(const _0xba3ec0 of _0x309272)_0x2090bd['reconvertItem'](_0xba3ec0);}}(_0x32c5ba['model'],_0x32c5ba['editing']);})):(_0x1e65b7['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x1e65b7['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2925a2,{writer:_0x4b397a})=>{const _0x43e0b7=_0x4b397a['createContainerElement']('span');return _0x4b397a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x43e0b7),_0x43e0b7;}}));}['_defineKeyboardHandlers'](){const {editor:_0x1880c0}=this,{editing:_0x2c4e1d,t:t}=_0x1880c0,_0x22e98d=_0x1880c0['model']['document']['selection'];_0x1880c0['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x1880c0['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x2c4e1d['view']['document'],'enter',(_0x491f8f,_0x228ce6)=>{const _0x262820=function(_0x326844){const _0xf1df5f=_0x326844['getSelectedElement']();if(_0xf1df5f?.['is']('element','footnoteRef'))return _0xf1df5f;return null;}(_0x22e98d);if(_0x262820){const _0x52edea=_0x262820['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x52edea),_0x228ce6['preventDefault'](),_0x491f8f['stop']();}},{'context':_0x576776});}['_defineClickHandlers'](){const {editor:_0x48eee3}=this,{editing:_0x461487}=_0x48eee3;_0x48eee3['editing']['view']['addObserver'](_0x5be418),_0x48eee3['editing']['view']['addObserver'](_0x5c0923);let _0xd8feab=!0x1;this['listenTo'](_0x461487['view']['document'],'pointerdown',(_0x261a59,_0x514846)=>{const {target:_0x57061b}=_0x514846,_0x539ac6=_0x461487['view']['document']['selection'];_0xd8feab=!!(_0x57061b?.['is']('element','a')&&_0x57061b['parent']?.['is']('element','sup')&&_0x57061b['parent']['hasClass']('footnote'))&&_0x539ac6['getSelectedElement']()===_0x57061b['parent'];},{'priority':'high'}),this['listenTo'](_0x461487['view']['document'],'click',(_0xd10ef8,_0x18396c)=>{const {target:_0x1c0539}=_0x18396c;if(!_0x1c0539?.['is']('element','a'))return;if(_0x1c0539['parent']?.['is']('element','sup')&&_0x1c0539['parent']['hasClass']('footnote')&&!_0xd8feab)return void _0x18396c['preventDefault']();let _0x4c77d2=_0x1c0539['getAttribute']('href');if(!_0x4c77d2?.['startsWith']('#'))return;_0x4c77d2=_0x4c77d2['slice'](0x1);let _0x31d38f=!0x1;(_0x4c77d2['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x4c77d2['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x4c77d2))&&(_0x31d38f=!0x0),_0x31d38f&&(_0x18396c['preventDefault'](),_0xd10ef8['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x5e7aea}={}){return(_0xcb1726,{writer:_0x490d2a})=>{if(!g(_0xcb1726))return null;if(!_0x5e7aea)return _0x490d2a['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x3667f4=_0x490d2a['createContainerElement']('p');return _0x490d2a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3667f4),_0x3667f4;};}function g(_0x2ee3fe){const {parent:_0x52385e}=_0x2ee3fe;if(!_0x52385e?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x52385e['childCount'])return!0x1;for(const _0x521b73 of _0x2ee3fe['getAttributeKeys']())if(!_0x521b73['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x521b73)return!0x1;return!0x0;}function v(_0x4f0db7,_0x5abac6){if(!_0x4f0db7['is']('element','paragraph'))return!0x1;const _0x10f307=_0x5abac6['toViewElement'](_0x4f0db7);return!!_0x10f307&&g(_0x4f0db7)!==_0x10f307['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x3d740a){return _0x576776(_0x3d740a)&&_0x3d740a['is']('containerElement')&&!!_0x3d740a['getCustomProperty']('footnotesDefinitions');}function D(_0x5c2918,_0x53f563={}){const _0xf419bb=_0x5c2918['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x5b9463=_0x5c2918['createContainerElement']('ol',{'class':'footnotes-list'},_0x5c2918['createSlot']());return _0x5c2918['createContainerElement']('div',{'class':'footnotes',..._0x53f563},[_0xf419bb,_0x5b9463]);}function b(_0x538364,_0x2ebd3f){const _0x55c359=_0x538364['getAttribute']('footnoteId'),_0x21febe=_0x538364['getAttribute']('footnoteCounter'),_0x53831b=_0x2ebd3f['createUIElement']('a',{'href':'#'+_0x55c359},function(_0x9f6a34){const _0x59d06f=this['toDomElement'](_0x9f6a34);return _0x59d06f['textContent']=_0x21febe,_0x59d06f;}),_0x549a8a=_0x2ebd3f['createContainerElement']('sup',{'id':'ref-'+_0x55c359,'class':'footnote'},[_0x53831b]);return _0x549a8a['getFillerOffset']=()=>null,_0x549a8a;}function y(_0x52e001,_0x54bed3,_0x2d6645,{dataPipeline:_0x1dca7f}={}){const {t:t}=_0x2d6645,_0x2fc960=_0x52e001['getAttribute']('footnoteId'),_0x62365c=_0x54bed3['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2fc960},function(_0x30e0e2){const _0x4e2060=this['toDomElement'](_0x30e0e2);return _0x4e2060['innerText']='^',_0x4e2060;}),_0xa46c8c=_0x1dca7f?_0x54bed3['createContainerElement']('div',{'class':'footnote-content'}):_0xdd3326(_0x54bed3['createEditableElement']('div',{'class':'footnote-content'}),_0x54bed3,{'label':t('Footnote\x20content.')});return _0x54bed3['insert'](_0x54bed3['createPositionAt'](_0xa46c8c,0x0),_0x54bed3['createSlot']()),_0x54bed3['createContainerElement']('li',{'class':'footnote-definition','id':_0x2fc960},[_0x62365c,_0xa46c8c]);}
|