@ckeditor/ckeditor5-footnotes 0.0.0-nightly-next-20251220.0 → 0.0.0-nightly-next-20251221.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:1766188800;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: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})();
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0xd62422,Command as _0x1c86f6}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x29e748,isWidget as _0x2fcd9f,toWidgetEditable as _0x2c3674,WidgetToolbarRepository as _0x1c64b5}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x424fec,logWarning as _0x1e0f78,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x49592f,ClickObserver as _0x24dac4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x41ed3c}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x291f54,ButtonView as _0x3f131d,View as _0x54a423,ViewCollection as _0x3407b3,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x5d7e65,BalloonPanelView as _0x519169,createDropdown as _0x5d942f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x57c674,IconListStyleDecimal as _0x305c0e,IconListStyleDecimalLeadingZero as _0x3d6470,IconListStyleLowerRoman as _0x16d9d5,IconListStyleUpperRoman as _0x9f6240,IconListStyleLowerLatin as _0x2f7b1c,IconListStyleUpperLatin as _0x5f0c0d}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x5284b5,_0x461cac){this['_model']=_0x5284b5,this['_elementName']=_0x461cac['elementName'],this['_getElementKey']=_0x461cac['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x19b778){const _0xaefd28=new Set(),_0x47dd88=new Map();for(const _0x3b70c9 of _0x19b778){if('insert'===_0x3b70c9['type']&&'$text'!==_0x3b70c9['name']&&_0x3b70c9['position']['nodeAfter']){const _0x4e36f5=this['_model']['createRangeOn'](_0x3b70c9['position']['nodeAfter']);for(const _0x193fcc of _0x4e36f5['getItems']()){if(!_0x193fcc['is']('element',this['_elementName']))continue;const _0x53df54=this['_getElementKey'](_0x193fcc);_0x47dd88['has'](_0x53df54)||_0x47dd88['set'](_0x53df54,[]),_0x47dd88['get'](_0x53df54)['push'](_0x193fcc);}}if('remove'===_0x3b70c9['type']&&_0x3b70c9['name']===this['_elementName']){const _0x41f4e2=this['_getElementKey']({'getAttribute':_0x152421=>_0x3b70c9['attributes']['get'](_0x152421)});_0xaefd28['add'](_0x41f4e2);}}for(const [_0x5f4b72,_0x3f97a7]of this['_trackedElements'])'$graveyard'===_0x3f97a7['root']['rootName']&&_0xaefd28['add'](_0x5f4b72);for(const _0x26917b of _0xaefd28)this['_trackedElements']['delete'](_0x26917b);for(const [_0x5e2d17,_0xa1c4f7]of _0x47dd88)this['_trackedElements']['set'](_0x5e2d17,_0xa1c4f7[_0xa1c4f7['length']-0x1]);const _0x21cbeb=new Set();for(const [_0xd76e75,_0x1939c1]of _0x47dd88)_0xaefd28['has'](_0xd76e75)&&(_0x21cbeb['add'](_0x1939c1[0x0]),_0x1939c1['length']>0x1?_0x47dd88['set'](_0xd76e75,_0x1939c1['slice'](0x1)):_0x47dd88['delete'](_0xd76e75),_0xaefd28['delete'](_0xd76e75));return{'removed':Array['from'](_0xaefd28),'inserted':Array['from'](_0x47dd88['values']())['flat'](),'moved':Array['from'](_0x21cbeb)};}}class f extends _0xd62422{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x21bb56){super(_0x21bb56),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x1afba1=>_0x1afba1['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x1bc6b7=>_0x1bc6b7['getAttribute']('footnoteId')});}['init'](){const {editor:_0x124024}=this,{model:_0x58ebc4,data:_0x3b6ec8}=_0x124024;_0x58ebc4['document']['registerPostFixer'](_0x469c01=>{const _0x48432b=_0x58ebc4['document']['differ']['getChanges']();let _0x19fadf=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x469c01,_0x48432b)&&(_0x19fadf=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x469c01,_0x48432b)&&(_0x19fadf=!0x0),this['_handleFootnoteReferencesChanges'](_0x469c01,_0x48432b)&&(_0x19fadf=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x469c01)&&(_0x19fadf=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x469c01)&&(_0x19fadf=!0x0),this['_sortFootnoteDefinitions'](_0x469c01)&&(_0x19fadf=!0x0),_0x19fadf;}),this['listenTo'](_0x58ebc4['document'],'change:data',()=>{_0x58ebc4['enqueueChange']({'isUndoable':!0x1},_0xc65913=>{this['_ensureFootnotesDefinitionsContainerExists'](_0xc65913);});},{'priority':'low'}),this['listenTo'](_0x3b6ec8,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x16d24c){return this['_footnotes']['find'](_0x186d89=>_0x186d89['id']===_0x16d24c)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x17b613){this['_footnoteFormatter']=_0x17b613;}['_updateFootnotesCounters'](_0x21d99c,_0x50e5c7=0x0){let _0x5ccc33=!0x1;for(let _0x180a49=_0x50e5c7;_0x180a49<this['_footnotes']['length'];_0x180a49++)this['_updateFootnoteRefCounter'](_0x21d99c,_0x180a49)&&(_0x5ccc33=!0x0);return _0x5ccc33;}['_insertEmptyFootnotesDefinitionsContainer'](_0x41aa81,_0x177fa2){const _0x63e9b6=_0x41aa81['createElement']('footnotesDefinitions',{});return _0x41aa81['append'](_0x63e9b6,_0x177fa2),this['_footnotesDefinitions']=_0x63e9b6,_0x63e9b6;}['_ensureFootnotesDefinitionsContainerExists'](_0x59ada7){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x4c1436=this['_footnotes'][0x0]['reference']['root'],_0x9a152c=this['_insertEmptyFootnotesDefinitionsContainer'](_0x59ada7,_0x4c1436);for(const _0x9fda43 of this['_footnotes'])_0x9fda43['definition']['parent']||_0x59ada7['insert'](_0x9fda43['definition'],_0x9a152c,'end');this['_updateFootnotesCounters'](_0x59ada7);}['_handleFootnotesDefinitionsObjectChanges'](_0x5049c0,_0x88908a){let _0xdc9ec0=!0x1;const {inserted:_0x336a35,removed:_0x3366d3,moved:_0x451224}=this['_footnoteDefsContainerTracker']['getChanges'](_0x88908a);if(_0x451224['length']&&(this['_footnotesDefinitions']=_0x451224[0x0]),_0x336a35['length']){if(_0x336a35['length']>0x1||this['_footnotesDefinitions']&&_0x336a35['some'](_0x57bda7=>_0x57bda7!==this['_footnotesDefinitions'])){const _0x810288=_0x5049c0['createElement']('footnotesDefinitions',{}),_0x50f4b1=[];this['_footnotesDefinitions']&&_0x50f4b1['push'](this['_footnotesDefinitions']),_0x50f4b1['push'](..._0x336a35),_0x5049c0['insert'](_0x810288,_0x50f4b1[0x0],'before');for(const _0x1fc2cf of _0x50f4b1)_0x5049c0['move'](_0x5049c0['createRangeIn'](_0x1fc2cf),_0x5049c0['createPositionAt'](_0x810288,'end')),_0x5049c0['remove'](_0x1fc2cf);this['_footnotesDefinitions']=_0x810288,this['_updateFootnotesCounters'](_0x5049c0),_0xdc9ec0=!0x0;}else this['_footnotesDefinitions']=_0x336a35[0x0];}if(_0x3366d3['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x532b88 of this['_footnotes'])_0x5049c0['remove'](_0x532b88['reference']),_0xdc9ec0=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0xdc9ec0;}['_handleFootnoteDefinitionsChanges'](_0xc9e53a,_0x32a4f5){let _0x56bac8=!0x1;const _0x27a519=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x55ba3a,moved:_0x507a3f}=this['_footnoteDefsTracker']['getChanges'](_0x32a4f5);for(const _0x542d22 of[..._0x507a3f,..._0x55ba3a]){const _0x4d5360=_0x542d22['getAttribute']('footnoteId'),_0x28b7b7=this['getFootnote'](_0x4d5360);_0x28b7b7&&(_0x28b7b7['definition']=_0x542d22),_(_0xc9e53a,_0x27a519,_0x542d22)&&(_0x56bac8=!0x0);}return _0x56bac8;}['_handleFootnoteReferencesChanges'](_0x40ce08,_0x30038b){let _0x5ab525=!0x1;const {removed:_0x40e560,inserted:_0x5cd175,moved:_0x287342}=this['_footnoteRefsTracker']['getChanges'](_0x30038b);for(const _0x608379 of _0x40e560)this['_handleRemoveFootnoteReferenceById'](_0x40ce08,_0x608379)&&(_0x5ab525=!0x0);for(const _0x37bb2b of _0x5cd175)this['_handleInsertedFootnoteReference'](_0x40ce08,_0x37bb2b)&&(_0x5ab525=!0x0);for(const _0x4777bd of _0x287342)this['_handleMovedFootnoteReference'](_0x40ce08,_0x4777bd)&&(_0x5ab525=!0x0);return _0x5ab525;}['_handleFootnotesDefinitionsObjectSync'](_0xf2577c){if(!this['_footnotesDefinitions'])return!0x1;let _0x3425df=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x5be0be=[];for(const _0x396011 of this['_footnotesDefinitions']['getChildren']()){const _0x376cc6=_0x396011['getAttribute']('footnoteId');this['getFootnote'](_0x376cc6)||(_0x5be0be['unshift'](_0x396011),_0x3425df=!0x0);}for(const _0x28fa55 of _0x5be0be)_0xf2577c['remove'](_0x28fa55);}const _0x46ad29=new Set(),_0xedcbc0=[];for(const _0x1c1098 of this['_footnotesDefinitions']['getChildren']()){const _0x25d3fe=_0x1c1098['getAttribute']('footnoteId');_0x46ad29['has'](_0x25d3fe)?(_0xedcbc0['unshift'](_0x1c1098),_0x3425df=!0x0):_0x46ad29['add'](_0x25d3fe);}for(const _0x3f5164 of _0xedcbc0)_0xf2577c['remove'](_0x3f5164);return this['_footnotesDefinitions']['childCount']||(_0xf2577c['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x3425df=!0x0),_0x3425df;}['_handleInsertedFootnoteReference'](_0x1d2a3c,_0xdd0c80){if(this['_footnotes']['find'](_0xf04471=>_0xf04471['reference']===_0xdd0c80))return!0x1;let _0x22de99=!0x1;const _0x4f0a90=_0xdd0c80['getAttribute']('footnoteId'),_0x166aef=this['_footnotes']['findIndex'](_0x75a3e1=>_0x75a3e1['id']===_0x4f0a90);-0x1!==_0x166aef&&(_0x1d2a3c['remove'](this['_footnotes'][_0x166aef]['reference']),this['_footnotes']['splice'](_0x166aef,0x1),_0x22de99=!0x0);let _0x41e152=this['_footnotesDefinitions']?function(_0x1bf6a4,_0x520e82){for(const _0x3ae237 of _0x1bf6a4['getChildren']())if(_0x3ae237['getAttribute']('footnoteId')===_0x520e82)return _0x3ae237;return null;}(this['_footnotesDefinitions'],_0x4f0a90):null;_0x41e152||(_0x41e152=_0x1d2a3c['createElement']('footnoteDefinition',{'footnoteId':_0x4f0a90}),this['_footnotesDefinitions']&&(_0x1d2a3c['insert'](_0x41e152,this['_footnotesDefinitions'],'end'),_0x22de99=!0x0));const _0x13032f={'id':_0x4f0a90,'reference':_0xdd0c80,'definition':_0x41e152},_0x15ad42=I(this['editor']['model'],this['_footnotes'],_0xdd0c80);this['_footnotes']['splice'](_0x15ad42,0x0,_0x13032f);let _0x16ba30=_0x15ad42;return-0x1!==_0x166aef&&(_0x16ba30=Math['min'](_0x15ad42,_0x166aef)),this['_updateFootnotesCounters'](_0x1d2a3c,_0x16ba30)&&(_0x22de99=!0x0),_0x22de99;}['_handleRemoveFootnoteReferenceById'](_0xf14fc4,_0x224ea7){const _0xe7858e=this['_footnotes']['findIndex'](_0x5e4b25=>_0x5e4b25['id']===_0x224ea7);if(-0x1===_0xe7858e)return!0x1;let _0x565c67=!0x1;const _0x2f1f32=this['_footnotes'][_0xe7858e];return'$graveyard'!==_0x2f1f32['definition']['root']['rootName']&&(_0xf14fc4['remove'](_0x2f1f32['definition']),_0x565c67=!0x0),this['_footnotes']['splice'](_0xe7858e,0x1),this['_updateFootnotesCounters'](_0xf14fc4,_0xe7858e)&&(_0x565c67=!0x0),_0x565c67;}['_handleMovedFootnoteReference'](_0x12bf9e,_0x41c3e2){const _0x446e21=_0x41c3e2['getAttribute']('footnoteId'),_0x5b7480=this['_footnotes']['findIndex'](_0x31d901=>_0x31d901['id']===_0x446e21),_0x53f29e=this['_footnotes'][_0x5b7480];let _0xecaeb8=!0x1;_0x53f29e['reference']=_0x41c3e2,this['_footnotes']['splice'](_0x5b7480,0x1);const _0x5f28a8=I(this['editor']['model'],this['_footnotes'],_0x41c3e2);return this['_footnotes']['splice'](_0x5f28a8,0x0,_0x53f29e),this['_updateFootnotesCounters'](_0x12bf9e,Math['min'](_0x5b7480,_0x5f28a8))&&(_0xecaeb8=!0x0),_0xecaeb8;}['_updateFootnoteRefCounter'](_0xa8aa85,_0xc94ddc){if(!this['_footnotesDefinitions'])return!0x1;const _0x495b15=this['_footnotes'][_0xc94ddc];let _0x413fa0;return _0x413fa0=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x495b15,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0xc94ddc+0x1}):String(_0xc94ddc+0x1),_0x495b15['reference']['getAttribute']('footnoteCounter')!=_0x413fa0&&(_0xa8aa85['setAttribute']('footnoteCounter',_0x413fa0,_0x495b15['reference']),!0x0);}['_sortFootnoteDefinitions'](_0xd7244c){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x35b8fb,_0x158bbc){if(_0x35b8fb['length']!==_0x158bbc['length'])return!0x1;for(let _0x2b35d6=0x0;_0x2b35d6<_0x35b8fb['length'];_0x2b35d6++)if(_0x35b8fb[_0x2b35d6]!==_0x158bbc[_0x2b35d6])return!0x1;return!0x0;}(this['_footnotes']['map'](_0xba2c11=>_0xba2c11['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x424b5b=>_0x424b5b['getAttribute']('footnoteId'))))return!0x1;let _0xf71b=!0x1;for(let _0x436713=0x0;_0x436713<this['_footnotes']['length'];_0x436713++){const _0x5f679b=this['_footnotes'][_0x436713],_0x24eb49=_0xd7244c['createPositionBefore'](_0x5f679b['definition']),_0x3fd062=_0xd7244c['createPositionAt'](this['_footnotesDefinitions'],_0x436713);_0x24eb49['isEqual'](_0x3fd062)||(_0xd7244c['move'](_0xd7244c['createRangeOn'](_0x5f679b['definition']),_0x3fd062),_0xf71b=!0x0);}return _0xf71b;}['_ensureFootnotesReferencesHaveProperOrder'](_0x48a72b){if(!this['_footnotes']['length'])return!0x1;const {model:_0x313753}=this['editor'];let _0x127303=!0x1;for(let _0x349961=0x0;_0x349961<this['_footnotes']['length']-0x1;_0x349961++){const _0x114666=this['_footnotes'][_0x349961],_0x495c44=this['_footnotes'][_0x349961+0x1],_0x12695f=_0x313753['createPositionBefore'](_0x114666['reference']),_0x3574b1=_0x313753['createPositionBefore'](_0x495c44['reference']);'after'===_0x12695f['compareWith'](_0x3574b1)&&(this['_handleMovedFootnoteReference'](_0x48a72b,_0x114666['reference']),_0x349961=-0x1,_0x127303=!0x0);}return _0x127303;}}function _(_0x5eabb9,_0x3256e8,_0x405ab9){if(_0x405ab9['childCount'])return!0x1;const _0x1eb0d7=_0x3256e8?'paragraph':'footnoteInlineContent';return _0x5eabb9['insert'](_0x5eabb9['createElement'](_0x1eb0d7),_0x405ab9),!0x0;}function I(_0x4000b1,_0x505e71,_0x5af71b){if(0x0===_0x505e71['length'])return 0x0;const _0x1ca628=_0x4000b1['createPositionBefore'](_0x5af71b);for(let _0x156cbb=0x0;_0x156cbb<_0x505e71['length'];_0x156cbb++){const _0x5974fd=_0x505e71[_0x156cbb],_0x35f1e1=_0x4000b1['createPositionBefore'](_0x5974fd['reference']);if('before'===_0x1ca628['compareWith'](_0x35f1e1))return _0x156cbb;}const _0x1c7c8b=_0x5af71b['root'];let _0x1f404b=-0x1;for(let _0x2a97d0=_0x505e71['length']-0x1;_0x2a97d0>=0x0;_0x2a97d0--)if(_0x505e71[_0x2a97d0]['reference']['root']===_0x1c7c8b){_0x1f404b=_0x2a97d0;break;}if(-0x1!==_0x1f404b)return _0x1f404b+0x1;const _0xeb0061=_0x4000b1['document']['getRootNames'](),_0x3e288f=_0xeb0061['indexOf'](_0x1c7c8b['rootName']),_0x11010f=_0xeb0061[_0x3e288f+0x1];if(_0x11010f){for(let _0x1c7061=0x0;_0x1c7061<_0x505e71['length'];_0x1c7061++)if(_0x505e71[_0x1c7061]['reference']['root']['rootName']===_0x11010f)return _0x1c7061;}return _0x505e71['length'];}class h extends _0x1c86f6{['refresh'](){const _0x487ff3=this['editor']['model']['document']['selection'],_0x430acb=this['_getPositionToInsertFootnote'](_0x487ff3);this['isEnabled']=!!_0x430acb;}['execute'](_0x4cf6b8){const {editor:_0x545bfe}=this,{model:_0x2c8e69}=_0x545bfe,{selection:_0x56479f}=_0x2c8e69['document'],_0x35d9d1=this['_getPositionToInsertFootnote'](_0x56479f);if(!_0x35d9d1)return;const _0x2ed4c1=_0x545bfe['plugins']['get']('FootnotesEditing'),_0x56755c=_0x4cf6b8?.['footnoteId']??_0x424fec();!function(_0x1a90fd){return'string'==typeof _0x1a90fd&&_0x1a90fd['length']>0x0&&!/\s/['test'](_0x1a90fd)&&!/^\d/['test'](_0x1a90fd);}(_0x56755c)?_0x1e0f78('insert-footnote-command-executed-with-invalid-id'):(_0x2c8e69['change'](_0x328328=>{const _0x1ff9ad=_0x328328['createElement']('footnoteRef',{'footnoteId':_0x56755c});_0x2c8e69['insertObject'](_0x1ff9ad,_0x35d9d1,null);}),_0x2ed4c1['_moveSelectionToFootnoteDefinition'](_0x56755c));}['_getPositionToInsertFootnote'](_0xe7a8cd){const {model:_0xb32a40}=this['editor'],{schema:_0x4fa2ed}=_0xb32a40,_0xbddade=_0xe7a8cd['getFirstRange']();for(const _0x474e43 of _0xbddade['getItems']())if(_0x4fa2ed['isBlock'](_0x474e43)||_0x4fa2ed['isObject'](_0x474e43))return null;const _0xa5a9b5=_0xbddade['end'];return _0x4fa2ed['checkChild'](_0xa5a9b5,'footnoteRef')?_0xa5a9b5:null;}}class r extends _0xd62422{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4536c2}=this;_0x4536c2['config']['define']('footnotes.multiBlock',!0x0),_0x4536c2['commands']['add']('insertFootnote',new h(_0x4536c2)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x5e4293){const _0x5229ff=_0x556378([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]),_0x4437f6=0x47a28506,_0x38a9b1=0x47a5f976^_0x4437f6,_0x6bd10=window[_0x556378([0x44,0x61,0x74,0x65])][_0x556378([0x6e,0x6f,0x77])](),_0x43e525=_0x5e4293[_0x556378([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3deb80=new window[(_0x556378([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40fbdd=>{_0x43e525[_0x556378([0x6f,0x6e,0x63,0x65])](_0x556378([0x72,0x65,0x61,0x64,0x79]),_0x40fbdd);}),_0x5b35a7={[_0x556378([0x6b,0x74,0x79])]:_0x556378([0x45,0x43]),[_0x556378([0x75,0x73,0x65])]:_0x556378([0x73,0x69,0x67]),[_0x556378([0x63,0x72,0x76])]:_0x556378([0x50,0x2d,0x32,0x35,0x36]),[_0x556378([0x78])]:_0x556378([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]),[_0x556378([0x79])]:_0x556378([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]),[_0x556378([0x61,0x6c,0x67])]:_0x556378([0x45,0x53,0x32,0x35,0x36])},_0x21ff4b=_0x43e525[_0x556378([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x556378([0x67,0x65,0x74])](_0x556378([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xab6e08(){let _0x281ce1,_0x5033d5=null,_0x2d1f88=null;try{if(_0x21ff4b==_0x556378([0x47,0x50,0x4c]))return _0x556378([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x281ce1=_0x3c9f08(),!_0x281ce1)return _0x556378([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x281ce1[_0x556378([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d1f88=_0x323225(_0x281ce1[_0x556378([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x281ce1[_0x556378([0x6a,0x74,0x69])])),await _0x1c3dd9()?_0x570d38()?_0x3044ed()?_0x556378([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3ced46()?(_0x281ce1[_0x556378([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x556378([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5033d5=_0x29e23b(_0x556378([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x281ce1[_0x556378([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x556378([0x74,0x72,0x69,0x61,0x6c])&&(_0x5033d5=_0x29e23b(_0x556378([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x48355f()):_0x556378([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x556378([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x556378([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x556378([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3044ed(){const _0x2b7fe4=[_0x556378([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x556378([0x74,0x72,0x69,0x61,0x6c])][_0x556378([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x281ce1[_0x556378([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x6bd10/0x3e8:0xe10*_0x38a9b1;return _0x281ce1[_0x556378([0x65,0x78,0x70])]<_0x2b7fe4;}function _0x570d38(){const _0x5eb0ce=_0x281ce1[_0x556378([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5eb0ce&&(!!_0x5eb0ce[_0x556378([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x556378([0x2a]))||!!_0x5eb0ce[_0x556378([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x556378([0x46,0x4f,0x4f])));}function _0x3ced46(){const _0xb3896=_0x281ce1[_0x556378([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb3896||0x0==_0xb3896[_0x556378([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f71a9}=new URL(window[_0x556378([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xb3896[_0x556378([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f71a9))return!0x0;const _0x328c62=_0x4f71a9[_0x556378([0x73,0x70,0x6c,0x69,0x74])](_0x556378([0x2e]));return _0xb3896[_0x556378([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4edd8a=>_0x4edd8a[_0x556378([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x556378([0x2a])))[_0x556378([0x6d,0x61,0x70])](_0x2c6288=>_0x2c6288[_0x556378([0x73,0x70,0x6c,0x69,0x74])](_0x556378([0x2e])))[_0x556378([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1dcae1=>_0x1dcae1[_0x556378([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x328c62[_0x556378([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x556378([0x6d,0x61,0x70])](_0x51b4b4=>Array(_0x328c62[_0x556378([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x51b4b4[_0x556378([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x556378([0x66,0x69,0x6c,0x6c])](_0x51b4b4[0x0]===_0x556378([0x2a])?_0x556378([0x2a]):'')[_0x556378([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x51b4b4))[_0x556378([0x73,0x6f,0x6d,0x65])](_0x54caf3=>_0x328c62[_0x556378([0x65,0x76,0x65,0x72,0x79])]((_0x259f3e,_0x5a4027)=>_0x54caf3[_0x5a4027]===_0x259f3e||_0x54caf3[_0x5a4027]===_0x556378([0x2a])));}function _0x48355f(){return _0x5033d5&&_0x2d1f88?new window[(_0x556378([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45f92a,_0x1f5e68)=>{_0x5033d5[_0x556378([0x74,0x68,0x65,0x6e])](_0x45f92a,_0x1f5e68),_0x2d1f88[_0x556378([0x74,0x68,0x65,0x6e])](_0x5b6cb0=>{_0x5b6cb0!=_0x556378([0x56,0x61,0x6c,0x69,0x64])&&_0x45f92a(_0x5b6cb0);},_0x1f5e68);}):_0x5033d5||_0x2d1f88||_0x556378([0x56,0x61,0x6c,0x69,0x64]);}}function _0x323225(_0x8e8215,_0xb5325d){return new window[(_0x556378([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f80c9=>{if(_0x46e616())return _0x1f80c9(_0x556378([0x56,0x61,0x6c,0x69,0x64]));_0x4f43ac(),_0x43e525[_0x556378([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x556378([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d05cd=!0x1;const _0x312e1c=_0x424fec();function _0x3f9af3(_0x62a4bb){return!!_0x62a4bb&&(typeof _0x62a4bb===_0x556378([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x62a4bb===_0x556378([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x62a4bb[_0x556378([0x74,0x68,0x65,0x6e])]===_0x556378([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x62a4bb[_0x556378([0x63,0x61,0x74,0x63,0x68])]===_0x556378([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4fc0f2(_0x38eac0){_0x3dc79d(_0x38eac0)[_0x556378([0x74,0x68,0x65,0x6e])](_0x46820b=>{if(!_0x46820b||_0x46820b[_0x556378([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x556378([0x6f,0x6b]))return _0x556378([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4dbb75(_0x3cbcb9(_0x312e1c+_0xb5325d))!=_0x46820b[_0x556378([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x556378([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x556378([0x56,0x61,0x6c,0x69,0x64]);})[_0x556378([0x74,0x68,0x65,0x6e])](_0x4c15e0=>(_0x4f680d(),_0x4c15e0),()=>{const _0x4d99d4=_0x25abf2();return null==_0x4d99d4?(_0x4f680d(),_0x556378([0x56,0x61,0x6c,0x69,0x64])):_0x556378(_0x6bd10-_0x4d99d4>(0x63ae0106^_0x4437f6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x556378([0x74,0x68,0x65,0x6e])](_0x1f80c9)[_0x556378([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1f80c9(_0x556378([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x347bd8=0x47946b86^_0x4437f6;function _0x4f680d(){const _0xe98b52=_0x556378([0x6c,0x6c,0x63,0x74,0x2d])+_0x4dbb75(_0x3cbcb9(_0x8e8215)),_0x2e0234=_0x1b58ef(_0x4dbb75(window[_0x556378([0x4d,0x61,0x74,0x68])][_0x556378([0x63,0x65,0x69,0x6c])](_0x6bd10/_0x347bd8)));window[_0x556378([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x556378([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe98b52,_0x2e0234);}function _0x25abf2(){const _0x3d1d1f=_0x556378([0x6c,0x6c,0x63,0x74,0x2d])+_0x4dbb75(_0x3cbcb9(_0x8e8215)),_0x5f055b=window[_0x556378([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x556378([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d1d1f);return _0x5f055b?window[_0x556378([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b58ef(_0x5f055b),0x10)*_0x347bd8:null;}function _0x3dc79d(_0x29176a){return new window[(_0x556378([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x522938,_0x365d8a)=>{_0x29176a[_0x556378([0x74,0x68,0x65,0x6e])](_0x522938,_0x365d8a),window[_0x556378([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x365d8a,0x47a351c6^_0x4437f6);});}}_0x43e525[_0x556378([0x6f,0x6e])](_0x556378([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x274488,_0x2b2b89)=>{if(_0x2b2b89[0x0]!=_0x8e8215)return _0x1f80c9(_0x556378([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2b2b89[0x1]={..._0x2b2b89[0x1],[_0x556378([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x312e1c};},{[_0x556378([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x556378([0x68,0x69,0x67,0x68])}),_0x43e525[_0x556378([0x6f,0x6e])](_0x556378([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xfd418=>{_0x3f9af3(_0xfd418[_0x556378([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d05cd=!0x0,_0x4fc0f2(_0xfd418[_0x556378([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x556378([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x556378([0x6c,0x6f,0x77])}),_0x3deb80[_0x556378([0x74,0x68,0x65,0x6e])](()=>{_0x4d05cd||_0x1f80c9(_0x556378([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x46e616(){return _0x43e525[_0x556378([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x556378([0x76,0x69,0x65,0x77])][_0x556378([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x556378([0x61,0x75,0x74,0x6f]);}function _0x4f43ac(){_0x43e525[_0x556378([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x556378([0x76,0x69,0x65,0x77])][_0x556378([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x556378([0x61,0x75,0x74,0x6f]);}}function _0x29e23b(_0x980504){const _0x25fc93=[new window[(_0x556378([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47b75f=>setTimeout(_0x47b75f,0x47abbbca^_0x4437f6)),_0x3deb80[_0x556378([0x74,0x68,0x65,0x6e])](()=>new window[(_0x556378([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x418258=>{let _0x5afc59=0x0;_0x43e525[_0x556378([0x6d,0x6f,0x64,0x65,0x6c])][_0x556378([0x6f,0x6e])](_0x556378([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x51a572,_0x512102)=>{_0x512102[0x0][_0x556378([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5afc59++,_0x5afc59==(0x47a280ee^_0x4437f6)&&(_0x418258(),_0x51a572[_0x556378([0x6f,0x66,0x66])]());});}))];return window[_0x556378([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x556378([0x72,0x61,0x63,0x65])](_0x25fc93)[_0x556378([0x74,0x68,0x65,0x6e])](()=>_0x980504);}async function _0xe57549(){await _0x3deb80,_0x43e525[_0x556378([0x6d,0x6f,0x64,0x65,0x6c])][_0x556378([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f6c77,_0x43e525[_0x556378([0x6d,0x6f,0x64,0x65,0x6c])][_0x556378([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f6c77,_0x43e525[_0x556378([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x556378([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x30505a(_0x39cb81){const _0x27fec5=_0x5719bf();_0x43e525[_0x27fec5]=_0x556378([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x39cb81,_0x39cb81!=_0x556378([0x56,0x61,0x6c,0x69,0x64])&&_0xe57549();}function _0x5719bf(){const _0x5b09ed=window[_0x556378([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x556378([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x556378([0x6e,0x6f,0x77])]())[_0x556378([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x556378([0x2e]),'');let _0x2b5b10=_0x556378([0x75]);for(let _0xb40ed7=0x0;_0xb40ed7<_0x5b09ed[_0x556378([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb40ed7+=0x2){let _0x3cf31a=window[_0x556378([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b09ed[_0x556378([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb40ed7,_0xb40ed7+0x2));_0x3cf31a>=_0x5229ff[_0x556378([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3cf31a-=_0x5229ff[_0x556378([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b5b10+=_0x5229ff[_0x3cf31a];}return _0x2b5b10;}function _0x3c9f08(){const _0x1ec285=_0x21ff4b[_0x556378([0x73,0x70,0x6c,0x69,0x74])](_0x556378([0x2e]));if(0x3!=_0x1ec285[_0x556378([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3ef665(_0x1ec285[0x1]);function _0x3ef665(_0x2b336c){const _0x3c699b=_0xed1e1a(_0x2b336c);return _0x3c699b&&_0x39c650()?_0x3c699b:null;function _0x39c650(){const _0x4a47d1=_0x3c699b[_0x556378([0x6a,0x74,0x69])],_0x4f5e44=window[_0x556378([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a47d1[_0x556378([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a47d1[_0x556378([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x12672d={..._0x3c699b,[_0x556378([0x6a,0x74,0x69])]:_0x4a47d1[_0x556378([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a47d1[_0x556378([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x12672d[_0x556378([0x76,0x63])],_0x3cbcb9(_0x12672d)==_0x4f5e44;}}}async function _0x1c3dd9(){let _0x49a810=!0x0;try{const _0x28f36d=_0x21ff4b[_0x556378([0x73,0x70,0x6c,0x69,0x74])](_0x556378([0x2e])),[_0x4cbd71,_0xa74715,_0x2f06b7]=_0x28f36d;return _0x2afadb(_0x4cbd71),await _0x29e0d8(_0x4cbd71,_0xa74715,_0x2f06b7),_0x49a810;}catch{return!0x1;}function _0x2afadb(_0x39c0e9){const _0x2a4c6a=_0xed1e1a(_0x39c0e9);_0x2a4c6a&&_0x2a4c6a[_0x556378([0x61,0x6c,0x67])]==_0x556378([0x45,0x53,0x32,0x35,0x36])||(_0x49a810=!0x1);}async function _0x29e0d8(_0x5d11a4,_0x3df25e,_0xe187d4){const _0x5f3065=window[_0x556378([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x556378([0x66,0x72,0x6f,0x6d])](_0x378ca(_0xe187d4),_0x312359=>_0x312359[_0x556378([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x369a70=new window[(_0x556378([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x556378([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d11a4+_0x556378([0x2e])+_0x3df25e),_0x414f9f=window[_0x556378([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x556378([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x414f9f)return;const _0x24efdf=await _0x414f9f[_0x556378([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x556378([0x6a,0x77,0x6b]),_0x5b35a7,{[_0x556378([0x6e,0x61,0x6d,0x65])]:_0x556378([0x45,0x43,0x44,0x53,0x41]),[_0x556378([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x556378([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x556378([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x414f9f[_0x556378([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x556378([0x6e,0x61,0x6d,0x65])]:_0x556378([0x45,0x43,0x44,0x53,0x41]),[_0x556378([0x68,0x61,0x73,0x68])]:{[_0x556378([0x6e,0x61,0x6d,0x65])]:_0x556378([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x24efdf,_0x5f3065,_0x369a70)||(_0x49a810=!0x1);}}function _0xed1e1a(_0x3734ca){return _0x3734ca[_0x556378([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x556378([0x65,0x79]))?JSON[_0x556378([0x70,0x61,0x72,0x73,0x65])](_0x378ca(_0x3734ca)):null;}function _0x378ca(_0x181f66){return window[_0x556378([0x61,0x74,0x6f,0x62])](_0x181f66[_0x556378([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x556378([0x2b]))[_0x556378([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x556378([0x2f])));}function _0x3cbcb9(_0x1e60c1){let _0x587757=0x1505;function _0x3e7480(_0x57fdc9){for(let _0x13d409=0x0;_0x13d409<_0x57fdc9[_0x556378([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13d409++){const _0x19cbf7=_0x57fdc9[_0x556378([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x13d409);_0x587757=(_0x587757<<0x5)+_0x587757+_0x19cbf7,_0x587757&=_0x587757;}}function _0x3d31a6(_0xf6d903){Array[_0x556378([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xf6d903)?_0xf6d903[_0x556378([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3d31a6):_0xf6d903&&typeof _0xf6d903==_0x556378([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x556378([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xf6d903)[_0x556378([0x73,0x6f,0x72,0x74])]()[_0x556378([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x338cb4,_0x537814])=>{_0x3e7480(_0x338cb4),_0x3d31a6(_0x537814);}):_0x3e7480(window[_0x556378([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xf6d903));}return _0x3d31a6(_0x1e60c1),_0x587757>>>0x0;}function _0x4dbb75(_0x1a8e39){return _0x1a8e39[_0x556378([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x556378([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x556378([0x30]));}function _0x1b58ef(_0x101bc9){return _0x101bc9[_0x556378([0x73,0x70,0x6c,0x69,0x74])]('')[_0x556378([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x556378([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f6c77(){}function _0x556378(_0x1588c7){return _0x1588c7['map'](_0x5ace26=>String['fromCharCode'](_0x5ace26))['join']('');}_0x30505a(await _0xab6e08());}(this);}['_moveSelectionToFootnoteDefinition'](_0x506f83){const {plugins:_0x2a61c9,editing:_0xa14c2,model:_0x177d30}=this['editor'],_0x44bdb6=_0x2a61c9['get'](f)['getFootnote'](_0x506f83);return!!_0x44bdb6&&(_0x177d30['change'](_0x1be770=>{_0x1be770['setSelection'](_0x1be770['createPositionAt'](_0x44bdb6['definition'],'end'));}),_0xa14c2['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x429f88){const {plugins:_0x52e2a7,editing:_0x328ce2,model:_0x2a0f0b}=this['editor'],_0xdbe5db=_0x52e2a7['get'](f)['getFootnote'](_0x429f88);return!!_0xdbe5db&&(_0x2a0f0b['change'](_0x57289a=>{_0x57289a['setSelection'](_0xdbe5db['reference'],'on');}),_0x328ce2['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x1710f1}=this['editor']['model'],_0x5e2586=this['editor']['config']['get']('footnotes.multiBlock');_0x1710f1['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x1710f1['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x1710f1['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5e2586?_0x1710f1['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x1710f1['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x1710f1['addChildCheck'](_0x4e4b64=>{for(const _0x2f2a99 of _0x4e4b64)if('footnoteDefinition'===_0x2f2a99['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x58b88a}=this,{conversion:_0x71051d,editing:_0x2e81f5}=_0x58b88a,{t:t}=_0x58b88a['locale'];_0x71051d['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5e9ae1,{writer:_0x10efeb,consumable:_0x28248b})=>{const _0x47d074=_0x5e9ae1['getChild'](0x0);if(!_0x47d074||!_0x47d074['is']('element','a'))return null;const _0x50b742=_0x47d074['getAttribute']('href')||'';if(!_0x50b742['startsWith']('#'))return null;const _0x55578e=_0x50b742['replace'](/^#/,'');if(!_0x55578e)return null;_0x28248b['consume'](_0x47d074,{'name':!0x0,'attributes':['href']});for(const {item:_0x5e21bb}of _0x2e81f5['view']['createRangeIn'](_0x47d074))_0x5e21bb['is']('$textProxy')?_0x28248b['consume'](_0x5e21bb['textNode'],{'name':!0x0}):_0x5e21bb['is']('element')&&_0x28248b['consume'](_0x5e21bb,{'name':!0x0});return _0x10efeb['createElement']('footnoteRef',{'footnoteId':_0x55578e});}}),_0x71051d['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x37624f,{writer:_0x268190})=>b(_0x37624f,_0x268190)}),_0x71051d['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x44b6ff,{writer:_0x4a7732})=>{const _0x4ca71e=_0x44b6ff['getAttribute']('footnoteCounter');return _0x29e748(b(_0x44b6ff,_0x4a7732),_0x4a7732,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x4ca71e)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5f02c5}=this,{t:t}=_0x5f02c5['locale'],{conversion:_0x2f0ea2}=_0x5f02c5;_0x2f0ea2['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x2f0ea2['for']('upcast')['add'](_0xa63a42=>{_0xa63a42['on']('element:ol',(_0x5d0e31,_0x51a0fa,_0x2cb65c)=>{const _0xe53c7c=_0x51a0fa['viewItem'];if(!_0xe53c7c['hasClass']('footnotes-list')||!_0x51a0fa['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2cb65c['consumable']['consume'](_0xe53c7c,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5126fe,modelCursor:_0x34a1d0}=_0x2cb65c['convertChildren'](_0x51a0fa['viewItem'],_0x51a0fa['modelCursor']);_0x51a0fa['modelRange']=_0x5126fe,_0x51a0fa['modelCursor']=_0x34a1d0;}),_0xa63a42['on']('element:hr',(_0x5f2ded,_0x35ec08,_0x27d3d4)=>{const _0x426089=_0x35ec08['viewItem'];_0x426089['hasClass']('footnotes-divider')&&_0x35ec08['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x27d3d4['consumable']['consume'](_0x426089,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x2f0ea2['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3f21c0,{writer:_0x462e1c})=>D(_0x462e1c)}),_0x2f0ea2['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1506d2,{writer:_0xd1976c})=>{const _0x1453b9=D(_0xd1976c,{'data-footnotes-list-label':t('Footnotes')}),_0x4315ad=_0x29e748(_0x1453b9,_0xd1976c,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0xd1976c['setCustomProperty']('footnotesDefinitions',!0x0,_0x4315ad),_0x4315ad;}});}['_defineDefinitionConverters'](){const {editor:_0x5db9ba}=this,{conversion:_0x195bf1,locale:_0x43c095}=_0x5db9ba,_0x3f0413=_0x5db9ba['config']['get']('footnotes.multiBlock');_0x195bf1['for']('upcast')['add'](_0x15ebaf=>{_0x15ebaf['on']('element:li',(_0x137d80,_0x3bf706,_0x160e30)=>{const _0x5524f0=_0x3bf706['viewItem'];if(!_0x5524f0['hasClass']('footnote-definition')||!_0x5524f0['getAttribute']('id'))return;const _0x4bb6f0=_0x5524f0['parent'];if(!_0x4bb6f0['is']('element','ol')||!_0x4bb6f0['hasClass']('footnotes-list'))return;if(!_0x160e30['consumable']['test'](_0x5524f0,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x49f5f4=_0x160e30['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5524f0['getAttribute']('id')});if(!_0x160e30['safeInsert'](_0x49f5f4,_0x3bf706['modelCursor']))return;_0x160e30['consumable']['consume'](_0x5524f0,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0xc98d24=Array['from'](_0x5524f0['getChildren']())['find'](_0x49d427=>_0x49d427['is']('element')&&_0x49d427['hasClass']('footnote-content'));for(const _0x12934c of _0x5524f0['getChildren']())_0x12934c['is']('element')&&(_0x160e30['consumable']['consume'](_0x12934c,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x160e30['consumable']['consume'](_0x12934c,{'name':!0x0,'classes':'footnote-content'}));if(_0xc98d24){if(_0x3f0413)_0x160e30['convertChildren'](_0xc98d24,_0x49f5f4);else{const _0x133d1f=_0x160e30['writer']['createElement']('footnoteInlineContent');_0x160e30['writer']['insert'](_0x133d1f,_0x49f5f4),_0x160e30['convertChildren'](_0xc98d24,_0x133d1f);}}_0x160e30['updateConversionResult'](_0x49f5f4,_0x3bf706);});}),_0x195bf1['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1946c3,{writer:_0x27a7ae})=>y(_0x1946c3,_0x27a7ae,_0x43c095,{'dataPipeline':!0x0})}),_0x195bf1['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x452ffe,{writer:_0xe502cb})=>y(_0x452ffe,_0xe502cb,_0x43c095)});}['_defineBogusParagraphConverters'](){const {editor:_0x1df364}=this,{conversion:_0x1e47e2}=_0x1df364;_0x1df364['config']['get']('footnotes.multiBlock')?(_0x1e47e2['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x1e47e2['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x1df364['model']['document'],'change:data',()=>{!function(_0x5ccf8b,_0x4fc5a2){const _0x48e4f9=_0x5ccf8b['document']['differ'],_0x25fe1d=new Set();for(const _0x11109d of _0x48e4f9['getChanges']()){const _0x15cd2b='attribute'==_0x11109d['type']?_0x11109d['range']['start']['parent']:_0x11109d['position']['parent'];_0x15cd2b['is']('element','footnoteDefinition')&&_0x25fe1d['add'](_0x15cd2b);}for(const _0x2630ff of _0x25fe1d['values']()){const _0x2dbdfb=Array['from'](_0x2630ff['getChildren']())['filter'](_0x2c88b6=>v(_0x2c88b6,_0x4fc5a2['mapper']));for(const _0x2cf8f8 of _0x2dbdfb)_0x4fc5a2['reconvertItem'](_0x2cf8f8);}}(_0x1df364['model'],_0x1df364['editing']);})):(_0x1e47e2['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x1e47e2['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5f3814,{writer:_0x3e4651})=>{const _0x51631c=_0x3e4651['createContainerElement']('span');return _0x3e4651['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x51631c),_0x51631c;}}));}['_defineKeyboardHandlers'](){const {editor:_0x35faa3}=this,{editing:_0x56540e,t:t}=_0x35faa3,_0x315dbf=_0x35faa3['model']['document']['selection'];_0x35faa3['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x35faa3['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x56540e['view']['document'],'enter',(_0x3c0747,_0x165ffd)=>{const _0x379c9a=function(_0x2976a6){const _0x5f1073=_0x2976a6['getSelectedElement']();if(_0x5f1073?.['is']('element','footnoteRef'))return _0x5f1073;return null;}(_0x315dbf);if(_0x379c9a){const _0x4366bf=_0x379c9a['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4366bf),_0x165ffd['preventDefault'](),_0x3c0747['stop']();}},{'context':_0x2fcd9f});}['_defineClickHandlers'](){const {editor:_0x4aad44}=this,{editing:_0x2e8d6b}=_0x4aad44;_0x4aad44['editing']['view']['addObserver'](_0x49592f),_0x4aad44['editing']['view']['addObserver'](_0x24dac4);let _0x4cdbb3=!0x1;this['listenTo'](_0x2e8d6b['view']['document'],'pointerdown',(_0x36e8ec,_0x31c74c)=>{const {target:_0x3efef4}=_0x31c74c,_0xd39a00=_0x2e8d6b['view']['document']['selection'];_0x4cdbb3=!!(_0x3efef4?.['is']('element','a')&&_0x3efef4['parent']?.['is']('element','sup')&&_0x3efef4['parent']['hasClass']('footnote'))&&_0xd39a00['getSelectedElement']()===_0x3efef4['parent'];},{'priority':'high'}),this['listenTo'](_0x2e8d6b['view']['document'],'click',(_0x2d0a57,_0x2b50c0)=>{const {target:_0x465176}=_0x2b50c0;if(!_0x465176?.['is']('element','a'))return;if(_0x465176['parent']?.['is']('element','sup')&&_0x465176['parent']['hasClass']('footnote')&&!_0x4cdbb3)return void _0x2b50c0['preventDefault']();let _0x39597e=_0x465176['getAttribute']('href');if(!_0x39597e?.['startsWith']('#'))return;_0x39597e=_0x39597e['slice'](0x1);let _0xc65a74=!0x1;(_0x39597e['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x39597e['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x39597e))&&(_0xc65a74=!0x0),_0xc65a74&&(_0x2b50c0['preventDefault'](),_0x2d0a57['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0xc0ddc8}={}){return(_0x105c59,{writer:_0x7f0429})=>{if(!g(_0x105c59))return null;if(!_0xc0ddc8)return _0x7f0429['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x184d71=_0x7f0429['createContainerElement']('p');return _0x7f0429['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x184d71),_0x184d71;};}function g(_0x1c4da5){const {parent:_0x39f3f1}=_0x1c4da5;if(!_0x39f3f1?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x39f3f1['childCount'])return!0x1;for(const _0x2ee92 of _0x1c4da5['getAttributeKeys']())if(!_0x2ee92['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x2ee92)return!0x1;return!0x0;}function v(_0x499ac7,_0x5f5272){if(!_0x499ac7['is']('element','paragraph'))return!0x1;const _0x28daa3=_0x5f5272['toViewElement'](_0x499ac7);return!!_0x28daa3&&g(_0x499ac7)!==_0x28daa3['is']('element','span');}function Q(_0x1cc89b){return _0x2fcd9f(_0x1cc89b)&&_0x1cc89b['is']('containerElement')&&!!_0x1cc89b['getCustomProperty']('footnotesDefinitions');}function D(_0x28115c,_0x4b68be={}){const _0x309bcb=_0x28115c['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0xcbf9ff=_0x28115c['createContainerElement']('ol',{'class':'footnotes-list'},_0x28115c['createSlot']());return _0x28115c['createContainerElement']('div',{'class':'footnotes',..._0x4b68be},[_0x309bcb,_0xcbf9ff]);}function b(_0x5917ff,_0xa45794){const _0x560181=_0x5917ff['getAttribute']('footnoteId'),_0x7a6e=_0x5917ff['getAttribute']('footnoteCounter'),_0x207a49=_0xa45794['createUIElement']('a',{'href':'#'+_0x560181},function(_0x137376){const _0x50d122=this['toDomElement'](_0x137376);return _0x50d122['textContent']=_0x7a6e,_0x50d122;}),_0x33dbe8=_0xa45794['createContainerElement']('sup',{'id':'ref-'+_0x560181,'class':'footnote'},[_0x207a49]);return _0x33dbe8['getFillerOffset']=()=>null,_0x33dbe8;}function y(_0x2aa76f,_0x20b88f,_0x646f0,{dataPipeline:_0x4cc3ba}={}){const {t:t}=_0x646f0,_0x459c80=_0x2aa76f['getAttribute']('footnoteId'),_0x14603f=_0x20b88f['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x459c80},function(_0x165db5){const _0x55f138=this['toDomElement'](_0x165db5);return _0x55f138['innerText']='^',_0x55f138;}),_0x5b3150=_0x4cc3ba?_0x20b88f['createContainerElement']('div',{'class':'footnote-content'}):_0x2c3674(_0x20b88f['createEditableElement']('div',{'class':'footnote-content'}),_0x20b88f,{'label':t('Footnote\x20content.')});return _0x20b88f['insert'](_0x20b88f['createPositionAt'](_0x5b3150,0x0),_0x20b88f['createSlot']()),_0x20b88f['createContainerElement']('li',{'class':'footnote-definition','id':_0x459c80},[_0x14603f,_0x5b3150]);}class e extends _0xd62422{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x41ed3c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x4df540}=this,{plugins:_0x3e0228,model:_0x5e30e1}=_0x4df540,_0x28fc80=_0x3e0228['get'](_0x41ed3c),_0x3612e2=_0x3e0228['get'](f);this['listenTo'](_0x28fc80,'outputTransformation',(_0x14ae88,_0x227950)=>{const _0x5e0a37=l(_0x5e30e1['createRangeIn'](_0x227950['content']));if(!_0x5e0a37['length'])return;const _0x53cabc=_0x3612e2['getFootnotes'](),_0x28b431=_0x5e0a37['reduce']((_0x5d6d99,_0x39513f)=>{const _0x8e2004=_0x53cabc['find'](_0x5de17c=>_0x5de17c['id']===_0x39513f);if(_0x8e2004){const _0x12e9dd=_0x4df540['data']['toView'](_0x8e2004['definition'],{'isClipboardPipeline':!0x0}),_0x518e27=_0x4df540['data']['htmlProcessor']['toData'](_0x12e9dd);_0x5d6d99[_0x8e2004['id']]=_0x518e27;}return _0x5d6d99;},Object['create'](null));_0x227950['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x28b431));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x29b6cd}=this,{model:_0x45444f,plugins:_0x174fcf}=_0x29b6cd,{view:_0x3414b5}=_0x29b6cd['editing'],_0x215222=_0x174fcf['get'](_0x41ed3c),_0x326d64=_0x174fcf['get'](f),_0x7322c5=_0x29b6cd['config']['get']('footnotes.multiBlock');let _0x198a98=null;this['listenTo'](_0x3414b5['document'],'clipboardInput',(_0x374a08,_0x17bfe4)=>{const _0x13cb2b=_0x17bfe4['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x198a98=_0x13cb2b?JSON['parse'](_0x13cb2b):null;}),this['listenTo'](_0x215222,'contentInsertion',(_0x2e6dd3,_0x333fb4)=>{const _0x2bde52=_0x333fb4['sourceEditorId']===this['editor']['id'];_0x2bde52&&'drop'===_0x333fb4['method']||_0x45444f['change'](_0x51f2d0=>{let _0xe71844=_0x326d64['getFootnotesDefinitionsObjectElement']();const _0x31d84e=!!_0xe71844&&Array['from'](_0x45444f['document']['selection']['getSelectedBlocks']())['includes'](_0xe71844);if(!_0x198a98&&function(_0xc692bf){for(const {item:_0x46510a}of _0xc692bf)if(_0x46510a['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x45444f['createRangeIn'](_0x333fb4['content']))&&(_0x198a98=function(_0x113ffc,_0x18e616){const _0x5afb8e=c(_0x113ffc,_0x18e616);if(!_0x5afb8e)return null;const _0x3d66ab=Object['create'](null);for(const _0x10ecd0 of _0x5afb8e['getChildren']())_0x10ecd0['is']('element','footnoteDefinition')&&_0x10ecd0['hasAttribute']('footnoteId')&&(_0x3d66ab[_0x10ecd0['getAttribute']('footnoteId')]=_0x113ffc['cloneElement'](_0x10ecd0,!0x0));return Object['keys'](_0x3d66ab)['length']?_0x3d66ab:null;}(_0x51f2d0,_0x333fb4['content'])),(_0xe71844&&!_0x31d84e||!_0xe71844&&!_0x198a98)&&function(_0x17bcf0,_0x4f1d63){const _0x4fd41f=[];for(const {item:_0x125ee8}of _0x17bcf0['createRangeIn'](_0x4f1d63))_0x125ee8['is']('element','footnotesDefinitions')&&_0x4fd41f['push'](_0x125ee8);for(const _0x2a2eb2 of _0x4fd41f)_0x17bcf0['remove'](_0x2a2eb2);}(_0x51f2d0,_0x333fb4['content']),!_0x198a98)return;const {selection:_0x14b58d}=_0x45444f['document'],_0x591fb2=_0x14b58d['getFirstRange']()['root'];_0xe71844&&!_0x31d84e||(_0xe71844=c(_0x51f2d0,_0x333fb4['content']),_0xe71844||=_0x326d64['_insertEmptyFootnotesDefinitionsContainer'](_0x51f2d0,_0x591fb2));const _0x1b92c9=Array['from'](_0x14b58d['getRanges']())['flatMap'](l),_0x4ad0f8=function(_0x10318b,_0xc040e8,_0x21dcf){const _0x43f0b5=Object['create'](null);for(const {item:_0xdc30ae}of _0x10318b['createRangeIn'](_0xc040e8))if(_0xdc30ae['is']('element','footnoteRef')){const _0x1de5ab=_0xdc30ae['getAttribute']('footnoteId');if(!_0x21dcf(_0x1de5ab))continue;_0x43f0b5[_0x1de5ab]||(_0x43f0b5[_0x1de5ab]=_0x424fec()),_0x10318b['setAttribute']('footnoteId',_0x43f0b5[_0x1de5ab],_0xdc30ae);}return _0x43f0b5;}(_0x51f2d0,_0x333fb4['content'],_0x1a9833=>{if(!_0x2bde52)return!0x0;return!!_0x326d64['getFootnote'](_0x1a9833)&&!_0x1b92c9['includes'](_0x1a9833);});for(const [_0x1a1708,_0x9151d3]of Object['entries'](_0x198a98)){const _0x2192b3=_0x4ad0f8[_0x1a1708]||_0x1a1708;let _0x4172c3;if('string'!=typeof _0x9151d3)_0x4172c3=_0x9151d3,_0x2192b3!==_0x1a1708&&_0x51f2d0['setAttribute']('footnoteId',_0x2192b3,_0x4172c3);else{_0x4172c3=_0x51f2d0['createElement']('footnoteDefinition',{'footnoteId':_0x2192b3});const _0x289aca=_0x29b6cd['data']['htmlProcessor']['toView'](_0x9151d3);let _0x239ae5;if(_0x7322c5)_0x239ae5=_0x29b6cd['data']['toModel'](_0x289aca,_0x4172c3);else{_0x239ae5=_0x51f2d0['createElement']('footnoteInlineContent');const _0xcefca6=_0x29b6cd['data']['toModel'](_0x289aca,_0x239ae5);_0x51f2d0['insert'](_0xcefca6,_0x239ae5);}_0x51f2d0['append'](_0x239ae5,_0x4172c3);}_0x51f2d0['insert'](_0x4172c3,_0xe71844,'end');}_0x198a98=null;});});}}function c(_0x3a46ca,_0xa76aaf){for(const {item:_0x137bb6}of _0x3a46ca['createRangeIn'](_0xa76aaf))if(_0x137bb6['is']('element','footnotesDefinitions'))return _0x137bb6;return null;}function l(_0x37b7d7){const _0x79fb98=new Set();for(const {item:_0x5339b6}of _0x37b7d7)_0x5339b6['is']('element','footnoteRef')&&_0x79fb98['add'](_0x5339b6['getAttribute']('footnoteId'));return Array['from'](_0x79fb98);}class i extends _0xd62422{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x25db22}=this,{componentFactory:_0x2f98c8}=_0x25db22['ui'];_0x2f98c8['add']('insertFootnote',E(_0x25db22,_0x3f131d)),_0x2f98c8['add']('menuBar:insertFootnote',E(_0x25db22,_0x291f54)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1c79de=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x28cbe7;for(const _0x2b81a8 in _0x1c79de){const _0x1b4580=_0x2b81a8,_0x5c1c05=_0x1c79de[_0x1b4580];if('footnotesLicenseKeyValid'==_0x5c1c05||'footnotesLicenseKeyInvalid'==_0x5c1c05||'footnotesLicenseKeyExpired'==_0x5c1c05||'footnotesLicenseKeyDomainLimit'==_0x5c1c05||'footnotesLicenseKeyNotAllowed'==_0x5c1c05||'footnotesLicenseKeyEvaluationLimit'==_0x5c1c05||'footnotesLicenseKeyTrialLimit'==_0x5c1c05||'footnotesLicenseKeyUsageLimit'==_0x5c1c05){delete _0x1c79de[_0x1b4580],_0x28cbe7=_0x5c1c05,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x28cbe7&&_0x1c79de['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x28cbe7&&_0x1c79de['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x28cbe7&&_0x1c79de['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x28cbe7&&_0x1c79de['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x28cbe7&&_0x1c79de['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x28cbe7&&_0x1c79de['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x28cbe7&&_0x1c79de['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x3e9d2b,_0x31ddeb){const _0x460138=_0x3e9d2b['commands']['get']('insertFootnote');return _0x88acad=>{const {t:t}=_0x88acad,_0x19cfea=new _0x31ddeb(_0x88acad),_0x15598d=_0x19cfea instanceof _0x291f54;return _0x19cfea['bind']('isEnabled')['to'](_0x460138,'isEnabled'),_0x19cfea['set']({'label':t(_0x15598d?'Footnote':'Insert\x20footnote'),'icon':_0x57c674,'tooltip':!0x0}),_0x19cfea['on']('execute',()=>{_0x460138['execute'](),_0x3e9d2b['editing']['view']['focus']();}),_0x19cfea;};}class lt extends _0xd62422{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 _0x1c86f6{['refresh'](){const {editor:_0x947327}=this,_0x26613b=_0x947327['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x26613b,this['value']=_0x26613b?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x9403c1}){const {editor:_0x327a45}=this,_0x2d551e=_0x327a45['plugins']['get'](f),_0x28940c=_0x2d551e['getFootnotesDefinitionsObjectElement']();_0x28940c&&W['includes'](_0x9403c1)&&_0x327a45['model']['change'](_0x250581=>{_0x250581['setAttribute']('footnotesListStyle',_0x9403c1,_0x28940c),_0x2d551e['_updateFootnotesCounters'](_0x250581);});}}class C extends _0x1c86f6{['refresh'](){const {editor:_0x186c9e}=this,_0x478811=_0x186c9e['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x478811,this['value']=_0x478811?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x39a9d0}){const {editor:_0x226f67}=this,_0x31a861=_0x226f67['plugins']['get'](f),_0x30fed5=_0x31a861['getFootnotesDefinitionsObjectElement']();_0x30fed5&&Number['isInteger'](_0x39a9d0)&&_0x226f67['model']['change'](_0x2d4598=>{_0x2d4598['setAttribute']('footnotesListStart',_0x39a9d0,_0x30fed5),_0x31a861['_updateFootnotesCounters'](_0x2d4598);});}}class P extends _0xd62422{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4c6d46}=this;_0x4c6d46['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x4c6d46['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x4c6d46['commands']['add']('footnotesStyle',new S(_0x4c6d46)),_0x4c6d46['commands']['add']('footnotesStart',new C(_0x4c6d46)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x3c86c5}=this,{schema:_0x3c340c}=_0x3c86c5['model'];_0x3c340c['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x2ccf70}=this,{conversion:_0x4b0416,model:_0x37ae79}=_0x2ccf70,{schema:_0x57084f}=_0x37ae79;_0x4b0416['for']('upcast')['add'](_0xd50e61=>{_0xd50e61['on']('element:ol',(_0x9d4fbc,_0x4a9e70,_0x486cd3)=>{const _0x51b0f5=_0x4a9e70['viewItem'],_0x17317b=_0x4a9e70['modelCursor']?.['parent'];_0x51b0f5['hasClass']('footnotes-list')&&_0x17317b?.['is']('element','footnotesDefinitions')&&(function(_0x3c3472,_0x47321f,_0x2f0edb,_0x2ca185){if(!_0x2ca185['checkAttribute'](_0x47321f,'footnotesListStart'))return;let _0x50df35=0x1;const _0x5c236f=_0x2f0edb['consumable']['consume'](_0x3c3472,{'attributes':'start'});if(_0x5c236f){const _0x8ece88=Number['parseInt'](_0x3c3472['getAttribute']('start'),0xa);Number['isNaN'](_0x8ece88)||(_0x50df35=_0x8ece88);}!_0x5c236f&&_0x47321f['hasAttribute']('footnotesListStart')||_0x2f0edb['writer']['setAttribute']('footnotesListStart',_0x50df35,_0x47321f);}(_0x51b0f5,_0x17317b,_0x486cd3,_0x57084f),function(_0x577f2,_0x17e5ab,_0x49c279,_0x14d2a5){if(!_0x14d2a5['checkAttribute'](_0x17e5ab,'footnotesListStyle'))return;let _0x322084='decimal',_0x48768b=!0x1;if(_0x49c279['consumable']['consume'](_0x577f2,{'attributes':'type'})){const _0x1c5107={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x577f2['getAttribute']('type')];_0x1c5107&&(_0x322084=_0x1c5107),_0x48768b=!0x0;}_0x49c279['consumable']['consume'](_0x577f2,{'styles':'list-style-type'})&&(_0x322084=function(_0x58e415){switch(_0x58e415){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x58e415;}}(_0x577f2['getStyle']('list-style-type')),_0x48768b=!0x0),!_0x48768b&&_0x17e5ab['hasAttribute']('footnotesListStyle')||_0x49c279['writer']['setAttribute']('footnotesListStyle',_0x322084,_0x17e5ab);}(_0x51b0f5,_0x17317b,_0x486cd3,_0x57084f));});}),_0x4b0416['for']('downcast')['add'](_0xd695f2=>{_0xd695f2['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x211068,_0xe089aa,_0x2802a5)=>{if(!_0x2802a5['consumable']['consume'](_0xe089aa['item'],_0x211068['name']))return;const _0x221a4c=M(_0xe089aa['item'],_0x2802a5['mapper']),{attributeNewValue:_0x58890e}=_0xe089aa;null==_0x58890e||0x1===_0x58890e?_0x2802a5['writer']['removeAttribute']('start',_0x221a4c):_0x2802a5['writer']['setAttribute']('start',String(_0x58890e),_0x221a4c);}),_0xd695f2['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x19b4d3,_0x422ec7,_0x5467c9)=>{if(!_0x5467c9['consumable']['consume'](_0x422ec7['item'],_0x19b4d3['name']))return;const _0x2185b8=M(_0x422ec7['item'],_0x5467c9['mapper']),{attributeNewValue:_0x376d5d}=_0x422ec7;_0x376d5d&&'decimal'!==_0x376d5d?_0x5467c9['writer']['setStyle']('list-style-type',_0x376d5d,_0x2185b8):_0x5467c9['writer']['removeStyle']('list-style-type',_0x2185b8);});});}['_definePostfixer'](){const {editor:_0x417ad4}=this,{model:_0x21831b}=_0x417ad4,_0x1fc261=_0x417ad4['plugins']['get'](f),_0x4eb886=this['_getDefaultListStyle'](),_0x5a47de=this['_getDefaultStartIndex']();_0x21831b['document']['registerPostFixer'](_0x1b51d3=>{const _0x38b3a9=_0x21831b['document']['differ']['getChanges']();let _0x279f12=!0x1;for(const _0xf1dea9 of _0x38b3a9){if('insert'!==_0xf1dea9['type']||'$text'===_0xf1dea9['name'])continue;const _0x5bb82e=_0x21831b['createRangeOn'](_0xf1dea9['position']['nodeAfter']);for(const _0x4b2546 of _0x5bb82e['getItems']())_0x4b2546['is']('element','footnotesDefinitions')&&(!_0x4b2546['hasAttribute']('footnotesListStart')&&_0x21831b['schema']['checkAttribute'](_0x4b2546,'footnotesListStart')&&(_0x1b51d3['setAttribute']('footnotesListStart',_0x5a47de,_0x4b2546),_0x279f12=!0x0),!_0x4b2546['hasAttribute']('footnotesListStyle')&&_0x21831b['schema']['checkAttribute'](_0x4b2546,'footnotesListStyle')&&(_0x1b51d3['setAttribute']('footnotesListStyle',_0x4eb886,_0x4b2546),_0x279f12=!0x0));}return _0x279f12&&_0x1fc261['_updateFootnotesCounters'](_0x1b51d3),_0x279f12;});}['_defineFormatter'](){const {editor:_0x5c335a}=this;_0x5c335a['plugins']['get'](f)['setFootnoteFormatter'](_0x35d998=>this['_formatFootnoteListValue'](_0x35d998));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x121edf,value:_0x21d6d9,digits:_0x3a64fe}){const _0x41cb53=_0x121edf['getAttribute']('footnotesListStyle'),_0x309e10=_0x121edf['getAttribute']('footnotesListStart'),_0x1536b4=Math['floor'](_0x21d6d9)+(_0x309e10??0x1)-0x1;switch(_0x41cb53){case'decimal-leading-zero':return function(_0x5079f2,_0x311a20){return String(_0x5079f2)['padStart'](_0x311a20,'0');}(_0x1536b4,Math['max'](0x2,_0x3a64fe));case'lower-alpha':case'lower-latin':return N(_0x1536b4,!0x1);case'upper-alpha':case'upper-latin':return N(_0x1536b4,!0x0);case'lower-roman':return X(_0x1536b4,!0x1);case'upper-roman':return X(_0x1536b4,!0x0);default:return String(_0x1536b4);}}}function M(_0x4b722a,_0x268c62){const _0x5f19f9=_0x268c62['toViewElement'](_0x4b722a);return Array['from'](_0x5f19f9['getChildren']())['find'](_0x114347=>_0x114347['is']('element','ol')&&_0x114347['hasClass']('footnotes-list'));}function N(_0x45fe53,_0x32296e){let _0x2e92d7='',_0x18a7a5=_0x45fe53;for(;_0x18a7a5>0x0;){const _0x1615e5=(_0x18a7a5-0x1)%0x1a;_0x2e92d7=String['fromCharCode'](0x61+_0x1615e5)+_0x2e92d7,_0x18a7a5=Math['floor']((_0x18a7a5-0x1)/0x1a);}return _0x32296e?_0x2e92d7['toUpperCase']():_0x2e92d7;}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(_0x531198,_0x5c68ed){let _0x315443='',_0x49a110=_0x531198;for(const {value:_0x250e07,numeral:_0x425927}of V)for(;_0x49a110>=_0x250e07;)_0x315443+=_0x425927,_0x49a110-=_0x250e07;return _0x5c68ed?_0x315443:_0x315443['toLowerCase']();}class J extends _0x54a423{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x3407b3();['focusCycler'];constructor(_0x5a8224,{styleButtonViews:_0x2ae94e,styleGridAriaLabel:_0x459ac5}){super(_0x5a8224),(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'](_0x2ae94e,_0x459ac5),[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 _0x361a82 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x361a82['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 _0x322e23=_0x1dede9=>_0x1dede9['stopPropagation']();this['keystrokes']['set']('arrowright',_0x322e23),this['keystrokes']['set']('arrowleft',_0x322e23),this['keystrokes']['set']('arrowup',_0x322e23),this['keystrokes']['set']('arrowdown',_0x322e23);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3255a1,_0x27e5ea){const _0x72c9dc=new _0x54a423(this['locale']);return _0x72c9dc['children']=_0x72c9dc['createCollection'](),_0x72c9dc['children']['addMany'](_0x3255a1),_0x72c9dc['setTemplate']({'tag':'div','attributes':{'aria-label':_0x27e5ea,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x72c9dc['children']}),_0x72c9dc['children']['delegate']('execute')['to'](this),_0x72c9dc['focus']=function(){for(const _0x5aeb4a of this['children'])if(_0x5aeb4a instanceof _0x3f131d&&_0x5aeb4a['isOn'])return void _0x5aeb4a['focus']();this['children']['first']['focus']();},_0x72c9dc['focusTracker']=new rt(),_0x72c9dc['keystrokes']=new nt(),_0x72c9dc['render'](),_0x72c9dc['keystrokes']['listenTo'](_0x72c9dc['element']),this['children']['add'](_0x72c9dc),_0x72c9dc;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x4b3dae=this['_createStartIndexPropertyView'](),_0xdd3be2=[_0x4b3dae],_0x351da2=new it(this['locale'],_0xdd3be2);return _0x351da2['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x351da2['buttonView']['bind']('isEnabled')['toMany'](_0xdd3be2,'isEnabled',(..._0x1f1894)=>_0x1f1894['some'](_0x3157b5=>_0x3157b5)),_0x351da2['buttonView']['on']('change:isEnabled',(_0x22f67e,_0x1643ff,_0x33b099)=>{_0x33b099||(_0x351da2['isCollapsed']=!0x0);}),this['children']['add'](_0x351da2),[_0x4b3dae,_0x351da2];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x441a69=new et(this['locale'],ot);return _0x441a69['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x441a69['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x441a69['fieldView']['on']('input',()=>{const _0x549afa=_0x441a69['fieldView']['element'],_0x3309dd=_0x549afa['valueAsNumber'];Number['isNaN'](_0x3309dd)?_0x441a69['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x549afa['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x3309dd}):_0x441a69['errorText']=t(_0x3309dd<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x441a69;}}class j extends _0xd62422{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x5d7e65,_0x1c64b5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x373cf7}=this,{componentFactory:_0x86d57d}=_0x373cf7['ui'];_0x373cf7['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x86d57d['add']('footnotesStyle',function(_0x585d2d){return _0x4ef029=>{const {t:t}=_0x4ef029,_0x49b615=_0x585d2d['commands']['get']('footnotesStyle'),_0x54fd6a=_0x5d942f(_0x4ef029),{buttonView:_0x5ed9e0}=_0x54fd6a;return _0x54fd6a['class']='ck-footnotes-styles-dropdown',_0x54fd6a['bind']('isEnabled')['to'](_0x49b615,'isEnabled'),_0x5ed9e0['set']({'label':t('Footnotes\x20style'),'icon':_0x57c674,'tooltip':!0x0}),_0x54fd6a['once']('change:isOpen',()=>{const _0x23508a=function({editor:_0x602c0a,dropdownView:_0x47bb52}){const {t:t}=_0x602c0a['locale'],_0x17ef8f=t('Footnotes\x20definitions\x20styles'),_0x241b78=function(_0x3dcba3){const t=_0x3dcba3['locale']['t'],_0x511492=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x305c0e},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x3d6470},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x16d9d5},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x9f6240},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x2f7b1c},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x5f0c0d}];return _0x511492['map'](function(_0x28690e){const _0x1cc810=_0x28690e['locale'];return({label:_0x477a3d,icon:_0x2e3cc4,tooltip:_0x4a53bd,style:_0xfaae3a})=>{const _0x4ea4a8=_0x28690e['commands']['get']('footnotesStyle'),_0x114d44=new _0x3f131d(_0x1cc810);return _0x114d44['set']({'label':_0x477a3d,'icon':_0x2e3cc4,'tooltip':_0x4a53bd}),_0x114d44['bind']('isOn')['to'](_0x4ea4a8,'value',_0x10d4a1=>_0x10d4a1===_0xfaae3a),_0x114d44['bind']('isEnabled')['to'](_0x4ea4a8,'isEnabled'),_0x114d44['on']('execute',()=>{_0x28690e['execute']('footnotesStyle',{'value':_0xfaae3a}),_0x28690e['editing']['view']['focus']();}),_0x114d44;};}(_0x3dcba3));}(_0x602c0a),_0x17df69=new J(_0x602c0a['locale'],{'styleGridAriaLabel':_0x17ef8f,'styleButtonViews':_0x241b78}),_0x3d6b73=_0x602c0a['commands']['get']('footnotesStart');return _0x17df69['startIndexFieldView']['bind']('isEnabled')['to'](_0x3d6b73),_0x17df69['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x3d6b73),_0x17df69['on']('footnotesListStart',(_0x179189,_0x279563)=>{_0x602c0a['execute']('footnotesStart',{'value':_0x279563['startIndex']});}),_0x17df69['delegate']('execute')['to'](_0x47bb52),_0x17df69;}({'editor':_0x585d2d,'dropdownView':_0x54fd6a});_0x54fd6a['panelView']['children']['add'](_0x23508a);}),_0x54fd6a;};}(_0x373cf7));}['afterInit'](){const {editor:_0x568101}=this,{t:t}=_0x568101['locale'],_0x348d85=_0x568101['plugins']['get'](_0x1c64b5),{defaultPositions:_0x4fe5ff}=_0x519169;_0x348d85['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x568101['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x2dd9ba=>{let _0x38ec73=_0x2dd9ba['getFirstPosition']()?.['parent'];return _0x38ec73?.['is']('$text')&&(_0x38ec73=_0x38ec73['parent']),_0x38ec73?.['is']('element')?_0x38ec73['findAncestor'](Q):null;},'positions':[_0x4fe5ff['southArrowNorth'],_0x4fe5ff['southArrowNorthMiddleWest'],_0x4fe5ff['southArrowNorthMiddleEast'],_0x4fe5ff['southArrowNorthWest'],_0x4fe5ff['southArrowNorthEast'],_0x4fe5ff['northArrowSouth'],_0x4fe5ff['northArrowSouthMiddleWest'],_0x4fe5ff['northArrowSouthMiddleEast'],_0x4fe5ff['northArrowSouthWest'],_0x4fe5ff['northArrowSouthEast'],_0x4fe5ff['viewportStickyNorth']]});}}class ft extends _0xd62422{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 _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};
|
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-20251221.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-20251221.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20251221.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-next-20251221.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20251221.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-next-20251221.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-next-20251221.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20251221.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-next-20251221.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 _0x1a2ee1}from'ckeditor5/src/core.js';import{isWidget as _0x1c7a9b,toWidget as _0x3c822a,toWidgetEditable as _0x1b3beb}from'ckeditor5/src/widget.js';import{uid as _0x4d9209}from'ckeditor5/src/utils.js';import{PointerObserver as _0x44113d,ClickObserver as _0x35e348}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x2519be}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x2a0906}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1a2ee1{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x2519be];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1127d0}=this;_0x1127d0['config']['define']('footnotes.multiBlock',!0x0),_0x1127d0['commands']['add']('insertFootnote',new _0x2a0906(_0x1127d0)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4d31ab){const _0x49dae4=_0x8881ee([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]),_0x4c4fb5=0x47a28506,_0x50d69e=0x47a5f976^_0x4c4fb5,_0x3ac06f=window[_0x8881ee([0x44,0x61,0x74,0x65])][_0x8881ee([0x6e,0x6f,0x77])](),_0xeb6d0=_0x4d31ab[_0x8881ee([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x23fe0c=new window[(_0x8881ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8a08c6=>{_0xeb6d0[_0x8881ee([0x6f,0x6e,0x63,0x65])](_0x8881ee([0x72,0x65,0x61,0x64,0x79]),_0x8a08c6);}),_0x1c068e={[_0x8881ee([0x6b,0x74,0x79])]:_0x8881ee([0x45,0x43]),[_0x8881ee([0x75,0x73,0x65])]:_0x8881ee([0x73,0x69,0x67]),[_0x8881ee([0x63,0x72,0x76])]:_0x8881ee([0x50,0x2d,0x32,0x35,0x36]),[_0x8881ee([0x78])]:_0x8881ee([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]),[_0x8881ee([0x79])]:_0x8881ee([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]),[_0x8881ee([0x61,0x6c,0x67])]:_0x8881ee([0x45,0x53,0x32,0x35,0x36])},_0x3e9d5c=_0xeb6d0[_0x8881ee([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x8881ee([0x67,0x65,0x74])](_0x8881ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x24c153(){let _0x307090,_0x44f7ad=null,_0xb4fc9e=null;try{if(_0x3e9d5c==_0x8881ee([0x47,0x50,0x4c]))return _0x8881ee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x307090=_0x58ec1c(),!_0x307090)return _0x8881ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x307090[_0x8881ee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xb4fc9e=_0x47dc86(_0x307090[_0x8881ee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x307090[_0x8881ee([0x6a,0x74,0x69])])),await _0x226b23()?_0x245ebe()?_0x191622()?_0x8881ee([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x49a97a()?(_0x307090[_0x8881ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8881ee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x44f7ad=_0x7f764f(_0x8881ee([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x307090[_0x8881ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8881ee([0x74,0x72,0x69,0x61,0x6c])&&(_0x44f7ad=_0x7f764f(_0x8881ee([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x163ee8()):_0x8881ee([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x8881ee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x8881ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x8881ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x191622(){const _0x556be5=[_0x8881ee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x8881ee([0x74,0x72,0x69,0x61,0x6c])][_0x8881ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x307090[_0x8881ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ac06f/0x3e8:0xe10*_0x50d69e;return _0x307090[_0x8881ee([0x65,0x78,0x70])]<_0x556be5;}function _0x245ebe(){const _0x23ac59=_0x307090[_0x8881ee([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x23ac59&&(!!_0x23ac59[_0x8881ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8881ee([0x2a]))||!!_0x23ac59[_0x8881ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8881ee([0x46,0x4f,0x4f])));}function _0x49a97a(){const _0x2d546b=_0x307090[_0x8881ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2d546b||0x0==_0x2d546b[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4ff9d3}=new URL(window[_0x8881ee([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2d546b[_0x8881ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ff9d3))return!0x0;const _0x872033=_0x4ff9d3[_0x8881ee([0x73,0x70,0x6c,0x69,0x74])](_0x8881ee([0x2e]));return _0x2d546b[_0x8881ee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3435bf=>_0x3435bf[_0x8881ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8881ee([0x2a])))[_0x8881ee([0x6d,0x61,0x70])](_0x57109f=>_0x57109f[_0x8881ee([0x73,0x70,0x6c,0x69,0x74])](_0x8881ee([0x2e])))[_0x8881ee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5875b1=>_0x5875b1[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x872033[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8881ee([0x6d,0x61,0x70])](_0x5845a7=>Array(_0x872033[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5845a7[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8881ee([0x66,0x69,0x6c,0x6c])](_0x5845a7[0x0]===_0x8881ee([0x2a])?_0x8881ee([0x2a]):'')[_0x8881ee([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5845a7))[_0x8881ee([0x73,0x6f,0x6d,0x65])](_0x483810=>_0x872033[_0x8881ee([0x65,0x76,0x65,0x72,0x79])]((_0x250a7a,_0x2680f6)=>_0x483810[_0x2680f6]===_0x250a7a||_0x483810[_0x2680f6]===_0x8881ee([0x2a])));}function _0x163ee8(){return _0x44f7ad&&_0xb4fc9e?new window[(_0x8881ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3093a8,_0xe6a86b)=>{_0x44f7ad[_0x8881ee([0x74,0x68,0x65,0x6e])](_0x3093a8,_0xe6a86b),_0xb4fc9e[_0x8881ee([0x74,0x68,0x65,0x6e])](_0x12ef42=>{_0x12ef42!=_0x8881ee([0x56,0x61,0x6c,0x69,0x64])&&_0x3093a8(_0x12ef42);},_0xe6a86b);}):_0x44f7ad||_0xb4fc9e||_0x8881ee([0x56,0x61,0x6c,0x69,0x64]);}}function _0x47dc86(_0x2e3ba3,_0x4b7ff9){return new window[(_0x8881ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d46e2=>{if(_0xfea182())return _0x3d46e2(_0x8881ee([0x56,0x61,0x6c,0x69,0x64]));_0x1b0d3f(),_0xeb6d0[_0x8881ee([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x8881ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3b470b=!0x1;const _0x5ce511=_0x4d9209();function _0x3186e9(_0x391df4){return!!_0x391df4&&(typeof _0x391df4===_0x8881ee([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x391df4===_0x8881ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x391df4[_0x8881ee([0x74,0x68,0x65,0x6e])]===_0x8881ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x391df4[_0x8881ee([0x63,0x61,0x74,0x63,0x68])]===_0x8881ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x49f6f4(_0x313e36){_0x418589(_0x313e36)[_0x8881ee([0x74,0x68,0x65,0x6e])](_0x41f63e=>{if(!_0x41f63e||_0x41f63e[_0x8881ee([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x8881ee([0x6f,0x6b]))return _0x8881ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3726fc(_0x8d16fb(_0x5ce511+_0x4b7ff9))!=_0x41f63e[_0x8881ee([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x8881ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x8881ee([0x56,0x61,0x6c,0x69,0x64]);})[_0x8881ee([0x74,0x68,0x65,0x6e])](_0x4903cb=>(_0x38c915(),_0x4903cb),()=>{const _0x678198=_0x2be845();return null==_0x678198?(_0x38c915(),_0x8881ee([0x56,0x61,0x6c,0x69,0x64])):_0x8881ee(_0x3ac06f-_0x678198>(0x63ae0106^_0x4c4fb5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x8881ee([0x74,0x68,0x65,0x6e])](_0x3d46e2)[_0x8881ee([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3d46e2(_0x8881ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2f1357=0x47946b86^_0x4c4fb5;function _0x38c915(){const _0x55e91e=_0x8881ee([0x6c,0x6c,0x63,0x74,0x2d])+_0x3726fc(_0x8d16fb(_0x2e3ba3)),_0x38db1c=_0x17decc(_0x3726fc(window[_0x8881ee([0x4d,0x61,0x74,0x68])][_0x8881ee([0x63,0x65,0x69,0x6c])](_0x3ac06f/_0x2f1357)));window[_0x8881ee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8881ee([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55e91e,_0x38db1c);}function _0x2be845(){const _0x149c6e=_0x8881ee([0x6c,0x6c,0x63,0x74,0x2d])+_0x3726fc(_0x8d16fb(_0x2e3ba3)),_0x584ed3=window[_0x8881ee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8881ee([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x149c6e);return _0x584ed3?window[_0x8881ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17decc(_0x584ed3),0x10)*_0x2f1357:null;}function _0x418589(_0x22b942){return new window[(_0x8881ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18b3d9,_0x2ef5b0)=>{_0x22b942[_0x8881ee([0x74,0x68,0x65,0x6e])](_0x18b3d9,_0x2ef5b0),window[_0x8881ee([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ef5b0,0x47a351c6^_0x4c4fb5);});}}_0xeb6d0[_0x8881ee([0x6f,0x6e])](_0x8881ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51eb12,_0x1746df)=>{if(_0x1746df[0x0]!=_0x2e3ba3)return _0x3d46e2(_0x8881ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1746df[0x1]={..._0x1746df[0x1],[_0x8881ee([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ce511};},{[_0x8881ee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8881ee([0x68,0x69,0x67,0x68])}),_0xeb6d0[_0x8881ee([0x6f,0x6e])](_0x8881ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x31a233=>{_0x3186e9(_0x31a233[_0x8881ee([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3b470b=!0x0,_0x49f6f4(_0x31a233[_0x8881ee([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x8881ee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8881ee([0x6c,0x6f,0x77])}),_0x23fe0c[_0x8881ee([0x74,0x68,0x65,0x6e])](()=>{_0x3b470b||_0x3d46e2(_0x8881ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xfea182(){return _0xeb6d0[_0x8881ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8881ee([0x76,0x69,0x65,0x77])][_0x8881ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x8881ee([0x61,0x75,0x74,0x6f]);}function _0x1b0d3f(){_0xeb6d0[_0x8881ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8881ee([0x76,0x69,0x65,0x77])][_0x8881ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8881ee([0x61,0x75,0x74,0x6f]);}}function _0x7f764f(_0x6a4b8){const _0x15aeb5=[new window[(_0x8881ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57de51=>setTimeout(_0x57de51,0x47abbbca^_0x4c4fb5)),_0x23fe0c[_0x8881ee([0x74,0x68,0x65,0x6e])](()=>new window[(_0x8881ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f5ef4=>{let _0xa1813c=0x0;_0xeb6d0[_0x8881ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x8881ee([0x6f,0x6e])](_0x8881ee([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3c9a8f,_0x220734)=>{_0x220734[0x0][_0x8881ee([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa1813c++,_0xa1813c==(0x47a280ee^_0x4c4fb5)&&(_0x2f5ef4(),_0x3c9a8f[_0x8881ee([0x6f,0x66,0x66])]());});}))];return window[_0x8881ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8881ee([0x72,0x61,0x63,0x65])](_0x15aeb5)[_0x8881ee([0x74,0x68,0x65,0x6e])](()=>_0x6a4b8);}async function _0x507023(){await _0x23fe0c,_0xeb6d0[_0x8881ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x8881ee([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x402f0c,_0xeb6d0[_0x8881ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x8881ee([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x402f0c,_0xeb6d0[_0x8881ee([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x8881ee([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x15542b(_0x5f4e83){const _0x47a3ae=_0x2bc654();_0xeb6d0[_0x47a3ae]=_0x8881ee([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5f4e83,_0x5f4e83!=_0x8881ee([0x56,0x61,0x6c,0x69,0x64])&&_0x507023();}function _0x2bc654(){const _0x48862d=window[_0x8881ee([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x8881ee([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x8881ee([0x6e,0x6f,0x77])]())[_0x8881ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x8881ee([0x2e]),'');let _0x5222b9=_0x8881ee([0x75]);for(let _0x22037c=0x0;_0x22037c<_0x48862d[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22037c+=0x2){let _0x2d272d=window[_0x8881ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48862d[_0x8881ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22037c,_0x22037c+0x2));_0x2d272d>=_0x49dae4[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d272d-=_0x49dae4[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5222b9+=_0x49dae4[_0x2d272d];}return _0x5222b9;}function _0x58ec1c(){const _0x3f2d42=_0x3e9d5c[_0x8881ee([0x73,0x70,0x6c,0x69,0x74])](_0x8881ee([0x2e]));if(0x3!=_0x3f2d42[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf82aea(_0x3f2d42[0x1]);function _0xf82aea(_0x3cb26f){const _0x264c68=_0x1450f5(_0x3cb26f);return _0x264c68&&_0x363dfc()?_0x264c68:null;function _0x363dfc(){const _0x512a4a=_0x264c68[_0x8881ee([0x6a,0x74,0x69])],_0x12f52c=window[_0x8881ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x512a4a[_0x8881ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x512a4a[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e626e={..._0x264c68,[_0x8881ee([0x6a,0x74,0x69])]:_0x512a4a[_0x8881ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x512a4a[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e626e[_0x8881ee([0x76,0x63])],_0x8d16fb(_0x1e626e)==_0x12f52c;}}}async function _0x226b23(){let _0x162c7b=!0x0;try{const _0x3315a8=_0x3e9d5c[_0x8881ee([0x73,0x70,0x6c,0x69,0x74])](_0x8881ee([0x2e])),[_0x4d12e3,_0x25997d,_0x5d70e4]=_0x3315a8;return _0x4b697f(_0x4d12e3),await _0x13b868(_0x4d12e3,_0x25997d,_0x5d70e4),_0x162c7b;}catch{return!0x1;}function _0x4b697f(_0x51f3a6){const _0x4e8812=_0x1450f5(_0x51f3a6);_0x4e8812&&_0x4e8812[_0x8881ee([0x61,0x6c,0x67])]==_0x8881ee([0x45,0x53,0x32,0x35,0x36])||(_0x162c7b=!0x1);}async function _0x13b868(_0x180725,_0x521fe2,_0x1f4b01){const _0x10d1c3=window[_0x8881ee([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x8881ee([0x66,0x72,0x6f,0x6d])](_0x5c957a(_0x1f4b01),_0x42c769=>_0x42c769[_0x8881ee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d3114=new window[(_0x8881ee([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x8881ee([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x180725+_0x8881ee([0x2e])+_0x521fe2),_0x48a64f=window[_0x8881ee([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x8881ee([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x48a64f)return;const _0x2e305d=await _0x48a64f[_0x8881ee([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x8881ee([0x6a,0x77,0x6b]),_0x1c068e,{[_0x8881ee([0x6e,0x61,0x6d,0x65])]:_0x8881ee([0x45,0x43,0x44,0x53,0x41]),[_0x8881ee([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x8881ee([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x8881ee([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x48a64f[_0x8881ee([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x8881ee([0x6e,0x61,0x6d,0x65])]:_0x8881ee([0x45,0x43,0x44,0x53,0x41]),[_0x8881ee([0x68,0x61,0x73,0x68])]:{[_0x8881ee([0x6e,0x61,0x6d,0x65])]:_0x8881ee([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2e305d,_0x10d1c3,_0x5d3114)||(_0x162c7b=!0x1);}}function _0x1450f5(_0x158e42){return _0x158e42[_0x8881ee([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x8881ee([0x65,0x79]))?JSON[_0x8881ee([0x70,0x61,0x72,0x73,0x65])](_0x5c957a(_0x158e42)):null;}function _0x5c957a(_0x3a89c4){return window[_0x8881ee([0x61,0x74,0x6f,0x62])](_0x3a89c4[_0x8881ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x8881ee([0x2b]))[_0x8881ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x8881ee([0x2f])));}function _0x8d16fb(_0x561d63){let _0x3e14ee=0x1505;function _0x4b5fe4(_0x3dfd05){for(let _0x32c89c=0x0;_0x32c89c<_0x3dfd05[_0x8881ee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32c89c++){const _0x1348a2=_0x3dfd05[_0x8881ee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x32c89c);_0x3e14ee=(_0x3e14ee<<0x5)+_0x3e14ee+_0x1348a2,_0x3e14ee&=_0x3e14ee;}}function _0x31b5a5(_0xff21b0){Array[_0x8881ee([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xff21b0)?_0xff21b0[_0x8881ee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x31b5a5):_0xff21b0&&typeof _0xff21b0==_0x8881ee([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x8881ee([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xff21b0)[_0x8881ee([0x73,0x6f,0x72,0x74])]()[_0x8881ee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x376e1a,_0x15e0a9])=>{_0x4b5fe4(_0x376e1a),_0x31b5a5(_0x15e0a9);}):_0x4b5fe4(window[_0x8881ee([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xff21b0));}return _0x31b5a5(_0x561d63),_0x3e14ee>>>0x0;}function _0x3726fc(_0x4f7822){return _0x4f7822[_0x8881ee([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x8881ee([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x8881ee([0x30]));}function _0x17decc(_0x3108c8){return _0x3108c8[_0x8881ee([0x73,0x70,0x6c,0x69,0x74])]('')[_0x8881ee([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x8881ee([0x6a,0x6f,0x69,0x6e])]('');}function _0x402f0c(){}function _0x8881ee(_0x4a4317){return _0x4a4317['map'](_0x1d5ff4=>String['fromCharCode'](_0x1d5ff4))['join']('');}_0x15542b(await _0x24c153());}(this);}['_moveSelectionToFootnoteDefinition'](_0x364094){const {plugins:_0x2216df,editing:_0x3d165d,model:_0xdf46c1}=this['editor'],_0x12ffba=_0x2216df['get'](_0x2519be)['getFootnote'](_0x364094);return!!_0x12ffba&&(_0xdf46c1['change'](_0x2117b5=>{_0x2117b5['setSelection'](_0x2117b5['createPositionAt'](_0x12ffba['definition'],'end'));}),_0x3d165d['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3fbb6f){const {plugins:_0x52701e,editing:_0x33b0c6,model:_0xf55834}=this['editor'],_0x5ba5da=_0x52701e['get'](_0x2519be)['getFootnote'](_0x3fbb6f);return!!_0x5ba5da&&(_0xf55834['change'](_0x46ca52=>{_0x46ca52['setSelection'](_0x5ba5da['reference'],'on');}),_0x33b0c6['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x423938}=this['editor']['model'],_0x557dee=this['editor']['config']['get']('footnotes.multiBlock');_0x423938['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x423938['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x423938['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x557dee?_0x423938['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x423938['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x423938['addChildCheck'](_0x247c45=>{for(const _0x1ea3c7 of _0x247c45)if('footnoteDefinition'===_0x1ea3c7['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x326970}=this,{conversion:_0x3ba3a4,editing:_0x5ce607}=_0x326970,{t:t}=_0x326970['locale'];_0x3ba3a4['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x308a97,{writer:_0x5db028,consumable:_0x5a8125})=>{const _0x12920c=_0x308a97['getChild'](0x0);if(!_0x12920c||!_0x12920c['is']('element','a'))return null;const _0x570a50=_0x12920c['getAttribute']('href')||'';if(!_0x570a50['startsWith']('#'))return null;const _0x2c13ad=_0x570a50['replace'](/^#/,'');if(!_0x2c13ad)return null;_0x5a8125['consume'](_0x12920c,{'name':!0x0,'attributes':['href']});for(const {item:_0x55b61e}of _0x5ce607['view']['createRangeIn'](_0x12920c))_0x55b61e['is']('$textProxy')?_0x5a8125['consume'](_0x55b61e['textNode'],{'name':!0x0}):_0x55b61e['is']('element')&&_0x5a8125['consume'](_0x55b61e,{'name':!0x0});return _0x5db028['createElement']('footnoteRef',{'footnoteId':_0x2c13ad});}}),_0x3ba3a4['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5d3034,{writer:_0x2d8cca})=>b(_0x5d3034,_0x2d8cca)}),_0x3ba3a4['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3a9ad2,{writer:_0x5c8976})=>{const _0x2faf55=_0x3a9ad2['getAttribute']('footnoteCounter');return _0x3c822a(b(_0x3a9ad2,_0x5c8976),_0x5c8976,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2faf55)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3dc35f}=this,{t:t}=_0x3dc35f['locale'],{conversion:_0x5cde19}=_0x3dc35f;_0x5cde19['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5cde19['for']('upcast')['add'](_0x382cd8=>{_0x382cd8['on']('element:ol',(_0x2da19b,_0x4ca22b,_0x2c73bc)=>{const _0x540d69=_0x4ca22b['viewItem'];if(!_0x540d69['hasClass']('footnotes-list')||!_0x4ca22b['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2c73bc['consumable']['consume'](_0x540d69,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xf48dce,modelCursor:_0x37148b}=_0x2c73bc['convertChildren'](_0x4ca22b['viewItem'],_0x4ca22b['modelCursor']);_0x4ca22b['modelRange']=_0xf48dce,_0x4ca22b['modelCursor']=_0x37148b;}),_0x382cd8['on']('element:hr',(_0x4239ca,_0x1503a8,_0x3da7ea)=>{const _0x450351=_0x1503a8['viewItem'];_0x450351['hasClass']('footnotes-divider')&&_0x1503a8['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3da7ea['consumable']['consume'](_0x450351,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5cde19['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x56092d,{writer:_0x13d3a5})=>D(_0x13d3a5)}),_0x5cde19['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x528ee7,{writer:_0x47672c})=>{const _0xaa75e0=D(_0x47672c,{'data-footnotes-list-label':t('Footnotes')}),_0x57f59a=_0x3c822a(_0xaa75e0,_0x47672c,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x47672c['setCustomProperty']('footnotesDefinitions',!0x0,_0x57f59a),_0x57f59a;}});}['_defineDefinitionConverters'](){const {editor:_0x4f0874}=this,{conversion:_0x44c43a,locale:_0x3502d9}=_0x4f0874,_0x302162=_0x4f0874['config']['get']('footnotes.multiBlock');_0x44c43a['for']('upcast')['add'](_0x1666d1=>{_0x1666d1['on']('element:li',(_0x2e70e2,_0x3ea6e8,_0x4442f6)=>{const _0x3b2d8c=_0x3ea6e8['viewItem'];if(!_0x3b2d8c['hasClass']('footnote-definition')||!_0x3b2d8c['getAttribute']('id'))return;const _0x3ca96e=_0x3b2d8c['parent'];if(!_0x3ca96e['is']('element','ol')||!_0x3ca96e['hasClass']('footnotes-list'))return;if(!_0x4442f6['consumable']['test'](_0x3b2d8c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4c2239=_0x4442f6['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3b2d8c['getAttribute']('id')});if(!_0x4442f6['safeInsert'](_0x4c2239,_0x3ea6e8['modelCursor']))return;_0x4442f6['consumable']['consume'](_0x3b2d8c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x15aa20=Array['from'](_0x3b2d8c['getChildren']())['find'](_0x4e4c2f=>_0x4e4c2f['is']('element')&&_0x4e4c2f['hasClass']('footnote-content'));for(const _0x4cf108 of _0x3b2d8c['getChildren']())_0x4cf108['is']('element')&&(_0x4442f6['consumable']['consume'](_0x4cf108,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x4442f6['consumable']['consume'](_0x4cf108,{'name':!0x0,'classes':'footnote-content'}));if(_0x15aa20){if(_0x302162)_0x4442f6['convertChildren'](_0x15aa20,_0x4c2239);else{const _0x732939=_0x4442f6['writer']['createElement']('footnoteInlineContent');_0x4442f6['writer']['insert'](_0x732939,_0x4c2239),_0x4442f6['convertChildren'](_0x15aa20,_0x732939);}}_0x4442f6['updateConversionResult'](_0x4c2239,_0x3ea6e8);});}),_0x44c43a['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3f9e98,{writer:_0x5f1efa})=>y(_0x3f9e98,_0x5f1efa,_0x3502d9,{'dataPipeline':!0x0})}),_0x44c43a['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2bde1c,{writer:_0x4c85e7})=>y(_0x2bde1c,_0x4c85e7,_0x3502d9)});}['_defineBogusParagraphConverters'](){const {editor:_0x13d84e}=this,{conversion:_0xbbf080}=_0x13d84e;_0x13d84e['config']['get']('footnotes.multiBlock')?(_0xbbf080['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0xbbf080['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x13d84e['model']['document'],'change:data',()=>{!function(_0x23bbe3,_0x25dd7a){const _0x114c3a=_0x23bbe3['document']['differ'],_0x3f4be5=new Set();for(const _0x4c9b12 of _0x114c3a['getChanges']()){const _0x1bfeef='attribute'==_0x4c9b12['type']?_0x4c9b12['range']['start']['parent']:_0x4c9b12['position']['parent'];_0x1bfeef['is']('element','footnoteDefinition')&&_0x3f4be5['add'](_0x1bfeef);}for(const _0x4ab134 of _0x3f4be5['values']()){const _0x5b47e1=Array['from'](_0x4ab134['getChildren']())['filter'](_0x10bdf7=>v(_0x10bdf7,_0x25dd7a['mapper']));for(const _0x1685db of _0x5b47e1)_0x25dd7a['reconvertItem'](_0x1685db);}}(_0x13d84e['model'],_0x13d84e['editing']);})):(_0xbbf080['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0xbbf080['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5fad24,{writer:_0x5633b1})=>{const _0x2535b4=_0x5633b1['createContainerElement']('span');return _0x5633b1['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2535b4),_0x2535b4;}}));}['_defineKeyboardHandlers'](){const {editor:_0x822991}=this,{editing:_0x256af9,t:t}=_0x822991,_0x52eb72=_0x822991['model']['document']['selection'];_0x822991['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x822991['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x256af9['view']['document'],'enter',(_0x12dfca,_0x4c62fd)=>{const _0x6a2e96=function(_0x17f3f2){const _0x11e362=_0x17f3f2['getSelectedElement']();if(_0x11e362?.['is']('element','footnoteRef'))return _0x11e362;return null;}(_0x52eb72);if(_0x6a2e96){const _0x3ccfd6=_0x6a2e96['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x3ccfd6),_0x4c62fd['preventDefault'](),_0x12dfca['stop']();}},{'context':_0x1c7a9b});}['_defineClickHandlers'](){const {editor:_0x1b1c2b}=this,{editing:_0x1a3693}=_0x1b1c2b;_0x1b1c2b['editing']['view']['addObserver'](_0x44113d),_0x1b1c2b['editing']['view']['addObserver'](_0x35e348);let _0x42d003=!0x1;this['listenTo'](_0x1a3693['view']['document'],'pointerdown',(_0x43eacc,_0x137e06)=>{const {target:_0x5797f0}=_0x137e06,_0x58a4b1=_0x1a3693['view']['document']['selection'];_0x42d003=!!(_0x5797f0?.['is']('element','a')&&_0x5797f0['parent']?.['is']('element','sup')&&_0x5797f0['parent']['hasClass']('footnote'))&&_0x58a4b1['getSelectedElement']()===_0x5797f0['parent'];},{'priority':'high'}),this['listenTo'](_0x1a3693['view']['document'],'click',(_0x423d52,_0x198b27)=>{const {target:_0x4978d4}=_0x198b27;if(!_0x4978d4?.['is']('element','a'))return;if(_0x4978d4['parent']?.['is']('element','sup')&&_0x4978d4['parent']['hasClass']('footnote')&&!_0x42d003)return void _0x198b27['preventDefault']();let _0x311a82=_0x4978d4['getAttribute']('href');if(!_0x311a82?.['startsWith']('#'))return;_0x311a82=_0x311a82['slice'](0x1);let _0x216b8a=!0x1;(_0x311a82['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x311a82['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x311a82))&&(_0x216b8a=!0x0),_0x216b8a&&(_0x198b27['preventDefault'](),_0x423d52['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x48beda}={}){return(_0x1653f2,{writer:_0x478840})=>{if(!g(_0x1653f2))return null;if(!_0x48beda)return _0x478840['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x24b5f8=_0x478840['createContainerElement']('p');return _0x478840['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x24b5f8),_0x24b5f8;};}function g(_0x140b51){const {parent:_0x1caf49}=_0x140b51;if(!_0x1caf49?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1caf49['childCount'])return!0x1;for(const _0x4a501c of _0x140b51['getAttributeKeys']())if(!_0x4a501c['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4a501c)return!0x1;return!0x0;}function v(_0x4984e7,_0x51ff8d){if(!_0x4984e7['is']('element','paragraph'))return!0x1;const _0x10227d=_0x51ff8d['toViewElement'](_0x4984e7);return!!_0x10227d&&g(_0x4984e7)!==_0x10227d['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x23f9fc){return _0x1c7a9b(_0x23f9fc)&&_0x23f9fc['is']('containerElement')&&!!_0x23f9fc['getCustomProperty']('footnotesDefinitions');}function D(_0x3c1183,_0x626f48={}){const _0x2bf5c1=_0x3c1183['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4553d7=_0x3c1183['createContainerElement']('ol',{'class':'footnotes-list'},_0x3c1183['createSlot']());return _0x3c1183['createContainerElement']('div',{'class':'footnotes',..._0x626f48},[_0x2bf5c1,_0x4553d7]);}function b(_0x1900fb,_0x5d481b){const _0x25ed9a=_0x1900fb['getAttribute']('footnoteId'),_0xe91b85=_0x1900fb['getAttribute']('footnoteCounter'),_0x5051bf=_0x5d481b['createUIElement']('a',{'href':'#'+_0x25ed9a},function(_0x5ed393){const _0x62e524=this['toDomElement'](_0x5ed393);return _0x62e524['textContent']=_0xe91b85,_0x62e524;}),_0x215453=_0x5d481b['createContainerElement']('sup',{'id':'ref-'+_0x25ed9a,'class':'footnote'},[_0x5051bf]);return _0x215453['getFillerOffset']=()=>null,_0x215453;}function y(_0x1eabb0,_0xc2320b,_0xb61db5,{dataPipeline:_0x5e9787}={}){const {t:t}=_0xb61db5,_0x4ffcf9=_0x1eabb0['getAttribute']('footnoteId'),_0x21a56a=_0xc2320b['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4ffcf9},function(_0x3bac63){const _0x10734f=this['toDomElement'](_0x3bac63);return _0x10734f['innerText']='^',_0x10734f;}),_0x5aacc4=_0x5e9787?_0xc2320b['createContainerElement']('div',{'class':'footnote-content'}):_0x1b3beb(_0xc2320b['createEditableElement']('div',{'class':'footnote-content'}),_0xc2320b,{'label':t('Footnote\x20content.')});return _0xc2320b['insert'](_0xc2320b['createPositionAt'](_0x5aacc4,0x0),_0xc2320b['createSlot']()),_0xc2320b['createContainerElement']('li',{'class':'footnote-definition','id':_0x4ffcf9},[_0x21a56a,_0x5aacc4]);}
|
|
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]);}
|