@ckeditor/ckeditor5-footnotes 47.4.0-alpha.0 → 47.4.0-alpha.1
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-2026, 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:()=>T,FootnotesEditing:()=>I,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>p,FootnotesUI:()=>Q,InsertFootnoteCommand:()=>y});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["reset","root","_trackedElements","getChanges","values","getElementKey","1WJoibl","remove","createRangeOn","6976635XEcUiI","position","26401122SqUFuf","clear","attributes","rootName","_getElementKey","_model","length","7376152iBmNiU","insert","1300174zxZlPR","258EzBBfq","name","4117284nBXJpR","set","getItems","push","elementName","delete","_elementName","$text","109476irIapp","132321FHccuO","has","get","slice","from","type","$graveyard","flat","add","element","nodeAfter"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=486]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(733969===parseInt(e(502))/1*(parseInt(e(516))/2)+-parseInt(e(519))/3+parseInt(e(527))/4+-parseInt(e(505))/5+parseInt(e(517))/6*(parseInt(e(528))/7)+-parseInt(e(514))/8+parseInt(e(507))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(512)];[r(525)];[r(511)];[r(498)]=new Map;constructor(t,e){const o=r;this[o(512)]=t,this[o(525)]=e[o(523)],this[o(511)]=e[o(501)]}[r(496)](){const t=r;this[t(498)][t(508)]()}[r(499)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(515)===i[e(490)]&&e(526)!==i[e(518)]&&i[e(506)][e(495)]){const t=this[e(512)][e(504)](i[e(506)][e(495)]);for(const o of t[e(521)]()){if(!o.is(e(494),this[e(525)]))continue;const t=this[e(511)](o);n[e(486)](t)||n[e(520)](t,[]),n[e(487)](t)[e(522)](o)}}if(e(503)===i[e(490)]&&i[e(518)]===this[e(525)]){const t=this[e(511)]({getAttribute:t=>i[e(509)][e(487)](t)});o[e(493)](t)}}for(const[t,n]of this[e(498)])e(491)===n[e(497)][e(510)]&&o[e(493)](t);for(const t of o)this[e(498)][e(524)](t);for(const[t,o]of n)this[e(498)][e(520)](t,o[o[e(513)]-1]);const i=new Set;for(const[t,s]of n)o[e(486)](t)&&(i[e(493)](s[0]),s[e(513)]>1?n[e(520)](t,s[e(488)](1)):n[e(524)](t),o[e(524)](t));return{removed:Array[e(489)](o),inserted:Array[e(489)](n[e(500)]())[e(492)](),moved:Array[e(489)](i)}}}const u=f;function f(t,e){const o=d();return(f=function(t,e){return o[t-=288]})(t,e)}function d(){const t=["_handleFootnotesDefinitionsObjectSync","push","isOfficialPlugin","1213752XxUUvO","getFootnotesDefinitionsObjectElement","init","footnoteRef","footnoteCounter","reset","_sortFootnoteDefinitions","isPremiumPlugin","getChanges","min","setAttribute","67015IkvPVY","_footnoteDefsContainerTracker","change:data","paragraph","set","footnoteId","createElement","getRootNames","_handleFootnoteReferencesChanges","FootnotesTracker","_updateFootnoteRefCounter","4096024jLFqow","singleton","model","108252HQsjmh","after","setFootnoteFormatter","rootName","before","createRangeOn","pluginName","document","parent","compareWith","1507JMzuzI","footnotesDefinitions","length","indexOf","footnoteInlineContent","createPositionAt","get","_footnotes","_footnoteDefsTracker","footnotes.multiBlock","getFootnotes","footnoteDefinition","end","createPositionBefore","isEqual","_handleRemoveFootnoteReferenceById","getFootnotesFormatter","getChildren","7GybiUC","append","createRangeIn","find","enqueueChange","add","12AXzfiE","_footnoteRefsTracker","childCount","move","high","root","_updateFootnotesCounters","getAttribute","_handleMovedFootnoteReference","config","_handleFootnoteDefinitionsChanges","561835ONJnfU","_handleInsertedFootnoteReference","$graveyard","has","splice","48098cMgzEY","10ZbSTPT","_handleFootnotesDefinitionsObjectChanges","findIndex","_footnotesDefinitions","remove","low","unshift","_insertEmptyFootnotesDefinitionsContainer","editor","_ensureFootnotesDefinitionsContainerExists","registerPostFixer","reference","definition","getFootnote","_footnoteFormatter","insert","4402674ngtktx","264PBZruh","from","some","_ensureFootnotesReferencesHaveProperOrder","listenTo","map","differ"];return(d=function(){return t})()}!function(t){const e=f,o=t();for(;;)try{if(314369===-parseInt(e(315))/1+-parseInt(e(320))/2*(parseInt(e(304))/3)+parseInt(e(348))/4+-parseInt(e(359))/5*(parseInt(e(338))/6)+parseInt(e(298))/7*(parseInt(e(370))/8)+parseInt(e(337))/9*(-parseInt(e(321))/10)+-parseInt(e(383))/11*(-parseInt(e(373))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class p extends t.Plugin{[u(390)]=[];[u(324)]=null;[u(335)]=null;[u(360)];[u(305)];[u(288)];static get[u(379)](){return u(368)}static get[u(347)](){return!0}static get[u(355)](){return!0}constructor(t){const e=u;super(t),this[e(360)]=new l(this[e(329)][e(372)],{elementName:e(384),getElementKey:()=>e(371)}),this[e(305)]=new l(this[e(329)][e(372)],{elementName:e(351),getElementKey:t=>t[e(311)](e(364))}),this[e(288)]=new l(this[e(329)][e(372)],{elementName:e(291),getElementKey:t=>t[e(311)](e(364))})}[u(350)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(380)][t(331)](e=>{const n=t,i=o[n(380)][n(344)][n(356)]();let s=!1;return this[n(322)](e,i)&&(s=!0),this[n(314)](e,i)&&(s=!0),this[n(367)](e,i)&&(s=!0),this[n(341)](e)&&(s=!0),this[n(345)](e)&&(s=!0),this[n(354)](e)&&(s=!0),s}),this[t(342)](o[t(380)],t(361),()=>{const e=t;o[e(302)]({isUndoable:!1},t=>{this[e(330)](t)})},{priority:t(326)}),this[t(342)](n,t(363),()=>{const e=t;this[e(390)]=[],this[e(360)][e(353)](),this[e(305)][e(353)](),this[e(288)][e(353)]()},{priority:t(308)})}[u(349)](){return this[u(324)]}[u(334)](t){const e=u;return this[e(390)][e(301)](e=>e.id===t)||null}[u(290)](){const t=u;return Array[t(339)](this[t(390)])}[u(296)](){return this[u(335)]}[u(375)](t){this[u(335)]=t}[u(310)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(390)][o(385)];i++)this[o(369)](t,i)&&(n=!0);return n}[u(328)](t,e){const o=u,n=t[o(365)](o(384),{});return t[o(299)](n,e),this[o(324)]=n,n}[u(330)](t){const e=u;if(!this[e(390)][e(385)]||this[e(324)])return;const o=this[e(390)][0][e(332)][e(309)],n=this[e(328)](t,o);for(const o of this[e(390)])o[e(333)][e(381)]||t[e(336)](o[e(333)],n,e(292));this[e(310)](t)}[u(322)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(360)][o(356)](e);if(r[o(385)]&&(this[o(324)]=r[0]),i[o(385)])if(i[o(385)]>1||this[o(324)]&&i[o(340)](t=>t!==this[o(324)])){const e=t[o(365)](o(384),{}),s=[];this[o(324)]&&s[o(346)](this[o(324)]),s[o(346)](...i),t[o(336)](e,s[0],o(377));for(const n of s)t[o(307)](t[o(300)](n),t[o(388)](e,o(292))),t[o(325)](n);this[o(324)]=e,this[o(310)](t),n=!0}else this[o(324)]=i[0];if(s[o(385)]&&o(317)===this[o(324)]?.[o(309)][o(376)]){for(const e of this[o(390)])t[o(325)](e[o(332)]),n=!0;this[o(390)]=[],this[o(324)]=null}return n}[u(314)](t,e){const o=u;let n=!1;const i=this[o(329)][o(313)][o(389)](o(289)),{inserted:s,moved:r}=this[o(288)][o(356)](e);for(const e of[...r,...s]){const s=e[o(311)](o(364)),r=this[o(334)](s);r&&(r[o(333)]=e),h(t,i,e)&&(n=!0)}return n}[u(367)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(305)][o(356)](e);for(const e of i)this[o(295)](t,e)&&(n=!0);for(const e of s)this[o(316)](t,e)&&(n=!0);for(const e of r)this[o(312)](t,e)&&(n=!0);return n}[u(345)](t){const e=u;if(!this[e(324)])return!1;let o=!1;if(this[e(324)][e(306)]!==this[e(390)][e(385)]){const n=[];for(const t of this[e(324)][e(297)]()){const i=t[e(311)](e(364));this[e(334)](i)||(n[e(327)](t),o=!0)}for(const o of n)t[e(325)](o)}const n=new Set,i=[];for(const t of this[e(324)][e(297)]()){const s=t[e(311)](e(364));n[e(318)](s)?(i[e(327)](t),o=!0):n[e(303)](s)}for(const o of i)t[e(325)](o);return this[e(324)][e(306)]||(t[e(325)](this[e(324)]),this[e(324)]=null,o=!0),o}[u(316)](t,e){const o=u;if(this[o(390)][o(301)](t=>t[o(332)]===e))return!1;let n=!1;const i=e[o(311)](o(364)),s=this[o(390)][o(323)](t=>t.id===i);-1!==s&&(t[o(325)](this[o(390)][s][o(332)]),this[o(390)][o(319)](s,1),n=!0);let r=this[o(324)]?function(t,e){const n=o;for(const o of t[n(297)]())if(o[n(311)](n(364))===e)return o;return null}(this[o(324)],i):null;r||(r=t[o(365)](o(291),{footnoteId:i}),this[o(324)]&&(t[o(336)](r,this[o(324)],o(292)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(329)][o(372)],this[o(390)],e);this[o(390)][o(319)](c,0,a);let l=c;return-1!==s&&(l=Math[o(357)](c,s)),this[o(310)](t,l)&&(n=!0),n}[u(295)](t,e){const o=u,n=this[o(390)][o(323)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(390)][n];return o(317)!==s[o(333)][o(309)][o(376)]&&(t[o(325)](s[o(333)]),i=!0),this[o(390)][o(319)](n,1),this[o(310)](t,n)&&(i=!0),i}[u(312)](t,e){const o=u,n=e[o(311)](o(364)),i=this[o(390)][o(323)](t=>t.id===n),s=this[o(390)][i];let r=!1;s[o(332)]=e,this[o(390)][o(319)](i,1);const a=m(this[o(329)][o(372)],this[o(390)],e);return this[o(390)][o(319)](a,0,s),this[o(310)](t,Math[o(357)](i,a))&&(r=!0),r}[u(369)](t,e){const o=u;if(!this[o(324)])return!1;const n=this[o(390)][e];let i;return i=this[o(335)]?this[o(335)]({footnote:n,container:this[o(324)],digits:String(this[o(390)][o(385)])[o(385)],value:e+1}):String(e+1),n[o(332)][o(311)](o(352))!=i&&(t[o(358)](o(352),i,n[o(332)]),!0)}[u(354)](t){const e=u;if(!this[e(324)]||this[e(390)][e(385)]<2)return!1;if(function(t,o){const n=e;if(t[n(385)]!==o[n(385)])return!1;for(let e=0;e<t[n(385)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(390)][e(343)](t=>t.id),Array[e(339)](this[e(324)][e(297)]())[e(343)](t=>t[e(311)](e(364)))))return!1;let o=!1;for(let n=0;n<this[e(390)][e(385)];n++){const i=this[e(390)][n],s=t[e(293)](i[e(333)]),r=t[e(388)](this[e(324)],n);s[e(294)](r)||(t[e(307)](t[e(378)](i[e(333)]),r),o=!0)}return o}[u(341)](t){const e=u;if(!this[e(390)][e(385)])return!1;const{model:o}=this[e(329)];let n=!1;for(let i=0;i<this[e(390)][e(385)]-1;i++){const s=this[e(390)][i],r=this[e(390)][i+1],a=o[e(293)](s[e(332)]),c=o[e(293)](r[e(332)]);e(374)===a[e(382)](c)&&(this[e(312)](t,s[e(332)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=u;if(o[n(306)])return!1;const i=n(e?362:387);return t[n(336)](t[n(365)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(385)])return 0;const i=t[n(293)](o);for(let o=0;o<e[n(385)];o++){const s=e[o],r=t[n(293)](s[n(332)]);if(n(377)===i[n(382)](r))return o}const s=o[n(309)];let r=-1;for(let t=e[n(385)]-1;t>=0;t--)if(e[t][n(332)][n(309)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(380)][n(366)](),c=a[n(386)](s[n(376)]),l=a[c+1];if(l)for(let t=0;t<e[n(385)];t++)if(e[t][n(332)][n(309)][n(376)]===l)return t;return e[n(385)]}const g=w;function w(t,e){const o=b();return(w=function(t,e){return o[t-=430]})(t,e)}!function(t){const e=w,o=t();for(;;)try{if(141963===-parseInt(e(460))/1*(parseInt(e(453))/2)+-parseInt(e(456))/3*(-parseInt(e(461))/4)+-parseInt(e(438))/5*(-parseInt(e(437))/6)+-parseInt(e(459))/7+-parseInt(e(433))/8*(-parseInt(e(466))/9)+-parseInt(e(432))/10+-parseInt(e(431))/11*(-parseInt(e(451))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class y extends t.Command{[g(434)](){const t=g,e=this[t(468)][t(467)][t(455)][t(457)],o=this[t(463)](e);this[t(441)]=!!o}[g(446)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(455)],r=this[e(463)](s);if(!r)return;const a=o[e(448)][e(435)](e(444)),c=t?.[e(454)]??(0,i.uid)();!function(t){const o=e;return o(449)==typeof t&&t[o(447)]>0&&!/\s/[o(462)](t)&&!/^\d/[o(462)](t)}(c)?(0,i.logWarning)(e(452)):(n[e(439)](t=>{const o=e,i=t[o(442)](o(430),{footnoteId:c});n[o(443)](i,r,null)}),a[e(445)](c))}[g(463)](t){const e=g,{model:o}=this[e(468)],{schema:n}=o,i=t[e(458)]();for(const t of i[e(450)]())if(n[e(464)](t)||n[e(440)](t))return null;const s=i[e(465)];return n[e(436)](s,e(430))?s:null}}function b(){const t=["2234660wbgdrM","1216wgkAwz","refresh","get","checkChild","20994RNqhMu","280Sryedf","change","isObject","isEnabled","createElement","insertObject","FootnotesEditing","_moveSelectionToFootnoteDefinition","execute","length","plugins","string","getItems","144NvDcOj","insert-footnote-command-executed-with-invalid-id","3436oUNXyl","footnoteId","document","55101ZcWsGo","selection","getFirstRange","396067NDeAvu","73nkzUYU","16OXJnoX","test","_getPositionToInsertFootnote","isBlock","end","2439nrFiCF","model","editor","footnoteRef","217085KVOezA"];return(b=function(){return t})()}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[p]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new y(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=h([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[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([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]),[h([121])]:h([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]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],u(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?f(u(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+f(u(t)),n=d(f(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+f(u(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([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(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1767830400;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>x(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)(x(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})=>E(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=E(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:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:v()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function E(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 x(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=_;function _(t,e){const o=D();return(_=function(t,e){return o[t-=421]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(606070===parseInt(e(467))/1*(parseInt(e(505))/2)+-parseInt(e(506))/3*(-parseInt(e(436))/4)+parseInt(e(454))/5*(-parseInt(e(484))/6)+-parseInt(e(478))/7*(parseInt(e(461))/8)+parseInt(e(462))/9*(parseInt(e(432))/10)+-parseInt(e(494))/11+parseInt(e(481))/12*(-parseInt(e(421))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class T extends t.Plugin{static get[A(449)](){return A(493)}static get[A(441)](){return[I,P.ClipboardPipeline]}static get[A(488)](){return!0}static get[A(451)](){return!0}[A(438)](){this[A(502)]()}[A(502)](){const t=A;this[t(434)](),this[t(499)]()}[A(434)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(472)](P.ClipboardPipeline),s=o[t(472)](p);this[t(450)](i,t(456),(o,i)=>{const r=t,a=V(n[r(500)](i[r(479)]));if(!a[r(480)])return;const c=s[r(430)](),l=a[r(475)]((t,o)=>{const n=r,i=c[n(486)](t=>t.id===o);if(i){const o=e[n(437)][n(429)](i[n(497)],{isClipboardPipeline:!0}),s=e[n(437)][n(452)][n(469)](o);t[i.id]=s}return t},Object[r(491)](null));i[r(489)][r(455)](r(504),JSON[r(444)](l))})}[A(499)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(495)],r=n[t(472)](P.ClipboardPipeline),a=n[t(472)](p),c=e[t(470)][t(472)](t(492));let l=null;this[t(450)](s[t(473)],t(474),(e,o)=>{const n=t,i=o[n(489)][n(477)](n(504));l=i?JSON[n(426)](i):null}),this[t(450)](r,t(433),(n,s)=>{const r=t,u=s[r(425)]===this[r(501)].id;u&&r(483)===s[r(424)]||o[r(498)](t=>{const n=r;let f=a[n(465)]();const d=!!f&&Array[n(476)](o[n(473)][n(445)][n(490)]())[n(448)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(460),e(507)))return!0;return!1}(o[n(500)](s[n(479)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(491)](null);for(const e of i[o(457)]())e.is(o(460),o(423))&&e[o(466)](o(422))&&(s[e[o(442)](o(422))]=t[o(439)](e,!0));return Object[o(458)](s)[o(480)]?s:null}(t,s[n(479)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(500)](e))n.is(o(460),o(447))&&i[o(485)](n);for(const e of i)t[o(496)](e)}(t,s[n(479)]),!l)return;const{selection:p}=o[n(473)],h=p[n(482)]()[n(468)];f&&!d||(f=L(t,s[n(479)]),f||=a[n(487)](t,h));const m=Array[n(476)](p[n(464)]())[n(446)](V),g=function(t,e,o){const s=n,r=Object[s(491)](null);for(const{item:n}of t[s(500)](e))if(n.is(s(460),s(507))){const e=n[s(442)](s(422));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(443)](s(422),r[e],n)}return r}(t,s[n(479)],t=>{const e=n;return!u||!!a[e(453)](t)&&!m[e(448)](t)});for(const[o,i]of Object[n(427)](l)){const s=g[o]||o;let r;if(n(435)!=typeof i)r=i,s!==o&&t[n(443)](n(422),s,r);else{r=t[n(431)](n(423),{footnoteId:s});const o=e[n(437)][n(452)][n(429)](i);let a;if(c)a=e[n(437)][n(459)](o,r);else{a=t[n(431)](n(471));const i=e[n(437)][n(459)](o,a);t[n(503)](i,a)}t[n(440)](a,r)}t[n(503)](r,f,n(428))}l=null})})}}function D(){const t=["editing","remove","definition","change","_handlePasteFootnotesDefinitions","createRangeIn","editor","_defineClipboardIntegration","insert","application/ckeditor5-footnotes","50Aftazv","561864izWnAL","footnoteRef","13PmUVoo","footnoteId","footnoteDefinition","method","sourceEditorId","parse","entries","end","toView","getFootnotes","createElement","10cVJsnH","contentInsertion","_handleCopyFootnotesDefinitions","string","24tqdWuR","data","init","cloneElement","append","requires","getAttribute","setAttribute","stringify","selection","flatMap","footnotesDefinitions","includes","pluginName","listenTo","isPremiumPlugin","htmlProcessor","getFootnote","15750VmFJGB","setData","outputTransformation","getChildren","keys","toModel","element","104eCeIKN","2127663zGQfEE","add","getRanges","getFootnotesDefinitionsObjectElement","hasAttribute","48161mVvxHN","root","toData","config","footnoteInlineContent","get","document","clipboardInput","reduce","from","getData","146006uzwDzk","content","length","13637484OCprKZ","getFirstRange","drop","858cqbbaa","push","find","_insertEmptyFootnotesDefinitionsContainer","isOfficialPlugin","dataTransfer","getSelectedBlocks","create","footnotes.multiBlock","FootnotesClipboard","1100319IyBJKY"];return(D=function(){return t})()}function L(t,e){const o=A;for(const{item:n}of t[o(500)](e))if(n.is(o(460),o(447)))return n;return null}function V(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(460),e(507))&&o[e(463)](n[e(442)](e(422)));return Array[e(476)](o)}var N=o(311),O=o(355),R=o(929),K=o.n(R),M=o(297),j=o.n(M),B=o(102),U=o.n(B),z=o(123),W=o.n(z),H=o(741),q=o.n(H),J=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=U().bind(null,"head"),X.domAPI=j(),X.insertStyleElement=q();K()(J.A,X);J.A&&J.A.locals&&J.A.locals;class Q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,N.ButtonView)),e.add("menuBar:insertFootnote",Z(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"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"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var G=Y;function $(){var t=["2875080SoZldu","6349563dwaUhq","28ZhptIe","353731vSPMOk","isPremiumPlugin","336190OkWBPt","isOfficialPlugin","65139ZOyjxW","6bvUSFu","100048hNImGZ","requires","pluginName","Footnotes","158833NQuEVb"];return($=function(){return t})()}function Y(t,e){var o=$();return(Y=function(t,e){return o[t-=175]})(t,e)}!function(t){for(var e=Y,o=t();;)try{if(185169===parseInt(e(186))/1+-parseInt(e(182))/2+parseInt(e(180))/3*(-parseInt(e(175))/4)+-parseInt(e(178))/5*(parseInt(e(181))/6)+-parseInt(e(176))/7+-parseInt(e(187))/8+parseInt(e(188))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[G(184)](){return G(185)}static get[G(183)](){return[I,T,Q]}static get[G(179)](){return!0}static get[G(177)](){return!0}}const et=nt;function ot(){const t=["5MVqQKM","decimal","lower-alpha","55363hcpMfK","upper-roman","413750gZIVSJ","upper-alpha","626421hkUhUi","542978PvJSgE","2445846hmlplP","upper-latin","lower-roman","decimal-leading-zero","2293236XKsdjc","120Qoukta","lower-latin","5823621nLLayP"];return(ot=function(){return t})()}function nt(t,e){const o=ot();return(nt=function(t,e){return o[t-=101]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(296220===parseInt(e(109))/1+-parseInt(e(112))/2+-parseInt(e(111))/3+-parseInt(e(117))/4+-parseInt(e(104))/5*(-parseInt(e(113))/6)+parseInt(e(107))/7*(-parseInt(e(101))/8)+parseInt(e(103))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const it=[et(105),et(116),et(102),et(114),et(106),et(110),et(115),et(108)];function st(){const t=["499kXzTYj","24UcIQYG","22203qDsAyI","setAttribute","93532kprDBM","860dhymFU","footnotesListStyle","805025VduSnw","getAttribute","_updateFootnotesCounters","model","refresh","18RNRxLB","plugins","includes","isEnabled","509217xlJEiJ","change","3858suKvyS","40188SDwFLF","get","502306owToIM","execute","value","getFootnotesDefinitionsObjectElement","4609oPBHcy"];return(st=function(){return t})()}const rt=at;function at(t,e){const o=st();return(at=function(t,e){return o[t-=295]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(662913===parseInt(e(296))/1*(parseInt(e(314))/2)+parseInt(e(312))/3+parseInt(e(300))/4+parseInt(e(303))/5*(parseInt(e(308))/6)+parseInt(e(317))/7*(parseInt(e(297))/8)+-parseInt(e(298))/9*(-parseInt(e(301))/10)+parseInt(e(295))/11*(-parseInt(e(315))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class ct extends t.Command{[rt(307)](){const t=rt,{editor:e}=this,o=e[t(309)][t(316)](p)[t(320)]();this[t(311)]=!!o,this[t(319)]=o?.[t(304)](t(302))??null}[rt(318)]({value:t}){const e=rt,{editor:o}=this,n=o[e(309)][e(316)](p),i=n[e(320)]();i&&it[e(310)](t)&&o[e(306)][e(313)](o=>{const s=e;o[s(299)](s(302),t,i),n[s(305)](o)})}}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=328]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(238671===parseInt(e(343))/1+-parseInt(e(330))/2*(-parseInt(e(337))/3)+parseInt(e(333))/4+parseInt(e(349))/5+parseInt(e(345))/6*(-parseInt(e(346))/7)+parseInt(e(344))/8+-parseInt(e(339))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(332)](){const t=lt,{editor:e}=this,o=e[t(348)][t(347)](p)[t(336)]();this[t(338)]=!!o,this[t(342)]=o?.[t(329)](t(335))??null}[lt(341)]({value:t}){const e=lt,{editor:o}=this,n=o[e(348)][e(347)](p),i=n[e(336)]();i&&Number[e(340)](t)&&o[e(350)][e(334)](o=>{const s=e;o[s(331)](s(335),t,i),n[s(328)](o)})}}function dt(){const t=["_updateFootnotesCounters","getAttribute","32586YkfQUf","setAttribute","refresh","1407452yxObCY","change","footnotesListStart","getFootnotesDefinitionsObjectElement","42tVFIrH","isEnabled","3974688aQQAEl","isInteger","execute","value","277300vpkwlK","386352SkIeoh","6690IGeUCe","2569BMVrQJ","get","plugins","919745AuFNsB","model"];return(dt=function(){return t})()}function pt(t,e){const o=mt();return(pt=function(t,e){return o[t-=459]})(t,e)}const ht=pt;function mt(){const t=["7gbCSNr","plugins","getChanges","footnotes-list","footnotesDefinitions","lower-alpha","commands","item","fromCharCode","_getDefaultListStyle","footnotesStart","$text","attribute:footnotesListStyle:footnotesDefinitions","registerPostFixer","getAttribute","max","padStart","modelCursor","find","editor","_defineSchema","define","position","9Mgawrk","5857064izJbzQ","upcast","consume","146058gZdDLo","footnotes.footnotesProperties.defaultListStyle","decimal-leading-zero","36uqaoEI","footnotesListStart","for","getChildren","schema","55ZpenhR","pluginName","removeStyle","parent","floor","_formatFootnoteListValue","model","document","viewItem","toViewElement","from","start","insert","setAttribute","15728193dTsCnB","isOfficialPlugin","lower-roman","parseInt","footnotesListStyle","list-style-type","downcast","writer","_getDefaultStartIndex","attribute:footnotesListStart:footnotesDefinitions","type","681XspLct","setFootnoteFormatter","getStyle","_defineConverters","element:ol","setStyle","element","consumable","createRangeOn","_definePostfixer","add","FootnotesPropertiesEditing","differ","isNaN","name","lower-latin","removeAttribute","checkAttribute","isPremiumPlugin","hasClass","upper-roman","_updateFootnotesCounters","getItems","extend","mapper","790892WrqHnr","nodeAfter","footnotes.footnotesProperties.defaultStartIndex","8536cKqpuL","upper-latin","get","init","9600490ojLInT","footnotesStyle","config","toUpperCase","decimal","2vuKrmV","toLowerCase","1921546kROwJk","requires","hasAttribute","upper-alpha","_defineFormatter"];return(mt=function(){return t})()}!function(t){const e=pt,o=t();for(;;)try{if(496588===parseInt(e(525))/1*(parseInt(e(513))/2)+-parseInt(e(488))/3*(parseInt(e(516))/4)+parseInt(e(463))/5*(-parseInt(e(559))/6)+parseInt(e(532))/7*(parseInt(e(556))/8)+-parseInt(e(555))/9*(parseInt(e(520))/10)+-parseInt(e(527))/11*(parseInt(e(562))/12)+parseInt(e(477))/13)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(mt);class gt extends t.Plugin{static get[ht(464)](){return ht(499)}static get[ht(528)](){return[I,p]}static get[ht(478)](){return!0}static get[ht(506)](){return!0}[ht(519)](){const t=ht,{editor:e}=this;e[t(522)][t(553)](t(560),t(524)),e[t(522)][t(553)](t(515),1),e[t(538)][t(498)](t(521),new ct(e)),e[t(538)][t(498)](t(542),new ft(e)),this[t(552)](),this[t(491)](),this[t(531)](),this[t(497)]()}[ht(552)](){const t=ht,{editor:e}=this,{schema:o}=e[t(469)];o[t(511)](t(536),{allowAttributes:[t(481),t(459)]})}[ht(491)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(460)](t(557))[t(498)](e=>{const o=t;e.on(o(492),(t,e,n)=>{const s=o,r=e[s(471)],a=e[s(549)]?.[s(466)];r[s(507)](s(535))&&a?.is(s(494),s(536))&&(function(t,e,o,n){const i=s;if(!n[i(505)](e,i(459)))return;let r=1;const a=o[i(495)][i(558)](t,{attributes:i(474)});if(a){const e=Number[i(480)](t[i(546)](i(474)),10);Number[i(501)](e)||(r=e)}!a&&e[i(529)](i(459))||o[i(484)][i(476)](i(459),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(505)](e,i(481)))return;let r=i(524),a=!1;if(o[i(495)][i(558)](t,{attributes:i(487)})){const e={1:i(524),a:i(537),A:i(530),i:i(479),I:i(508)}[t[i(546)](i(487))];e&&(r=e),a=!0}o[i(495)][i(558)](t,{styles:i(482)})&&(r=function(t){const e=i;switch(t){case e(537):return e(503);case e(530):return e(517);default:return t}}(t[i(490)](i(482))),a=!0),!a&&e[i(529)](i(481))||o[i(484)][i(476)](i(481),r,e)}(r,a,n,i))})}),o[t(460)](t(483))[t(498)](e=>{const o=t;e.on(o(486),(t,e,n)=>{const i=o;if(!n[i(495)][i(558)](e[i(539)],t[i(502)]))return;const s=wt(e[i(539)],n[i(512)]),{attributeNewValue:r}=e;null==r||1===r?n[i(484)][i(504)](i(474),s):n[i(484)][i(476)](i(474),String(r),s)}),e.on(o(544),(t,e,n)=>{const i=o;if(!n[i(495)][i(558)](e[i(539)],t[i(502)]))return;const s=wt(e[i(539)],n[i(512)]),{attributeNewValue:r}=e;r&&i(524)!==r?n[i(484)][i(493)](i(482),r,s):n[i(484)][i(465)](i(482),s)})})}[ht(497)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(533)][t(518)](p),i=this[t(541)](),s=this[t(485)]();o[t(470)][t(545)](e=>{const r=t,a=o[r(470)][r(500)][r(534)]();let c=!1;for(const t of a){if(r(475)!==t[r(487)]||r(543)===t[r(502)])continue;const n=o[r(496)](t[r(554)][r(514)]);for(const t of n[r(510)]())t.is(r(494),r(536))&&(!t[r(529)](r(459))&&o[r(462)][r(505)](t,r(459))&&(e[r(476)](r(459),s,t),c=!0),!t[r(529)](r(481))&&o[r(462)][r(505)](t,r(481))&&(e[r(476)](r(481),i,t),c=!0))}return c&&n[r(509)](e),c})}[ht(531)](){const t=ht,{editor:e}=this;e[t(533)][t(518)](p)[t(489)](e=>this[t(468)](e))}[ht(541)](){const t=ht;return this[t(551)][t(522)][t(518)](t(560))}[ht(485)](){const t=ht;return this[t(551)][t(522)][t(518)](t(515))}[ht(468)]({container:t,value:e,digits:o}){const n=ht,i=t[n(546)](n(481)),s=t[n(546)](n(459)),r=Math[n(467)](e)+(s??1)-1;switch(i){case n(561):return function(t,e){const o=n;return String(t)[o(548)](e,"0")}(r,Math[n(547)](2,o));case n(537):case n(503):return yt(r,!1);case n(530):case n(517):return yt(r,!0);case n(479):return It(r,!1);case n(508):return It(r,!0);default:return String(r)}}}function wt(t,e){const o=ht,n=e[o(472)](t);return Array[o(473)](n[o(461)]())[o(550)](t=>t.is(o(494),"ol")&&t[o(507)](o(535)))}function yt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(540)](97+t)+n,i=Math[o(467)]((i-1)/26)}return e?n[o(523)]():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 It(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(526)]()}class vt extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=U().bind(null,"head"),Ct.domAPI=j(),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[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.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:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Et=xt;function xt(t,e){var o=St();return(xt=function(t,e){return o[t-=162]})(t,e)}function St(){var t=["90801AGUSZC","10qCPZBK","2135500WyQeWS","requires","9848GGPhhm","76SMvDzs","264488tilela","1855035cfWzQH","isOfficialPlugin","FootnotesProperties","isPremiumPlugin","161DHVomU","2732466LeFIoK","pluginName","29iNyWAI","34066692YuNmiX"];return(St=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(715313===parseInt(e(166))/1*(-parseInt(e(172))/2)+-parseInt(e(168))/3*(parseInt(e(173))/4)+parseInt(e(169))/5*(-parseInt(e(164))/6)+parseInt(e(163))/7*(-parseInt(e(174))/8)+-parseInt(e(175))/9+parseInt(e(170))/10+parseInt(e(167))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Pt extends t.Plugin{static get[Et(165)](){return Et(177)}static get[Et(171)](){return[gt,Ft]}static get[Et(176)](){return!0}static get[Et(162)](){return!0}}function At(){var t=["50wJLowr","7EdkaGa","30896gQmdEa","1827RyEMQX","162166ItdTMD","65EkKHzN","3940tsAUyt","22908HbkLpe","1529973bscUKZ","1146mSjotA","5948701AVXQcB","34726584msimlA"];return(At=function(){return t})()}function _t(t,e){var o=At();return(_t=function(t,e){return o[t-=412]})(t,e)}!function(t){for(var e=_t,o=t();;)try{if(583221===parseInt(e(416))/1*(-parseInt(e(419))/2)+-parseInt(e(412))/3*(parseInt(e(421))/4)+-parseInt(e(420))/5*(parseInt(e(422))/6)+-parseInt(e(418))/7*(parseInt(e(417))/8)+-parseInt(e(423))/9*(parseInt(e(415))/10)+parseInt(e(413))/11+parseInt(e(414))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(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:()=>T,FootnotesEditing:()=>I,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>p,FootnotesUI:()=>Q,InsertFootnoteCommand:()=>y});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["reset","root","_trackedElements","getChanges","values","getElementKey","1WJoibl","remove","createRangeOn","6976635XEcUiI","position","26401122SqUFuf","clear","attributes","rootName","_getElementKey","_model","length","7376152iBmNiU","insert","1300174zxZlPR","258EzBBfq","name","4117284nBXJpR","set","getItems","push","elementName","delete","_elementName","$text","109476irIapp","132321FHccuO","has","get","slice","from","type","$graveyard","flat","add","element","nodeAfter"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=486]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(733969===parseInt(e(502))/1*(parseInt(e(516))/2)+-parseInt(e(519))/3+parseInt(e(527))/4+-parseInt(e(505))/5+parseInt(e(517))/6*(parseInt(e(528))/7)+-parseInt(e(514))/8+parseInt(e(507))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(512)];[r(525)];[r(511)];[r(498)]=new Map;constructor(t,e){const o=r;this[o(512)]=t,this[o(525)]=e[o(523)],this[o(511)]=e[o(501)]}[r(496)](){const t=r;this[t(498)][t(508)]()}[r(499)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(515)===i[e(490)]&&e(526)!==i[e(518)]&&i[e(506)][e(495)]){const t=this[e(512)][e(504)](i[e(506)][e(495)]);for(const o of t[e(521)]()){if(!o.is(e(494),this[e(525)]))continue;const t=this[e(511)](o);n[e(486)](t)||n[e(520)](t,[]),n[e(487)](t)[e(522)](o)}}if(e(503)===i[e(490)]&&i[e(518)]===this[e(525)]){const t=this[e(511)]({getAttribute:t=>i[e(509)][e(487)](t)});o[e(493)](t)}}for(const[t,n]of this[e(498)])e(491)===n[e(497)][e(510)]&&o[e(493)](t);for(const t of o)this[e(498)][e(524)](t);for(const[t,o]of n)this[e(498)][e(520)](t,o[o[e(513)]-1]);const i=new Set;for(const[t,s]of n)o[e(486)](t)&&(i[e(493)](s[0]),s[e(513)]>1?n[e(520)](t,s[e(488)](1)):n[e(524)](t),o[e(524)](t));return{removed:Array[e(489)](o),inserted:Array[e(489)](n[e(500)]())[e(492)](),moved:Array[e(489)](i)}}}const u=f;function f(t,e){const o=d();return(f=function(t,e){return o[t-=288]})(t,e)}function d(){const t=["_handleFootnotesDefinitionsObjectSync","push","isOfficialPlugin","1213752XxUUvO","getFootnotesDefinitionsObjectElement","init","footnoteRef","footnoteCounter","reset","_sortFootnoteDefinitions","isPremiumPlugin","getChanges","min","setAttribute","67015IkvPVY","_footnoteDefsContainerTracker","change:data","paragraph","set","footnoteId","createElement","getRootNames","_handleFootnoteReferencesChanges","FootnotesTracker","_updateFootnoteRefCounter","4096024jLFqow","singleton","model","108252HQsjmh","after","setFootnoteFormatter","rootName","before","createRangeOn","pluginName","document","parent","compareWith","1507JMzuzI","footnotesDefinitions","length","indexOf","footnoteInlineContent","createPositionAt","get","_footnotes","_footnoteDefsTracker","footnotes.multiBlock","getFootnotes","footnoteDefinition","end","createPositionBefore","isEqual","_handleRemoveFootnoteReferenceById","getFootnotesFormatter","getChildren","7GybiUC","append","createRangeIn","find","enqueueChange","add","12AXzfiE","_footnoteRefsTracker","childCount","move","high","root","_updateFootnotesCounters","getAttribute","_handleMovedFootnoteReference","config","_handleFootnoteDefinitionsChanges","561835ONJnfU","_handleInsertedFootnoteReference","$graveyard","has","splice","48098cMgzEY","10ZbSTPT","_handleFootnotesDefinitionsObjectChanges","findIndex","_footnotesDefinitions","remove","low","unshift","_insertEmptyFootnotesDefinitionsContainer","editor","_ensureFootnotesDefinitionsContainerExists","registerPostFixer","reference","definition","getFootnote","_footnoteFormatter","insert","4402674ngtktx","264PBZruh","from","some","_ensureFootnotesReferencesHaveProperOrder","listenTo","map","differ"];return(d=function(){return t})()}!function(t){const e=f,o=t();for(;;)try{if(314369===-parseInt(e(315))/1+-parseInt(e(320))/2*(parseInt(e(304))/3)+parseInt(e(348))/4+-parseInt(e(359))/5*(parseInt(e(338))/6)+parseInt(e(298))/7*(parseInt(e(370))/8)+parseInt(e(337))/9*(-parseInt(e(321))/10)+-parseInt(e(383))/11*(-parseInt(e(373))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class p extends t.Plugin{[u(390)]=[];[u(324)]=null;[u(335)]=null;[u(360)];[u(305)];[u(288)];static get[u(379)](){return u(368)}static get[u(347)](){return!0}static get[u(355)](){return!0}constructor(t){const e=u;super(t),this[e(360)]=new l(this[e(329)][e(372)],{elementName:e(384),getElementKey:()=>e(371)}),this[e(305)]=new l(this[e(329)][e(372)],{elementName:e(351),getElementKey:t=>t[e(311)](e(364))}),this[e(288)]=new l(this[e(329)][e(372)],{elementName:e(291),getElementKey:t=>t[e(311)](e(364))})}[u(350)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(380)][t(331)](e=>{const n=t,i=o[n(380)][n(344)][n(356)]();let s=!1;return this[n(322)](e,i)&&(s=!0),this[n(314)](e,i)&&(s=!0),this[n(367)](e,i)&&(s=!0),this[n(341)](e)&&(s=!0),this[n(345)](e)&&(s=!0),this[n(354)](e)&&(s=!0),s}),this[t(342)](o[t(380)],t(361),()=>{const e=t;o[e(302)]({isUndoable:!1},t=>{this[e(330)](t)})},{priority:t(326)}),this[t(342)](n,t(363),()=>{const e=t;this[e(390)]=[],this[e(360)][e(353)](),this[e(305)][e(353)](),this[e(288)][e(353)]()},{priority:t(308)})}[u(349)](){return this[u(324)]}[u(334)](t){const e=u;return this[e(390)][e(301)](e=>e.id===t)||null}[u(290)](){const t=u;return Array[t(339)](this[t(390)])}[u(296)](){return this[u(335)]}[u(375)](t){this[u(335)]=t}[u(310)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(390)][o(385)];i++)this[o(369)](t,i)&&(n=!0);return n}[u(328)](t,e){const o=u,n=t[o(365)](o(384),{});return t[o(299)](n,e),this[o(324)]=n,n}[u(330)](t){const e=u;if(!this[e(390)][e(385)]||this[e(324)])return;const o=this[e(390)][0][e(332)][e(309)],n=this[e(328)](t,o);for(const o of this[e(390)])o[e(333)][e(381)]||t[e(336)](o[e(333)],n,e(292));this[e(310)](t)}[u(322)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(360)][o(356)](e);if(r[o(385)]&&(this[o(324)]=r[0]),i[o(385)])if(i[o(385)]>1||this[o(324)]&&i[o(340)](t=>t!==this[o(324)])){const e=t[o(365)](o(384),{}),s=[];this[o(324)]&&s[o(346)](this[o(324)]),s[o(346)](...i),t[o(336)](e,s[0],o(377));for(const n of s)t[o(307)](t[o(300)](n),t[o(388)](e,o(292))),t[o(325)](n);this[o(324)]=e,this[o(310)](t),n=!0}else this[o(324)]=i[0];if(s[o(385)]&&o(317)===this[o(324)]?.[o(309)][o(376)]){for(const e of this[o(390)])t[o(325)](e[o(332)]),n=!0;this[o(390)]=[],this[o(324)]=null}return n}[u(314)](t,e){const o=u;let n=!1;const i=this[o(329)][o(313)][o(389)](o(289)),{inserted:s,moved:r}=this[o(288)][o(356)](e);for(const e of[...r,...s]){const s=e[o(311)](o(364)),r=this[o(334)](s);r&&(r[o(333)]=e),h(t,i,e)&&(n=!0)}return n}[u(367)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(305)][o(356)](e);for(const e of i)this[o(295)](t,e)&&(n=!0);for(const e of s)this[o(316)](t,e)&&(n=!0);for(const e of r)this[o(312)](t,e)&&(n=!0);return n}[u(345)](t){const e=u;if(!this[e(324)])return!1;let o=!1;if(this[e(324)][e(306)]!==this[e(390)][e(385)]){const n=[];for(const t of this[e(324)][e(297)]()){const i=t[e(311)](e(364));this[e(334)](i)||(n[e(327)](t),o=!0)}for(const o of n)t[e(325)](o)}const n=new Set,i=[];for(const t of this[e(324)][e(297)]()){const s=t[e(311)](e(364));n[e(318)](s)?(i[e(327)](t),o=!0):n[e(303)](s)}for(const o of i)t[e(325)](o);return this[e(324)][e(306)]||(t[e(325)](this[e(324)]),this[e(324)]=null,o=!0),o}[u(316)](t,e){const o=u;if(this[o(390)][o(301)](t=>t[o(332)]===e))return!1;let n=!1;const i=e[o(311)](o(364)),s=this[o(390)][o(323)](t=>t.id===i);-1!==s&&(t[o(325)](this[o(390)][s][o(332)]),this[o(390)][o(319)](s,1),n=!0);let r=this[o(324)]?function(t,e){const n=o;for(const o of t[n(297)]())if(o[n(311)](n(364))===e)return o;return null}(this[o(324)],i):null;r||(r=t[o(365)](o(291),{footnoteId:i}),this[o(324)]&&(t[o(336)](r,this[o(324)],o(292)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(329)][o(372)],this[o(390)],e);this[o(390)][o(319)](c,0,a);let l=c;return-1!==s&&(l=Math[o(357)](c,s)),this[o(310)](t,l)&&(n=!0),n}[u(295)](t,e){const o=u,n=this[o(390)][o(323)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(390)][n];return o(317)!==s[o(333)][o(309)][o(376)]&&(t[o(325)](s[o(333)]),i=!0),this[o(390)][o(319)](n,1),this[o(310)](t,n)&&(i=!0),i}[u(312)](t,e){const o=u,n=e[o(311)](o(364)),i=this[o(390)][o(323)](t=>t.id===n),s=this[o(390)][i];let r=!1;s[o(332)]=e,this[o(390)][o(319)](i,1);const a=m(this[o(329)][o(372)],this[o(390)],e);return this[o(390)][o(319)](a,0,s),this[o(310)](t,Math[o(357)](i,a))&&(r=!0),r}[u(369)](t,e){const o=u;if(!this[o(324)])return!1;const n=this[o(390)][e];let i;return i=this[o(335)]?this[o(335)]({footnote:n,container:this[o(324)],digits:String(this[o(390)][o(385)])[o(385)],value:e+1}):String(e+1),n[o(332)][o(311)](o(352))!=i&&(t[o(358)](o(352),i,n[o(332)]),!0)}[u(354)](t){const e=u;if(!this[e(324)]||this[e(390)][e(385)]<2)return!1;if(function(t,o){const n=e;if(t[n(385)]!==o[n(385)])return!1;for(let e=0;e<t[n(385)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(390)][e(343)](t=>t.id),Array[e(339)](this[e(324)][e(297)]())[e(343)](t=>t[e(311)](e(364)))))return!1;let o=!1;for(let n=0;n<this[e(390)][e(385)];n++){const i=this[e(390)][n],s=t[e(293)](i[e(333)]),r=t[e(388)](this[e(324)],n);s[e(294)](r)||(t[e(307)](t[e(378)](i[e(333)]),r),o=!0)}return o}[u(341)](t){const e=u;if(!this[e(390)][e(385)])return!1;const{model:o}=this[e(329)];let n=!1;for(let i=0;i<this[e(390)][e(385)]-1;i++){const s=this[e(390)][i],r=this[e(390)][i+1],a=o[e(293)](s[e(332)]),c=o[e(293)](r[e(332)]);e(374)===a[e(382)](c)&&(this[e(312)](t,s[e(332)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=u;if(o[n(306)])return!1;const i=n(e?362:387);return t[n(336)](t[n(365)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(385)])return 0;const i=t[n(293)](o);for(let o=0;o<e[n(385)];o++){const s=e[o],r=t[n(293)](s[n(332)]);if(n(377)===i[n(382)](r))return o}const s=o[n(309)];let r=-1;for(let t=e[n(385)]-1;t>=0;t--)if(e[t][n(332)][n(309)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(380)][n(366)](),c=a[n(386)](s[n(376)]),l=a[c+1];if(l)for(let t=0;t<e[n(385)];t++)if(e[t][n(332)][n(309)][n(376)]===l)return t;return e[n(385)]}const g=w;function w(t,e){const o=b();return(w=function(t,e){return o[t-=430]})(t,e)}!function(t){const e=w,o=t();for(;;)try{if(141963===-parseInt(e(460))/1*(parseInt(e(453))/2)+-parseInt(e(456))/3*(-parseInt(e(461))/4)+-parseInt(e(438))/5*(-parseInt(e(437))/6)+-parseInt(e(459))/7+-parseInt(e(433))/8*(-parseInt(e(466))/9)+-parseInt(e(432))/10+-parseInt(e(431))/11*(-parseInt(e(451))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class y extends t.Command{[g(434)](){const t=g,e=this[t(468)][t(467)][t(455)][t(457)],o=this[t(463)](e);this[t(441)]=!!o}[g(446)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(455)],r=this[e(463)](s);if(!r)return;const a=o[e(448)][e(435)](e(444)),c=t?.[e(454)]??(0,i.uid)();!function(t){const o=e;return o(449)==typeof t&&t[o(447)]>0&&!/\s/[o(462)](t)&&!/^\d/[o(462)](t)}(c)?(0,i.logWarning)(e(452)):(n[e(439)](t=>{const o=e,i=t[o(442)](o(430),{footnoteId:c});n[o(443)](i,r,null)}),a[e(445)](c))}[g(463)](t){const e=g,{model:o}=this[e(468)],{schema:n}=o,i=t[e(458)]();for(const t of i[e(450)]())if(n[e(464)](t)||n[e(440)](t))return null;const s=i[e(465)];return n[e(436)](s,e(430))?s:null}}function b(){const t=["2234660wbgdrM","1216wgkAwz","refresh","get","checkChild","20994RNqhMu","280Sryedf","change","isObject","isEnabled","createElement","insertObject","FootnotesEditing","_moveSelectionToFootnoteDefinition","execute","length","plugins","string","getItems","144NvDcOj","insert-footnote-command-executed-with-invalid-id","3436oUNXyl","footnoteId","document","55101ZcWsGo","selection","getFirstRange","396067NDeAvu","73nkzUYU","16OXJnoX","test","_getPositionToInsertFootnote","isBlock","end","2439nrFiCF","model","editor","footnoteRef","217085KVOezA"];return(b=function(){return t})()}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[p]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new y(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=h([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[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([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]),[h([121])]:h([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]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],u(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?f(u(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+f(u(t)),n=d(f(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+f(u(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([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(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1767916800;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>x(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)(x(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})=>E(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=E(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:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:v()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function E(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 x(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=_;function _(t,e){const o=D();return(_=function(t,e){return o[t-=421]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(606070===parseInt(e(467))/1*(parseInt(e(505))/2)+-parseInt(e(506))/3*(-parseInt(e(436))/4)+parseInt(e(454))/5*(-parseInt(e(484))/6)+-parseInt(e(478))/7*(parseInt(e(461))/8)+parseInt(e(462))/9*(parseInt(e(432))/10)+-parseInt(e(494))/11+parseInt(e(481))/12*(-parseInt(e(421))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class T extends t.Plugin{static get[A(449)](){return A(493)}static get[A(441)](){return[I,P.ClipboardPipeline]}static get[A(488)](){return!0}static get[A(451)](){return!0}[A(438)](){this[A(502)]()}[A(502)](){const t=A;this[t(434)](),this[t(499)]()}[A(434)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(472)](P.ClipboardPipeline),s=o[t(472)](p);this[t(450)](i,t(456),(o,i)=>{const r=t,a=V(n[r(500)](i[r(479)]));if(!a[r(480)])return;const c=s[r(430)](),l=a[r(475)]((t,o)=>{const n=r,i=c[n(486)](t=>t.id===o);if(i){const o=e[n(437)][n(429)](i[n(497)],{isClipboardPipeline:!0}),s=e[n(437)][n(452)][n(469)](o);t[i.id]=s}return t},Object[r(491)](null));i[r(489)][r(455)](r(504),JSON[r(444)](l))})}[A(499)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(495)],r=n[t(472)](P.ClipboardPipeline),a=n[t(472)](p),c=e[t(470)][t(472)](t(492));let l=null;this[t(450)](s[t(473)],t(474),(e,o)=>{const n=t,i=o[n(489)][n(477)](n(504));l=i?JSON[n(426)](i):null}),this[t(450)](r,t(433),(n,s)=>{const r=t,u=s[r(425)]===this[r(501)].id;u&&r(483)===s[r(424)]||o[r(498)](t=>{const n=r;let f=a[n(465)]();const d=!!f&&Array[n(476)](o[n(473)][n(445)][n(490)]())[n(448)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(460),e(507)))return!0;return!1}(o[n(500)](s[n(479)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(491)](null);for(const e of i[o(457)]())e.is(o(460),o(423))&&e[o(466)](o(422))&&(s[e[o(442)](o(422))]=t[o(439)](e,!0));return Object[o(458)](s)[o(480)]?s:null}(t,s[n(479)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(500)](e))n.is(o(460),o(447))&&i[o(485)](n);for(const e of i)t[o(496)](e)}(t,s[n(479)]),!l)return;const{selection:p}=o[n(473)],h=p[n(482)]()[n(468)];f&&!d||(f=L(t,s[n(479)]),f||=a[n(487)](t,h));const m=Array[n(476)](p[n(464)]())[n(446)](V),g=function(t,e,o){const s=n,r=Object[s(491)](null);for(const{item:n}of t[s(500)](e))if(n.is(s(460),s(507))){const e=n[s(442)](s(422));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(443)](s(422),r[e],n)}return r}(t,s[n(479)],t=>{const e=n;return!u||!!a[e(453)](t)&&!m[e(448)](t)});for(const[o,i]of Object[n(427)](l)){const s=g[o]||o;let r;if(n(435)!=typeof i)r=i,s!==o&&t[n(443)](n(422),s,r);else{r=t[n(431)](n(423),{footnoteId:s});const o=e[n(437)][n(452)][n(429)](i);let a;if(c)a=e[n(437)][n(459)](o,r);else{a=t[n(431)](n(471));const i=e[n(437)][n(459)](o,a);t[n(503)](i,a)}t[n(440)](a,r)}t[n(503)](r,f,n(428))}l=null})})}}function D(){const t=["editing","remove","definition","change","_handlePasteFootnotesDefinitions","createRangeIn","editor","_defineClipboardIntegration","insert","application/ckeditor5-footnotes","50Aftazv","561864izWnAL","footnoteRef","13PmUVoo","footnoteId","footnoteDefinition","method","sourceEditorId","parse","entries","end","toView","getFootnotes","createElement","10cVJsnH","contentInsertion","_handleCopyFootnotesDefinitions","string","24tqdWuR","data","init","cloneElement","append","requires","getAttribute","setAttribute","stringify","selection","flatMap","footnotesDefinitions","includes","pluginName","listenTo","isPremiumPlugin","htmlProcessor","getFootnote","15750VmFJGB","setData","outputTransformation","getChildren","keys","toModel","element","104eCeIKN","2127663zGQfEE","add","getRanges","getFootnotesDefinitionsObjectElement","hasAttribute","48161mVvxHN","root","toData","config","footnoteInlineContent","get","document","clipboardInput","reduce","from","getData","146006uzwDzk","content","length","13637484OCprKZ","getFirstRange","drop","858cqbbaa","push","find","_insertEmptyFootnotesDefinitionsContainer","isOfficialPlugin","dataTransfer","getSelectedBlocks","create","footnotes.multiBlock","FootnotesClipboard","1100319IyBJKY"];return(D=function(){return t})()}function L(t,e){const o=A;for(const{item:n}of t[o(500)](e))if(n.is(o(460),o(447)))return n;return null}function V(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(460),e(507))&&o[e(463)](n[e(442)](e(422)));return Array[e(476)](o)}var N=o(311),O=o(355),R=o(929),K=o.n(R),M=o(297),j=o.n(M),B=o(102),U=o.n(B),z=o(123),W=o.n(z),H=o(741),q=o.n(H),J=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=U().bind(null,"head"),X.domAPI=j(),X.insertStyleElement=q();K()(J.A,X);J.A&&J.A.locals&&J.A.locals;class Q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,N.ButtonView)),e.add("menuBar:insertFootnote",Z(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"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"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var G=Y;function $(){var t=["2875080SoZldu","6349563dwaUhq","28ZhptIe","353731vSPMOk","isPremiumPlugin","336190OkWBPt","isOfficialPlugin","65139ZOyjxW","6bvUSFu","100048hNImGZ","requires","pluginName","Footnotes","158833NQuEVb"];return($=function(){return t})()}function Y(t,e){var o=$();return(Y=function(t,e){return o[t-=175]})(t,e)}!function(t){for(var e=Y,o=t();;)try{if(185169===parseInt(e(186))/1+-parseInt(e(182))/2+parseInt(e(180))/3*(-parseInt(e(175))/4)+-parseInt(e(178))/5*(parseInt(e(181))/6)+-parseInt(e(176))/7+-parseInt(e(187))/8+parseInt(e(188))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[G(184)](){return G(185)}static get[G(183)](){return[I,T,Q]}static get[G(179)](){return!0}static get[G(177)](){return!0}}const et=nt;function ot(){const t=["5MVqQKM","decimal","lower-alpha","55363hcpMfK","upper-roman","413750gZIVSJ","upper-alpha","626421hkUhUi","542978PvJSgE","2445846hmlplP","upper-latin","lower-roman","decimal-leading-zero","2293236XKsdjc","120Qoukta","lower-latin","5823621nLLayP"];return(ot=function(){return t})()}function nt(t,e){const o=ot();return(nt=function(t,e){return o[t-=101]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(296220===parseInt(e(109))/1+-parseInt(e(112))/2+-parseInt(e(111))/3+-parseInt(e(117))/4+-parseInt(e(104))/5*(-parseInt(e(113))/6)+parseInt(e(107))/7*(-parseInt(e(101))/8)+parseInt(e(103))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const it=[et(105),et(116),et(102),et(114),et(106),et(110),et(115),et(108)];function st(){const t=["499kXzTYj","24UcIQYG","22203qDsAyI","setAttribute","93532kprDBM","860dhymFU","footnotesListStyle","805025VduSnw","getAttribute","_updateFootnotesCounters","model","refresh","18RNRxLB","plugins","includes","isEnabled","509217xlJEiJ","change","3858suKvyS","40188SDwFLF","get","502306owToIM","execute","value","getFootnotesDefinitionsObjectElement","4609oPBHcy"];return(st=function(){return t})()}const rt=at;function at(t,e){const o=st();return(at=function(t,e){return o[t-=295]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(662913===parseInt(e(296))/1*(parseInt(e(314))/2)+parseInt(e(312))/3+parseInt(e(300))/4+parseInt(e(303))/5*(parseInt(e(308))/6)+parseInt(e(317))/7*(parseInt(e(297))/8)+-parseInt(e(298))/9*(-parseInt(e(301))/10)+parseInt(e(295))/11*(-parseInt(e(315))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class ct extends t.Command{[rt(307)](){const t=rt,{editor:e}=this,o=e[t(309)][t(316)](p)[t(320)]();this[t(311)]=!!o,this[t(319)]=o?.[t(304)](t(302))??null}[rt(318)]({value:t}){const e=rt,{editor:o}=this,n=o[e(309)][e(316)](p),i=n[e(320)]();i&&it[e(310)](t)&&o[e(306)][e(313)](o=>{const s=e;o[s(299)](s(302),t,i),n[s(305)](o)})}}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=328]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(238671===parseInt(e(343))/1+-parseInt(e(330))/2*(-parseInt(e(337))/3)+parseInt(e(333))/4+parseInt(e(349))/5+parseInt(e(345))/6*(-parseInt(e(346))/7)+parseInt(e(344))/8+-parseInt(e(339))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(332)](){const t=lt,{editor:e}=this,o=e[t(348)][t(347)](p)[t(336)]();this[t(338)]=!!o,this[t(342)]=o?.[t(329)](t(335))??null}[lt(341)]({value:t}){const e=lt,{editor:o}=this,n=o[e(348)][e(347)](p),i=n[e(336)]();i&&Number[e(340)](t)&&o[e(350)][e(334)](o=>{const s=e;o[s(331)](s(335),t,i),n[s(328)](o)})}}function dt(){const t=["_updateFootnotesCounters","getAttribute","32586YkfQUf","setAttribute","refresh","1407452yxObCY","change","footnotesListStart","getFootnotesDefinitionsObjectElement","42tVFIrH","isEnabled","3974688aQQAEl","isInteger","execute","value","277300vpkwlK","386352SkIeoh","6690IGeUCe","2569BMVrQJ","get","plugins","919745AuFNsB","model"];return(dt=function(){return t})()}function pt(t,e){const o=mt();return(pt=function(t,e){return o[t-=459]})(t,e)}const ht=pt;function mt(){const t=["7gbCSNr","plugins","getChanges","footnotes-list","footnotesDefinitions","lower-alpha","commands","item","fromCharCode","_getDefaultListStyle","footnotesStart","$text","attribute:footnotesListStyle:footnotesDefinitions","registerPostFixer","getAttribute","max","padStart","modelCursor","find","editor","_defineSchema","define","position","9Mgawrk","5857064izJbzQ","upcast","consume","146058gZdDLo","footnotes.footnotesProperties.defaultListStyle","decimal-leading-zero","36uqaoEI","footnotesListStart","for","getChildren","schema","55ZpenhR","pluginName","removeStyle","parent","floor","_formatFootnoteListValue","model","document","viewItem","toViewElement","from","start","insert","setAttribute","15728193dTsCnB","isOfficialPlugin","lower-roman","parseInt","footnotesListStyle","list-style-type","downcast","writer","_getDefaultStartIndex","attribute:footnotesListStart:footnotesDefinitions","type","681XspLct","setFootnoteFormatter","getStyle","_defineConverters","element:ol","setStyle","element","consumable","createRangeOn","_definePostfixer","add","FootnotesPropertiesEditing","differ","isNaN","name","lower-latin","removeAttribute","checkAttribute","isPremiumPlugin","hasClass","upper-roman","_updateFootnotesCounters","getItems","extend","mapper","790892WrqHnr","nodeAfter","footnotes.footnotesProperties.defaultStartIndex","8536cKqpuL","upper-latin","get","init","9600490ojLInT","footnotesStyle","config","toUpperCase","decimal","2vuKrmV","toLowerCase","1921546kROwJk","requires","hasAttribute","upper-alpha","_defineFormatter"];return(mt=function(){return t})()}!function(t){const e=pt,o=t();for(;;)try{if(496588===parseInt(e(525))/1*(parseInt(e(513))/2)+-parseInt(e(488))/3*(parseInt(e(516))/4)+parseInt(e(463))/5*(-parseInt(e(559))/6)+parseInt(e(532))/7*(parseInt(e(556))/8)+-parseInt(e(555))/9*(parseInt(e(520))/10)+-parseInt(e(527))/11*(parseInt(e(562))/12)+parseInt(e(477))/13)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(mt);class gt extends t.Plugin{static get[ht(464)](){return ht(499)}static get[ht(528)](){return[I,p]}static get[ht(478)](){return!0}static get[ht(506)](){return!0}[ht(519)](){const t=ht,{editor:e}=this;e[t(522)][t(553)](t(560),t(524)),e[t(522)][t(553)](t(515),1),e[t(538)][t(498)](t(521),new ct(e)),e[t(538)][t(498)](t(542),new ft(e)),this[t(552)](),this[t(491)](),this[t(531)](),this[t(497)]()}[ht(552)](){const t=ht,{editor:e}=this,{schema:o}=e[t(469)];o[t(511)](t(536),{allowAttributes:[t(481),t(459)]})}[ht(491)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(460)](t(557))[t(498)](e=>{const o=t;e.on(o(492),(t,e,n)=>{const s=o,r=e[s(471)],a=e[s(549)]?.[s(466)];r[s(507)](s(535))&&a?.is(s(494),s(536))&&(function(t,e,o,n){const i=s;if(!n[i(505)](e,i(459)))return;let r=1;const a=o[i(495)][i(558)](t,{attributes:i(474)});if(a){const e=Number[i(480)](t[i(546)](i(474)),10);Number[i(501)](e)||(r=e)}!a&&e[i(529)](i(459))||o[i(484)][i(476)](i(459),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(505)](e,i(481)))return;let r=i(524),a=!1;if(o[i(495)][i(558)](t,{attributes:i(487)})){const e={1:i(524),a:i(537),A:i(530),i:i(479),I:i(508)}[t[i(546)](i(487))];e&&(r=e),a=!0}o[i(495)][i(558)](t,{styles:i(482)})&&(r=function(t){const e=i;switch(t){case e(537):return e(503);case e(530):return e(517);default:return t}}(t[i(490)](i(482))),a=!0),!a&&e[i(529)](i(481))||o[i(484)][i(476)](i(481),r,e)}(r,a,n,i))})}),o[t(460)](t(483))[t(498)](e=>{const o=t;e.on(o(486),(t,e,n)=>{const i=o;if(!n[i(495)][i(558)](e[i(539)],t[i(502)]))return;const s=wt(e[i(539)],n[i(512)]),{attributeNewValue:r}=e;null==r||1===r?n[i(484)][i(504)](i(474),s):n[i(484)][i(476)](i(474),String(r),s)}),e.on(o(544),(t,e,n)=>{const i=o;if(!n[i(495)][i(558)](e[i(539)],t[i(502)]))return;const s=wt(e[i(539)],n[i(512)]),{attributeNewValue:r}=e;r&&i(524)!==r?n[i(484)][i(493)](i(482),r,s):n[i(484)][i(465)](i(482),s)})})}[ht(497)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(533)][t(518)](p),i=this[t(541)](),s=this[t(485)]();o[t(470)][t(545)](e=>{const r=t,a=o[r(470)][r(500)][r(534)]();let c=!1;for(const t of a){if(r(475)!==t[r(487)]||r(543)===t[r(502)])continue;const n=o[r(496)](t[r(554)][r(514)]);for(const t of n[r(510)]())t.is(r(494),r(536))&&(!t[r(529)](r(459))&&o[r(462)][r(505)](t,r(459))&&(e[r(476)](r(459),s,t),c=!0),!t[r(529)](r(481))&&o[r(462)][r(505)](t,r(481))&&(e[r(476)](r(481),i,t),c=!0))}return c&&n[r(509)](e),c})}[ht(531)](){const t=ht,{editor:e}=this;e[t(533)][t(518)](p)[t(489)](e=>this[t(468)](e))}[ht(541)](){const t=ht;return this[t(551)][t(522)][t(518)](t(560))}[ht(485)](){const t=ht;return this[t(551)][t(522)][t(518)](t(515))}[ht(468)]({container:t,value:e,digits:o}){const n=ht,i=t[n(546)](n(481)),s=t[n(546)](n(459)),r=Math[n(467)](e)+(s??1)-1;switch(i){case n(561):return function(t,e){const o=n;return String(t)[o(548)](e,"0")}(r,Math[n(547)](2,o));case n(537):case n(503):return yt(r,!1);case n(530):case n(517):return yt(r,!0);case n(479):return It(r,!1);case n(508):return It(r,!0);default:return String(r)}}}function wt(t,e){const o=ht,n=e[o(472)](t);return Array[o(473)](n[o(461)]())[o(550)](t=>t.is(o(494),"ol")&&t[o(507)](o(535)))}function yt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(540)](97+t)+n,i=Math[o(467)]((i-1)/26)}return e?n[o(523)]():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 It(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(526)]()}class vt extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=U().bind(null,"head"),Ct.domAPI=j(),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[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.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:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Et=xt;function xt(t,e){var o=St();return(xt=function(t,e){return o[t-=162]})(t,e)}function St(){var t=["90801AGUSZC","10qCPZBK","2135500WyQeWS","requires","9848GGPhhm","76SMvDzs","264488tilela","1855035cfWzQH","isOfficialPlugin","FootnotesProperties","isPremiumPlugin","161DHVomU","2732466LeFIoK","pluginName","29iNyWAI","34066692YuNmiX"];return(St=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(715313===parseInt(e(166))/1*(-parseInt(e(172))/2)+-parseInt(e(168))/3*(parseInt(e(173))/4)+parseInt(e(169))/5*(-parseInt(e(164))/6)+parseInt(e(163))/7*(-parseInt(e(174))/8)+-parseInt(e(175))/9+parseInt(e(170))/10+parseInt(e(167))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Pt extends t.Plugin{static get[Et(165)](){return Et(177)}static get[Et(171)](){return[gt,Ft]}static get[Et(176)](){return!0}static get[Et(162)](){return!0}}function At(){var t=["50wJLowr","7EdkaGa","30896gQmdEa","1827RyEMQX","162166ItdTMD","65EkKHzN","3940tsAUyt","22908HbkLpe","1529973bscUKZ","1146mSjotA","5948701AVXQcB","34726584msimlA"];return(At=function(){return t})()}function _t(t,e){var o=At();return(_t=function(t,e){return o[t-=412]})(t,e)}!function(t){for(var e=_t,o=t();;)try{if(583221===parseInt(e(416))/1*(-parseInt(e(419))/2)+-parseInt(e(412))/3*(parseInt(e(421))/4)+-parseInt(e(420))/5*(parseInt(e(422))/6)+-parseInt(e(418))/7*(parseInt(e(417))/8)+-parseInt(e(423))/9*(parseInt(e(415))/10)+parseInt(e(413))/11+parseInt(e(414))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(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 _0x352caa,Command as _0x6d233a}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x3ba126,isWidget as _0xb08389,toWidgetEditable as _0x509021,WidgetToolbarRepository as _0x6de8f4}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x5a873e,logWarning as _0x4aa6c5,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x33cc45,ClickObserver as _0x3a7578}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x2679f7}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x22563e,ButtonView as _0x2b0496,View as _0x38df8b,ViewCollection as _0x1fa9dc,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x22ed8e,BalloonPanelView as _0x4ecc20,createDropdown as _0x4a9d71}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x4974f4,IconListStyleDecimal as _0x1b04a1,IconListStyleDecimalLeadingZero as _0xfea4bd,IconListStyleLowerRoman as _0x5442f8,IconListStyleUpperRoman as _0x1a412d,IconListStyleLowerLatin as _0x43062d,IconListStyleUpperLatin as _0xd5dc28}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x1f475e,_0xd37367){this['_model']=_0x1f475e,this['_elementName']=_0xd37367['elementName'],this['_getElementKey']=_0xd37367['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x186e04){const _0x4ba496=new Set(),_0x5ab222=new Map();for(const _0x6779fe of _0x186e04){if('insert'===_0x6779fe['type']&&'$text'!==_0x6779fe['name']&&_0x6779fe['position']['nodeAfter']){const _0x50bf47=this['_model']['createRangeOn'](_0x6779fe['position']['nodeAfter']);for(const _0x427d6d of _0x50bf47['getItems']()){if(!_0x427d6d['is']('element',this['_elementName']))continue;const _0x3ccdca=this['_getElementKey'](_0x427d6d);_0x5ab222['has'](_0x3ccdca)||_0x5ab222['set'](_0x3ccdca,[]),_0x5ab222['get'](_0x3ccdca)['push'](_0x427d6d);}}if('remove'===_0x6779fe['type']&&_0x6779fe['name']===this['_elementName']){const _0x204483=this['_getElementKey']({'getAttribute':_0x33a026=>_0x6779fe['attributes']['get'](_0x33a026)});_0x4ba496['add'](_0x204483);}}for(const [_0x2df27d,_0x501110]of this['_trackedElements'])'$graveyard'===_0x501110['root']['rootName']&&_0x4ba496['add'](_0x2df27d);for(const _0x33cf6f of _0x4ba496)this['_trackedElements']['delete'](_0x33cf6f);for(const [_0x5b9af7,_0x216efa]of _0x5ab222)this['_trackedElements']['set'](_0x5b9af7,_0x216efa[_0x216efa['length']-0x1]);const _0xfe821=new Set();for(const [_0x37c18a,_0x1cad90]of _0x5ab222)_0x4ba496['has'](_0x37c18a)&&(_0xfe821['add'](_0x1cad90[0x0]),_0x1cad90['length']>0x1?_0x5ab222['set'](_0x37c18a,_0x1cad90['slice'](0x1)):_0x5ab222['delete'](_0x37c18a),_0x4ba496['delete'](_0x37c18a));return{'removed':Array['from'](_0x4ba496),'inserted':Array['from'](_0x5ab222['values']())['flat'](),'moved':Array['from'](_0xfe821)};}}class f extends _0x352caa{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5edcd5){super(_0x5edcd5),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x14a4e2=>_0x14a4e2['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x41acf5=>_0x41acf5['getAttribute']('footnoteId')});}['init'](){const {editor:_0x3748cb}=this,{model:_0x2a6661,data:_0x40411a}=_0x3748cb;_0x2a6661['document']['registerPostFixer'](_0x3f8c46=>{const _0x148ab4=_0x2a6661['document']['differ']['getChanges']();let _0x40e4d7=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x3f8c46,_0x148ab4)&&(_0x40e4d7=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x3f8c46,_0x148ab4)&&(_0x40e4d7=!0x0),this['_handleFootnoteReferencesChanges'](_0x3f8c46,_0x148ab4)&&(_0x40e4d7=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x3f8c46)&&(_0x40e4d7=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x3f8c46)&&(_0x40e4d7=!0x0),this['_sortFootnoteDefinitions'](_0x3f8c46)&&(_0x40e4d7=!0x0),_0x40e4d7;}),this['listenTo'](_0x2a6661['document'],'change:data',()=>{_0x2a6661['enqueueChange']({'isUndoable':!0x1},_0x2bb95e=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x2bb95e);});},{'priority':'low'}),this['listenTo'](_0x40411a,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x46a42d){return this['_footnotes']['find'](_0x18bb75=>_0x18bb75['id']===_0x46a42d)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x1d6664){this['_footnoteFormatter']=_0x1d6664;}['_updateFootnotesCounters'](_0x6c85d8,_0x1e17fe=0x0){let _0x56e1e4=!0x1;for(let _0x189b12=_0x1e17fe;_0x189b12<this['_footnotes']['length'];_0x189b12++)this['_updateFootnoteRefCounter'](_0x6c85d8,_0x189b12)&&(_0x56e1e4=!0x0);return _0x56e1e4;}['_insertEmptyFootnotesDefinitionsContainer'](_0xcec93b,_0xc6213b){const _0x1ff8c1=_0xcec93b['createElement']('footnotesDefinitions',{});return _0xcec93b['append'](_0x1ff8c1,_0xc6213b),this['_footnotesDefinitions']=_0x1ff8c1,_0x1ff8c1;}['_ensureFootnotesDefinitionsContainerExists'](_0x1483ea){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x25f02a=this['_footnotes'][0x0]['reference']['root'],_0x127e4d=this['_insertEmptyFootnotesDefinitionsContainer'](_0x1483ea,_0x25f02a);for(const _0x1686a2 of this['_footnotes'])_0x1686a2['definition']['parent']||_0x1483ea['insert'](_0x1686a2['definition'],_0x127e4d,'end');this['_updateFootnotesCounters'](_0x1483ea);}['_handleFootnotesDefinitionsObjectChanges'](_0xca92fc,_0x955b4){let _0x4fa092=!0x1;const {inserted:_0x524980,removed:_0x4194b1,moved:_0x102875}=this['_footnoteDefsContainerTracker']['getChanges'](_0x955b4);if(_0x102875['length']&&(this['_footnotesDefinitions']=_0x102875[0x0]),_0x524980['length']){if(_0x524980['length']>0x1||this['_footnotesDefinitions']&&_0x524980['some'](_0x42dca3=>_0x42dca3!==this['_footnotesDefinitions'])){const _0x1b380f=_0xca92fc['createElement']('footnotesDefinitions',{}),_0x328908=[];this['_footnotesDefinitions']&&_0x328908['push'](this['_footnotesDefinitions']),_0x328908['push'](..._0x524980),_0xca92fc['insert'](_0x1b380f,_0x328908[0x0],'before');for(const _0x124d07 of _0x328908)_0xca92fc['move'](_0xca92fc['createRangeIn'](_0x124d07),_0xca92fc['createPositionAt'](_0x1b380f,'end')),_0xca92fc['remove'](_0x124d07);this['_footnotesDefinitions']=_0x1b380f,this['_updateFootnotesCounters'](_0xca92fc),_0x4fa092=!0x0;}else this['_footnotesDefinitions']=_0x524980[0x0];}if(_0x4194b1['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x3e9cd7 of this['_footnotes'])_0xca92fc['remove'](_0x3e9cd7['reference']),_0x4fa092=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x4fa092;}['_handleFootnoteDefinitionsChanges'](_0x1f6939,_0x5dd1a1){let _0x170e96=!0x1;const _0x2dd2a6=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x75761,moved:_0x2b95b9}=this['_footnoteDefsTracker']['getChanges'](_0x5dd1a1);for(const _0xc2cf86 of[..._0x2b95b9,..._0x75761]){const _0x5ee28e=_0xc2cf86['getAttribute']('footnoteId'),_0x550f3a=this['getFootnote'](_0x5ee28e);_0x550f3a&&(_0x550f3a['definition']=_0xc2cf86),_(_0x1f6939,_0x2dd2a6,_0xc2cf86)&&(_0x170e96=!0x0);}return _0x170e96;}['_handleFootnoteReferencesChanges'](_0x3f5d4f,_0x2cde5c){let _0x497ca7=!0x1;const {removed:_0x355546,inserted:_0x496f73,moved:_0x1a6470}=this['_footnoteRefsTracker']['getChanges'](_0x2cde5c);for(const _0x4f4430 of _0x355546)this['_handleRemoveFootnoteReferenceById'](_0x3f5d4f,_0x4f4430)&&(_0x497ca7=!0x0);for(const _0x10856c of _0x496f73)this['_handleInsertedFootnoteReference'](_0x3f5d4f,_0x10856c)&&(_0x497ca7=!0x0);for(const _0x5dbc1c of _0x1a6470)this['_handleMovedFootnoteReference'](_0x3f5d4f,_0x5dbc1c)&&(_0x497ca7=!0x0);return _0x497ca7;}['_handleFootnotesDefinitionsObjectSync'](_0xc58b5c){if(!this['_footnotesDefinitions'])return!0x1;let _0x513ae8=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x328de4=[];for(const _0x5727b7 of this['_footnotesDefinitions']['getChildren']()){const _0x8b1e7a=_0x5727b7['getAttribute']('footnoteId');this['getFootnote'](_0x8b1e7a)||(_0x328de4['unshift'](_0x5727b7),_0x513ae8=!0x0);}for(const _0x3756f4 of _0x328de4)_0xc58b5c['remove'](_0x3756f4);}const _0x4489b3=new Set(),_0x2c52ad=[];for(const _0x3b1924 of this['_footnotesDefinitions']['getChildren']()){const _0x1fd517=_0x3b1924['getAttribute']('footnoteId');_0x4489b3['has'](_0x1fd517)?(_0x2c52ad['unshift'](_0x3b1924),_0x513ae8=!0x0):_0x4489b3['add'](_0x1fd517);}for(const _0x16035f of _0x2c52ad)_0xc58b5c['remove'](_0x16035f);return this['_footnotesDefinitions']['childCount']||(_0xc58b5c['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x513ae8=!0x0),_0x513ae8;}['_handleInsertedFootnoteReference'](_0x45ce2e,_0x4be3e5){if(this['_footnotes']['find'](_0x22a3e1=>_0x22a3e1['reference']===_0x4be3e5))return!0x1;let _0x183cdf=!0x1;const _0x36fcac=_0x4be3e5['getAttribute']('footnoteId'),_0x399d37=this['_footnotes']['findIndex'](_0x3cf928=>_0x3cf928['id']===_0x36fcac);-0x1!==_0x399d37&&(_0x45ce2e['remove'](this['_footnotes'][_0x399d37]['reference']),this['_footnotes']['splice'](_0x399d37,0x1),_0x183cdf=!0x0);let _0x1b1332=this['_footnotesDefinitions']?function(_0x38851d,_0x3dee4f){for(const _0x939f40 of _0x38851d['getChildren']())if(_0x939f40['getAttribute']('footnoteId')===_0x3dee4f)return _0x939f40;return null;}(this['_footnotesDefinitions'],_0x36fcac):null;_0x1b1332||(_0x1b1332=_0x45ce2e['createElement']('footnoteDefinition',{'footnoteId':_0x36fcac}),this['_footnotesDefinitions']&&(_0x45ce2e['insert'](_0x1b1332,this['_footnotesDefinitions'],'end'),_0x183cdf=!0x0));const _0x44d582={'id':_0x36fcac,'reference':_0x4be3e5,'definition':_0x1b1332},_0x578897=I(this['editor']['model'],this['_footnotes'],_0x4be3e5);this['_footnotes']['splice'](_0x578897,0x0,_0x44d582);let _0x13c49e=_0x578897;return-0x1!==_0x399d37&&(_0x13c49e=Math['min'](_0x578897,_0x399d37)),this['_updateFootnotesCounters'](_0x45ce2e,_0x13c49e)&&(_0x183cdf=!0x0),_0x183cdf;}['_handleRemoveFootnoteReferenceById'](_0x52ca0f,_0x2725af){const _0x2ed947=this['_footnotes']['findIndex'](_0x520200=>_0x520200['id']===_0x2725af);if(-0x1===_0x2ed947)return!0x1;let _0x13c2a3=!0x1;const _0x8998f8=this['_footnotes'][_0x2ed947];return'$graveyard'!==_0x8998f8['definition']['root']['rootName']&&(_0x52ca0f['remove'](_0x8998f8['definition']),_0x13c2a3=!0x0),this['_footnotes']['splice'](_0x2ed947,0x1),this['_updateFootnotesCounters'](_0x52ca0f,_0x2ed947)&&(_0x13c2a3=!0x0),_0x13c2a3;}['_handleMovedFootnoteReference'](_0x1afc1f,_0x4720fb){const _0x385451=_0x4720fb['getAttribute']('footnoteId'),_0x490ebf=this['_footnotes']['findIndex'](_0x2eaf7f=>_0x2eaf7f['id']===_0x385451),_0x2c9835=this['_footnotes'][_0x490ebf];let _0x38dd2e=!0x1;_0x2c9835['reference']=_0x4720fb,this['_footnotes']['splice'](_0x490ebf,0x1);const _0xd3d47b=I(this['editor']['model'],this['_footnotes'],_0x4720fb);return this['_footnotes']['splice'](_0xd3d47b,0x0,_0x2c9835),this['_updateFootnotesCounters'](_0x1afc1f,Math['min'](_0x490ebf,_0xd3d47b))&&(_0x38dd2e=!0x0),_0x38dd2e;}['_updateFootnoteRefCounter'](_0x5f2e5c,_0x8ad77d){if(!this['_footnotesDefinitions'])return!0x1;const _0x54be4f=this['_footnotes'][_0x8ad77d];let _0x1de04d;return _0x1de04d=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x54be4f,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x8ad77d+0x1}):String(_0x8ad77d+0x1),_0x54be4f['reference']['getAttribute']('footnoteCounter')!=_0x1de04d&&(_0x5f2e5c['setAttribute']('footnoteCounter',_0x1de04d,_0x54be4f['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x3a390c){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x40c02f,_0x454715){if(_0x40c02f['length']!==_0x454715['length'])return!0x1;for(let _0x44b88a=0x0;_0x44b88a<_0x40c02f['length'];_0x44b88a++)if(_0x40c02f[_0x44b88a]!==_0x454715[_0x44b88a])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x13d56e=>_0x13d56e['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x3d7746=>_0x3d7746['getAttribute']('footnoteId'))))return!0x1;let _0x4c308f=!0x1;for(let _0x38b80e=0x0;_0x38b80e<this['_footnotes']['length'];_0x38b80e++){const _0x4fe6e8=this['_footnotes'][_0x38b80e],_0x1bd021=_0x3a390c['createPositionBefore'](_0x4fe6e8['definition']),_0x3aac90=_0x3a390c['createPositionAt'](this['_footnotesDefinitions'],_0x38b80e);_0x1bd021['isEqual'](_0x3aac90)||(_0x3a390c['move'](_0x3a390c['createRangeOn'](_0x4fe6e8['definition']),_0x3aac90),_0x4c308f=!0x0);}return _0x4c308f;}['_ensureFootnotesReferencesHaveProperOrder'](_0x347308){if(!this['_footnotes']['length'])return!0x1;const {model:_0x235d42}=this['editor'];let _0x5d7229=!0x1;for(let _0x9d2187=0x0;_0x9d2187<this['_footnotes']['length']-0x1;_0x9d2187++){const _0x47aa73=this['_footnotes'][_0x9d2187],_0x53f35d=this['_footnotes'][_0x9d2187+0x1],_0x210475=_0x235d42['createPositionBefore'](_0x47aa73['reference']),_0xc7c649=_0x235d42['createPositionBefore'](_0x53f35d['reference']);'after'===_0x210475['compareWith'](_0xc7c649)&&(this['_handleMovedFootnoteReference'](_0x347308,_0x47aa73['reference']),_0x9d2187=-0x1,_0x5d7229=!0x0);}return _0x5d7229;}}function _(_0x4e0af7,_0x184410,_0x3dd347){if(_0x3dd347['childCount'])return!0x1;const _0x296aa1=_0x184410?'paragraph':'footnoteInlineContent';return _0x4e0af7['insert'](_0x4e0af7['createElement'](_0x296aa1),_0x3dd347),!0x0;}function I(_0xb3b237,_0x7a6f46,_0x3fde33){if(0x0===_0x7a6f46['length'])return 0x0;const _0x260954=_0xb3b237['createPositionBefore'](_0x3fde33);for(let _0x4b8aeb=0x0;_0x4b8aeb<_0x7a6f46['length'];_0x4b8aeb++){const _0x472a51=_0x7a6f46[_0x4b8aeb],_0x321692=_0xb3b237['createPositionBefore'](_0x472a51['reference']);if('before'===_0x260954['compareWith'](_0x321692))return _0x4b8aeb;}const _0x2e1a84=_0x3fde33['root'];let _0x67dc33=-0x1;for(let _0x3f8ee8=_0x7a6f46['length']-0x1;_0x3f8ee8>=0x0;_0x3f8ee8--)if(_0x7a6f46[_0x3f8ee8]['reference']['root']===_0x2e1a84){_0x67dc33=_0x3f8ee8;break;}if(-0x1!==_0x67dc33)return _0x67dc33+0x1;const _0x38684e=_0xb3b237['document']['getRootNames'](),_0x51da44=_0x38684e['indexOf'](_0x2e1a84['rootName']),_0x1aafef=_0x38684e[_0x51da44+0x1];if(_0x1aafef){for(let _0x4ac8e3=0x0;_0x4ac8e3<_0x7a6f46['length'];_0x4ac8e3++)if(_0x7a6f46[_0x4ac8e3]['reference']['root']['rootName']===_0x1aafef)return _0x4ac8e3;}return _0x7a6f46['length'];}class h extends _0x6d233a{['refresh'](){const _0x33b338=this['editor']['model']['document']['selection'],_0x162fe2=this['_getPositionToInsertFootnote'](_0x33b338);this['isEnabled']=!!_0x162fe2;}['execute'](_0x1a2c7e){const {editor:_0x496e92}=this,{model:_0x554e71}=_0x496e92,{selection:_0x3543c5}=_0x554e71['document'],_0x153cf0=this['_getPositionToInsertFootnote'](_0x3543c5);if(!_0x153cf0)return;const _0x42112d=_0x496e92['plugins']['get']('FootnotesEditing'),_0x38d483=_0x1a2c7e?.['footnoteId']??_0x5a873e();!function(_0x1c95e2){return'string'==typeof _0x1c95e2&&_0x1c95e2['length']>0x0&&!/\s/['test'](_0x1c95e2)&&!/^\d/['test'](_0x1c95e2);}(_0x38d483)?_0x4aa6c5('insert-footnote-command-executed-with-invalid-id'):(_0x554e71['change'](_0x56b7f0=>{const _0x4d1964=_0x56b7f0['createElement']('footnoteRef',{'footnoteId':_0x38d483});_0x554e71['insertObject'](_0x4d1964,_0x153cf0,null);}),_0x42112d['_moveSelectionToFootnoteDefinition'](_0x38d483));}['_getPositionToInsertFootnote'](_0x79e225){const {model:_0x54f64}=this['editor'],{schema:_0x29bef3}=_0x54f64,_0x4dddcb=_0x79e225['getFirstRange']();for(const _0x3705fc of _0x4dddcb['getItems']())if(_0x29bef3['isBlock'](_0x3705fc)||_0x29bef3['isObject'](_0x3705fc))return null;const _0x339832=_0x4dddcb['end'];return _0x29bef3['checkChild'](_0x339832,'footnoteRef')?_0x339832:null;}}class r extends _0x352caa{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2aa399}=this;_0x2aa399['config']['define']('footnotes.multiBlock',!0x0),_0x2aa399['commands']['add']('insertFootnote',new h(_0x2aa399)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x187f2d){const _0x1bd05c=_0x4b836c([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]),_0x38c8a6=0x47a28506,_0xe2bc7b=0x47a5fb3e^_0x38c8a6,_0x2a1697=window[_0x4b836c([0x44,0x61,0x74,0x65])][_0x4b836c([0x6e,0x6f,0x77])](),_0x189348=_0x187f2d[_0x4b836c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x55b64=new window[(_0x4b836c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46e5df=>{_0x189348[_0x4b836c([0x6f,0x6e,0x63,0x65])](_0x4b836c([0x72,0x65,0x61,0x64,0x79]),_0x46e5df);}),_0x9bb99e={[_0x4b836c([0x6b,0x74,0x79])]:_0x4b836c([0x45,0x43]),[_0x4b836c([0x75,0x73,0x65])]:_0x4b836c([0x73,0x69,0x67]),[_0x4b836c([0x63,0x72,0x76])]:_0x4b836c([0x50,0x2d,0x32,0x35,0x36]),[_0x4b836c([0x78])]:_0x4b836c([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]),[_0x4b836c([0x79])]:_0x4b836c([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]),[_0x4b836c([0x61,0x6c,0x67])]:_0x4b836c([0x45,0x53,0x32,0x35,0x36])},_0x5effa5=_0x189348[_0x4b836c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b836c([0x67,0x65,0x74])](_0x4b836c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3023e4(){let _0x4e60c0,_0x308639=null,_0x52042b=null;try{if(_0x5effa5==_0x4b836c([0x47,0x50,0x4c]))return _0x4b836c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4e60c0=_0x57b478(),!_0x4e60c0)return _0x4b836c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4e60c0[_0x4b836c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x52042b=_0x4da7f6(_0x4e60c0[_0x4b836c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4e60c0[_0x4b836c([0x6a,0x74,0x69])])),await _0x4751c()?_0x1dac69()?_0x7c2386()?_0x4b836c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x330b86()?(_0x4e60c0[_0x4b836c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b836c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x308639=_0xfa71bb(_0x4b836c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x11a92e()):_0x4b836c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b836c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b836c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4b836c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x7c2386(){const _0x478de0=[_0x4b836c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b836c([0x74,0x72,0x69,0x61,0x6c])][_0x4b836c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e60c0[_0x4b836c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2a1697/0x3e8:0xe10*_0xe2bc7b;return _0x4e60c0[_0x4b836c([0x65,0x78,0x70])]<_0x478de0;}function _0x1dac69(){const _0x14dac4=_0x4e60c0[_0x4b836c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x14dac4&&(!!_0x14dac4[_0x4b836c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b836c([0x2a]))||!!_0x14dac4[_0x4b836c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b836c([0x46,0x4f,0x4f])));}function _0x330b86(){const _0x2b680d=_0x4e60c0[_0x4b836c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b680d||0x0==_0x2b680d[_0x4b836c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5c4f96}=new URL(window[_0x4b836c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2b680d[_0x4b836c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c4f96))return!0x0;const _0x38e816=_0x5c4f96[_0x4b836c([0x73,0x70,0x6c,0x69,0x74])](_0x4b836c([0x2e]));return _0x2b680d[_0x4b836c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1568e4=>_0x1568e4[_0x4b836c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b836c([0x2a])))[_0x4b836c([0x6d,0x61,0x70])](_0x4c521e=>_0x4c521e[_0x4b836c([0x73,0x70,0x6c,0x69,0x74])](_0x4b836c([0x2e])))[_0x4b836c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x299d8d=>_0x299d8d[_0x4b836c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x38e816[_0x4b836c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b836c([0x6d,0x61,0x70])](_0x195392=>Array(_0x38e816[_0x4b836c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x195392[_0x4b836c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b836c([0x66,0x69,0x6c,0x6c])](_0x195392[0x0]===_0x4b836c([0x2a])?_0x4b836c([0x2a]):'')[_0x4b836c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x195392))[_0x4b836c([0x73,0x6f,0x6d,0x65])](_0x10df0f=>_0x38e816[_0x4b836c([0x65,0x76,0x65,0x72,0x79])]((_0x3da46a,_0x487849)=>_0x10df0f[_0x487849]===_0x3da46a||_0x10df0f[_0x487849]===_0x4b836c([0x2a])));}function _0x11a92e(){return _0x308639&&_0x52042b?new window[(_0x4b836c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x379a0a,_0x5f04d6)=>{_0x308639[_0x4b836c([0x74,0x68,0x65,0x6e])](_0x379a0a,_0x5f04d6),_0x52042b[_0x4b836c([0x74,0x68,0x65,0x6e])](_0x112444=>{_0x112444!=_0x4b836c([0x56,0x61,0x6c,0x69,0x64])&&_0x379a0a(_0x112444);},_0x5f04d6);}):_0x308639||_0x52042b||_0x4b836c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4da7f6(_0x38a542,_0x1f69ec){return new window[(_0x4b836c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4339a7=>{if(_0x1fcc03())return _0x4339a7(_0x4b836c([0x56,0x61,0x6c,0x69,0x64]));_0x4ff1c3(),_0x189348[_0x4b836c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b836c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3148dd=!0x1;const _0x5a062b=_0x5a873e();function _0x18910a(_0x4852a3){return!!_0x4852a3&&(typeof _0x4852a3===_0x4b836c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4852a3===_0x4b836c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4852a3[_0x4b836c([0x74,0x68,0x65,0x6e])]===_0x4b836c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4852a3[_0x4b836c([0x63,0x61,0x74,0x63,0x68])]===_0x4b836c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c2deb(_0x3acf07){_0xeb26a0(_0x3acf07)[_0x4b836c([0x74,0x68,0x65,0x6e])](_0x4452d1=>{if(!_0x4452d1||_0x4452d1[_0x4b836c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b836c([0x6f,0x6b]))return _0x4b836c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x475dff(_0x5114dc(_0x5a062b+_0x1f69ec))!=_0x4452d1[_0x4b836c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b836c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b836c([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b836c([0x74,0x68,0x65,0x6e])](_0x177b81=>(_0x2ae42c(),_0x177b81),()=>{const _0x44cc87=_0x37ee05();return null==_0x44cc87?(_0x2ae42c(),_0x4b836c([0x56,0x61,0x6c,0x69,0x64])):_0x4b836c(_0x2a1697-_0x44cc87>(0x63ae0106^_0x38c8a6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b836c([0x74,0x68,0x65,0x6e])](_0x4339a7)[_0x4b836c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4339a7(_0x4b836c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a07a2=0x47946b86^_0x38c8a6;function _0x2ae42c(){const _0x221eca=_0x4b836c([0x6c,0x6c,0x63,0x74,0x2d])+_0x475dff(_0x5114dc(_0x38a542)),_0x1de00c=_0x4e76c9(_0x475dff(window[_0x4b836c([0x4d,0x61,0x74,0x68])][_0x4b836c([0x63,0x65,0x69,0x6c])](_0x2a1697/_0x2a07a2)));window[_0x4b836c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b836c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x221eca,_0x1de00c);}function _0x37ee05(){const _0x3f9dd1=_0x4b836c([0x6c,0x6c,0x63,0x74,0x2d])+_0x475dff(_0x5114dc(_0x38a542)),_0x4ffb61=window[_0x4b836c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b836c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f9dd1);return _0x4ffb61?window[_0x4b836c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e76c9(_0x4ffb61),0x10)*_0x2a07a2:null;}function _0xeb26a0(_0x20dae8){return new window[(_0x4b836c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x139bf8,_0x59819a)=>{_0x20dae8[_0x4b836c([0x74,0x68,0x65,0x6e])](_0x139bf8,_0x59819a),window[_0x4b836c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x59819a,0x47a351c6^_0x38c8a6);});}}_0x189348[_0x4b836c([0x6f,0x6e])](_0x4b836c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x13aa2b,_0x50b1f3)=>{if(_0x50b1f3[0x0]!=_0x38a542)return _0x4339a7(_0x4b836c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x50b1f3[0x1]={..._0x50b1f3[0x1],[_0x4b836c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5a062b};},{[_0x4b836c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b836c([0x68,0x69,0x67,0x68])}),_0x189348[_0x4b836c([0x6f,0x6e])](_0x4b836c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2c7070=>{_0x18910a(_0x2c7070[_0x4b836c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3148dd=!0x0,_0x1c2deb(_0x2c7070[_0x4b836c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b836c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b836c([0x6c,0x6f,0x77])}),_0x55b64[_0x4b836c([0x74,0x68,0x65,0x6e])](()=>{_0x3148dd||_0x4339a7(_0x4b836c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1fcc03(){return _0x189348[_0x4b836c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b836c([0x76,0x69,0x65,0x77])][_0x4b836c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b836c([0x61,0x75,0x74,0x6f]);}function _0x4ff1c3(){_0x189348[_0x4b836c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b836c([0x76,0x69,0x65,0x77])][_0x4b836c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b836c([0x61,0x75,0x74,0x6f]);}}function _0xfa71bb(_0x4b7542){const _0x3c8081=[new window[(_0x4b836c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x378c71=>setTimeout(_0x378c71,0x47abbbca^_0x38c8a6)),_0x55b64[_0x4b836c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b836c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x540611=>{let _0x3178aa=0x0;_0x189348[_0x4b836c([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b836c([0x6f,0x6e])](_0x4b836c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xa0c094,_0x5b38ad)=>{_0x5b38ad[0x0][_0x4b836c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3178aa++,_0x3178aa==(0x47a280ee^_0x38c8a6)&&(_0x540611(),_0xa0c094[_0x4b836c([0x6f,0x66,0x66])]());});}))];return window[_0x4b836c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b836c([0x72,0x61,0x63,0x65])](_0x3c8081)[_0x4b836c([0x74,0x68,0x65,0x6e])](()=>_0x4b7542);}async function _0x4b165e(){await _0x55b64,_0x189348[_0x4b836c([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b836c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x155200,_0x189348[_0x4b836c([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b836c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x155200,_0x189348[_0x4b836c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b836c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8cacfd(_0x3430ae){const _0x5f5a1b=_0x3f45df();_0x189348[_0x5f5a1b]=_0x4b836c([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3430ae,_0x3430ae!=_0x4b836c([0x56,0x61,0x6c,0x69,0x64])&&_0x4b165e();}function _0x3f45df(){const _0x566738=window[_0x4b836c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b836c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b836c([0x6e,0x6f,0x77])]())[_0x4b836c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b836c([0x2e]),'');let _0x384d04=_0x4b836c([0x75]);for(let _0x44375a=0x0;_0x44375a<_0x566738[_0x4b836c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44375a+=0x2){let _0x91041e=window[_0x4b836c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x566738[_0x4b836c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44375a,_0x44375a+0x2));_0x91041e>=_0x1bd05c[_0x4b836c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x91041e-=_0x1bd05c[_0x4b836c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x384d04+=_0x1bd05c[_0x91041e];}return _0x384d04;}function _0x57b478(){const _0x3f69e3=_0x5effa5[_0x4b836c([0x73,0x70,0x6c,0x69,0x74])](_0x4b836c([0x2e]));if(0x3!=_0x3f69e3[_0x4b836c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x6821d4(_0x3f69e3[0x1]);function _0x6821d4(_0x3a36fb){const _0x4e9ba1=_0x47fc9c(_0x3a36fb);return _0x4e9ba1&&_0xf385e3()?_0x4e9ba1:null;function _0xf385e3(){const _0x3162f5=_0x4e9ba1[_0x4b836c([0x6a,0x74,0x69])],_0x2f9ad6=window[_0x4b836c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3162f5[_0x4b836c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3162f5[_0x4b836c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x353e64={..._0x4e9ba1,[_0x4b836c([0x6a,0x74,0x69])]:_0x3162f5[_0x4b836c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3162f5[_0x4b836c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x353e64[_0x4b836c([0x76,0x63])],_0x5114dc(_0x353e64)==_0x2f9ad6;}}}async function _0x4751c(){let _0x1d35a2=!0x0;try{const _0x14797f=_0x5effa5[_0x4b836c([0x73,0x70,0x6c,0x69,0x74])](_0x4b836c([0x2e])),[_0x250ee5,_0x2a0c90,_0xb849d7]=_0x14797f;return _0x119ac3(_0x250ee5),await _0x520d54(_0x250ee5,_0x2a0c90,_0xb849d7),_0x1d35a2;}catch{return!0x1;}function _0x119ac3(_0x20706c){const _0x46fc0c=_0x47fc9c(_0x20706c);_0x46fc0c&&_0x46fc0c[_0x4b836c([0x61,0x6c,0x67])]==_0x4b836c([0x45,0x53,0x32,0x35,0x36])||(_0x1d35a2=!0x1);}async function _0x520d54(_0x3a125c,_0x4a82ec,_0x3b0d50){const _0x2319b3=window[_0x4b836c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b836c([0x66,0x72,0x6f,0x6d])](_0xc53535(_0x3b0d50),_0x5f1553=>_0x5f1553[_0x4b836c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x417dc8=new window[(_0x4b836c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b836c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a125c+_0x4b836c([0x2e])+_0x4a82ec),_0x31bc48=window[_0x4b836c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b836c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x31bc48)return;const _0x2309ab=await _0x31bc48[_0x4b836c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b836c([0x6a,0x77,0x6b]),_0x9bb99e,{[_0x4b836c([0x6e,0x61,0x6d,0x65])]:_0x4b836c([0x45,0x43,0x44,0x53,0x41]),[_0x4b836c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b836c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b836c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x31bc48[_0x4b836c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b836c([0x6e,0x61,0x6d,0x65])]:_0x4b836c([0x45,0x43,0x44,0x53,0x41]),[_0x4b836c([0x68,0x61,0x73,0x68])]:{[_0x4b836c([0x6e,0x61,0x6d,0x65])]:_0x4b836c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2309ab,_0x2319b3,_0x417dc8)||(_0x1d35a2=!0x1);}}function _0x47fc9c(_0x5af7c5){return _0x5af7c5[_0x4b836c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b836c([0x65,0x79]))?JSON[_0x4b836c([0x70,0x61,0x72,0x73,0x65])](_0xc53535(_0x5af7c5)):null;}function _0xc53535(_0x2d31ea){return window[_0x4b836c([0x61,0x74,0x6f,0x62])](_0x2d31ea[_0x4b836c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b836c([0x2b]))[_0x4b836c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b836c([0x2f])));}function _0x5114dc(_0x6efcbb){let _0x550c42=0x1505;function _0x4b8dda(_0x1a00bd){for(let _0x5a6ad7=0x0;_0x5a6ad7<_0x1a00bd[_0x4b836c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a6ad7++){const _0x101935=_0x1a00bd[_0x4b836c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5a6ad7);_0x550c42=(_0x550c42<<0x5)+_0x550c42+_0x101935,_0x550c42&=_0x550c42;}}function _0x2f7c2d(_0xd1db07){Array[_0x4b836c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xd1db07)?_0xd1db07[_0x4b836c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2f7c2d):_0xd1db07&&typeof _0xd1db07==_0x4b836c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b836c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xd1db07)[_0x4b836c([0x73,0x6f,0x72,0x74])]()[_0x4b836c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x364c48,_0x5a7d4b])=>{_0x4b8dda(_0x364c48),_0x2f7c2d(_0x5a7d4b);}):_0x4b8dda(window[_0x4b836c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xd1db07));}return _0x2f7c2d(_0x6efcbb),_0x550c42>>>0x0;}function _0x475dff(_0xe9c6bf){return _0xe9c6bf[_0x4b836c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b836c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b836c([0x30]));}function _0x4e76c9(_0x4425d6){return _0x4425d6[_0x4b836c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b836c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b836c([0x6a,0x6f,0x69,0x6e])]('');}function _0x155200(){}function _0x4b836c(_0x345134){return _0x345134['map'](_0x45d23b=>String['fromCharCode'](_0x45d23b))['join']('');}_0x8cacfd(await _0x3023e4());}(this);}['_moveSelectionToFootnoteDefinition'](_0x41a8da){const {plugins:_0x38cc68,editing:_0x2234b2,model:_0x573a2d}=this['editor'],_0xd2a36a=_0x38cc68['get'](f)['getFootnote'](_0x41a8da);return!!_0xd2a36a&&(_0x573a2d['change'](_0x5d2bce=>{_0x5d2bce['setSelection'](_0x5d2bce['createPositionAt'](_0xd2a36a['definition'],'end'));}),_0x2234b2['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x17f798){const {plugins:_0x32a73c,editing:_0x32adf5,model:_0x16fd81}=this['editor'],_0x44c859=_0x32a73c['get'](f)['getFootnote'](_0x17f798);return!!_0x44c859&&(_0x16fd81['change'](_0x2d0e22=>{_0x2d0e22['setSelection'](_0x44c859['reference'],'on');}),_0x32adf5['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x18f5a1}=this['editor']['model'],_0x124bf7=this['editor']['config']['get']('footnotes.multiBlock');_0x18f5a1['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x18f5a1['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x18f5a1['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x124bf7?_0x18f5a1['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x18f5a1['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x18f5a1['addChildCheck'](_0x110631=>{for(const _0x5018e5 of _0x110631)if('footnoteDefinition'===_0x5018e5['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x44aa30}=this,{conversion:_0x1028b5,editing:_0xd641d9}=_0x44aa30,{t:t}=_0x44aa30['locale'];_0x1028b5['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x146033,{writer:_0x10e8d5,consumable:_0x327144})=>{const _0x23626f=_0x146033['getChild'](0x0);if(!_0x23626f||!_0x23626f['is']('element','a'))return null;const _0x11abbf=_0x23626f['getAttribute']('href')||'';if(!_0x11abbf['startsWith']('#'))return null;const _0x4fea7e=_0x11abbf['replace'](/^#/,'');if(!_0x4fea7e)return null;_0x327144['consume'](_0x23626f,{'name':!0x0,'attributes':['href']});for(const {item:_0x203981}of _0xd641d9['view']['createRangeIn'](_0x23626f))_0x203981['is']('$textProxy')?_0x327144['consume'](_0x203981['textNode'],{'name':!0x0}):_0x203981['is']('element')&&_0x327144['consume'](_0x203981,{'name':!0x0});return _0x10e8d5['createElement']('footnoteRef',{'footnoteId':_0x4fea7e});}}),_0x1028b5['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4e2375,{writer:_0x93696f})=>b(_0x4e2375,_0x93696f)}),_0x1028b5['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x59f87e,{writer:_0x5e2598})=>{const _0xcec376=_0x59f87e['getAttribute']('footnoteCounter');return _0x3ba126(b(_0x59f87e,_0x5e2598),_0x5e2598,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0xcec376)});}});}['_defineDefinitionsConverters'](){const {editor:_0x30464e}=this,{t:t}=_0x30464e['locale'],{conversion:_0x4d8bcf}=_0x30464e;_0x4d8bcf['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4d8bcf['for']('upcast')['add'](_0x43c09a=>{_0x43c09a['on']('element:ol',(_0x49bc54,_0x25f9f7,_0x2c27ea)=>{const _0x2494ed=_0x25f9f7['viewItem'];if(!_0x2494ed['hasClass']('footnotes-list')||!_0x25f9f7['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2c27ea['consumable']['consume'](_0x2494ed,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x2ae18d,modelCursor:_0x48c687}=_0x2c27ea['convertChildren'](_0x25f9f7['viewItem'],_0x25f9f7['modelCursor']);_0x25f9f7['modelRange']=_0x2ae18d,_0x25f9f7['modelCursor']=_0x48c687;}),_0x43c09a['on']('element:hr',(_0x271318,_0x2dfbf1,_0x8dfb83)=>{const _0x18cb31=_0x2dfbf1['viewItem'];_0x18cb31['hasClass']('footnotes-divider')&&_0x2dfbf1['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x8dfb83['consumable']['consume'](_0x18cb31,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4d8bcf['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2bfa62,{writer:_0x425646})=>D(_0x425646)}),_0x4d8bcf['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1ccebc,{writer:_0x433476})=>{const _0x41869f=D(_0x433476,{'data-footnotes-list-label':t('Footnotes')}),_0x24595b=_0x3ba126(_0x41869f,_0x433476,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x433476['setCustomProperty']('footnotesDefinitions',!0x0,_0x24595b),_0x24595b;}});}['_defineDefinitionConverters'](){const {editor:_0x27498a}=this,{conversion:_0x772b63,locale:_0x1b416b}=_0x27498a,_0xb7c789=_0x27498a['config']['get']('footnotes.multiBlock');_0x772b63['for']('upcast')['add'](_0x240610=>{_0x240610['on']('element:li',(_0x21374d,_0x1f47e7,_0x134811)=>{const _0x22984a=_0x1f47e7['viewItem'];if(!_0x22984a['hasClass']('footnote-definition')||!_0x22984a['getAttribute']('id'))return;const _0x51184b=_0x22984a['parent'];if(!_0x51184b['is']('element','ol')||!_0x51184b['hasClass']('footnotes-list'))return;if(!_0x134811['consumable']['test'](_0x22984a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x728ad8=_0x134811['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x22984a['getAttribute']('id')});if(!_0x134811['safeInsert'](_0x728ad8,_0x1f47e7['modelCursor']))return;_0x134811['consumable']['consume'](_0x22984a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x408803=Array['from'](_0x22984a['getChildren']())['find'](_0x5ecfcf=>_0x5ecfcf['is']('element')&&_0x5ecfcf['hasClass']('footnote-content'));for(const _0x2d6445 of _0x22984a['getChildren']())_0x2d6445['is']('element')&&(_0x134811['consumable']['consume'](_0x2d6445,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x134811['consumable']['consume'](_0x2d6445,{'name':!0x0,'classes':'footnote-content'}));if(_0x408803){if(_0xb7c789)_0x134811['convertChildren'](_0x408803,_0x728ad8);else{const _0x489d72=_0x134811['writer']['createElement']('footnoteInlineContent');_0x134811['writer']['insert'](_0x489d72,_0x728ad8),_0x134811['convertChildren'](_0x408803,_0x489d72);}}_0x134811['updateConversionResult'](_0x728ad8,_0x1f47e7);});}),_0x772b63['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2571b8,{writer:_0x58f185})=>y(_0x2571b8,_0x58f185,_0x1b416b,{'dataPipeline':!0x0})}),_0x772b63['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x187727,{writer:_0xd91bff})=>y(_0x187727,_0xd91bff,_0x1b416b)});}['_defineBogusParagraphConverters'](){const {editor:_0x1ecd7f}=this,{conversion:_0x2dbf31}=_0x1ecd7f;_0x1ecd7f['config']['get']('footnotes.multiBlock')?(_0x2dbf31['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x2dbf31['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x1ecd7f['model']['document'],'change:data',()=>{!function(_0x139dcd,_0x3f15dd){const _0x51b4e5=_0x139dcd['document']['differ'],_0xb034cd=new Set();for(const _0x5c5b3a of _0x51b4e5['getChanges']()){const _0x594f85='attribute'==_0x5c5b3a['type']?_0x5c5b3a['range']['start']['parent']:_0x5c5b3a['position']['parent'];_0x594f85['is']('element','footnoteDefinition')&&_0xb034cd['add'](_0x594f85);}for(const _0x5a869e of _0xb034cd['values']()){const _0x56e794=Array['from'](_0x5a869e['getChildren']())['filter'](_0x31fac3=>v(_0x31fac3,_0x3f15dd['mapper']));for(const _0x55e196 of _0x56e794)_0x3f15dd['reconvertItem'](_0x55e196);}}(_0x1ecd7f['model'],_0x1ecd7f['editing']);})):(_0x2dbf31['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x2dbf31['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x479249,{writer:_0x2595cf})=>{const _0x373924=_0x2595cf['createContainerElement']('span');return _0x2595cf['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x373924),_0x373924;}}));}['_defineKeyboardHandlers'](){const {editor:_0x4eb8d7}=this,{editing:_0x44f4b6,t:t}=_0x4eb8d7,_0x315a3e=_0x4eb8d7['model']['document']['selection'];_0x4eb8d7['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x4eb8d7['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x44f4b6['view']['document'],'enter',(_0x49b1bd,_0x4075fa)=>{const _0xad8b37=function(_0x1ac7b2){const _0x28efe3=_0x1ac7b2['getSelectedElement']();if(_0x28efe3?.['is']('element','footnoteRef'))return _0x28efe3;return null;}(_0x315a3e);if(_0xad8b37){const _0x5f58f1=_0xad8b37['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5f58f1),_0x4075fa['preventDefault'](),_0x49b1bd['stop']();}},{'context':_0xb08389});}['_defineClickHandlers'](){const {editor:_0x4cb1cc}=this,{editing:_0x5bf469}=_0x4cb1cc;_0x4cb1cc['editing']['view']['addObserver'](_0x33cc45),_0x4cb1cc['editing']['view']['addObserver'](_0x3a7578);let _0x48af5e=!0x1;this['listenTo'](_0x5bf469['view']['document'],'pointerdown',(_0x441fdb,_0x3700e8)=>{const {target:_0x57b766}=_0x3700e8,_0xde3513=_0x5bf469['view']['document']['selection'];_0x48af5e=!!(_0x57b766?.['is']('element','a')&&_0x57b766['parent']?.['is']('element','sup')&&_0x57b766['parent']['hasClass']('footnote'))&&_0xde3513['getSelectedElement']()===_0x57b766['parent'];},{'priority':'high'}),this['listenTo'](_0x5bf469['view']['document'],'click',(_0x4b02b6,_0x4c3f90)=>{const {target:_0x5196f5}=_0x4c3f90;if(!_0x5196f5?.['is']('element','a'))return;if(_0x5196f5['parent']?.['is']('element','sup')&&_0x5196f5['parent']['hasClass']('footnote')&&!_0x48af5e)return void _0x4c3f90['preventDefault']();let _0x4a2952=_0x5196f5['getAttribute']('href');if(!_0x4a2952?.['startsWith']('#'))return;_0x4a2952=_0x4a2952['slice'](0x1);let _0x28f816=!0x1;(_0x4a2952['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x4a2952['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x4a2952))&&(_0x28f816=!0x0),_0x28f816&&(_0x4c3f90['preventDefault'](),_0x4b02b6['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x26d77b}={}){return(_0x3423f9,{writer:_0x167bfd})=>{if(!g(_0x3423f9))return null;if(!_0x26d77b)return _0x167bfd['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x447c2a=_0x167bfd['createContainerElement']('p');return _0x167bfd['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x447c2a),_0x447c2a;};}function g(_0x16178e){const {parent:_0x55cd9c}=_0x16178e;if(!_0x55cd9c?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x55cd9c['childCount'])return!0x1;for(const _0x3db739 of _0x16178e['getAttributeKeys']())if(!_0x3db739['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3db739)return!0x1;return!0x0;}function v(_0x166593,_0x3e6e9b){if(!_0x166593['is']('element','paragraph'))return!0x1;const _0x2e9ca2=_0x3e6e9b['toViewElement'](_0x166593);return!!_0x2e9ca2&&g(_0x166593)!==_0x2e9ca2['is']('element','span');}function Q(_0x93aaf8){return _0xb08389(_0x93aaf8)&&_0x93aaf8['is']('containerElement')&&!!_0x93aaf8['getCustomProperty']('footnotesDefinitions');}function D(_0x472f15,_0x10ca89={}){const _0xb9bc9b=_0x472f15['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2064f9=_0x472f15['createContainerElement']('ol',{'class':'footnotes-list'},_0x472f15['createSlot']());return _0x472f15['createContainerElement']('div',{'class':'footnotes',..._0x10ca89},[_0xb9bc9b,_0x2064f9]);}function b(_0x419c91,_0x404f28){const _0x2203ec=_0x419c91['getAttribute']('footnoteId'),_0x58f701=_0x419c91['getAttribute']('footnoteCounter'),_0x35d58a=_0x404f28['createUIElement']('a',{'href':'#'+_0x2203ec},function(_0xa73f2b){const _0x3bf8a4=this['toDomElement'](_0xa73f2b);return _0x3bf8a4['textContent']=_0x58f701,_0x3bf8a4;}),_0x50d4dc=_0x404f28['createContainerElement']('sup',{'id':'ref-'+_0x2203ec,'class':'footnote'},[_0x35d58a]);return _0x50d4dc['getFillerOffset']=()=>null,_0x50d4dc;}function y(_0x2a094f,_0x10193f,_0x3274d2,{dataPipeline:_0x535a51}={}){const {t:t}=_0x3274d2,_0x35c41c=_0x2a094f['getAttribute']('footnoteId'),_0x2d5539=_0x10193f['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x35c41c},function(_0x1b80aa){const _0x52a244=this['toDomElement'](_0x1b80aa);return _0x52a244['innerText']='^',_0x52a244;}),_0x2a2a0c=_0x535a51?_0x10193f['createContainerElement']('div',{'class':'footnote-content'}):_0x509021(_0x10193f['createEditableElement']('div',{'class':'footnote-content'}),_0x10193f,{'label':t('Footnote\x20content.')});return _0x10193f['insert'](_0x10193f['createPositionAt'](_0x2a2a0c,0x0),_0x10193f['createSlot']()),_0x10193f['createContainerElement']('li',{'class':'footnote-definition','id':_0x35c41c},[_0x2d5539,_0x2a2a0c]);}class e extends _0x352caa{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x2679f7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x13c6e6}=this,{plugins:_0x2e637a,model:_0x4c8f26}=_0x13c6e6,_0xa2ff4b=_0x2e637a['get'](_0x2679f7),_0x2d09c7=_0x2e637a['get'](f);this['listenTo'](_0xa2ff4b,'outputTransformation',(_0x4fd362,_0x4b3dba)=>{const _0x2bcb66=l(_0x4c8f26['createRangeIn'](_0x4b3dba['content']));if(!_0x2bcb66['length'])return;const _0x154bea=_0x2d09c7['getFootnotes'](),_0x2d3e50=_0x2bcb66['reduce']((_0x8ca753,_0x430bb7)=>{const _0x5cd643=_0x154bea['find'](_0xfa504d=>_0xfa504d['id']===_0x430bb7);if(_0x5cd643){const _0x5bfa24=_0x13c6e6['data']['toView'](_0x5cd643['definition'],{'isClipboardPipeline':!0x0}),_0x1e8cdf=_0x13c6e6['data']['htmlProcessor']['toData'](_0x5bfa24);_0x8ca753[_0x5cd643['id']]=_0x1e8cdf;}return _0x8ca753;},Object['create'](null));_0x4b3dba['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x2d3e50));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x26b849}=this,{model:_0x283b44,plugins:_0x15ec62}=_0x26b849,{view:_0x36030f}=_0x26b849['editing'],_0x146b3e=_0x15ec62['get'](_0x2679f7),_0x5c7eba=_0x15ec62['get'](f),_0xf159df=_0x26b849['config']['get']('footnotes.multiBlock');let _0xd273a1=null;this['listenTo'](_0x36030f['document'],'clipboardInput',(_0x24a8b2,_0x2db157)=>{const _0x377d91=_0x2db157['dataTransfer']['getData']('application/ckeditor5-footnotes');_0xd273a1=_0x377d91?JSON['parse'](_0x377d91):null;}),this['listenTo'](_0x146b3e,'contentInsertion',(_0x593de6,_0x1ec8c4)=>{const _0x5c3838=_0x1ec8c4['sourceEditorId']===this['editor']['id'];_0x5c3838&&'drop'===_0x1ec8c4['method']||_0x283b44['change'](_0x2ab28c=>{let _0x52d7c8=_0x5c7eba['getFootnotesDefinitionsObjectElement']();const _0x10315d=!!_0x52d7c8&&Array['from'](_0x283b44['document']['selection']['getSelectedBlocks']())['includes'](_0x52d7c8);if(!_0xd273a1&&function(_0xf47955){for(const {item:_0x4637a9}of _0xf47955)if(_0x4637a9['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x283b44['createRangeIn'](_0x1ec8c4['content']))&&(_0xd273a1=function(_0x4ed518,_0x25aec2){const _0x54d385=c(_0x4ed518,_0x25aec2);if(!_0x54d385)return null;const _0x359685=Object['create'](null);for(const _0x2b8a5c of _0x54d385['getChildren']())_0x2b8a5c['is']('element','footnoteDefinition')&&_0x2b8a5c['hasAttribute']('footnoteId')&&(_0x359685[_0x2b8a5c['getAttribute']('footnoteId')]=_0x4ed518['cloneElement'](_0x2b8a5c,!0x0));return Object['keys'](_0x359685)['length']?_0x359685:null;}(_0x2ab28c,_0x1ec8c4['content'])),(_0x52d7c8&&!_0x10315d||!_0x52d7c8&&!_0xd273a1)&&function(_0xcd1ff0,_0x1563e4){const _0x233355=[];for(const {item:_0x46e1ca}of _0xcd1ff0['createRangeIn'](_0x1563e4))_0x46e1ca['is']('element','footnotesDefinitions')&&_0x233355['push'](_0x46e1ca);for(const _0x46ac6d of _0x233355)_0xcd1ff0['remove'](_0x46ac6d);}(_0x2ab28c,_0x1ec8c4['content']),!_0xd273a1)return;const {selection:_0x1cbff4}=_0x283b44['document'],_0x1cafd1=_0x1cbff4['getFirstRange']()['root'];_0x52d7c8&&!_0x10315d||(_0x52d7c8=c(_0x2ab28c,_0x1ec8c4['content']),_0x52d7c8||=_0x5c7eba['_insertEmptyFootnotesDefinitionsContainer'](_0x2ab28c,_0x1cafd1));const _0x2ecbe8=Array['from'](_0x1cbff4['getRanges']())['flatMap'](l),_0x473f52=function(_0x5705f3,_0x29559f,_0x454b26){const _0x5dc718=Object['create'](null);for(const {item:_0xec9728}of _0x5705f3['createRangeIn'](_0x29559f))if(_0xec9728['is']('element','footnoteRef')){const _0x3a847f=_0xec9728['getAttribute']('footnoteId');if(!_0x454b26(_0x3a847f))continue;_0x5dc718[_0x3a847f]||(_0x5dc718[_0x3a847f]=_0x5a873e()),_0x5705f3['setAttribute']('footnoteId',_0x5dc718[_0x3a847f],_0xec9728);}return _0x5dc718;}(_0x2ab28c,_0x1ec8c4['content'],_0x40eeeb=>{if(!_0x5c3838)return!0x0;return!!_0x5c7eba['getFootnote'](_0x40eeeb)&&!_0x2ecbe8['includes'](_0x40eeeb);});for(const [_0x3d4242,_0x19111b]of Object['entries'](_0xd273a1)){const _0x50a81d=_0x473f52[_0x3d4242]||_0x3d4242;let _0x385b26;if('string'!=typeof _0x19111b)_0x385b26=_0x19111b,_0x50a81d!==_0x3d4242&&_0x2ab28c['setAttribute']('footnoteId',_0x50a81d,_0x385b26);else{_0x385b26=_0x2ab28c['createElement']('footnoteDefinition',{'footnoteId':_0x50a81d});const _0x4ae267=_0x26b849['data']['htmlProcessor']['toView'](_0x19111b);let _0x39eec9;if(_0xf159df)_0x39eec9=_0x26b849['data']['toModel'](_0x4ae267,_0x385b26);else{_0x39eec9=_0x2ab28c['createElement']('footnoteInlineContent');const _0x55d7fa=_0x26b849['data']['toModel'](_0x4ae267,_0x39eec9);_0x2ab28c['insert'](_0x55d7fa,_0x39eec9);}_0x2ab28c['append'](_0x39eec9,_0x385b26);}_0x2ab28c['insert'](_0x385b26,_0x52d7c8,'end');}_0xd273a1=null;});});}}function c(_0x4368cb,_0x39e2b6){for(const {item:_0x1b152a}of _0x4368cb['createRangeIn'](_0x39e2b6))if(_0x1b152a['is']('element','footnotesDefinitions'))return _0x1b152a;return null;}function l(_0x385d58){const _0x5714cc=new Set();for(const {item:_0x4b4eac}of _0x385d58)_0x4b4eac['is']('element','footnoteRef')&&_0x5714cc['add'](_0x4b4eac['getAttribute']('footnoteId'));return Array['from'](_0x5714cc);}class i extends _0x352caa{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2465a7}=this,{componentFactory:_0x3a581e}=_0x2465a7['ui'];_0x3a581e['add']('insertFootnote',E(_0x2465a7,_0x2b0496)),_0x3a581e['add']('menuBar:insertFootnote',E(_0x2465a7,_0x22563e)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x36f7eb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b976b;for(const _0x26b3ad in _0x36f7eb){const _0x2132fc=_0x26b3ad,_0x442eeb=_0x36f7eb[_0x2132fc];if('footnotesLicenseKeyValid'==_0x442eeb||'footnotesLicenseKeyInvalid'==_0x442eeb||'footnotesLicenseKeyExpired'==_0x442eeb||'footnotesLicenseKeyDomainLimit'==_0x442eeb||'footnotesLicenseKeyNotAllowed'==_0x442eeb||'footnotesLicenseKeyEvaluationLimit'==_0x442eeb||'footnotesLicenseKeyUsageLimit'==_0x442eeb){delete _0x36f7eb[_0x2132fc],_0x4b976b=_0x442eeb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x4b976b&&_0x36f7eb['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x4b976b&&_0x36f7eb['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x4b976b&&_0x36f7eb['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x4b976b&&_0x36f7eb['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x4b976b&&_0x36f7eb['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x4b976b&&_0x36f7eb['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x1bcae6,_0x335d9a){const _0x4eb0b2=_0x1bcae6['commands']['get']('insertFootnote');return _0x1fbf3b=>{const {t:t}=_0x1fbf3b,_0x3a2cff=new _0x335d9a(_0x1fbf3b),_0x92bc5c=_0x3a2cff instanceof _0x22563e;return _0x3a2cff['bind']('isEnabled')['to'](_0x4eb0b2,'isEnabled'),_0x3a2cff['set']({'label':t(_0x92bc5c?'Footnote':'Insert\x20footnote'),'icon':_0x4974f4,'tooltip':!0x0}),_0x3a2cff['on']('execute',()=>{_0x4eb0b2['execute'](),_0x1bcae6['editing']['view']['focus']();}),_0x3a2cff;};}class lt extends _0x352caa{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 _0x6d233a{['refresh'](){const {editor:_0x2a1366}=this,_0x5af5e8=_0x2a1366['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x5af5e8,this['value']=_0x5af5e8?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x5b2a72}){const {editor:_0x407fd7}=this,_0x5da064=_0x407fd7['plugins']['get'](f),_0x2c3a43=_0x5da064['getFootnotesDefinitionsObjectElement']();_0x2c3a43&&W['includes'](_0x5b2a72)&&_0x407fd7['model']['change'](_0x1e6182=>{_0x1e6182['setAttribute']('footnotesListStyle',_0x5b2a72,_0x2c3a43),_0x5da064['_updateFootnotesCounters'](_0x1e6182);});}}class C extends _0x6d233a{['refresh'](){const {editor:_0x3c0c21}=this,_0x3f59a8=_0x3c0c21['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3f59a8,this['value']=_0x3f59a8?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x11bce7}){const {editor:_0x48d870}=this,_0x41eef0=_0x48d870['plugins']['get'](f),_0x5ea20f=_0x41eef0['getFootnotesDefinitionsObjectElement']();_0x5ea20f&&Number['isInteger'](_0x11bce7)&&_0x48d870['model']['change'](_0x1cf72e=>{_0x1cf72e['setAttribute']('footnotesListStart',_0x11bce7,_0x5ea20f),_0x41eef0['_updateFootnotesCounters'](_0x1cf72e);});}}class P extends _0x352caa{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x20cb2a}=this;_0x20cb2a['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x20cb2a['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x20cb2a['commands']['add']('footnotesStyle',new S(_0x20cb2a)),_0x20cb2a['commands']['add']('footnotesStart',new C(_0x20cb2a)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x1866e7}=this,{schema:_0x5b8556}=_0x1866e7['model'];_0x5b8556['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x4f8c48}=this,{conversion:_0x3b21f8,model:_0x42fefd}=_0x4f8c48,{schema:_0x6a0269}=_0x42fefd;_0x3b21f8['for']('upcast')['add'](_0x42c563=>{_0x42c563['on']('element:ol',(_0x17a260,_0x5c90b1,_0x56c63a)=>{const _0x54edb6=_0x5c90b1['viewItem'],_0x35ba0d=_0x5c90b1['modelCursor']?.['parent'];_0x54edb6['hasClass']('footnotes-list')&&_0x35ba0d?.['is']('element','footnotesDefinitions')&&(function(_0x45ea09,_0x265e40,_0x502c09,_0x11ae1b){if(!_0x11ae1b['checkAttribute'](_0x265e40,'footnotesListStart'))return;let _0x5d9131=0x1;const _0x3ec7e2=_0x502c09['consumable']['consume'](_0x45ea09,{'attributes':'start'});if(_0x3ec7e2){const _0x28e42c=Number['parseInt'](_0x45ea09['getAttribute']('start'),0xa);Number['isNaN'](_0x28e42c)||(_0x5d9131=_0x28e42c);}!_0x3ec7e2&&_0x265e40['hasAttribute']('footnotesListStart')||_0x502c09['writer']['setAttribute']('footnotesListStart',_0x5d9131,_0x265e40);}(_0x54edb6,_0x35ba0d,_0x56c63a,_0x6a0269),function(_0x21ac00,_0x2ef652,_0x549950,_0x439be9){if(!_0x439be9['checkAttribute'](_0x2ef652,'footnotesListStyle'))return;let _0x5519dd='decimal',_0x3b154c=!0x1;if(_0x549950['consumable']['consume'](_0x21ac00,{'attributes':'type'})){const _0x58624f={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x21ac00['getAttribute']('type')];_0x58624f&&(_0x5519dd=_0x58624f),_0x3b154c=!0x0;}_0x549950['consumable']['consume'](_0x21ac00,{'styles':'list-style-type'})&&(_0x5519dd=function(_0x47b46c){switch(_0x47b46c){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x47b46c;}}(_0x21ac00['getStyle']('list-style-type')),_0x3b154c=!0x0),!_0x3b154c&&_0x2ef652['hasAttribute']('footnotesListStyle')||_0x549950['writer']['setAttribute']('footnotesListStyle',_0x5519dd,_0x2ef652);}(_0x54edb6,_0x35ba0d,_0x56c63a,_0x6a0269));});}),_0x3b21f8['for']('downcast')['add'](_0x2698bb=>{_0x2698bb['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x2ae6a8,_0x5c806a,_0x1488f6)=>{if(!_0x1488f6['consumable']['consume'](_0x5c806a['item'],_0x2ae6a8['name']))return;const _0x5df663=M(_0x5c806a['item'],_0x1488f6['mapper']),{attributeNewValue:_0x35b7ad}=_0x5c806a;null==_0x35b7ad||0x1===_0x35b7ad?_0x1488f6['writer']['removeAttribute']('start',_0x5df663):_0x1488f6['writer']['setAttribute']('start',String(_0x35b7ad),_0x5df663);}),_0x2698bb['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x3475f2,_0x4fded4,_0x266f6d)=>{if(!_0x266f6d['consumable']['consume'](_0x4fded4['item'],_0x3475f2['name']))return;const _0x1e9500=M(_0x4fded4['item'],_0x266f6d['mapper']),{attributeNewValue:_0x352f11}=_0x4fded4;_0x352f11&&'decimal'!==_0x352f11?_0x266f6d['writer']['setStyle']('list-style-type',_0x352f11,_0x1e9500):_0x266f6d['writer']['removeStyle']('list-style-type',_0x1e9500);});});}['_definePostfixer'](){const {editor:_0x3ef5e5}=this,{model:_0x44b66f}=_0x3ef5e5,_0x57acb6=_0x3ef5e5['plugins']['get'](f),_0x1e9f38=this['_getDefaultListStyle'](),_0x1c9fc4=this['_getDefaultStartIndex']();_0x44b66f['document']['registerPostFixer'](_0x50db41=>{const _0x35d5ed=_0x44b66f['document']['differ']['getChanges']();let _0x49a445=!0x1;for(const _0x233bf8 of _0x35d5ed){if('insert'!==_0x233bf8['type']||'$text'===_0x233bf8['name'])continue;const _0x5db624=_0x44b66f['createRangeOn'](_0x233bf8['position']['nodeAfter']);for(const _0x4d8cbc of _0x5db624['getItems']())_0x4d8cbc['is']('element','footnotesDefinitions')&&(!_0x4d8cbc['hasAttribute']('footnotesListStart')&&_0x44b66f['schema']['checkAttribute'](_0x4d8cbc,'footnotesListStart')&&(_0x50db41['setAttribute']('footnotesListStart',_0x1c9fc4,_0x4d8cbc),_0x49a445=!0x0),!_0x4d8cbc['hasAttribute']('footnotesListStyle')&&_0x44b66f['schema']['checkAttribute'](_0x4d8cbc,'footnotesListStyle')&&(_0x50db41['setAttribute']('footnotesListStyle',_0x1e9f38,_0x4d8cbc),_0x49a445=!0x0));}return _0x49a445&&_0x57acb6['_updateFootnotesCounters'](_0x50db41),_0x49a445;});}['_defineFormatter'](){const {editor:_0x5e47fe}=this;_0x5e47fe['plugins']['get'](f)['setFootnoteFormatter'](_0x353d89=>this['_formatFootnoteListValue'](_0x353d89));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x7b0fae,value:_0x5bf5f4,digits:_0xb7196d}){const _0x1262bc=_0x7b0fae['getAttribute']('footnotesListStyle'),_0x40daea=_0x7b0fae['getAttribute']('footnotesListStart'),_0x19d9ea=Math['floor'](_0x5bf5f4)+(_0x40daea??0x1)-0x1;switch(_0x1262bc){case'decimal-leading-zero':return function(_0x5750d5,_0x4081d7){return String(_0x5750d5)['padStart'](_0x4081d7,'0');}(_0x19d9ea,Math['max'](0x2,_0xb7196d));case'lower-alpha':case'lower-latin':return N(_0x19d9ea,!0x1);case'upper-alpha':case'upper-latin':return N(_0x19d9ea,!0x0);case'lower-roman':return X(_0x19d9ea,!0x1);case'upper-roman':return X(_0x19d9ea,!0x0);default:return String(_0x19d9ea);}}}function M(_0xc1373a,_0xb68b57){const _0x351676=_0xb68b57['toViewElement'](_0xc1373a);return Array['from'](_0x351676['getChildren']())['find'](_0x3c3a25=>_0x3c3a25['is']('element','ol')&&_0x3c3a25['hasClass']('footnotes-list'));}function N(_0x4e9ee0,_0x170ee9){let _0x3f808b='',_0x428a6a=_0x4e9ee0;for(;_0x428a6a>0x0;){const _0x507acf=(_0x428a6a-0x1)%0x1a;_0x3f808b=String['fromCharCode'](0x61+_0x507acf)+_0x3f808b,_0x428a6a=Math['floor']((_0x428a6a-0x1)/0x1a);}return _0x170ee9?_0x3f808b['toUpperCase']():_0x3f808b;}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(_0x2e66c2,_0x53b707){let _0xb64156='',_0x39f524=_0x2e66c2;for(const {value:_0x5f4272,numeral:_0x1093d1}of V)for(;_0x39f524>=_0x5f4272;)_0xb64156+=_0x1093d1,_0x39f524-=_0x5f4272;return _0x53b707?_0xb64156:_0xb64156['toLowerCase']();}class J extends _0x38df8b{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x1fa9dc();['focusCycler'];constructor(_0x398610,{styleButtonViews:_0x1f91d0,styleGridAriaLabel:_0x130298}){super(_0x398610),(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'](_0x1f91d0,_0x130298),[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 _0x5f6811 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x5f6811['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 _0x1ae717=_0xf1ecaa=>_0xf1ecaa['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1ae717),this['keystrokes']['set']('arrowleft',_0x1ae717),this['keystrokes']['set']('arrowup',_0x1ae717),this['keystrokes']['set']('arrowdown',_0x1ae717);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x39e994,_0x7ca48f){const _0x11d2f0=new _0x38df8b(this['locale']);return _0x11d2f0['children']=_0x11d2f0['createCollection'](),_0x11d2f0['children']['addMany'](_0x39e994),_0x11d2f0['setTemplate']({'tag':'div','attributes':{'aria-label':_0x7ca48f,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x11d2f0['children']}),_0x11d2f0['children']['delegate']('execute')['to'](this),_0x11d2f0['focus']=function(){for(const _0x5be63b of this['children'])if(_0x5be63b instanceof _0x2b0496&&_0x5be63b['isOn'])return void _0x5be63b['focus']();this['children']['first']['focus']();},_0x11d2f0['focusTracker']=new rt(),_0x11d2f0['keystrokes']=new nt(),_0x11d2f0['render'](),_0x11d2f0['keystrokes']['listenTo'](_0x11d2f0['element']),this['children']['add'](_0x11d2f0),_0x11d2f0;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x11dc18=this['_createStartIndexPropertyView'](),_0x4c2211=[_0x11dc18],_0xfad5cf=new it(this['locale'],_0x4c2211);return _0xfad5cf['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0xfad5cf['buttonView']['bind']('isEnabled')['toMany'](_0x4c2211,'isEnabled',(..._0x20ebae)=>_0x20ebae['some'](_0x441dab=>_0x441dab)),_0xfad5cf['buttonView']['on']('change:isEnabled',(_0x28f918,_0x230992,_0x333ca1)=>{_0x333ca1||(_0xfad5cf['isCollapsed']=!0x0);}),this['children']['add'](_0xfad5cf),[_0x11dc18,_0xfad5cf];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2bd373=new et(this['locale'],ot);return _0x2bd373['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2bd373['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2bd373['fieldView']['on']('input',()=>{const _0x4c8caf=_0x2bd373['fieldView']['element'],_0x2498f0=_0x4c8caf['valueAsNumber'];Number['isNaN'](_0x2498f0)?_0x2bd373['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x4c8caf['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x2498f0}):_0x2bd373['errorText']=t(_0x2498f0<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2bd373;}}class j extends _0x352caa{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x22ed8e,_0x6de8f4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1de937}=this,{componentFactory:_0x1ebd52}=_0x1de937['ui'];_0x1de937['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x1ebd52['add']('footnotesStyle',function(_0x23b83f){return _0x13f326=>{const {t:t}=_0x13f326,_0x814ac2=_0x23b83f['commands']['get']('footnotesStyle'),_0x10ebe8=_0x4a9d71(_0x13f326),{buttonView:_0xc4c3f3}=_0x10ebe8;return _0x10ebe8['class']='ck-footnotes-styles-dropdown',_0x10ebe8['bind']('isEnabled')['to'](_0x814ac2,'isEnabled'),_0xc4c3f3['set']({'label':t('Footnotes\x20style'),'icon':_0x4974f4,'tooltip':!0x0}),_0x10ebe8['once']('change:isOpen',()=>{const _0x4c2119=function({editor:_0x50b765,dropdownView:_0x564b34}){const {t:t}=_0x50b765['locale'],_0x180219=t('Footnotes\x20definitions\x20styles'),_0xed2305=function(_0x1c5787){const t=_0x1c5787['locale']['t'],_0x40765d=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x1b04a1},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0xfea4bd},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x5442f8},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x1a412d},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x43062d},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0xd5dc28}];return _0x40765d['map'](function(_0x383487){const _0x34e1ed=_0x383487['locale'];return({label:_0xc4e268,icon:_0x42d82b,tooltip:_0x1dce48,style:_0x69be6d})=>{const _0x37fc71=_0x383487['commands']['get']('footnotesStyle'),_0x3bd082=new _0x2b0496(_0x34e1ed);return _0x3bd082['set']({'label':_0xc4e268,'icon':_0x42d82b,'tooltip':_0x1dce48}),_0x3bd082['bind']('isOn')['to'](_0x37fc71,'value',_0x54ee20=>_0x54ee20===_0x69be6d),_0x3bd082['bind']('isEnabled')['to'](_0x37fc71,'isEnabled'),_0x3bd082['on']('execute',()=>{_0x383487['execute']('footnotesStyle',{'value':_0x69be6d}),_0x383487['editing']['view']['focus']();}),_0x3bd082;};}(_0x1c5787));}(_0x50b765),_0x37b810=new J(_0x50b765['locale'],{'styleGridAriaLabel':_0x180219,'styleButtonViews':_0xed2305}),_0x1827ed=_0x50b765['commands']['get']('footnotesStart');return _0x37b810['startIndexFieldView']['bind']('isEnabled')['to'](_0x1827ed),_0x37b810['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x1827ed),_0x37b810['on']('footnotesListStart',(_0x2fc20d,_0x53e0db)=>{_0x50b765['execute']('footnotesStart',{'value':_0x53e0db['startIndex']});}),_0x37b810['delegate']('execute')['to'](_0x564b34),_0x37b810;}({'editor':_0x23b83f,'dropdownView':_0x10ebe8});_0x10ebe8['panelView']['children']['add'](_0x4c2119);}),_0x10ebe8;};}(_0x1de937));}['afterInit'](){const {editor:_0x4d910f}=this,{t:t}=_0x4d910f['locale'],_0x528c7d=_0x4d910f['plugins']['get'](_0x6de8f4),{defaultPositions:_0x1f9090}=_0x4ecc20;_0x528c7d['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x4d910f['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x388de6=>{let _0x59c2aa=_0x388de6['getFirstPosition']()?.['parent'];return _0x59c2aa?.['is']('$text')&&(_0x59c2aa=_0x59c2aa['parent']),_0x59c2aa?.['is']('element')?_0x59c2aa['findAncestor'](Q):null;},'positions':[_0x1f9090['southArrowNorth'],_0x1f9090['southArrowNorthMiddleWest'],_0x1f9090['southArrowNorthMiddleEast'],_0x1f9090['southArrowNorthWest'],_0x1f9090['southArrowNorthEast'],_0x1f9090['northArrowSouth'],_0x1f9090['northArrowSouthMiddleWest'],_0x1f9090['northArrowSouthMiddleEast'],_0x1f9090['northArrowSouthWest'],_0x1f9090['northArrowSouthEast'],_0x1f9090['viewportStickyNorth']]});}}class ft extends _0x352caa{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 _0xee8887,Command as _0x1bdab6}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x484ea4,isWidget as _0x49edcf,toWidgetEditable as _0x3b08d9,WidgetToolbarRepository as _0x3304da}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x549f76,logWarning as _0x26b71e,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x3a395c,ClickObserver as _0x4d8ee8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x19c946}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x560856,ButtonView as _0x459347,View as _0x417880,ViewCollection as _0x2704d5,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x22b615,BalloonPanelView as _0x223c43,createDropdown as _0x531f60}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x1b32ad,IconListStyleDecimal as _0x1919b1,IconListStyleDecimalLeadingZero as _0x1ab4a3,IconListStyleLowerRoman as _0x43d0ec,IconListStyleUpperRoman as _0x2aa31d,IconListStyleLowerLatin as _0x31a8a9,IconListStyleUpperLatin as _0x368341}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x2f5512,_0x59516b){this['_model']=_0x2f5512,this['_elementName']=_0x59516b['elementName'],this['_getElementKey']=_0x59516b['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x2a3d86){const _0x3a2ffa=new Set(),_0x512a59=new Map();for(const _0xe17da0 of _0x2a3d86){if('insert'===_0xe17da0['type']&&'$text'!==_0xe17da0['name']&&_0xe17da0['position']['nodeAfter']){const _0x2187cd=this['_model']['createRangeOn'](_0xe17da0['position']['nodeAfter']);for(const _0x3ca607 of _0x2187cd['getItems']()){if(!_0x3ca607['is']('element',this['_elementName']))continue;const _0x528ee3=this['_getElementKey'](_0x3ca607);_0x512a59['has'](_0x528ee3)||_0x512a59['set'](_0x528ee3,[]),_0x512a59['get'](_0x528ee3)['push'](_0x3ca607);}}if('remove'===_0xe17da0['type']&&_0xe17da0['name']===this['_elementName']){const _0x6d6332=this['_getElementKey']({'getAttribute':_0x119bba=>_0xe17da0['attributes']['get'](_0x119bba)});_0x3a2ffa['add'](_0x6d6332);}}for(const [_0x57ff54,_0x4f6bda]of this['_trackedElements'])'$graveyard'===_0x4f6bda['root']['rootName']&&_0x3a2ffa['add'](_0x57ff54);for(const _0x561095 of _0x3a2ffa)this['_trackedElements']['delete'](_0x561095);for(const [_0x30034c,_0x572380]of _0x512a59)this['_trackedElements']['set'](_0x30034c,_0x572380[_0x572380['length']-0x1]);const _0x38fedd=new Set();for(const [_0x4524c5,_0xa87cf6]of _0x512a59)_0x3a2ffa['has'](_0x4524c5)&&(_0x38fedd['add'](_0xa87cf6[0x0]),_0xa87cf6['length']>0x1?_0x512a59['set'](_0x4524c5,_0xa87cf6['slice'](0x1)):_0x512a59['delete'](_0x4524c5),_0x3a2ffa['delete'](_0x4524c5));return{'removed':Array['from'](_0x3a2ffa),'inserted':Array['from'](_0x512a59['values']())['flat'](),'moved':Array['from'](_0x38fedd)};}}class f extends _0xee8887{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41d3ce){super(_0x41d3ce),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x6c4557=>_0x6c4557['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x408982=>_0x408982['getAttribute']('footnoteId')});}['init'](){const {editor:_0x7ffc4c}=this,{model:_0x3984ec,data:_0x1fc1a0}=_0x7ffc4c;_0x3984ec['document']['registerPostFixer'](_0x29f986=>{const _0x51cd9d=_0x3984ec['document']['differ']['getChanges']();let _0xeb128c=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x29f986,_0x51cd9d)&&(_0xeb128c=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x29f986,_0x51cd9d)&&(_0xeb128c=!0x0),this['_handleFootnoteReferencesChanges'](_0x29f986,_0x51cd9d)&&(_0xeb128c=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x29f986)&&(_0xeb128c=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x29f986)&&(_0xeb128c=!0x0),this['_sortFootnoteDefinitions'](_0x29f986)&&(_0xeb128c=!0x0),_0xeb128c;}),this['listenTo'](_0x3984ec['document'],'change:data',()=>{_0x3984ec['enqueueChange']({'isUndoable':!0x1},_0x21511f=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x21511f);});},{'priority':'low'}),this['listenTo'](_0x1fc1a0,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x4f5e0e){return this['_footnotes']['find'](_0x3e3f17=>_0x3e3f17['id']===_0x4f5e0e)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x42db4f){this['_footnoteFormatter']=_0x42db4f;}['_updateFootnotesCounters'](_0x371e5a,_0xdac1de=0x0){let _0x564d9c=!0x1;for(let _0x187ff7=_0xdac1de;_0x187ff7<this['_footnotes']['length'];_0x187ff7++)this['_updateFootnoteRefCounter'](_0x371e5a,_0x187ff7)&&(_0x564d9c=!0x0);return _0x564d9c;}['_insertEmptyFootnotesDefinitionsContainer'](_0x3e310b,_0x370796){const _0x10e7f8=_0x3e310b['createElement']('footnotesDefinitions',{});return _0x3e310b['append'](_0x10e7f8,_0x370796),this['_footnotesDefinitions']=_0x10e7f8,_0x10e7f8;}['_ensureFootnotesDefinitionsContainerExists'](_0x2058aa){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x158bc8=this['_footnotes'][0x0]['reference']['root'],_0x3829e5=this['_insertEmptyFootnotesDefinitionsContainer'](_0x2058aa,_0x158bc8);for(const _0x1646c9 of this['_footnotes'])_0x1646c9['definition']['parent']||_0x2058aa['insert'](_0x1646c9['definition'],_0x3829e5,'end');this['_updateFootnotesCounters'](_0x2058aa);}['_handleFootnotesDefinitionsObjectChanges'](_0xd8aad8,_0x4e8a0b){let _0x2375e9=!0x1;const {inserted:_0x3d438c,removed:_0x312dbf,moved:_0x2e4c38}=this['_footnoteDefsContainerTracker']['getChanges'](_0x4e8a0b);if(_0x2e4c38['length']&&(this['_footnotesDefinitions']=_0x2e4c38[0x0]),_0x3d438c['length']){if(_0x3d438c['length']>0x1||this['_footnotesDefinitions']&&_0x3d438c['some'](_0x421235=>_0x421235!==this['_footnotesDefinitions'])){const _0xbdc63d=_0xd8aad8['createElement']('footnotesDefinitions',{}),_0x16a999=[];this['_footnotesDefinitions']&&_0x16a999['push'](this['_footnotesDefinitions']),_0x16a999['push'](..._0x3d438c),_0xd8aad8['insert'](_0xbdc63d,_0x16a999[0x0],'before');for(const _0x5bff7c of _0x16a999)_0xd8aad8['move'](_0xd8aad8['createRangeIn'](_0x5bff7c),_0xd8aad8['createPositionAt'](_0xbdc63d,'end')),_0xd8aad8['remove'](_0x5bff7c);this['_footnotesDefinitions']=_0xbdc63d,this['_updateFootnotesCounters'](_0xd8aad8),_0x2375e9=!0x0;}else this['_footnotesDefinitions']=_0x3d438c[0x0];}if(_0x312dbf['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x4cd1fb of this['_footnotes'])_0xd8aad8['remove'](_0x4cd1fb['reference']),_0x2375e9=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x2375e9;}['_handleFootnoteDefinitionsChanges'](_0x235b93,_0x59361e){let _0x53918f=!0x1;const _0x2095f9=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x2a8ef8,moved:_0x9b44fb}=this['_footnoteDefsTracker']['getChanges'](_0x59361e);for(const _0x4bbaeb of[..._0x9b44fb,..._0x2a8ef8]){const _0x3906f1=_0x4bbaeb['getAttribute']('footnoteId'),_0xe0cc53=this['getFootnote'](_0x3906f1);_0xe0cc53&&(_0xe0cc53['definition']=_0x4bbaeb),_(_0x235b93,_0x2095f9,_0x4bbaeb)&&(_0x53918f=!0x0);}return _0x53918f;}['_handleFootnoteReferencesChanges'](_0x569a4e,_0x4a1584){let _0x3eb39e=!0x1;const {removed:_0x1f86d3,inserted:_0x2ce786,moved:_0xff0c7f}=this['_footnoteRefsTracker']['getChanges'](_0x4a1584);for(const _0x6dd2a7 of _0x1f86d3)this['_handleRemoveFootnoteReferenceById'](_0x569a4e,_0x6dd2a7)&&(_0x3eb39e=!0x0);for(const _0x4d9a57 of _0x2ce786)this['_handleInsertedFootnoteReference'](_0x569a4e,_0x4d9a57)&&(_0x3eb39e=!0x0);for(const _0x2f9c60 of _0xff0c7f)this['_handleMovedFootnoteReference'](_0x569a4e,_0x2f9c60)&&(_0x3eb39e=!0x0);return _0x3eb39e;}['_handleFootnotesDefinitionsObjectSync'](_0x1732af){if(!this['_footnotesDefinitions'])return!0x1;let _0x5e8922=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x11fcd4=[];for(const _0x4b58ac of this['_footnotesDefinitions']['getChildren']()){const _0x52e930=_0x4b58ac['getAttribute']('footnoteId');this['getFootnote'](_0x52e930)||(_0x11fcd4['unshift'](_0x4b58ac),_0x5e8922=!0x0);}for(const _0x13ba1e of _0x11fcd4)_0x1732af['remove'](_0x13ba1e);}const _0x2605f5=new Set(),_0x4a07d6=[];for(const _0x465d02 of this['_footnotesDefinitions']['getChildren']()){const _0x52e0e0=_0x465d02['getAttribute']('footnoteId');_0x2605f5['has'](_0x52e0e0)?(_0x4a07d6['unshift'](_0x465d02),_0x5e8922=!0x0):_0x2605f5['add'](_0x52e0e0);}for(const _0x560631 of _0x4a07d6)_0x1732af['remove'](_0x560631);return this['_footnotesDefinitions']['childCount']||(_0x1732af['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x5e8922=!0x0),_0x5e8922;}['_handleInsertedFootnoteReference'](_0x44ea40,_0x341628){if(this['_footnotes']['find'](_0x5bb375=>_0x5bb375['reference']===_0x341628))return!0x1;let _0x3c7f2f=!0x1;const _0x119f41=_0x341628['getAttribute']('footnoteId'),_0x4477f0=this['_footnotes']['findIndex'](_0x23882f=>_0x23882f['id']===_0x119f41);-0x1!==_0x4477f0&&(_0x44ea40['remove'](this['_footnotes'][_0x4477f0]['reference']),this['_footnotes']['splice'](_0x4477f0,0x1),_0x3c7f2f=!0x0);let _0x48081f=this['_footnotesDefinitions']?function(_0x157a5f,_0x1b4b96){for(const _0x245f9d of _0x157a5f['getChildren']())if(_0x245f9d['getAttribute']('footnoteId')===_0x1b4b96)return _0x245f9d;return null;}(this['_footnotesDefinitions'],_0x119f41):null;_0x48081f||(_0x48081f=_0x44ea40['createElement']('footnoteDefinition',{'footnoteId':_0x119f41}),this['_footnotesDefinitions']&&(_0x44ea40['insert'](_0x48081f,this['_footnotesDefinitions'],'end'),_0x3c7f2f=!0x0));const _0x2b68ff={'id':_0x119f41,'reference':_0x341628,'definition':_0x48081f},_0x20368d=I(this['editor']['model'],this['_footnotes'],_0x341628);this['_footnotes']['splice'](_0x20368d,0x0,_0x2b68ff);let _0x5c837e=_0x20368d;return-0x1!==_0x4477f0&&(_0x5c837e=Math['min'](_0x20368d,_0x4477f0)),this['_updateFootnotesCounters'](_0x44ea40,_0x5c837e)&&(_0x3c7f2f=!0x0),_0x3c7f2f;}['_handleRemoveFootnoteReferenceById'](_0x5badad,_0x362a4e){const _0x5b9e82=this['_footnotes']['findIndex'](_0x2fa018=>_0x2fa018['id']===_0x362a4e);if(-0x1===_0x5b9e82)return!0x1;let _0x3ff5d5=!0x1;const _0x1d5b19=this['_footnotes'][_0x5b9e82];return'$graveyard'!==_0x1d5b19['definition']['root']['rootName']&&(_0x5badad['remove'](_0x1d5b19['definition']),_0x3ff5d5=!0x0),this['_footnotes']['splice'](_0x5b9e82,0x1),this['_updateFootnotesCounters'](_0x5badad,_0x5b9e82)&&(_0x3ff5d5=!0x0),_0x3ff5d5;}['_handleMovedFootnoteReference'](_0x242454,_0x162ed2){const _0x36b6dc=_0x162ed2['getAttribute']('footnoteId'),_0x29868a=this['_footnotes']['findIndex'](_0x26a917=>_0x26a917['id']===_0x36b6dc),_0x5b03fb=this['_footnotes'][_0x29868a];let _0x1a7d43=!0x1;_0x5b03fb['reference']=_0x162ed2,this['_footnotes']['splice'](_0x29868a,0x1);const _0x4445d2=I(this['editor']['model'],this['_footnotes'],_0x162ed2);return this['_footnotes']['splice'](_0x4445d2,0x0,_0x5b03fb),this['_updateFootnotesCounters'](_0x242454,Math['min'](_0x29868a,_0x4445d2))&&(_0x1a7d43=!0x0),_0x1a7d43;}['_updateFootnoteRefCounter'](_0x3a72aa,_0x1f0424){if(!this['_footnotesDefinitions'])return!0x1;const _0x2dbc4c=this['_footnotes'][_0x1f0424];let _0x266af3;return _0x266af3=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x2dbc4c,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x1f0424+0x1}):String(_0x1f0424+0x1),_0x2dbc4c['reference']['getAttribute']('footnoteCounter')!=_0x266af3&&(_0x3a72aa['setAttribute']('footnoteCounter',_0x266af3,_0x2dbc4c['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x25c0cd){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x2943be,_0xb83165){if(_0x2943be['length']!==_0xb83165['length'])return!0x1;for(let _0x589250=0x0;_0x589250<_0x2943be['length'];_0x589250++)if(_0x2943be[_0x589250]!==_0xb83165[_0x589250])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x37952a=>_0x37952a['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x120f4d=>_0x120f4d['getAttribute']('footnoteId'))))return!0x1;let _0x503857=!0x1;for(let _0x1ebedc=0x0;_0x1ebedc<this['_footnotes']['length'];_0x1ebedc++){const _0x3606b6=this['_footnotes'][_0x1ebedc],_0x51e322=_0x25c0cd['createPositionBefore'](_0x3606b6['definition']),_0x308b53=_0x25c0cd['createPositionAt'](this['_footnotesDefinitions'],_0x1ebedc);_0x51e322['isEqual'](_0x308b53)||(_0x25c0cd['move'](_0x25c0cd['createRangeOn'](_0x3606b6['definition']),_0x308b53),_0x503857=!0x0);}return _0x503857;}['_ensureFootnotesReferencesHaveProperOrder'](_0x5501d8){if(!this['_footnotes']['length'])return!0x1;const {model:_0x536375}=this['editor'];let _0x348f7e=!0x1;for(let _0x4f0e5b=0x0;_0x4f0e5b<this['_footnotes']['length']-0x1;_0x4f0e5b++){const _0x363915=this['_footnotes'][_0x4f0e5b],_0x5b1079=this['_footnotes'][_0x4f0e5b+0x1],_0x4b36e5=_0x536375['createPositionBefore'](_0x363915['reference']),_0x35a8e6=_0x536375['createPositionBefore'](_0x5b1079['reference']);'after'===_0x4b36e5['compareWith'](_0x35a8e6)&&(this['_handleMovedFootnoteReference'](_0x5501d8,_0x363915['reference']),_0x4f0e5b=-0x1,_0x348f7e=!0x0);}return _0x348f7e;}}function _(_0x40eb8f,_0x406502,_0x43e605){if(_0x43e605['childCount'])return!0x1;const _0x56b012=_0x406502?'paragraph':'footnoteInlineContent';return _0x40eb8f['insert'](_0x40eb8f['createElement'](_0x56b012),_0x43e605),!0x0;}function I(_0x2200b7,_0x432b85,_0x50d08d){if(0x0===_0x432b85['length'])return 0x0;const _0x52648e=_0x2200b7['createPositionBefore'](_0x50d08d);for(let _0x530752=0x0;_0x530752<_0x432b85['length'];_0x530752++){const _0x22e09f=_0x432b85[_0x530752],_0x24013a=_0x2200b7['createPositionBefore'](_0x22e09f['reference']);if('before'===_0x52648e['compareWith'](_0x24013a))return _0x530752;}const _0x527824=_0x50d08d['root'];let _0x9d86fc=-0x1;for(let _0xb54c16=_0x432b85['length']-0x1;_0xb54c16>=0x0;_0xb54c16--)if(_0x432b85[_0xb54c16]['reference']['root']===_0x527824){_0x9d86fc=_0xb54c16;break;}if(-0x1!==_0x9d86fc)return _0x9d86fc+0x1;const _0x442c23=_0x2200b7['document']['getRootNames'](),_0x21c22f=_0x442c23['indexOf'](_0x527824['rootName']),_0xa95cb4=_0x442c23[_0x21c22f+0x1];if(_0xa95cb4){for(let _0x3fc42d=0x0;_0x3fc42d<_0x432b85['length'];_0x3fc42d++)if(_0x432b85[_0x3fc42d]['reference']['root']['rootName']===_0xa95cb4)return _0x3fc42d;}return _0x432b85['length'];}class h extends _0x1bdab6{['refresh'](){const _0x655c65=this['editor']['model']['document']['selection'],_0x181a13=this['_getPositionToInsertFootnote'](_0x655c65);this['isEnabled']=!!_0x181a13;}['execute'](_0x2bc492){const {editor:_0x2238ab}=this,{model:_0x5c65b3}=_0x2238ab,{selection:_0x30f6cb}=_0x5c65b3['document'],_0x402a30=this['_getPositionToInsertFootnote'](_0x30f6cb);if(!_0x402a30)return;const _0x11d8d3=_0x2238ab['plugins']['get']('FootnotesEditing'),_0x260c72=_0x2bc492?.['footnoteId']??_0x549f76();!function(_0x9df5e8){return'string'==typeof _0x9df5e8&&_0x9df5e8['length']>0x0&&!/\s/['test'](_0x9df5e8)&&!/^\d/['test'](_0x9df5e8);}(_0x260c72)?_0x26b71e('insert-footnote-command-executed-with-invalid-id'):(_0x5c65b3['change'](_0x1fb943=>{const _0x57bcc5=_0x1fb943['createElement']('footnoteRef',{'footnoteId':_0x260c72});_0x5c65b3['insertObject'](_0x57bcc5,_0x402a30,null);}),_0x11d8d3['_moveSelectionToFootnoteDefinition'](_0x260c72));}['_getPositionToInsertFootnote'](_0x54db48){const {model:_0x290741}=this['editor'],{schema:_0x52b95f}=_0x290741,_0x4e4c4a=_0x54db48['getFirstRange']();for(const _0x5e42a2 of _0x4e4c4a['getItems']())if(_0x52b95f['isBlock'](_0x5e42a2)||_0x52b95f['isObject'](_0x5e42a2))return null;const _0x489443=_0x4e4c4a['end'];return _0x52b95f['checkChild'](_0x489443,'footnoteRef')?_0x489443:null;}}class r extends _0xee8887{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x40a4ee}=this;_0x40a4ee['config']['define']('footnotes.multiBlock',!0x0),_0x40a4ee['commands']['add']('insertFootnote',new h(_0x40a4ee)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0xdcf243){const _0x4f701d=_0x18c3ee([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]),_0x4a9d94=0x47a28506,_0x28f8a9=0x47a5fb56^_0x4a9d94,_0x216a04=window[_0x18c3ee([0x44,0x61,0x74,0x65])][_0x18c3ee([0x6e,0x6f,0x77])](),_0x162f4f=_0xdcf243[_0x18c3ee([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x35a436=new window[(_0x18c3ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42e94c=>{_0x162f4f[_0x18c3ee([0x6f,0x6e,0x63,0x65])](_0x18c3ee([0x72,0x65,0x61,0x64,0x79]),_0x42e94c);}),_0x5e1403={[_0x18c3ee([0x6b,0x74,0x79])]:_0x18c3ee([0x45,0x43]),[_0x18c3ee([0x75,0x73,0x65])]:_0x18c3ee([0x73,0x69,0x67]),[_0x18c3ee([0x63,0x72,0x76])]:_0x18c3ee([0x50,0x2d,0x32,0x35,0x36]),[_0x18c3ee([0x78])]:_0x18c3ee([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]),[_0x18c3ee([0x79])]:_0x18c3ee([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]),[_0x18c3ee([0x61,0x6c,0x67])]:_0x18c3ee([0x45,0x53,0x32,0x35,0x36])},_0x23acac=_0x162f4f[_0x18c3ee([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x18c3ee([0x67,0x65,0x74])](_0x18c3ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x342330(){let _0x12a6b9,_0x28fae4=null,_0x4af1f1=null;try{if(_0x23acac==_0x18c3ee([0x47,0x50,0x4c]))return _0x18c3ee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x12a6b9=_0x36938d(),!_0x12a6b9)return _0x18c3ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x12a6b9[_0x18c3ee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4af1f1=_0x1043d5(_0x12a6b9[_0x18c3ee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x12a6b9[_0x18c3ee([0x6a,0x74,0x69])])),await _0x2bfa98()?_0x10fdd1()?_0x5640ae()?_0x18c3ee([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55452b()?(_0x12a6b9[_0x18c3ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18c3ee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x28fae4=_0x344dbd(_0x18c3ee([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3f59de()):_0x18c3ee([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x18c3ee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x18c3ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x18c3ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5640ae(){const _0x427ea1=[_0x18c3ee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x18c3ee([0x74,0x72,0x69,0x61,0x6c])][_0x18c3ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12a6b9[_0x18c3ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x216a04/0x3e8:0xe10*_0x28f8a9;return _0x12a6b9[_0x18c3ee([0x65,0x78,0x70])]<_0x427ea1;}function _0x10fdd1(){const _0x58f0cc=_0x12a6b9[_0x18c3ee([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x58f0cc&&(!!_0x58f0cc[_0x18c3ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18c3ee([0x2a]))||!!_0x58f0cc[_0x18c3ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18c3ee([0x46,0x4f,0x4f])));}function _0x55452b(){const _0xa429c9=_0x12a6b9[_0x18c3ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xa429c9||0x0==_0xa429c9[_0x18c3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x668128}=new URL(window[_0x18c3ee([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xa429c9[_0x18c3ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x668128))return!0x0;const _0x1d8c96=_0x668128[_0x18c3ee([0x73,0x70,0x6c,0x69,0x74])](_0x18c3ee([0x2e]));return _0xa429c9[_0x18c3ee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x298b77=>_0x298b77[_0x18c3ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18c3ee([0x2a])))[_0x18c3ee([0x6d,0x61,0x70])](_0x15c869=>_0x15c869[_0x18c3ee([0x73,0x70,0x6c,0x69,0x74])](_0x18c3ee([0x2e])))[_0x18c3ee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a27c5=>_0x5a27c5[_0x18c3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1d8c96[_0x18c3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x18c3ee([0x6d,0x61,0x70])](_0x37ea1a=>Array(_0x1d8c96[_0x18c3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x37ea1a[_0x18c3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x18c3ee([0x66,0x69,0x6c,0x6c])](_0x37ea1a[0x0]===_0x18c3ee([0x2a])?_0x18c3ee([0x2a]):'')[_0x18c3ee([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x37ea1a))[_0x18c3ee([0x73,0x6f,0x6d,0x65])](_0x5b2966=>_0x1d8c96[_0x18c3ee([0x65,0x76,0x65,0x72,0x79])]((_0x4f82a9,_0x31dfe5)=>_0x5b2966[_0x31dfe5]===_0x4f82a9||_0x5b2966[_0x31dfe5]===_0x18c3ee([0x2a])));}function _0x3f59de(){return _0x28fae4&&_0x4af1f1?new window[(_0x18c3ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40a6e7,_0x1acc96)=>{_0x28fae4[_0x18c3ee([0x74,0x68,0x65,0x6e])](_0x40a6e7,_0x1acc96),_0x4af1f1[_0x18c3ee([0x74,0x68,0x65,0x6e])](_0x4d406c=>{_0x4d406c!=_0x18c3ee([0x56,0x61,0x6c,0x69,0x64])&&_0x40a6e7(_0x4d406c);},_0x1acc96);}):_0x28fae4||_0x4af1f1||_0x18c3ee([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1043d5(_0x3e3d4,_0x1522da){return new window[(_0x18c3ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c3640=>{if(_0xf41e99())return _0x5c3640(_0x18c3ee([0x56,0x61,0x6c,0x69,0x64]));_0x2e32ee(),_0x162f4f[_0x18c3ee([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x18c3ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x222e5b=!0x1;const _0x354035=_0x549f76();function _0x5d68c7(_0x1999ba){return!!_0x1999ba&&(typeof _0x1999ba===_0x18c3ee([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1999ba===_0x18c3ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1999ba[_0x18c3ee([0x74,0x68,0x65,0x6e])]===_0x18c3ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1999ba[_0x18c3ee([0x63,0x61,0x74,0x63,0x68])]===_0x18c3ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x47e0e2(_0x26552e){_0x4480bd(_0x26552e)[_0x18c3ee([0x74,0x68,0x65,0x6e])](_0x3754ff=>{if(!_0x3754ff||_0x3754ff[_0x18c3ee([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x18c3ee([0x6f,0x6b]))return _0x18c3ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2ff3ae(_0x130800(_0x354035+_0x1522da))!=_0x3754ff[_0x18c3ee([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x18c3ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x18c3ee([0x56,0x61,0x6c,0x69,0x64]);})[_0x18c3ee([0x74,0x68,0x65,0x6e])](_0x1416a4=>(_0x5d108a(),_0x1416a4),()=>{const _0x3a2f19=_0x33e7bc();return null==_0x3a2f19?(_0x5d108a(),_0x18c3ee([0x56,0x61,0x6c,0x69,0x64])):_0x18c3ee(_0x216a04-_0x3a2f19>(0x63ae0106^_0x4a9d94)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x18c3ee([0x74,0x68,0x65,0x6e])](_0x5c3640)[_0x18c3ee([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c3640(_0x18c3ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xfd60a3=0x47946b86^_0x4a9d94;function _0x5d108a(){const _0x2a26ab=_0x18c3ee([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ff3ae(_0x130800(_0x3e3d4)),_0x19df4a=_0x835793(_0x2ff3ae(window[_0x18c3ee([0x4d,0x61,0x74,0x68])][_0x18c3ee([0x63,0x65,0x69,0x6c])](_0x216a04/_0xfd60a3)));window[_0x18c3ee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18c3ee([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a26ab,_0x19df4a);}function _0x33e7bc(){const _0x1399c3=_0x18c3ee([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ff3ae(_0x130800(_0x3e3d4)),_0x265676=window[_0x18c3ee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18c3ee([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1399c3);return _0x265676?window[_0x18c3ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x835793(_0x265676),0x10)*_0xfd60a3:null;}function _0x4480bd(_0x137360){return new window[(_0x18c3ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d0959,_0x52e35f)=>{_0x137360[_0x18c3ee([0x74,0x68,0x65,0x6e])](_0x1d0959,_0x52e35f),window[_0x18c3ee([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x52e35f,0x47a351c6^_0x4a9d94);});}}_0x162f4f[_0x18c3ee([0x6f,0x6e])](_0x18c3ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5ee1fd,_0xe1d8b6)=>{if(_0xe1d8b6[0x0]!=_0x3e3d4)return _0x5c3640(_0x18c3ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe1d8b6[0x1]={..._0xe1d8b6[0x1],[_0x18c3ee([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x354035};},{[_0x18c3ee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18c3ee([0x68,0x69,0x67,0x68])}),_0x162f4f[_0x18c3ee([0x6f,0x6e])](_0x18c3ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x586de3=>{_0x5d68c7(_0x586de3[_0x18c3ee([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x222e5b=!0x0,_0x47e0e2(_0x586de3[_0x18c3ee([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x18c3ee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18c3ee([0x6c,0x6f,0x77])}),_0x35a436[_0x18c3ee([0x74,0x68,0x65,0x6e])](()=>{_0x222e5b||_0x5c3640(_0x18c3ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xf41e99(){return _0x162f4f[_0x18c3ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18c3ee([0x76,0x69,0x65,0x77])][_0x18c3ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x18c3ee([0x61,0x75,0x74,0x6f]);}function _0x2e32ee(){_0x162f4f[_0x18c3ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18c3ee([0x76,0x69,0x65,0x77])][_0x18c3ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x18c3ee([0x61,0x75,0x74,0x6f]);}}function _0x344dbd(_0x3cb116){const _0x5d2527=[new window[(_0x18c3ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ae4d9=>setTimeout(_0x2ae4d9,0x47abbbca^_0x4a9d94)),_0x35a436[_0x18c3ee([0x74,0x68,0x65,0x6e])](()=>new window[(_0x18c3ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59b5b4=>{let _0x2a7807=0x0;_0x162f4f[_0x18c3ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x18c3ee([0x6f,0x6e])](_0x18c3ee([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c6876,_0x19e6e0)=>{_0x19e6e0[0x0][_0x18c3ee([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a7807++,_0x2a7807==(0x47a280ee^_0x4a9d94)&&(_0x59b5b4(),_0x1c6876[_0x18c3ee([0x6f,0x66,0x66])]());});}))];return window[_0x18c3ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x18c3ee([0x72,0x61,0x63,0x65])](_0x5d2527)[_0x18c3ee([0x74,0x68,0x65,0x6e])](()=>_0x3cb116);}async function _0x14c574(){await _0x35a436,_0x162f4f[_0x18c3ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x18c3ee([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x28a58b,_0x162f4f[_0x18c3ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x18c3ee([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x28a58b,_0x162f4f[_0x18c3ee([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x18c3ee([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5beb76(_0xe06f1b){const _0x2d1293=_0x1c3027();_0x162f4f[_0x2d1293]=_0x18c3ee([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe06f1b,_0xe06f1b!=_0x18c3ee([0x56,0x61,0x6c,0x69,0x64])&&_0x14c574();}function _0x1c3027(){const _0x3c99f7=window[_0x18c3ee([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x18c3ee([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x18c3ee([0x6e,0x6f,0x77])]())[_0x18c3ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x18c3ee([0x2e]),'');let _0x5b3098=_0x18c3ee([0x75]);for(let _0x570979=0x0;_0x570979<_0x3c99f7[_0x18c3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x570979+=0x2){let _0x1aa240=window[_0x18c3ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c99f7[_0x18c3ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x570979,_0x570979+0x2));_0x1aa240>=_0x4f701d[_0x18c3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1aa240-=_0x4f701d[_0x18c3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5b3098+=_0x4f701d[_0x1aa240];}return _0x5b3098;}function _0x36938d(){const _0x757528=_0x23acac[_0x18c3ee([0x73,0x70,0x6c,0x69,0x74])](_0x18c3ee([0x2e]));if(0x3!=_0x757528[_0x18c3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5b00eb(_0x757528[0x1]);function _0x5b00eb(_0xb11b67){const _0x5e14d5=_0x1c0eea(_0xb11b67);return _0x5e14d5&&_0x1b5dbf()?_0x5e14d5:null;function _0x1b5dbf(){const _0x4d628f=_0x5e14d5[_0x18c3ee([0x6a,0x74,0x69])],_0x36339d=window[_0x18c3ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d628f[_0x18c3ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d628f[_0x18c3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x30d7ba={..._0x5e14d5,[_0x18c3ee([0x6a,0x74,0x69])]:_0x4d628f[_0x18c3ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4d628f[_0x18c3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x30d7ba[_0x18c3ee([0x76,0x63])],_0x130800(_0x30d7ba)==_0x36339d;}}}async function _0x2bfa98(){let _0x4a6dcb=!0x0;try{const _0x2f84d0=_0x23acac[_0x18c3ee([0x73,0x70,0x6c,0x69,0x74])](_0x18c3ee([0x2e])),[_0x39a57a,_0x37c3b6,_0x4b6d13]=_0x2f84d0;return _0x4ba18d(_0x39a57a),await _0xbc0f8b(_0x39a57a,_0x37c3b6,_0x4b6d13),_0x4a6dcb;}catch{return!0x1;}function _0x4ba18d(_0xa5816d){const _0x30a899=_0x1c0eea(_0xa5816d);_0x30a899&&_0x30a899[_0x18c3ee([0x61,0x6c,0x67])]==_0x18c3ee([0x45,0x53,0x32,0x35,0x36])||(_0x4a6dcb=!0x1);}async function _0xbc0f8b(_0x3d5fad,_0x2dfd5e,_0x5b2374){const _0x124689=window[_0x18c3ee([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x18c3ee([0x66,0x72,0x6f,0x6d])](_0x5e6748(_0x5b2374),_0x203eda=>_0x203eda[_0x18c3ee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x45a41b=new window[(_0x18c3ee([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x18c3ee([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d5fad+_0x18c3ee([0x2e])+_0x2dfd5e),_0x43315d=window[_0x18c3ee([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x18c3ee([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x43315d)return;const _0x184e59=await _0x43315d[_0x18c3ee([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x18c3ee([0x6a,0x77,0x6b]),_0x5e1403,{[_0x18c3ee([0x6e,0x61,0x6d,0x65])]:_0x18c3ee([0x45,0x43,0x44,0x53,0x41]),[_0x18c3ee([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x18c3ee([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x18c3ee([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x43315d[_0x18c3ee([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x18c3ee([0x6e,0x61,0x6d,0x65])]:_0x18c3ee([0x45,0x43,0x44,0x53,0x41]),[_0x18c3ee([0x68,0x61,0x73,0x68])]:{[_0x18c3ee([0x6e,0x61,0x6d,0x65])]:_0x18c3ee([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x184e59,_0x124689,_0x45a41b)||(_0x4a6dcb=!0x1);}}function _0x1c0eea(_0x112be1){return _0x112be1[_0x18c3ee([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x18c3ee([0x65,0x79]))?JSON[_0x18c3ee([0x70,0x61,0x72,0x73,0x65])](_0x5e6748(_0x112be1)):null;}function _0x5e6748(_0x29bf39){return window[_0x18c3ee([0x61,0x74,0x6f,0x62])](_0x29bf39[_0x18c3ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x18c3ee([0x2b]))[_0x18c3ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x18c3ee([0x2f])));}function _0x130800(_0x1fd63c){let _0x150363=0x1505;function _0x190914(_0x2d9d2e){for(let _0x4e9196=0x0;_0x4e9196<_0x2d9d2e[_0x18c3ee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e9196++){const _0x4080cd=_0x2d9d2e[_0x18c3ee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e9196);_0x150363=(_0x150363<<0x5)+_0x150363+_0x4080cd,_0x150363&=_0x150363;}}function _0x3f39c2(_0x1dc006){Array[_0x18c3ee([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1dc006)?_0x1dc006[_0x18c3ee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f39c2):_0x1dc006&&typeof _0x1dc006==_0x18c3ee([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x18c3ee([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1dc006)[_0x18c3ee([0x73,0x6f,0x72,0x74])]()[_0x18c3ee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x415ff1,_0x349e4c])=>{_0x190914(_0x415ff1),_0x3f39c2(_0x349e4c);}):_0x190914(window[_0x18c3ee([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1dc006));}return _0x3f39c2(_0x1fd63c),_0x150363>>>0x0;}function _0x2ff3ae(_0x48964a){return _0x48964a[_0x18c3ee([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x18c3ee([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x18c3ee([0x30]));}function _0x835793(_0x3441bf){return _0x3441bf[_0x18c3ee([0x73,0x70,0x6c,0x69,0x74])]('')[_0x18c3ee([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x18c3ee([0x6a,0x6f,0x69,0x6e])]('');}function _0x28a58b(){}function _0x18c3ee(_0x1b0070){return _0x1b0070['map'](_0x2bf100=>String['fromCharCode'](_0x2bf100))['join']('');}_0x5beb76(await _0x342330());}(this);}['_moveSelectionToFootnoteDefinition'](_0x2997f0){const {plugins:_0x35caeb,editing:_0x4e3cba,model:_0x1dfeef}=this['editor'],_0x43b6de=_0x35caeb['get'](f)['getFootnote'](_0x2997f0);return!!_0x43b6de&&(_0x1dfeef['change'](_0x430f46=>{_0x430f46['setSelection'](_0x430f46['createPositionAt'](_0x43b6de['definition'],'end'));}),_0x4e3cba['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4a1b49){const {plugins:_0x5251be,editing:_0x1b850e,model:_0x46b709}=this['editor'],_0x4b63a6=_0x5251be['get'](f)['getFootnote'](_0x4a1b49);return!!_0x4b63a6&&(_0x46b709['change'](_0x10aa31=>{_0x10aa31['setSelection'](_0x4b63a6['reference'],'on');}),_0x1b850e['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x635180}=this['editor']['model'],_0x148b00=this['editor']['config']['get']('footnotes.multiBlock');_0x635180['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x635180['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x635180['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x148b00?_0x635180['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x635180['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x635180['addChildCheck'](_0x1fb035=>{for(const _0x3947a3 of _0x1fb035)if('footnoteDefinition'===_0x3947a3['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x395dbc}=this,{conversion:_0xe23366,editing:_0x48cd4c}=_0x395dbc,{t:t}=_0x395dbc['locale'];_0xe23366['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x131354,{writer:_0x20770d,consumable:_0xde9357})=>{const _0x4aaaa3=_0x131354['getChild'](0x0);if(!_0x4aaaa3||!_0x4aaaa3['is']('element','a'))return null;const _0x1004c8=_0x4aaaa3['getAttribute']('href')||'';if(!_0x1004c8['startsWith']('#'))return null;const _0x3a188f=_0x1004c8['replace'](/^#/,'');if(!_0x3a188f)return null;_0xde9357['consume'](_0x4aaaa3,{'name':!0x0,'attributes':['href']});for(const {item:_0x4b27a4}of _0x48cd4c['view']['createRangeIn'](_0x4aaaa3))_0x4b27a4['is']('$textProxy')?_0xde9357['consume'](_0x4b27a4['textNode'],{'name':!0x0}):_0x4b27a4['is']('element')&&_0xde9357['consume'](_0x4b27a4,{'name':!0x0});return _0x20770d['createElement']('footnoteRef',{'footnoteId':_0x3a188f});}}),_0xe23366['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5327b0,{writer:_0x56ba5f})=>b(_0x5327b0,_0x56ba5f)}),_0xe23366['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2a424e,{writer:_0x2aea04})=>{const _0x3dc701=_0x2a424e['getAttribute']('footnoteCounter');return _0x484ea4(b(_0x2a424e,_0x2aea04),_0x2aea04,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x3dc701)});}});}['_defineDefinitionsConverters'](){const {editor:_0x44c91d}=this,{t:t}=_0x44c91d['locale'],{conversion:_0x5a6e82}=_0x44c91d;_0x5a6e82['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5a6e82['for']('upcast')['add'](_0x5c5ebb=>{_0x5c5ebb['on']('element:ol',(_0x4db309,_0x525273,_0x4ec5b4)=>{const _0x4d840d=_0x525273['viewItem'];if(!_0x4d840d['hasClass']('footnotes-list')||!_0x525273['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4ec5b4['consumable']['consume'](_0x4d840d,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x1d0bfc,modelCursor:_0x2d0c98}=_0x4ec5b4['convertChildren'](_0x525273['viewItem'],_0x525273['modelCursor']);_0x525273['modelRange']=_0x1d0bfc,_0x525273['modelCursor']=_0x2d0c98;}),_0x5c5ebb['on']('element:hr',(_0x4e06f3,_0x4863c9,_0x3b84a7)=>{const _0x179a40=_0x4863c9['viewItem'];_0x179a40['hasClass']('footnotes-divider')&&_0x4863c9['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3b84a7['consumable']['consume'](_0x179a40,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5a6e82['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x138808,{writer:_0x3bb92d})=>D(_0x3bb92d)}),_0x5a6e82['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x340d54,{writer:_0x5da455})=>{const _0x1389f6=D(_0x5da455,{'data-footnotes-list-label':t('Footnotes')}),_0x229e4b=_0x484ea4(_0x1389f6,_0x5da455,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x5da455['setCustomProperty']('footnotesDefinitions',!0x0,_0x229e4b),_0x229e4b;}});}['_defineDefinitionConverters'](){const {editor:_0x289d77}=this,{conversion:_0x53b4e8,locale:_0x4fb596}=_0x289d77,_0x5add35=_0x289d77['config']['get']('footnotes.multiBlock');_0x53b4e8['for']('upcast')['add'](_0xcdbab7=>{_0xcdbab7['on']('element:li',(_0x381a1c,_0x3cd441,_0x5916fd)=>{const _0x2ef905=_0x3cd441['viewItem'];if(!_0x2ef905['hasClass']('footnote-definition')||!_0x2ef905['getAttribute']('id'))return;const _0x3568b2=_0x2ef905['parent'];if(!_0x3568b2['is']('element','ol')||!_0x3568b2['hasClass']('footnotes-list'))return;if(!_0x5916fd['consumable']['test'](_0x2ef905,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x71c03=_0x5916fd['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2ef905['getAttribute']('id')});if(!_0x5916fd['safeInsert'](_0x71c03,_0x3cd441['modelCursor']))return;_0x5916fd['consumable']['consume'](_0x2ef905,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x727b9e=Array['from'](_0x2ef905['getChildren']())['find'](_0x4bd71e=>_0x4bd71e['is']('element')&&_0x4bd71e['hasClass']('footnote-content'));for(const _0x41e815 of _0x2ef905['getChildren']())_0x41e815['is']('element')&&(_0x5916fd['consumable']['consume'](_0x41e815,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5916fd['consumable']['consume'](_0x41e815,{'name':!0x0,'classes':'footnote-content'}));if(_0x727b9e){if(_0x5add35)_0x5916fd['convertChildren'](_0x727b9e,_0x71c03);else{const _0x248084=_0x5916fd['writer']['createElement']('footnoteInlineContent');_0x5916fd['writer']['insert'](_0x248084,_0x71c03),_0x5916fd['convertChildren'](_0x727b9e,_0x248084);}}_0x5916fd['updateConversionResult'](_0x71c03,_0x3cd441);});}),_0x53b4e8['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x49848f,{writer:_0x333a65})=>y(_0x49848f,_0x333a65,_0x4fb596,{'dataPipeline':!0x0})}),_0x53b4e8['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x56aafd,{writer:_0x562a27})=>y(_0x56aafd,_0x562a27,_0x4fb596)});}['_defineBogusParagraphConverters'](){const {editor:_0x4f3df2}=this,{conversion:_0x10f72a}=_0x4f3df2;_0x4f3df2['config']['get']('footnotes.multiBlock')?(_0x10f72a['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x10f72a['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4f3df2['model']['document'],'change:data',()=>{!function(_0x54b44f,_0x3ef68b){const _0x40f929=_0x54b44f['document']['differ'],_0x4d5f34=new Set();for(const _0x390be3 of _0x40f929['getChanges']()){const _0x39ae4f='attribute'==_0x390be3['type']?_0x390be3['range']['start']['parent']:_0x390be3['position']['parent'];_0x39ae4f['is']('element','footnoteDefinition')&&_0x4d5f34['add'](_0x39ae4f);}for(const _0x22b94b of _0x4d5f34['values']()){const _0x598e18=Array['from'](_0x22b94b['getChildren']())['filter'](_0x6783d2=>v(_0x6783d2,_0x3ef68b['mapper']));for(const _0x2e419e of _0x598e18)_0x3ef68b['reconvertItem'](_0x2e419e);}}(_0x4f3df2['model'],_0x4f3df2['editing']);})):(_0x10f72a['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x10f72a['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1fef16,{writer:_0x6550a7})=>{const _0x2f965e=_0x6550a7['createContainerElement']('span');return _0x6550a7['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2f965e),_0x2f965e;}}));}['_defineKeyboardHandlers'](){const {editor:_0x54dfc0}=this,{editing:_0x5ea156,t:t}=_0x54dfc0,_0x1bb49f=_0x54dfc0['model']['document']['selection'];_0x54dfc0['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x54dfc0['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x5ea156['view']['document'],'enter',(_0x47160e,_0xed024)=>{const _0x5c5f93=function(_0x501439){const _0x3b4649=_0x501439['getSelectedElement']();if(_0x3b4649?.['is']('element','footnoteRef'))return _0x3b4649;return null;}(_0x1bb49f);if(_0x5c5f93){const _0xaba4b9=_0x5c5f93['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0xaba4b9),_0xed024['preventDefault'](),_0x47160e['stop']();}},{'context':_0x49edcf});}['_defineClickHandlers'](){const {editor:_0x5012dd}=this,{editing:_0x49b6d7}=_0x5012dd;_0x5012dd['editing']['view']['addObserver'](_0x3a395c),_0x5012dd['editing']['view']['addObserver'](_0x4d8ee8);let _0x3fcdda=!0x1;this['listenTo'](_0x49b6d7['view']['document'],'pointerdown',(_0x3dcefe,_0x11206c)=>{const {target:_0x470180}=_0x11206c,_0xe030a2=_0x49b6d7['view']['document']['selection'];_0x3fcdda=!!(_0x470180?.['is']('element','a')&&_0x470180['parent']?.['is']('element','sup')&&_0x470180['parent']['hasClass']('footnote'))&&_0xe030a2['getSelectedElement']()===_0x470180['parent'];},{'priority':'high'}),this['listenTo'](_0x49b6d7['view']['document'],'click',(_0x155c51,_0x408434)=>{const {target:_0xb97d55}=_0x408434;if(!_0xb97d55?.['is']('element','a'))return;if(_0xb97d55['parent']?.['is']('element','sup')&&_0xb97d55['parent']['hasClass']('footnote')&&!_0x3fcdda)return void _0x408434['preventDefault']();let _0x4dafb1=_0xb97d55['getAttribute']('href');if(!_0x4dafb1?.['startsWith']('#'))return;_0x4dafb1=_0x4dafb1['slice'](0x1);let _0x2e25ba=!0x1;(_0x4dafb1['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x4dafb1['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x4dafb1))&&(_0x2e25ba=!0x0),_0x2e25ba&&(_0x408434['preventDefault'](),_0x155c51['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x16ca5b}={}){return(_0x168e4c,{writer:_0x16bc4a})=>{if(!g(_0x168e4c))return null;if(!_0x16ca5b)return _0x16bc4a['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x1ac0e3=_0x16bc4a['createContainerElement']('p');return _0x16bc4a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1ac0e3),_0x1ac0e3;};}function g(_0x30c3de){const {parent:_0x5941a3}=_0x30c3de;if(!_0x5941a3?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5941a3['childCount'])return!0x1;for(const _0x4bee24 of _0x30c3de['getAttributeKeys']())if(!_0x4bee24['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4bee24)return!0x1;return!0x0;}function v(_0x11d559,_0x429d1a){if(!_0x11d559['is']('element','paragraph'))return!0x1;const _0x533d40=_0x429d1a['toViewElement'](_0x11d559);return!!_0x533d40&&g(_0x11d559)!==_0x533d40['is']('element','span');}function Q(_0x49b599){return _0x49edcf(_0x49b599)&&_0x49b599['is']('containerElement')&&!!_0x49b599['getCustomProperty']('footnotesDefinitions');}function D(_0x230aa7,_0x5ef8ee={}){const _0x37e1f4=_0x230aa7['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4b3c76=_0x230aa7['createContainerElement']('ol',{'class':'footnotes-list'},_0x230aa7['createSlot']());return _0x230aa7['createContainerElement']('div',{'class':'footnotes',..._0x5ef8ee},[_0x37e1f4,_0x4b3c76]);}function b(_0x5f1bfb,_0x2bba78){const _0xb477a6=_0x5f1bfb['getAttribute']('footnoteId'),_0xaf84bd=_0x5f1bfb['getAttribute']('footnoteCounter'),_0x2af39e=_0x2bba78['createUIElement']('a',{'href':'#'+_0xb477a6},function(_0x2d7691){const _0x4b040d=this['toDomElement'](_0x2d7691);return _0x4b040d['textContent']=_0xaf84bd,_0x4b040d;}),_0xd12b9f=_0x2bba78['createContainerElement']('sup',{'id':'ref-'+_0xb477a6,'class':'footnote'},[_0x2af39e]);return _0xd12b9f['getFillerOffset']=()=>null,_0xd12b9f;}function y(_0xb2fcc8,_0x5c543e,_0x5f38e2,{dataPipeline:_0x2ae8db}={}){const {t:t}=_0x5f38e2,_0x340559=_0xb2fcc8['getAttribute']('footnoteId'),_0x13006d=_0x5c543e['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x340559},function(_0x2d9340){const _0x2f9168=this['toDomElement'](_0x2d9340);return _0x2f9168['innerText']='^',_0x2f9168;}),_0x110b3d=_0x2ae8db?_0x5c543e['createContainerElement']('div',{'class':'footnote-content'}):_0x3b08d9(_0x5c543e['createEditableElement']('div',{'class':'footnote-content'}),_0x5c543e,{'label':t('Footnote\x20content.')});return _0x5c543e['insert'](_0x5c543e['createPositionAt'](_0x110b3d,0x0),_0x5c543e['createSlot']()),_0x5c543e['createContainerElement']('li',{'class':'footnote-definition','id':_0x340559},[_0x13006d,_0x110b3d]);}class e extends _0xee8887{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x19c946];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x59a4a6}=this,{plugins:_0x8d7c9e,model:_0x2db0be}=_0x59a4a6,_0x836fc9=_0x8d7c9e['get'](_0x19c946),_0x41c59b=_0x8d7c9e['get'](f);this['listenTo'](_0x836fc9,'outputTransformation',(_0xe9998c,_0x436530)=>{const _0x74dc91=l(_0x2db0be['createRangeIn'](_0x436530['content']));if(!_0x74dc91['length'])return;const _0x5596bb=_0x41c59b['getFootnotes'](),_0x5bbf85=_0x74dc91['reduce']((_0x572278,_0x1e6850)=>{const _0x45db89=_0x5596bb['find'](_0xfead3d=>_0xfead3d['id']===_0x1e6850);if(_0x45db89){const _0x39a990=_0x59a4a6['data']['toView'](_0x45db89['definition'],{'isClipboardPipeline':!0x0}),_0x5738ea=_0x59a4a6['data']['htmlProcessor']['toData'](_0x39a990);_0x572278[_0x45db89['id']]=_0x5738ea;}return _0x572278;},Object['create'](null));_0x436530['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x5bbf85));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x13c6fa}=this,{model:_0x3519ed,plugins:_0x94cbe3}=_0x13c6fa,{view:_0x17dda0}=_0x13c6fa['editing'],_0x53b655=_0x94cbe3['get'](_0x19c946),_0x13abb7=_0x94cbe3['get'](f),_0x3d2f3c=_0x13c6fa['config']['get']('footnotes.multiBlock');let _0x5eb874=null;this['listenTo'](_0x17dda0['document'],'clipboardInput',(_0x161e46,_0x2b1d93)=>{const _0x3658ce=_0x2b1d93['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x5eb874=_0x3658ce?JSON['parse'](_0x3658ce):null;}),this['listenTo'](_0x53b655,'contentInsertion',(_0x5beabb,_0x3c18c5)=>{const _0x2b3847=_0x3c18c5['sourceEditorId']===this['editor']['id'];_0x2b3847&&'drop'===_0x3c18c5['method']||_0x3519ed['change'](_0x46c3df=>{let _0x1f8c72=_0x13abb7['getFootnotesDefinitionsObjectElement']();const _0x49e03d=!!_0x1f8c72&&Array['from'](_0x3519ed['document']['selection']['getSelectedBlocks']())['includes'](_0x1f8c72);if(!_0x5eb874&&function(_0x1fdc0f){for(const {item:_0x3f8f49}of _0x1fdc0f)if(_0x3f8f49['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x3519ed['createRangeIn'](_0x3c18c5['content']))&&(_0x5eb874=function(_0x3ca282,_0x51942f){const _0x1fddbf=c(_0x3ca282,_0x51942f);if(!_0x1fddbf)return null;const _0x49da94=Object['create'](null);for(const _0x26de75 of _0x1fddbf['getChildren']())_0x26de75['is']('element','footnoteDefinition')&&_0x26de75['hasAttribute']('footnoteId')&&(_0x49da94[_0x26de75['getAttribute']('footnoteId')]=_0x3ca282['cloneElement'](_0x26de75,!0x0));return Object['keys'](_0x49da94)['length']?_0x49da94:null;}(_0x46c3df,_0x3c18c5['content'])),(_0x1f8c72&&!_0x49e03d||!_0x1f8c72&&!_0x5eb874)&&function(_0x28e32b,_0x52c631){const _0x4e9a4f=[];for(const {item:_0x41ff84}of _0x28e32b['createRangeIn'](_0x52c631))_0x41ff84['is']('element','footnotesDefinitions')&&_0x4e9a4f['push'](_0x41ff84);for(const _0x106c7e of _0x4e9a4f)_0x28e32b['remove'](_0x106c7e);}(_0x46c3df,_0x3c18c5['content']),!_0x5eb874)return;const {selection:_0x29f9f7}=_0x3519ed['document'],_0x1dbbb7=_0x29f9f7['getFirstRange']()['root'];_0x1f8c72&&!_0x49e03d||(_0x1f8c72=c(_0x46c3df,_0x3c18c5['content']),_0x1f8c72||=_0x13abb7['_insertEmptyFootnotesDefinitionsContainer'](_0x46c3df,_0x1dbbb7));const _0x2648f7=Array['from'](_0x29f9f7['getRanges']())['flatMap'](l),_0x2d917e=function(_0x451045,_0xc7328c,_0x2a9a5a){const _0x25d77f=Object['create'](null);for(const {item:_0x3ced50}of _0x451045['createRangeIn'](_0xc7328c))if(_0x3ced50['is']('element','footnoteRef')){const _0x1cc4a0=_0x3ced50['getAttribute']('footnoteId');if(!_0x2a9a5a(_0x1cc4a0))continue;_0x25d77f[_0x1cc4a0]||(_0x25d77f[_0x1cc4a0]=_0x549f76()),_0x451045['setAttribute']('footnoteId',_0x25d77f[_0x1cc4a0],_0x3ced50);}return _0x25d77f;}(_0x46c3df,_0x3c18c5['content'],_0x468fa3=>{if(!_0x2b3847)return!0x0;return!!_0x13abb7['getFootnote'](_0x468fa3)&&!_0x2648f7['includes'](_0x468fa3);});for(const [_0x396f86,_0x1202cf]of Object['entries'](_0x5eb874)){const _0x2bfd32=_0x2d917e[_0x396f86]||_0x396f86;let _0x58a2af;if('string'!=typeof _0x1202cf)_0x58a2af=_0x1202cf,_0x2bfd32!==_0x396f86&&_0x46c3df['setAttribute']('footnoteId',_0x2bfd32,_0x58a2af);else{_0x58a2af=_0x46c3df['createElement']('footnoteDefinition',{'footnoteId':_0x2bfd32});const _0x1e7b91=_0x13c6fa['data']['htmlProcessor']['toView'](_0x1202cf);let _0x4e059a;if(_0x3d2f3c)_0x4e059a=_0x13c6fa['data']['toModel'](_0x1e7b91,_0x58a2af);else{_0x4e059a=_0x46c3df['createElement']('footnoteInlineContent');const _0x578f40=_0x13c6fa['data']['toModel'](_0x1e7b91,_0x4e059a);_0x46c3df['insert'](_0x578f40,_0x4e059a);}_0x46c3df['append'](_0x4e059a,_0x58a2af);}_0x46c3df['insert'](_0x58a2af,_0x1f8c72,'end');}_0x5eb874=null;});});}}function c(_0x26e7b6,_0x1463af){for(const {item:_0x203126}of _0x26e7b6['createRangeIn'](_0x1463af))if(_0x203126['is']('element','footnotesDefinitions'))return _0x203126;return null;}function l(_0x54e9e8){const _0x531ff3=new Set();for(const {item:_0x25ce6b}of _0x54e9e8)_0x25ce6b['is']('element','footnoteRef')&&_0x531ff3['add'](_0x25ce6b['getAttribute']('footnoteId'));return Array['from'](_0x531ff3);}class i extends _0xee8887{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x22a259}=this,{componentFactory:_0x269ea0}=_0x22a259['ui'];_0x269ea0['add']('insertFootnote',E(_0x22a259,_0x459347)),_0x269ea0['add']('menuBar:insertFootnote',E(_0x22a259,_0x560856)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xa578c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2c8ad2;for(const _0x2a199f in _0xa578c){const _0x362755=_0x2a199f,_0x5dfd22=_0xa578c[_0x362755];if('footnotesLicenseKeyValid'==_0x5dfd22||'footnotesLicenseKeyInvalid'==_0x5dfd22||'footnotesLicenseKeyExpired'==_0x5dfd22||'footnotesLicenseKeyDomainLimit'==_0x5dfd22||'footnotesLicenseKeyNotAllowed'==_0x5dfd22||'footnotesLicenseKeyEvaluationLimit'==_0x5dfd22||'footnotesLicenseKeyUsageLimit'==_0x5dfd22){delete _0xa578c[_0x362755],_0x2c8ad2=_0x5dfd22,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x2c8ad2&&_0xa578c['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x2c8ad2&&_0xa578c['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x2c8ad2&&_0xa578c['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x2c8ad2&&_0xa578c['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x2c8ad2&&_0xa578c['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x2c8ad2&&_0xa578c['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x4ccae2,_0x37d308){const _0x30c5a1=_0x4ccae2['commands']['get']('insertFootnote');return _0x124dd8=>{const {t:t}=_0x124dd8,_0x5b2724=new _0x37d308(_0x124dd8),_0x2baaa2=_0x5b2724 instanceof _0x560856;return _0x5b2724['bind']('isEnabled')['to'](_0x30c5a1,'isEnabled'),_0x5b2724['set']({'label':t(_0x2baaa2?'Footnote':'Insert\x20footnote'),'icon':_0x1b32ad,'tooltip':!0x0}),_0x5b2724['on']('execute',()=>{_0x30c5a1['execute'](),_0x4ccae2['editing']['view']['focus']();}),_0x5b2724;};}class lt extends _0xee8887{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 _0x1bdab6{['refresh'](){const {editor:_0x4026f8}=this,_0x141d59=_0x4026f8['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x141d59,this['value']=_0x141d59?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x4f65bf}){const {editor:_0x88a48}=this,_0x5e76d9=_0x88a48['plugins']['get'](f),_0x2e8ca1=_0x5e76d9['getFootnotesDefinitionsObjectElement']();_0x2e8ca1&&W['includes'](_0x4f65bf)&&_0x88a48['model']['change'](_0xbd1306=>{_0xbd1306['setAttribute']('footnotesListStyle',_0x4f65bf,_0x2e8ca1),_0x5e76d9['_updateFootnotesCounters'](_0xbd1306);});}}class C extends _0x1bdab6{['refresh'](){const {editor:_0x2c1ba0}=this,_0x27136a=_0x2c1ba0['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x27136a,this['value']=_0x27136a?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x161afc}){const {editor:_0x4b584d}=this,_0x477191=_0x4b584d['plugins']['get'](f),_0x592b85=_0x477191['getFootnotesDefinitionsObjectElement']();_0x592b85&&Number['isInteger'](_0x161afc)&&_0x4b584d['model']['change'](_0xcaa6ef=>{_0xcaa6ef['setAttribute']('footnotesListStart',_0x161afc,_0x592b85),_0x477191['_updateFootnotesCounters'](_0xcaa6ef);});}}class P extends _0xee8887{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4069c7}=this;_0x4069c7['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x4069c7['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x4069c7['commands']['add']('footnotesStyle',new S(_0x4069c7)),_0x4069c7['commands']['add']('footnotesStart',new C(_0x4069c7)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x24a376}=this,{schema:_0x3cd056}=_0x24a376['model'];_0x3cd056['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x1ce57a}=this,{conversion:_0x2db8d7,model:_0x3500b4}=_0x1ce57a,{schema:_0x13e311}=_0x3500b4;_0x2db8d7['for']('upcast')['add'](_0x4d1fce=>{_0x4d1fce['on']('element:ol',(_0x3cd9c2,_0x4562e1,_0x2fece9)=>{const _0x492c78=_0x4562e1['viewItem'],_0x2a91d6=_0x4562e1['modelCursor']?.['parent'];_0x492c78['hasClass']('footnotes-list')&&_0x2a91d6?.['is']('element','footnotesDefinitions')&&(function(_0xe732f2,_0x25be66,_0x1137b6,_0x4645aa){if(!_0x4645aa['checkAttribute'](_0x25be66,'footnotesListStart'))return;let _0x506cf3=0x1;const _0x48c682=_0x1137b6['consumable']['consume'](_0xe732f2,{'attributes':'start'});if(_0x48c682){const _0x414052=Number['parseInt'](_0xe732f2['getAttribute']('start'),0xa);Number['isNaN'](_0x414052)||(_0x506cf3=_0x414052);}!_0x48c682&&_0x25be66['hasAttribute']('footnotesListStart')||_0x1137b6['writer']['setAttribute']('footnotesListStart',_0x506cf3,_0x25be66);}(_0x492c78,_0x2a91d6,_0x2fece9,_0x13e311),function(_0x4cdbe8,_0x436a82,_0x9bbcb5,_0x35c362){if(!_0x35c362['checkAttribute'](_0x436a82,'footnotesListStyle'))return;let _0x2b33d8='decimal',_0x1dd4fe=!0x1;if(_0x9bbcb5['consumable']['consume'](_0x4cdbe8,{'attributes':'type'})){const _0x26c353={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x4cdbe8['getAttribute']('type')];_0x26c353&&(_0x2b33d8=_0x26c353),_0x1dd4fe=!0x0;}_0x9bbcb5['consumable']['consume'](_0x4cdbe8,{'styles':'list-style-type'})&&(_0x2b33d8=function(_0x4f286f){switch(_0x4f286f){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x4f286f;}}(_0x4cdbe8['getStyle']('list-style-type')),_0x1dd4fe=!0x0),!_0x1dd4fe&&_0x436a82['hasAttribute']('footnotesListStyle')||_0x9bbcb5['writer']['setAttribute']('footnotesListStyle',_0x2b33d8,_0x436a82);}(_0x492c78,_0x2a91d6,_0x2fece9,_0x13e311));});}),_0x2db8d7['for']('downcast')['add'](_0x519bb8=>{_0x519bb8['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x504d01,_0x7ac8e3,_0x32ec30)=>{if(!_0x32ec30['consumable']['consume'](_0x7ac8e3['item'],_0x504d01['name']))return;const _0x352f67=M(_0x7ac8e3['item'],_0x32ec30['mapper']),{attributeNewValue:_0x389f3d}=_0x7ac8e3;null==_0x389f3d||0x1===_0x389f3d?_0x32ec30['writer']['removeAttribute']('start',_0x352f67):_0x32ec30['writer']['setAttribute']('start',String(_0x389f3d),_0x352f67);}),_0x519bb8['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x3b9f91,_0x180041,_0x2c52bf)=>{if(!_0x2c52bf['consumable']['consume'](_0x180041['item'],_0x3b9f91['name']))return;const _0x31c804=M(_0x180041['item'],_0x2c52bf['mapper']),{attributeNewValue:_0x4c73f5}=_0x180041;_0x4c73f5&&'decimal'!==_0x4c73f5?_0x2c52bf['writer']['setStyle']('list-style-type',_0x4c73f5,_0x31c804):_0x2c52bf['writer']['removeStyle']('list-style-type',_0x31c804);});});}['_definePostfixer'](){const {editor:_0x763ff3}=this,{model:_0x2d78b0}=_0x763ff3,_0x33c1d7=_0x763ff3['plugins']['get'](f),_0x54b145=this['_getDefaultListStyle'](),_0x4b6e7d=this['_getDefaultStartIndex']();_0x2d78b0['document']['registerPostFixer'](_0x4d4ddd=>{const _0x18cd05=_0x2d78b0['document']['differ']['getChanges']();let _0x58e77b=!0x1;for(const _0x47e50a of _0x18cd05){if('insert'!==_0x47e50a['type']||'$text'===_0x47e50a['name'])continue;const _0x4ac9d8=_0x2d78b0['createRangeOn'](_0x47e50a['position']['nodeAfter']);for(const _0x49ca21 of _0x4ac9d8['getItems']())_0x49ca21['is']('element','footnotesDefinitions')&&(!_0x49ca21['hasAttribute']('footnotesListStart')&&_0x2d78b0['schema']['checkAttribute'](_0x49ca21,'footnotesListStart')&&(_0x4d4ddd['setAttribute']('footnotesListStart',_0x4b6e7d,_0x49ca21),_0x58e77b=!0x0),!_0x49ca21['hasAttribute']('footnotesListStyle')&&_0x2d78b0['schema']['checkAttribute'](_0x49ca21,'footnotesListStyle')&&(_0x4d4ddd['setAttribute']('footnotesListStyle',_0x54b145,_0x49ca21),_0x58e77b=!0x0));}return _0x58e77b&&_0x33c1d7['_updateFootnotesCounters'](_0x4d4ddd),_0x58e77b;});}['_defineFormatter'](){const {editor:_0x250191}=this;_0x250191['plugins']['get'](f)['setFootnoteFormatter'](_0xb89f63=>this['_formatFootnoteListValue'](_0xb89f63));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x5b4487,value:_0x5a2727,digits:_0x25ea12}){const _0x1bbf0e=_0x5b4487['getAttribute']('footnotesListStyle'),_0x22e40e=_0x5b4487['getAttribute']('footnotesListStart'),_0x5d24ba=Math['floor'](_0x5a2727)+(_0x22e40e??0x1)-0x1;switch(_0x1bbf0e){case'decimal-leading-zero':return function(_0x3263b2,_0x3984aa){return String(_0x3263b2)['padStart'](_0x3984aa,'0');}(_0x5d24ba,Math['max'](0x2,_0x25ea12));case'lower-alpha':case'lower-latin':return N(_0x5d24ba,!0x1);case'upper-alpha':case'upper-latin':return N(_0x5d24ba,!0x0);case'lower-roman':return X(_0x5d24ba,!0x1);case'upper-roman':return X(_0x5d24ba,!0x0);default:return String(_0x5d24ba);}}}function M(_0x5d1ec9,_0x5ec6b9){const _0x4af50c=_0x5ec6b9['toViewElement'](_0x5d1ec9);return Array['from'](_0x4af50c['getChildren']())['find'](_0x1743dd=>_0x1743dd['is']('element','ol')&&_0x1743dd['hasClass']('footnotes-list'));}function N(_0x387753,_0x2ccc8d){let _0x3abdd0='',_0x2cbeb8=_0x387753;for(;_0x2cbeb8>0x0;){const _0x58d13a=(_0x2cbeb8-0x1)%0x1a;_0x3abdd0=String['fromCharCode'](0x61+_0x58d13a)+_0x3abdd0,_0x2cbeb8=Math['floor']((_0x2cbeb8-0x1)/0x1a);}return _0x2ccc8d?_0x3abdd0['toUpperCase']():_0x3abdd0;}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(_0x59be7f,_0x539653){let _0x3c005c='',_0x1020fe=_0x59be7f;for(const {value:_0xa63df0,numeral:_0x636cf9}of V)for(;_0x1020fe>=_0xa63df0;)_0x3c005c+=_0x636cf9,_0x1020fe-=_0xa63df0;return _0x539653?_0x3c005c:_0x3c005c['toLowerCase']();}class J extends _0x417880{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x2704d5();['focusCycler'];constructor(_0x375b25,{styleButtonViews:_0x5b60fa,styleGridAriaLabel:_0x677222}){super(_0x375b25),(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'](_0x5b60fa,_0x677222),[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 _0x79d96d of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x79d96d['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 _0x3450a3=_0x55a1b3=>_0x55a1b3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3450a3),this['keystrokes']['set']('arrowleft',_0x3450a3),this['keystrokes']['set']('arrowup',_0x3450a3),this['keystrokes']['set']('arrowdown',_0x3450a3);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x2dffff,_0x517add){const _0xd4d21a=new _0x417880(this['locale']);return _0xd4d21a['children']=_0xd4d21a['createCollection'](),_0xd4d21a['children']['addMany'](_0x2dffff),_0xd4d21a['setTemplate']({'tag':'div','attributes':{'aria-label':_0x517add,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0xd4d21a['children']}),_0xd4d21a['children']['delegate']('execute')['to'](this),_0xd4d21a['focus']=function(){for(const _0x13925d of this['children'])if(_0x13925d instanceof _0x459347&&_0x13925d['isOn'])return void _0x13925d['focus']();this['children']['first']['focus']();},_0xd4d21a['focusTracker']=new rt(),_0xd4d21a['keystrokes']=new nt(),_0xd4d21a['render'](),_0xd4d21a['keystrokes']['listenTo'](_0xd4d21a['element']),this['children']['add'](_0xd4d21a),_0xd4d21a;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x2eee67=this['_createStartIndexPropertyView'](),_0x2d5b8b=[_0x2eee67],_0x2accb4=new it(this['locale'],_0x2d5b8b);return _0x2accb4['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x2accb4['buttonView']['bind']('isEnabled')['toMany'](_0x2d5b8b,'isEnabled',(..._0x45c724)=>_0x45c724['some'](_0x4973b8=>_0x4973b8)),_0x2accb4['buttonView']['on']('change:isEnabled',(_0x224a07,_0x1f87b6,_0x5bed50)=>{_0x5bed50||(_0x2accb4['isCollapsed']=!0x0);}),this['children']['add'](_0x2accb4),[_0x2eee67,_0x2accb4];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x677ede=new et(this['locale'],ot);return _0x677ede['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x677ede['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x677ede['fieldView']['on']('input',()=>{const _0x33b6b3=_0x677ede['fieldView']['element'],_0x49de3a=_0x33b6b3['valueAsNumber'];Number['isNaN'](_0x49de3a)?_0x677ede['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x33b6b3['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x49de3a}):_0x677ede['errorText']=t(_0x49de3a<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x677ede;}}class j extends _0xee8887{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x22b615,_0x3304da];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x254779}=this,{componentFactory:_0x475b32}=_0x254779['ui'];_0x254779['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x475b32['add']('footnotesStyle',function(_0x46401f){return _0x42c09f=>{const {t:t}=_0x42c09f,_0x1a96fa=_0x46401f['commands']['get']('footnotesStyle'),_0x251f65=_0x531f60(_0x42c09f),{buttonView:_0x21f165}=_0x251f65;return _0x251f65['class']='ck-footnotes-styles-dropdown',_0x251f65['bind']('isEnabled')['to'](_0x1a96fa,'isEnabled'),_0x21f165['set']({'label':t('Footnotes\x20style'),'icon':_0x1b32ad,'tooltip':!0x0}),_0x251f65['once']('change:isOpen',()=>{const _0x33f819=function({editor:_0x3f55ec,dropdownView:_0x920d86}){const {t:t}=_0x3f55ec['locale'],_0x4c1df5=t('Footnotes\x20definitions\x20styles'),_0x5dff9b=function(_0x1558ba){const t=_0x1558ba['locale']['t'],_0x59f13b=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x1919b1},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x1ab4a3},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x43d0ec},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x2aa31d},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x31a8a9},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x368341}];return _0x59f13b['map'](function(_0xd434ed){const _0x47961e=_0xd434ed['locale'];return({label:_0x1c34f5,icon:_0x4bfbd4,tooltip:_0x3a2afc,style:_0xbb710c})=>{const _0x3af7c1=_0xd434ed['commands']['get']('footnotesStyle'),_0x553080=new _0x459347(_0x47961e);return _0x553080['set']({'label':_0x1c34f5,'icon':_0x4bfbd4,'tooltip':_0x3a2afc}),_0x553080['bind']('isOn')['to'](_0x3af7c1,'value',_0x325a3a=>_0x325a3a===_0xbb710c),_0x553080['bind']('isEnabled')['to'](_0x3af7c1,'isEnabled'),_0x553080['on']('execute',()=>{_0xd434ed['execute']('footnotesStyle',{'value':_0xbb710c}),_0xd434ed['editing']['view']['focus']();}),_0x553080;};}(_0x1558ba));}(_0x3f55ec),_0x490b4d=new J(_0x3f55ec['locale'],{'styleGridAriaLabel':_0x4c1df5,'styleButtonViews':_0x5dff9b}),_0x2c9a7e=_0x3f55ec['commands']['get']('footnotesStart');return _0x490b4d['startIndexFieldView']['bind']('isEnabled')['to'](_0x2c9a7e),_0x490b4d['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x2c9a7e),_0x490b4d['on']('footnotesListStart',(_0x4c2b22,_0x5628ee)=>{_0x3f55ec['execute']('footnotesStart',{'value':_0x5628ee['startIndex']});}),_0x490b4d['delegate']('execute')['to'](_0x920d86),_0x490b4d;}({'editor':_0x46401f,'dropdownView':_0x251f65});_0x251f65['panelView']['children']['add'](_0x33f819);}),_0x251f65;};}(_0x254779));}['afterInit'](){const {editor:_0x34a351}=this,{t:t}=_0x34a351['locale'],_0x414eaf=_0x34a351['plugins']['get'](_0x3304da),{defaultPositions:_0x3727f8}=_0x223c43;_0x414eaf['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x34a351['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x524b13=>{let _0x5f3b3d=_0x524b13['getFirstPosition']()?.['parent'];return _0x5f3b3d?.['is']('$text')&&(_0x5f3b3d=_0x5f3b3d['parent']),_0x5f3b3d?.['is']('element')?_0x5f3b3d['findAncestor'](Q):null;},'positions':[_0x3727f8['southArrowNorth'],_0x3727f8['southArrowNorthMiddleWest'],_0x3727f8['southArrowNorthMiddleEast'],_0x3727f8['southArrowNorthWest'],_0x3727f8['southArrowNorthEast'],_0x3727f8['northArrowSouth'],_0x3727f8['northArrowSouthMiddleWest'],_0x3727f8['northArrowSouthMiddleEast'],_0x3727f8['northArrowSouthWest'],_0x3727f8['northArrowSouthEast'],_0x3727f8['viewportStickyNorth']]});}}class ft extends _0xee8887{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": "47.4.0-alpha.
|
|
3
|
+
"version": "47.4.0-alpha.1",
|
|
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": "47.4.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "47.4.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "47.4.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "47.4.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "47.4.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "47.4.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "47.4.0-alpha.
|
|
33
|
-
"ckeditor5": "47.4.0-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "47.4.0-alpha.1",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "47.4.0-alpha.1",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "47.4.0-alpha.1",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "47.4.0-alpha.1",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "47.4.0-alpha.1",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "47.4.0-alpha.1",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "47.4.0-alpha.1",
|
|
33
|
+
"ckeditor5": "47.4.0-alpha.1"
|
|
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 _0x207398}from'ckeditor5/src/core.js';import{isWidget as _0x2f6fb5,toWidget as _0x36e0bc,toWidgetEditable as _0x5c5091}from'ckeditor5/src/widget.js';import{uid as _0x398248}from'ckeditor5/src/utils.js';import{PointerObserver as _0xdfb3b4,ClickObserver as _0x1c8afc}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x429790}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x414bc8}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x207398{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x429790];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x20c34c}=this;_0x20c34c['config']['define']('footnotes.multiBlock',!0x0),_0x20c34c['commands']['add']('insertFootnote',new _0x414bc8(_0x20c34c)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x24fb24){const _0x5df620=_0x408e24([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]),_0x2fd525=0x47a28506,_0x2451f2=0x47a5fb3e^_0x2fd525,_0xaab1b6=window[_0x408e24([0x44,0x61,0x74,0x65])][_0x408e24([0x6e,0x6f,0x77])](),_0x85b833=_0x24fb24[_0x408e24([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb94f2=new window[(_0x408e24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d7888=>{_0x85b833[_0x408e24([0x6f,0x6e,0x63,0x65])](_0x408e24([0x72,0x65,0x61,0x64,0x79]),_0x5d7888);}),_0x449fe7={[_0x408e24([0x6b,0x74,0x79])]:_0x408e24([0x45,0x43]),[_0x408e24([0x75,0x73,0x65])]:_0x408e24([0x73,0x69,0x67]),[_0x408e24([0x63,0x72,0x76])]:_0x408e24([0x50,0x2d,0x32,0x35,0x36]),[_0x408e24([0x78])]:_0x408e24([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]),[_0x408e24([0x79])]:_0x408e24([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]),[_0x408e24([0x61,0x6c,0x67])]:_0x408e24([0x45,0x53,0x32,0x35,0x36])},_0xb157c9=_0x85b833[_0x408e24([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x408e24([0x67,0x65,0x74])](_0x408e24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x549b33(){let _0x54f7e7,_0x3c0a03=null,_0xb3ed43=null;try{if(_0xb157c9==_0x408e24([0x47,0x50,0x4c]))return _0x408e24([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x54f7e7=_0x47accd(),!_0x54f7e7)return _0x408e24([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x54f7e7[_0x408e24([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xb3ed43=_0x47f775(_0x54f7e7[_0x408e24([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x54f7e7[_0x408e24([0x6a,0x74,0x69])])),await _0x180522()?_0x47e238()?_0x3a47ed()?_0x408e24([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2061cf()?(_0x54f7e7[_0x408e24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x408e24([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3c0a03=_0x307496(_0x408e24([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5bbdb6()):_0x408e24([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x408e24([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x408e24([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x408e24([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3a47ed(){const _0x4150d4=[_0x408e24([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x408e24([0x74,0x72,0x69,0x61,0x6c])][_0x408e24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54f7e7[_0x408e24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xaab1b6/0x3e8:0xe10*_0x2451f2;return _0x54f7e7[_0x408e24([0x65,0x78,0x70])]<_0x4150d4;}function _0x47e238(){const _0x452a1c=_0x54f7e7[_0x408e24([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x452a1c&&(!!_0x452a1c[_0x408e24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x408e24([0x2a]))||!!_0x452a1c[_0x408e24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x408e24([0x46,0x4f,0x4f])));}function _0x2061cf(){const _0x2559e6=_0x54f7e7[_0x408e24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2559e6||0x0==_0x2559e6[_0x408e24([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1c9ea5}=new URL(window[_0x408e24([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2559e6[_0x408e24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c9ea5))return!0x0;const _0xaf1661=_0x1c9ea5[_0x408e24([0x73,0x70,0x6c,0x69,0x74])](_0x408e24([0x2e]));return _0x2559e6[_0x408e24([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58949d=>_0x58949d[_0x408e24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x408e24([0x2a])))[_0x408e24([0x6d,0x61,0x70])](_0x186010=>_0x186010[_0x408e24([0x73,0x70,0x6c,0x69,0x74])](_0x408e24([0x2e])))[_0x408e24([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd762db=>_0xd762db[_0x408e24([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xaf1661[_0x408e24([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x408e24([0x6d,0x61,0x70])](_0x53bb45=>Array(_0xaf1661[_0x408e24([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x53bb45[_0x408e24([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x408e24([0x66,0x69,0x6c,0x6c])](_0x53bb45[0x0]===_0x408e24([0x2a])?_0x408e24([0x2a]):'')[_0x408e24([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x53bb45))[_0x408e24([0x73,0x6f,0x6d,0x65])](_0x228d5c=>_0xaf1661[_0x408e24([0x65,0x76,0x65,0x72,0x79])]((_0x24269e,_0x21efc2)=>_0x228d5c[_0x21efc2]===_0x24269e||_0x228d5c[_0x21efc2]===_0x408e24([0x2a])));}function _0x5bbdb6(){return _0x3c0a03&&_0xb3ed43?new window[(_0x408e24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x64ff0d,_0x58d706)=>{_0x3c0a03[_0x408e24([0x74,0x68,0x65,0x6e])](_0x64ff0d,_0x58d706),_0xb3ed43[_0x408e24([0x74,0x68,0x65,0x6e])](_0x120853=>{_0x120853!=_0x408e24([0x56,0x61,0x6c,0x69,0x64])&&_0x64ff0d(_0x120853);},_0x58d706);}):_0x3c0a03||_0xb3ed43||_0x408e24([0x56,0x61,0x6c,0x69,0x64]);}}function _0x47f775(_0x4f248f,_0x23dff7){return new window[(_0x408e24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e805e=>{if(_0x5e4705())return _0x1e805e(_0x408e24([0x56,0x61,0x6c,0x69,0x64]));_0x3dfdb9(),_0x85b833[_0x408e24([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x408e24([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x25151c=!0x1;const _0x36aa37=_0x398248();function _0x38b80d(_0x5571c3){return!!_0x5571c3&&(typeof _0x5571c3===_0x408e24([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5571c3===_0x408e24([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5571c3[_0x408e24([0x74,0x68,0x65,0x6e])]===_0x408e24([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5571c3[_0x408e24([0x63,0x61,0x74,0x63,0x68])]===_0x408e24([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3642dd(_0x23c6cb){_0x3d5191(_0x23c6cb)[_0x408e24([0x74,0x68,0x65,0x6e])](_0x13667e=>{if(!_0x13667e||_0x13667e[_0x408e24([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x408e24([0x6f,0x6b]))return _0x408e24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x42dea6(_0x2b22e3(_0x36aa37+_0x23dff7))!=_0x13667e[_0x408e24([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x408e24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x408e24([0x56,0x61,0x6c,0x69,0x64]);})[_0x408e24([0x74,0x68,0x65,0x6e])](_0x465266=>(_0x5974e7(),_0x465266),()=>{const _0x4712cf=_0x118ea4();return null==_0x4712cf?(_0x5974e7(),_0x408e24([0x56,0x61,0x6c,0x69,0x64])):_0x408e24(_0xaab1b6-_0x4712cf>(0x63ae0106^_0x2fd525)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x408e24([0x74,0x68,0x65,0x6e])](_0x1e805e)[_0x408e24([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e805e(_0x408e24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x252691=0x47946b86^_0x2fd525;function _0x5974e7(){const _0x3dabee=_0x408e24([0x6c,0x6c,0x63,0x74,0x2d])+_0x42dea6(_0x2b22e3(_0x4f248f)),_0x4c978c=_0x55f987(_0x42dea6(window[_0x408e24([0x4d,0x61,0x74,0x68])][_0x408e24([0x63,0x65,0x69,0x6c])](_0xaab1b6/_0x252691)));window[_0x408e24([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x408e24([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3dabee,_0x4c978c);}function _0x118ea4(){const _0x4a1384=_0x408e24([0x6c,0x6c,0x63,0x74,0x2d])+_0x42dea6(_0x2b22e3(_0x4f248f)),_0x43ab62=window[_0x408e24([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x408e24([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a1384);return _0x43ab62?window[_0x408e24([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55f987(_0x43ab62),0x10)*_0x252691:null;}function _0x3d5191(_0x5bb620){return new window[(_0x408e24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x369a4e,_0x28ca5f)=>{_0x5bb620[_0x408e24([0x74,0x68,0x65,0x6e])](_0x369a4e,_0x28ca5f),window[_0x408e24([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x28ca5f,0x47a351c6^_0x2fd525);});}}_0x85b833[_0x408e24([0x6f,0x6e])](_0x408e24([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3617b7,_0x220206)=>{if(_0x220206[0x0]!=_0x4f248f)return _0x1e805e(_0x408e24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x220206[0x1]={..._0x220206[0x1],[_0x408e24([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x36aa37};},{[_0x408e24([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x408e24([0x68,0x69,0x67,0x68])}),_0x85b833[_0x408e24([0x6f,0x6e])](_0x408e24([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3e5e93=>{_0x38b80d(_0x3e5e93[_0x408e24([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x25151c=!0x0,_0x3642dd(_0x3e5e93[_0x408e24([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x408e24([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x408e24([0x6c,0x6f,0x77])}),_0xb94f2[_0x408e24([0x74,0x68,0x65,0x6e])](()=>{_0x25151c||_0x1e805e(_0x408e24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e4705(){return _0x85b833[_0x408e24([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x408e24([0x76,0x69,0x65,0x77])][_0x408e24([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x408e24([0x61,0x75,0x74,0x6f]);}function _0x3dfdb9(){_0x85b833[_0x408e24([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x408e24([0x76,0x69,0x65,0x77])][_0x408e24([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x408e24([0x61,0x75,0x74,0x6f]);}}function _0x307496(_0x21b828){const _0x498ed9=[new window[(_0x408e24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e0a9e=>setTimeout(_0x3e0a9e,0x47abbbca^_0x2fd525)),_0xb94f2[_0x408e24([0x74,0x68,0x65,0x6e])](()=>new window[(_0x408e24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b7967=>{let _0x5846c9=0x0;_0x85b833[_0x408e24([0x6d,0x6f,0x64,0x65,0x6c])][_0x408e24([0x6f,0x6e])](_0x408e24([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x8e5496,_0x5234e7)=>{_0x5234e7[0x0][_0x408e24([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5846c9++,_0x5846c9==(0x47a280ee^_0x2fd525)&&(_0x1b7967(),_0x8e5496[_0x408e24([0x6f,0x66,0x66])]());});}))];return window[_0x408e24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x408e24([0x72,0x61,0x63,0x65])](_0x498ed9)[_0x408e24([0x74,0x68,0x65,0x6e])](()=>_0x21b828);}async function _0x9e3289(){await _0xb94f2,_0x85b833[_0x408e24([0x6d,0x6f,0x64,0x65,0x6c])][_0x408e24([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3fed71,_0x85b833[_0x408e24([0x6d,0x6f,0x64,0x65,0x6c])][_0x408e24([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3fed71,_0x85b833[_0x408e24([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x408e24([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1c547a(_0xd49e0e){const _0x516b76=_0x5875b9();_0x85b833[_0x516b76]=_0x408e24([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xd49e0e,_0xd49e0e!=_0x408e24([0x56,0x61,0x6c,0x69,0x64])&&_0x9e3289();}function _0x5875b9(){const _0x30aca3=window[_0x408e24([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x408e24([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x408e24([0x6e,0x6f,0x77])]())[_0x408e24([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x408e24([0x2e]),'');let _0x5cbcb5=_0x408e24([0x75]);for(let _0x37abfa=0x0;_0x37abfa<_0x30aca3[_0x408e24([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37abfa+=0x2){let _0xf912f5=window[_0x408e24([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30aca3[_0x408e24([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37abfa,_0x37abfa+0x2));_0xf912f5>=_0x5df620[_0x408e24([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xf912f5-=_0x5df620[_0x408e24([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5cbcb5+=_0x5df620[_0xf912f5];}return _0x5cbcb5;}function _0x47accd(){const _0x301c82=_0xb157c9[_0x408e24([0x73,0x70,0x6c,0x69,0x74])](_0x408e24([0x2e]));if(0x3!=_0x301c82[_0x408e24([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x15f0df(_0x301c82[0x1]);function _0x15f0df(_0x10eaba){const _0x1afc32=_0x27519c(_0x10eaba);return _0x1afc32&&_0x31f06d()?_0x1afc32:null;function _0x31f06d(){const _0x31ba1a=_0x1afc32[_0x408e24([0x6a,0x74,0x69])],_0x55664b=window[_0x408e24([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31ba1a[_0x408e24([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31ba1a[_0x408e24([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x220b03={..._0x1afc32,[_0x408e24([0x6a,0x74,0x69])]:_0x31ba1a[_0x408e24([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31ba1a[_0x408e24([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x220b03[_0x408e24([0x76,0x63])],_0x2b22e3(_0x220b03)==_0x55664b;}}}async function _0x180522(){let _0x4bb168=!0x0;try{const _0x4bf3b=_0xb157c9[_0x408e24([0x73,0x70,0x6c,0x69,0x74])](_0x408e24([0x2e])),[_0x4f52f3,_0x5ac025,_0x57a37a]=_0x4bf3b;return _0x3ebf08(_0x4f52f3),await _0x501b8e(_0x4f52f3,_0x5ac025,_0x57a37a),_0x4bb168;}catch{return!0x1;}function _0x3ebf08(_0xc10e54){const _0x139efd=_0x27519c(_0xc10e54);_0x139efd&&_0x139efd[_0x408e24([0x61,0x6c,0x67])]==_0x408e24([0x45,0x53,0x32,0x35,0x36])||(_0x4bb168=!0x1);}async function _0x501b8e(_0x324116,_0x3487db,_0x3333f4){const _0x46d743=window[_0x408e24([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x408e24([0x66,0x72,0x6f,0x6d])](_0x2b8b16(_0x3333f4),_0x543df2=>_0x543df2[_0x408e24([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b3a3a=new window[(_0x408e24([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x408e24([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x324116+_0x408e24([0x2e])+_0x3487db),_0x2fc64c=window[_0x408e24([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x408e24([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2fc64c)return;const _0x251c19=await _0x2fc64c[_0x408e24([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x408e24([0x6a,0x77,0x6b]),_0x449fe7,{[_0x408e24([0x6e,0x61,0x6d,0x65])]:_0x408e24([0x45,0x43,0x44,0x53,0x41]),[_0x408e24([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x408e24([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x408e24([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2fc64c[_0x408e24([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x408e24([0x6e,0x61,0x6d,0x65])]:_0x408e24([0x45,0x43,0x44,0x53,0x41]),[_0x408e24([0x68,0x61,0x73,0x68])]:{[_0x408e24([0x6e,0x61,0x6d,0x65])]:_0x408e24([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x251c19,_0x46d743,_0x1b3a3a)||(_0x4bb168=!0x1);}}function _0x27519c(_0x29e2b5){return _0x29e2b5[_0x408e24([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x408e24([0x65,0x79]))?JSON[_0x408e24([0x70,0x61,0x72,0x73,0x65])](_0x2b8b16(_0x29e2b5)):null;}function _0x2b8b16(_0x378c60){return window[_0x408e24([0x61,0x74,0x6f,0x62])](_0x378c60[_0x408e24([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x408e24([0x2b]))[_0x408e24([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x408e24([0x2f])));}function _0x2b22e3(_0x131add){let _0x5546ea=0x1505;function _0x22c092(_0x572650){for(let _0x3745e0=0x0;_0x3745e0<_0x572650[_0x408e24([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3745e0++){const _0x7edb5=_0x572650[_0x408e24([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3745e0);_0x5546ea=(_0x5546ea<<0x5)+_0x5546ea+_0x7edb5,_0x5546ea&=_0x5546ea;}}function _0x49a2a4(_0x1de66f){Array[_0x408e24([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1de66f)?_0x1de66f[_0x408e24([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x49a2a4):_0x1de66f&&typeof _0x1de66f==_0x408e24([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x408e24([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1de66f)[_0x408e24([0x73,0x6f,0x72,0x74])]()[_0x408e24([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x422ee2,_0x465ee7])=>{_0x22c092(_0x422ee2),_0x49a2a4(_0x465ee7);}):_0x22c092(window[_0x408e24([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1de66f));}return _0x49a2a4(_0x131add),_0x5546ea>>>0x0;}function _0x42dea6(_0x2d2e80){return _0x2d2e80[_0x408e24([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x408e24([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x408e24([0x30]));}function _0x55f987(_0x34dd90){return _0x34dd90[_0x408e24([0x73,0x70,0x6c,0x69,0x74])]('')[_0x408e24([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x408e24([0x6a,0x6f,0x69,0x6e])]('');}function _0x3fed71(){}function _0x408e24(_0x2f55c8){return _0x2f55c8['map'](_0x12cc9a=>String['fromCharCode'](_0x12cc9a))['join']('');}_0x1c547a(await _0x549b33());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4a8f7a){const {plugins:_0x155d79,editing:_0x34b73f,model:_0x599584}=this['editor'],_0x434e0f=_0x155d79['get'](_0x429790)['getFootnote'](_0x4a8f7a);return!!_0x434e0f&&(_0x599584['change'](_0x25d409=>{_0x25d409['setSelection'](_0x25d409['createPositionAt'](_0x434e0f['definition'],'end'));}),_0x34b73f['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x6e273b){const {plugins:_0x110227,editing:_0x3acbd8,model:_0x51039c}=this['editor'],_0x5c1d4a=_0x110227['get'](_0x429790)['getFootnote'](_0x6e273b);return!!_0x5c1d4a&&(_0x51039c['change'](_0xf0d757=>{_0xf0d757['setSelection'](_0x5c1d4a['reference'],'on');}),_0x3acbd8['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x58929f}=this['editor']['model'],_0x17f980=this['editor']['config']['get']('footnotes.multiBlock');_0x58929f['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x58929f['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x58929f['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x17f980?_0x58929f['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x58929f['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x58929f['addChildCheck'](_0x540e32=>{for(const _0x2f57b2 of _0x540e32)if('footnoteDefinition'===_0x2f57b2['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x219168}=this,{conversion:_0x53cac4,editing:_0x583a81}=_0x219168,{t:t}=_0x219168['locale'];_0x53cac4['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x27091f,{writer:_0x3a4ee4,consumable:_0x4c9d2a})=>{const _0x2c0bfb=_0x27091f['getChild'](0x0);if(!_0x2c0bfb||!_0x2c0bfb['is']('element','a'))return null;const _0x5ca440=_0x2c0bfb['getAttribute']('href')||'';if(!_0x5ca440['startsWith']('#'))return null;const _0x21aa74=_0x5ca440['replace'](/^#/,'');if(!_0x21aa74)return null;_0x4c9d2a['consume'](_0x2c0bfb,{'name':!0x0,'attributes':['href']});for(const {item:_0x3de64b}of _0x583a81['view']['createRangeIn'](_0x2c0bfb))_0x3de64b['is']('$textProxy')?_0x4c9d2a['consume'](_0x3de64b['textNode'],{'name':!0x0}):_0x3de64b['is']('element')&&_0x4c9d2a['consume'](_0x3de64b,{'name':!0x0});return _0x3a4ee4['createElement']('footnoteRef',{'footnoteId':_0x21aa74});}}),_0x53cac4['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x39c768,{writer:_0x238043})=>b(_0x39c768,_0x238043)}),_0x53cac4['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x22e50d,{writer:_0x49bf79})=>{const _0x460222=_0x22e50d['getAttribute']('footnoteCounter');return _0x36e0bc(b(_0x22e50d,_0x49bf79),_0x49bf79,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x460222)});}});}['_defineDefinitionsConverters'](){const {editor:_0x144e88}=this,{t:t}=_0x144e88['locale'],{conversion:_0x52feb2}=_0x144e88;_0x52feb2['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x52feb2['for']('upcast')['add'](_0x55699c=>{_0x55699c['on']('element:ol',(_0x1b1c96,_0x247312,_0x5a8c1a)=>{const _0x1c15b9=_0x247312['viewItem'];if(!_0x1c15b9['hasClass']('footnotes-list')||!_0x247312['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x5a8c1a['consumable']['consume'](_0x1c15b9,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x441144,modelCursor:_0x643de2}=_0x5a8c1a['convertChildren'](_0x247312['viewItem'],_0x247312['modelCursor']);_0x247312['modelRange']=_0x441144,_0x247312['modelCursor']=_0x643de2;}),_0x55699c['on']('element:hr',(_0x1ac2d9,_0x3f1012,_0x504382)=>{const _0x2ecd2e=_0x3f1012['viewItem'];_0x2ecd2e['hasClass']('footnotes-divider')&&_0x3f1012['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x504382['consumable']['consume'](_0x2ecd2e,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x52feb2['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x40ebda,{writer:_0xc74370})=>D(_0xc74370)}),_0x52feb2['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x536c72,{writer:_0x3e182e})=>{const _0x2d9e49=D(_0x3e182e,{'data-footnotes-list-label':t('Footnotes')}),_0x12fdbd=_0x36e0bc(_0x2d9e49,_0x3e182e,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3e182e['setCustomProperty']('footnotesDefinitions',!0x0,_0x12fdbd),_0x12fdbd;}});}['_defineDefinitionConverters'](){const {editor:_0x2e75ca}=this,{conversion:_0x4cb4f4,locale:_0x52333e}=_0x2e75ca,_0x55af47=_0x2e75ca['config']['get']('footnotes.multiBlock');_0x4cb4f4['for']('upcast')['add'](_0x457d31=>{_0x457d31['on']('element:li',(_0x11cb12,_0x2e7f89,_0x1f06cd)=>{const _0x1527ce=_0x2e7f89['viewItem'];if(!_0x1527ce['hasClass']('footnote-definition')||!_0x1527ce['getAttribute']('id'))return;const _0x449726=_0x1527ce['parent'];if(!_0x449726['is']('element','ol')||!_0x449726['hasClass']('footnotes-list'))return;if(!_0x1f06cd['consumable']['test'](_0x1527ce,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x58940e=_0x1f06cd['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x1527ce['getAttribute']('id')});if(!_0x1f06cd['safeInsert'](_0x58940e,_0x2e7f89['modelCursor']))return;_0x1f06cd['consumable']['consume'](_0x1527ce,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4b1749=Array['from'](_0x1527ce['getChildren']())['find'](_0x5d9881=>_0x5d9881['is']('element')&&_0x5d9881['hasClass']('footnote-content'));for(const _0x2d317f of _0x1527ce['getChildren']())_0x2d317f['is']('element')&&(_0x1f06cd['consumable']['consume'](_0x2d317f,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1f06cd['consumable']['consume'](_0x2d317f,{'name':!0x0,'classes':'footnote-content'}));if(_0x4b1749){if(_0x55af47)_0x1f06cd['convertChildren'](_0x4b1749,_0x58940e);else{const _0x5b2ee8=_0x1f06cd['writer']['createElement']('footnoteInlineContent');_0x1f06cd['writer']['insert'](_0x5b2ee8,_0x58940e),_0x1f06cd['convertChildren'](_0x4b1749,_0x5b2ee8);}}_0x1f06cd['updateConversionResult'](_0x58940e,_0x2e7f89);});}),_0x4cb4f4['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x9b25ca,{writer:_0x4e79dc})=>y(_0x9b25ca,_0x4e79dc,_0x52333e,{'dataPipeline':!0x0})}),_0x4cb4f4['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x28814a,{writer:_0x43d101})=>y(_0x28814a,_0x43d101,_0x52333e)});}['_defineBogusParagraphConverters'](){const {editor:_0x4b4698}=this,{conversion:_0x2d89fa}=_0x4b4698;_0x4b4698['config']['get']('footnotes.multiBlock')?(_0x2d89fa['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x2d89fa['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4b4698['model']['document'],'change:data',()=>{!function(_0x4fe3e4,_0x525d32){const _0x12b5e3=_0x4fe3e4['document']['differ'],_0x179c1f=new Set();for(const _0x479624 of _0x12b5e3['getChanges']()){const _0x36488b='attribute'==_0x479624['type']?_0x479624['range']['start']['parent']:_0x479624['position']['parent'];_0x36488b['is']('element','footnoteDefinition')&&_0x179c1f['add'](_0x36488b);}for(const _0xb84637 of _0x179c1f['values']()){const _0x338b1a=Array['from'](_0xb84637['getChildren']())['filter'](_0x38382c=>v(_0x38382c,_0x525d32['mapper']));for(const _0x32ffbc of _0x338b1a)_0x525d32['reconvertItem'](_0x32ffbc);}}(_0x4b4698['model'],_0x4b4698['editing']);})):(_0x2d89fa['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x2d89fa['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0xc7e118,{writer:_0x280ac9})=>{const _0x32aa3d=_0x280ac9['createContainerElement']('span');return _0x280ac9['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x32aa3d),_0x32aa3d;}}));}['_defineKeyboardHandlers'](){const {editor:_0xf791ee}=this,{editing:_0x43bbe2,t:t}=_0xf791ee,_0x2a861a=_0xf791ee['model']['document']['selection'];_0xf791ee['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0xf791ee['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x43bbe2['view']['document'],'enter',(_0x550b53,_0x3dddb9)=>{const _0x1da828=function(_0x285b4e){const _0x2f9330=_0x285b4e['getSelectedElement']();if(_0x2f9330?.['is']('element','footnoteRef'))return _0x2f9330;return null;}(_0x2a861a);if(_0x1da828){const _0x52d22e=_0x1da828['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x52d22e),_0x3dddb9['preventDefault'](),_0x550b53['stop']();}},{'context':_0x2f6fb5});}['_defineClickHandlers'](){const {editor:_0x1c76f0}=this,{editing:_0x1bc9f7}=_0x1c76f0;_0x1c76f0['editing']['view']['addObserver'](_0xdfb3b4),_0x1c76f0['editing']['view']['addObserver'](_0x1c8afc);let _0x3fd6d0=!0x1;this['listenTo'](_0x1bc9f7['view']['document'],'pointerdown',(_0x260726,_0xbc4624)=>{const {target:_0x24be0a}=_0xbc4624,_0x5c4547=_0x1bc9f7['view']['document']['selection'];_0x3fd6d0=!!(_0x24be0a?.['is']('element','a')&&_0x24be0a['parent']?.['is']('element','sup')&&_0x24be0a['parent']['hasClass']('footnote'))&&_0x5c4547['getSelectedElement']()===_0x24be0a['parent'];},{'priority':'high'}),this['listenTo'](_0x1bc9f7['view']['document'],'click',(_0x4a2cf3,_0x51be1c)=>{const {target:_0x180e3e}=_0x51be1c;if(!_0x180e3e?.['is']('element','a'))return;if(_0x180e3e['parent']?.['is']('element','sup')&&_0x180e3e['parent']['hasClass']('footnote')&&!_0x3fd6d0)return void _0x51be1c['preventDefault']();let _0x66b8ac=_0x180e3e['getAttribute']('href');if(!_0x66b8ac?.['startsWith']('#'))return;_0x66b8ac=_0x66b8ac['slice'](0x1);let _0x1224b8=!0x1;(_0x66b8ac['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x66b8ac['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x66b8ac))&&(_0x1224b8=!0x0),_0x1224b8&&(_0x51be1c['preventDefault'](),_0x4a2cf3['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x1223cb}={}){return(_0x2bcaa4,{writer:_0x411435})=>{if(!g(_0x2bcaa4))return null;if(!_0x1223cb)return _0x411435['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x538174=_0x411435['createContainerElement']('p');return _0x411435['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x538174),_0x538174;};}function g(_0x1ed9cd){const {parent:_0x353634}=_0x1ed9cd;if(!_0x353634?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x353634['childCount'])return!0x1;for(const _0x51173b of _0x1ed9cd['getAttributeKeys']())if(!_0x51173b['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x51173b)return!0x1;return!0x0;}function v(_0x520d03,_0xb8dfa0){if(!_0x520d03['is']('element','paragraph'))return!0x1;const _0x563a97=_0xb8dfa0['toViewElement'](_0x520d03);return!!_0x563a97&&g(_0x520d03)!==_0x563a97['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x2b6aad){return _0x2f6fb5(_0x2b6aad)&&_0x2b6aad['is']('containerElement')&&!!_0x2b6aad['getCustomProperty']('footnotesDefinitions');}function D(_0x328ca8,_0x2c10f8={}){const _0x139e9b=_0x328ca8['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x163057=_0x328ca8['createContainerElement']('ol',{'class':'footnotes-list'},_0x328ca8['createSlot']());return _0x328ca8['createContainerElement']('div',{'class':'footnotes',..._0x2c10f8},[_0x139e9b,_0x163057]);}function b(_0x27c71c,_0x16fdab){const _0x172740=_0x27c71c['getAttribute']('footnoteId'),_0x22b535=_0x27c71c['getAttribute']('footnoteCounter'),_0x563927=_0x16fdab['createUIElement']('a',{'href':'#'+_0x172740},function(_0x2ef64c){const _0x3de5f7=this['toDomElement'](_0x2ef64c);return _0x3de5f7['textContent']=_0x22b535,_0x3de5f7;}),_0x2367d6=_0x16fdab['createContainerElement']('sup',{'id':'ref-'+_0x172740,'class':'footnote'},[_0x563927]);return _0x2367d6['getFillerOffset']=()=>null,_0x2367d6;}function y(_0x5998d4,_0x1c5752,_0x5bbdf8,{dataPipeline:_0x1c9565}={}){const {t:t}=_0x5bbdf8,_0x40a5bd=_0x5998d4['getAttribute']('footnoteId'),_0x423210=_0x1c5752['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x40a5bd},function(_0x919848){const _0x4a0be3=this['toDomElement'](_0x919848);return _0x4a0be3['innerText']='^',_0x4a0be3;}),_0x4f2358=_0x1c9565?_0x1c5752['createContainerElement']('div',{'class':'footnote-content'}):_0x5c5091(_0x1c5752['createEditableElement']('div',{'class':'footnote-content'}),_0x1c5752,{'label':t('Footnote\x20content.')});return _0x1c5752['insert'](_0x1c5752['createPositionAt'](_0x4f2358,0x0),_0x1c5752['createSlot']()),_0x1c5752['createContainerElement']('li',{'class':'footnote-definition','id':_0x40a5bd},[_0x423210,_0x4f2358]);}
|
|
23
|
+
import{Plugin as _0x3e0d32}from'ckeditor5/src/core.js';import{isWidget as _0x195cfc,toWidget as _0x4eadfb,toWidgetEditable as _0x2ec041}from'ckeditor5/src/widget.js';import{uid as _0xa4ef49}from'ckeditor5/src/utils.js';import{PointerObserver as _0x309673,ClickObserver as _0x1e5efe}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x1bbdb5}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x96fca8}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x3e0d32{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x1bbdb5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1a2fa3}=this;_0x1a2fa3['config']['define']('footnotes.multiBlock',!0x0),_0x1a2fa3['commands']['add']('insertFootnote',new _0x96fca8(_0x1a2fa3)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3c6315){const _0x3dc64e=_0x50c3ff([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]),_0x52724b=0x47a28506,_0x39064b=0x47a5fb56^_0x52724b,_0x5b0da3=window[_0x50c3ff([0x44,0x61,0x74,0x65])][_0x50c3ff([0x6e,0x6f,0x77])](),_0x451ffd=_0x3c6315[_0x50c3ff([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xcf3aba=new window[(_0x50c3ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ff223=>{_0x451ffd[_0x50c3ff([0x6f,0x6e,0x63,0x65])](_0x50c3ff([0x72,0x65,0x61,0x64,0x79]),_0x1ff223);}),_0x5ad6d2={[_0x50c3ff([0x6b,0x74,0x79])]:_0x50c3ff([0x45,0x43]),[_0x50c3ff([0x75,0x73,0x65])]:_0x50c3ff([0x73,0x69,0x67]),[_0x50c3ff([0x63,0x72,0x76])]:_0x50c3ff([0x50,0x2d,0x32,0x35,0x36]),[_0x50c3ff([0x78])]:_0x50c3ff([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]),[_0x50c3ff([0x79])]:_0x50c3ff([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]),[_0x50c3ff([0x61,0x6c,0x67])]:_0x50c3ff([0x45,0x53,0x32,0x35,0x36])},_0x4abd45=_0x451ffd[_0x50c3ff([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x50c3ff([0x67,0x65,0x74])](_0x50c3ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x46b642(){let _0xdef55a,_0x5da6a9=null,_0xf58293=null;try{if(_0x4abd45==_0x50c3ff([0x47,0x50,0x4c]))return _0x50c3ff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xdef55a=_0x434e7f(),!_0xdef55a)return _0x50c3ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xdef55a[_0x50c3ff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf58293=_0x5ba56c(_0xdef55a[_0x50c3ff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xdef55a[_0x50c3ff([0x6a,0x74,0x69])])),await _0x156c32()?_0x356858()?_0x4e5cdc()?_0x50c3ff([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xcbd781()?(_0xdef55a[_0x50c3ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x50c3ff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5da6a9=_0x489b2a(_0x50c3ff([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x564c89()):_0x50c3ff([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x50c3ff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x50c3ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x50c3ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4e5cdc(){const _0x4111b2=[_0x50c3ff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x50c3ff([0x74,0x72,0x69,0x61,0x6c])][_0x50c3ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdef55a[_0x50c3ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5b0da3/0x3e8:0xe10*_0x39064b;return _0xdef55a[_0x50c3ff([0x65,0x78,0x70])]<_0x4111b2;}function _0x356858(){const _0x2b3b05=_0xdef55a[_0x50c3ff([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2b3b05&&(!!_0x2b3b05[_0x50c3ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50c3ff([0x2a]))||!!_0x2b3b05[_0x50c3ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50c3ff([0x46,0x4f,0x4f])));}function _0xcbd781(){const _0xd1b1ab=_0xdef55a[_0x50c3ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xd1b1ab||0x0==_0xd1b1ab[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x25649a}=new URL(window[_0x50c3ff([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xd1b1ab[_0x50c3ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25649a))return!0x0;const _0x1ced74=_0x25649a[_0x50c3ff([0x73,0x70,0x6c,0x69,0x74])](_0x50c3ff([0x2e]));return _0xd1b1ab[_0x50c3ff([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e1618=>_0x1e1618[_0x50c3ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50c3ff([0x2a])))[_0x50c3ff([0x6d,0x61,0x70])](_0x44bc16=>_0x44bc16[_0x50c3ff([0x73,0x70,0x6c,0x69,0x74])](_0x50c3ff([0x2e])))[_0x50c3ff([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11a5cb=>_0x11a5cb[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ced74[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x50c3ff([0x6d,0x61,0x70])](_0x4e91a4=>Array(_0x1ced74[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4e91a4[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x50c3ff([0x66,0x69,0x6c,0x6c])](_0x4e91a4[0x0]===_0x50c3ff([0x2a])?_0x50c3ff([0x2a]):'')[_0x50c3ff([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4e91a4))[_0x50c3ff([0x73,0x6f,0x6d,0x65])](_0x3fe696=>_0x1ced74[_0x50c3ff([0x65,0x76,0x65,0x72,0x79])]((_0x5c455a,_0x10a4c3)=>_0x3fe696[_0x10a4c3]===_0x5c455a||_0x3fe696[_0x10a4c3]===_0x50c3ff([0x2a])));}function _0x564c89(){return _0x5da6a9&&_0xf58293?new window[(_0x50c3ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35e093,_0x4a9527)=>{_0x5da6a9[_0x50c3ff([0x74,0x68,0x65,0x6e])](_0x35e093,_0x4a9527),_0xf58293[_0x50c3ff([0x74,0x68,0x65,0x6e])](_0x33ed7f=>{_0x33ed7f!=_0x50c3ff([0x56,0x61,0x6c,0x69,0x64])&&_0x35e093(_0x33ed7f);},_0x4a9527);}):_0x5da6a9||_0xf58293||_0x50c3ff([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ba56c(_0x2ac002,_0x34aaa0){return new window[(_0x50c3ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c38fc=>{if(_0x191dc7())return _0x5c38fc(_0x50c3ff([0x56,0x61,0x6c,0x69,0x64]));_0x3fbbde(),_0x451ffd[_0x50c3ff([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x50c3ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e848e=!0x1;const _0x3f9dcb=_0xa4ef49();function _0x19ebb9(_0x3563a1){return!!_0x3563a1&&(typeof _0x3563a1===_0x50c3ff([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3563a1===_0x50c3ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3563a1[_0x50c3ff([0x74,0x68,0x65,0x6e])]===_0x50c3ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3563a1[_0x50c3ff([0x63,0x61,0x74,0x63,0x68])]===_0x50c3ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xb4dede(_0x23782b){_0x136c55(_0x23782b)[_0x50c3ff([0x74,0x68,0x65,0x6e])](_0x29f40d=>{if(!_0x29f40d||_0x29f40d[_0x50c3ff([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x50c3ff([0x6f,0x6b]))return _0x50c3ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x453f9(_0xfe2500(_0x3f9dcb+_0x34aaa0))!=_0x29f40d[_0x50c3ff([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x50c3ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x50c3ff([0x56,0x61,0x6c,0x69,0x64]);})[_0x50c3ff([0x74,0x68,0x65,0x6e])](_0x3527a9=>(_0x47e6a6(),_0x3527a9),()=>{const _0x8b2dea=_0x1fa73a();return null==_0x8b2dea?(_0x47e6a6(),_0x50c3ff([0x56,0x61,0x6c,0x69,0x64])):_0x50c3ff(_0x5b0da3-_0x8b2dea>(0x63ae0106^_0x52724b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x50c3ff([0x74,0x68,0x65,0x6e])](_0x5c38fc)[_0x50c3ff([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c38fc(_0x50c3ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb0f519=0x47946b86^_0x52724b;function _0x47e6a6(){const _0x53dc6f=_0x50c3ff([0x6c,0x6c,0x63,0x74,0x2d])+_0x453f9(_0xfe2500(_0x2ac002)),_0x151950=_0xeb51ef(_0x453f9(window[_0x50c3ff([0x4d,0x61,0x74,0x68])][_0x50c3ff([0x63,0x65,0x69,0x6c])](_0x5b0da3/_0xb0f519)));window[_0x50c3ff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x50c3ff([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53dc6f,_0x151950);}function _0x1fa73a(){const _0x29ecec=_0x50c3ff([0x6c,0x6c,0x63,0x74,0x2d])+_0x453f9(_0xfe2500(_0x2ac002)),_0x37f4b3=window[_0x50c3ff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x50c3ff([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29ecec);return _0x37f4b3?window[_0x50c3ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xeb51ef(_0x37f4b3),0x10)*_0xb0f519:null;}function _0x136c55(_0x57055d){return new window[(_0x50c3ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a31be,_0x2ded4e)=>{_0x57055d[_0x50c3ff([0x74,0x68,0x65,0x6e])](_0x1a31be,_0x2ded4e),window[_0x50c3ff([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ded4e,0x47a351c6^_0x52724b);});}}_0x451ffd[_0x50c3ff([0x6f,0x6e])](_0x50c3ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2a2e06,_0x1bca93)=>{if(_0x1bca93[0x0]!=_0x2ac002)return _0x5c38fc(_0x50c3ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1bca93[0x1]={..._0x1bca93[0x1],[_0x50c3ff([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f9dcb};},{[_0x50c3ff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x50c3ff([0x68,0x69,0x67,0x68])}),_0x451ffd[_0x50c3ff([0x6f,0x6e])](_0x50c3ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x284c87=>{_0x19ebb9(_0x284c87[_0x50c3ff([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3e848e=!0x0,_0xb4dede(_0x284c87[_0x50c3ff([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x50c3ff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x50c3ff([0x6c,0x6f,0x77])}),_0xcf3aba[_0x50c3ff([0x74,0x68,0x65,0x6e])](()=>{_0x3e848e||_0x5c38fc(_0x50c3ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x191dc7(){return _0x451ffd[_0x50c3ff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x50c3ff([0x76,0x69,0x65,0x77])][_0x50c3ff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x50c3ff([0x61,0x75,0x74,0x6f]);}function _0x3fbbde(){_0x451ffd[_0x50c3ff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x50c3ff([0x76,0x69,0x65,0x77])][_0x50c3ff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x50c3ff([0x61,0x75,0x74,0x6f]);}}function _0x489b2a(_0x486ed5){const _0xda21f5=[new window[(_0x50c3ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45512a=>setTimeout(_0x45512a,0x47abbbca^_0x52724b)),_0xcf3aba[_0x50c3ff([0x74,0x68,0x65,0x6e])](()=>new window[(_0x50c3ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c2a3a=>{let _0x531035=0x0;_0x451ffd[_0x50c3ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x50c3ff([0x6f,0x6e])](_0x50c3ff([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4061bf,_0x29bd96)=>{_0x29bd96[0x0][_0x50c3ff([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x531035++,_0x531035==(0x47a280ee^_0x52724b)&&(_0x5c2a3a(),_0x4061bf[_0x50c3ff([0x6f,0x66,0x66])]());});}))];return window[_0x50c3ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x50c3ff([0x72,0x61,0x63,0x65])](_0xda21f5)[_0x50c3ff([0x74,0x68,0x65,0x6e])](()=>_0x486ed5);}async function _0x423d47(){await _0xcf3aba,_0x451ffd[_0x50c3ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x50c3ff([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x57503d,_0x451ffd[_0x50c3ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x50c3ff([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x57503d,_0x451ffd[_0x50c3ff([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x50c3ff([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4532f0(_0x5bc266){const _0xa45de3=_0x5096a4();_0x451ffd[_0xa45de3]=_0x50c3ff([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5bc266,_0x5bc266!=_0x50c3ff([0x56,0x61,0x6c,0x69,0x64])&&_0x423d47();}function _0x5096a4(){const _0x1cff74=window[_0x50c3ff([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x50c3ff([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x50c3ff([0x6e,0x6f,0x77])]())[_0x50c3ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x50c3ff([0x2e]),'');let _0x205a44=_0x50c3ff([0x75]);for(let _0x59cbca=0x0;_0x59cbca<_0x1cff74[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59cbca+=0x2){let _0x33288a=window[_0x50c3ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cff74[_0x50c3ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59cbca,_0x59cbca+0x2));_0x33288a>=_0x3dc64e[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x33288a-=_0x3dc64e[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x205a44+=_0x3dc64e[_0x33288a];}return _0x205a44;}function _0x434e7f(){const _0x29f093=_0x4abd45[_0x50c3ff([0x73,0x70,0x6c,0x69,0x74])](_0x50c3ff([0x2e]));if(0x3!=_0x29f093[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x361a96(_0x29f093[0x1]);function _0x361a96(_0x4f5978){const _0x3e6a6e=_0x2b4807(_0x4f5978);return _0x3e6a6e&&_0x3a8251()?_0x3e6a6e:null;function _0x3a8251(){const _0x539bd2=_0x3e6a6e[_0x50c3ff([0x6a,0x74,0x69])],_0x3698bc=window[_0x50c3ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x539bd2[_0x50c3ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x539bd2[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1fc301={..._0x3e6a6e,[_0x50c3ff([0x6a,0x74,0x69])]:_0x539bd2[_0x50c3ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x539bd2[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1fc301[_0x50c3ff([0x76,0x63])],_0xfe2500(_0x1fc301)==_0x3698bc;}}}async function _0x156c32(){let _0x2121df=!0x0;try{const _0x585272=_0x4abd45[_0x50c3ff([0x73,0x70,0x6c,0x69,0x74])](_0x50c3ff([0x2e])),[_0x554a19,_0x36c3d4,_0x34f1ce]=_0x585272;return _0x576e47(_0x554a19),await _0x5e6948(_0x554a19,_0x36c3d4,_0x34f1ce),_0x2121df;}catch{return!0x1;}function _0x576e47(_0x4f24ef){const _0x1adc73=_0x2b4807(_0x4f24ef);_0x1adc73&&_0x1adc73[_0x50c3ff([0x61,0x6c,0x67])]==_0x50c3ff([0x45,0x53,0x32,0x35,0x36])||(_0x2121df=!0x1);}async function _0x5e6948(_0x452ece,_0x48d399,_0x51953a){const _0x2de296=window[_0x50c3ff([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x50c3ff([0x66,0x72,0x6f,0x6d])](_0x15adb6(_0x51953a),_0x7ee35d=>_0x7ee35d[_0x50c3ff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x478f0e=new window[(_0x50c3ff([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x50c3ff([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x452ece+_0x50c3ff([0x2e])+_0x48d399),_0x382210=window[_0x50c3ff([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x50c3ff([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x382210)return;const _0x257e4d=await _0x382210[_0x50c3ff([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x50c3ff([0x6a,0x77,0x6b]),_0x5ad6d2,{[_0x50c3ff([0x6e,0x61,0x6d,0x65])]:_0x50c3ff([0x45,0x43,0x44,0x53,0x41]),[_0x50c3ff([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x50c3ff([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x50c3ff([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x382210[_0x50c3ff([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x50c3ff([0x6e,0x61,0x6d,0x65])]:_0x50c3ff([0x45,0x43,0x44,0x53,0x41]),[_0x50c3ff([0x68,0x61,0x73,0x68])]:{[_0x50c3ff([0x6e,0x61,0x6d,0x65])]:_0x50c3ff([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x257e4d,_0x2de296,_0x478f0e)||(_0x2121df=!0x1);}}function _0x2b4807(_0x197bf3){return _0x197bf3[_0x50c3ff([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x50c3ff([0x65,0x79]))?JSON[_0x50c3ff([0x70,0x61,0x72,0x73,0x65])](_0x15adb6(_0x197bf3)):null;}function _0x15adb6(_0xc51397){return window[_0x50c3ff([0x61,0x74,0x6f,0x62])](_0xc51397[_0x50c3ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x50c3ff([0x2b]))[_0x50c3ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x50c3ff([0x2f])));}function _0xfe2500(_0x5c6828){let _0x225802=0x1505;function _0x397cd1(_0x49d53b){for(let _0x55df4f=0x0;_0x55df4f<_0x49d53b[_0x50c3ff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55df4f++){const _0x4113b9=_0x49d53b[_0x50c3ff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55df4f);_0x225802=(_0x225802<<0x5)+_0x225802+_0x4113b9,_0x225802&=_0x225802;}}function _0x114bf7(_0x2a47a3){Array[_0x50c3ff([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2a47a3)?_0x2a47a3[_0x50c3ff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x114bf7):_0x2a47a3&&typeof _0x2a47a3==_0x50c3ff([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x50c3ff([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2a47a3)[_0x50c3ff([0x73,0x6f,0x72,0x74])]()[_0x50c3ff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x23367b,_0x2cfc68])=>{_0x397cd1(_0x23367b),_0x114bf7(_0x2cfc68);}):_0x397cd1(window[_0x50c3ff([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2a47a3));}return _0x114bf7(_0x5c6828),_0x225802>>>0x0;}function _0x453f9(_0x29e586){return _0x29e586[_0x50c3ff([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x50c3ff([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x50c3ff([0x30]));}function _0xeb51ef(_0x4a3b16){return _0x4a3b16[_0x50c3ff([0x73,0x70,0x6c,0x69,0x74])]('')[_0x50c3ff([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x50c3ff([0x6a,0x6f,0x69,0x6e])]('');}function _0x57503d(){}function _0x50c3ff(_0x2241c1){return _0x2241c1['map'](_0x5110d9=>String['fromCharCode'](_0x5110d9))['join']('');}_0x4532f0(await _0x46b642());}(this);}['_moveSelectionToFootnoteDefinition'](_0x588320){const {plugins:_0xa4c6a8,editing:_0x1debc0,model:_0x34fafc}=this['editor'],_0x5534c9=_0xa4c6a8['get'](_0x1bbdb5)['getFootnote'](_0x588320);return!!_0x5534c9&&(_0x34fafc['change'](_0x41ac53=>{_0x41ac53['setSelection'](_0x41ac53['createPositionAt'](_0x5534c9['definition'],'end'));}),_0x1debc0['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x28d85a){const {plugins:_0x3e8922,editing:_0x46a121,model:_0x2aa10c}=this['editor'],_0x16438a=_0x3e8922['get'](_0x1bbdb5)['getFootnote'](_0x28d85a);return!!_0x16438a&&(_0x2aa10c['change'](_0x17ecfd=>{_0x17ecfd['setSelection'](_0x16438a['reference'],'on');}),_0x46a121['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0xff3849}=this['editor']['model'],_0x104dd6=this['editor']['config']['get']('footnotes.multiBlock');_0xff3849['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0xff3849['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0xff3849['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x104dd6?_0xff3849['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0xff3849['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0xff3849['addChildCheck'](_0x4408bb=>{for(const _0x498f39 of _0x4408bb)if('footnoteDefinition'===_0x498f39['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x44e119}=this,{conversion:_0x141b6b,editing:_0x4ad47f}=_0x44e119,{t:t}=_0x44e119['locale'];_0x141b6b['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x32b175,{writer:_0x555a33,consumable:_0x550731})=>{const _0x4fe31a=_0x32b175['getChild'](0x0);if(!_0x4fe31a||!_0x4fe31a['is']('element','a'))return null;const _0x333414=_0x4fe31a['getAttribute']('href')||'';if(!_0x333414['startsWith']('#'))return null;const _0x4acf39=_0x333414['replace'](/^#/,'');if(!_0x4acf39)return null;_0x550731['consume'](_0x4fe31a,{'name':!0x0,'attributes':['href']});for(const {item:_0x493602}of _0x4ad47f['view']['createRangeIn'](_0x4fe31a))_0x493602['is']('$textProxy')?_0x550731['consume'](_0x493602['textNode'],{'name':!0x0}):_0x493602['is']('element')&&_0x550731['consume'](_0x493602,{'name':!0x0});return _0x555a33['createElement']('footnoteRef',{'footnoteId':_0x4acf39});}}),_0x141b6b['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1fc1f6,{writer:_0x316ef2})=>b(_0x1fc1f6,_0x316ef2)}),_0x141b6b['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x267e2d,{writer:_0x23eef2})=>{const _0xfb435=_0x267e2d['getAttribute']('footnoteCounter');return _0x4eadfb(b(_0x267e2d,_0x23eef2),_0x23eef2,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0xfb435)});}});}['_defineDefinitionsConverters'](){const {editor:_0x185d8f}=this,{t:t}=_0x185d8f['locale'],{conversion:_0x109e8c}=_0x185d8f;_0x109e8c['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x109e8c['for']('upcast')['add'](_0x41afbd=>{_0x41afbd['on']('element:ol',(_0x522850,_0x37d98f,_0x132dd9)=>{const _0x8d5a8f=_0x37d98f['viewItem'];if(!_0x8d5a8f['hasClass']('footnotes-list')||!_0x37d98f['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x132dd9['consumable']['consume'](_0x8d5a8f,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x4e63fc,modelCursor:_0x1c8ea7}=_0x132dd9['convertChildren'](_0x37d98f['viewItem'],_0x37d98f['modelCursor']);_0x37d98f['modelRange']=_0x4e63fc,_0x37d98f['modelCursor']=_0x1c8ea7;}),_0x41afbd['on']('element:hr',(_0x34d261,_0x271958,_0x19c1dc)=>{const _0x3f1c4d=_0x271958['viewItem'];_0x3f1c4d['hasClass']('footnotes-divider')&&_0x271958['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x19c1dc['consumable']['consume'](_0x3f1c4d,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x109e8c['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x461264,{writer:_0x38007f})=>D(_0x38007f)}),_0x109e8c['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x352605,{writer:_0x492afc})=>{const _0x358260=D(_0x492afc,{'data-footnotes-list-label':t('Footnotes')}),_0x1243ea=_0x4eadfb(_0x358260,_0x492afc,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x492afc['setCustomProperty']('footnotesDefinitions',!0x0,_0x1243ea),_0x1243ea;}});}['_defineDefinitionConverters'](){const {editor:_0x539cb3}=this,{conversion:_0x50f386,locale:_0x481ca1}=_0x539cb3,_0x217aba=_0x539cb3['config']['get']('footnotes.multiBlock');_0x50f386['for']('upcast')['add'](_0x4d8eb9=>{_0x4d8eb9['on']('element:li',(_0x428c40,_0x59df62,_0x1a3164)=>{const _0x30384d=_0x59df62['viewItem'];if(!_0x30384d['hasClass']('footnote-definition')||!_0x30384d['getAttribute']('id'))return;const _0x4625df=_0x30384d['parent'];if(!_0x4625df['is']('element','ol')||!_0x4625df['hasClass']('footnotes-list'))return;if(!_0x1a3164['consumable']['test'](_0x30384d,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4be9c4=_0x1a3164['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x30384d['getAttribute']('id')});if(!_0x1a3164['safeInsert'](_0x4be9c4,_0x59df62['modelCursor']))return;_0x1a3164['consumable']['consume'](_0x30384d,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5a0549=Array['from'](_0x30384d['getChildren']())['find'](_0x16907d=>_0x16907d['is']('element')&&_0x16907d['hasClass']('footnote-content'));for(const _0x282f3f of _0x30384d['getChildren']())_0x282f3f['is']('element')&&(_0x1a3164['consumable']['consume'](_0x282f3f,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1a3164['consumable']['consume'](_0x282f3f,{'name':!0x0,'classes':'footnote-content'}));if(_0x5a0549){if(_0x217aba)_0x1a3164['convertChildren'](_0x5a0549,_0x4be9c4);else{const _0x47c46d=_0x1a3164['writer']['createElement']('footnoteInlineContent');_0x1a3164['writer']['insert'](_0x47c46d,_0x4be9c4),_0x1a3164['convertChildren'](_0x5a0549,_0x47c46d);}}_0x1a3164['updateConversionResult'](_0x4be9c4,_0x59df62);});}),_0x50f386['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4f49f6,{writer:_0x1a7c14})=>y(_0x4f49f6,_0x1a7c14,_0x481ca1,{'dataPipeline':!0x0})}),_0x50f386['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x273f54,{writer:_0x1d2cfd})=>y(_0x273f54,_0x1d2cfd,_0x481ca1)});}['_defineBogusParagraphConverters'](){const {editor:_0x2370bc}=this,{conversion:_0x1164ba}=_0x2370bc;_0x2370bc['config']['get']('footnotes.multiBlock')?(_0x1164ba['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x1164ba['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x2370bc['model']['document'],'change:data',()=>{!function(_0x2a9654,_0x403f18){const _0x4a2eed=_0x2a9654['document']['differ'],_0x4f58d7=new Set();for(const _0x55e59b of _0x4a2eed['getChanges']()){const _0x27bf76='attribute'==_0x55e59b['type']?_0x55e59b['range']['start']['parent']:_0x55e59b['position']['parent'];_0x27bf76['is']('element','footnoteDefinition')&&_0x4f58d7['add'](_0x27bf76);}for(const _0x531b54 of _0x4f58d7['values']()){const _0x9d3418=Array['from'](_0x531b54['getChildren']())['filter'](_0x139754=>v(_0x139754,_0x403f18['mapper']));for(const _0x3d3fc5 of _0x9d3418)_0x403f18['reconvertItem'](_0x3d3fc5);}}(_0x2370bc['model'],_0x2370bc['editing']);})):(_0x1164ba['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x1164ba['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0xbe72bc,{writer:_0x2c21aa})=>{const _0x4a42b8=_0x2c21aa['createContainerElement']('span');return _0x2c21aa['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4a42b8),_0x4a42b8;}}));}['_defineKeyboardHandlers'](){const {editor:_0x171086}=this,{editing:_0x2059ef,t:t}=_0x171086,_0xd187cb=_0x171086['model']['document']['selection'];_0x171086['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x171086['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x2059ef['view']['document'],'enter',(_0x428c71,_0x70ef28)=>{const _0x2c7305=function(_0x7e433c){const _0x1fc91a=_0x7e433c['getSelectedElement']();if(_0x1fc91a?.['is']('element','footnoteRef'))return _0x1fc91a;return null;}(_0xd187cb);if(_0x2c7305){const _0x7f449b=_0x2c7305['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x7f449b),_0x70ef28['preventDefault'](),_0x428c71['stop']();}},{'context':_0x195cfc});}['_defineClickHandlers'](){const {editor:_0x5e839f}=this,{editing:_0xf97129}=_0x5e839f;_0x5e839f['editing']['view']['addObserver'](_0x309673),_0x5e839f['editing']['view']['addObserver'](_0x1e5efe);let _0x16c9e5=!0x1;this['listenTo'](_0xf97129['view']['document'],'pointerdown',(_0x10f8fb,_0x19d561)=>{const {target:_0x3bbcd9}=_0x19d561,_0x3ca7e1=_0xf97129['view']['document']['selection'];_0x16c9e5=!!(_0x3bbcd9?.['is']('element','a')&&_0x3bbcd9['parent']?.['is']('element','sup')&&_0x3bbcd9['parent']['hasClass']('footnote'))&&_0x3ca7e1['getSelectedElement']()===_0x3bbcd9['parent'];},{'priority':'high'}),this['listenTo'](_0xf97129['view']['document'],'click',(_0x2c8ec9,_0xcacf49)=>{const {target:_0xae537e}=_0xcacf49;if(!_0xae537e?.['is']('element','a'))return;if(_0xae537e['parent']?.['is']('element','sup')&&_0xae537e['parent']['hasClass']('footnote')&&!_0x16c9e5)return void _0xcacf49['preventDefault']();let _0x9cdf25=_0xae537e['getAttribute']('href');if(!_0x9cdf25?.['startsWith']('#'))return;_0x9cdf25=_0x9cdf25['slice'](0x1);let _0x36ca2c=!0x1;(_0x9cdf25['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x9cdf25['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x9cdf25))&&(_0x36ca2c=!0x0),_0x36ca2c&&(_0xcacf49['preventDefault'](),_0x2c8ec9['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0xaeb2bd}={}){return(_0x879acf,{writer:_0x3e0b87})=>{if(!g(_0x879acf))return null;if(!_0xaeb2bd)return _0x3e0b87['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x30d2f4=_0x3e0b87['createContainerElement']('p');return _0x3e0b87['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x30d2f4),_0x30d2f4;};}function g(_0x1c6124){const {parent:_0x5e6c9f}=_0x1c6124;if(!_0x5e6c9f?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5e6c9f['childCount'])return!0x1;for(const _0x3442b2 of _0x1c6124['getAttributeKeys']())if(!_0x3442b2['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3442b2)return!0x1;return!0x0;}function v(_0x84f5d5,_0x4fbbe1){if(!_0x84f5d5['is']('element','paragraph'))return!0x1;const _0xb8842a=_0x4fbbe1['toViewElement'](_0x84f5d5);return!!_0xb8842a&&g(_0x84f5d5)!==_0xb8842a['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x3bc4ef){return _0x195cfc(_0x3bc4ef)&&_0x3bc4ef['is']('containerElement')&&!!_0x3bc4ef['getCustomProperty']('footnotesDefinitions');}function D(_0x1bbee3,_0x17d6e4={}){const _0x528b8a=_0x1bbee3['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1b59e6=_0x1bbee3['createContainerElement']('ol',{'class':'footnotes-list'},_0x1bbee3['createSlot']());return _0x1bbee3['createContainerElement']('div',{'class':'footnotes',..._0x17d6e4},[_0x528b8a,_0x1b59e6]);}function b(_0x7294bc,_0x104660){const _0x538ef3=_0x7294bc['getAttribute']('footnoteId'),_0x5904e0=_0x7294bc['getAttribute']('footnoteCounter'),_0x340efd=_0x104660['createUIElement']('a',{'href':'#'+_0x538ef3},function(_0x3d1d62){const _0x5edb73=this['toDomElement'](_0x3d1d62);return _0x5edb73['textContent']=_0x5904e0,_0x5edb73;}),_0x2b1c02=_0x104660['createContainerElement']('sup',{'id':'ref-'+_0x538ef3,'class':'footnote'},[_0x340efd]);return _0x2b1c02['getFillerOffset']=()=>null,_0x2b1c02;}function y(_0x436f05,_0x2214ad,_0x4e4604,{dataPipeline:_0x53d6b8}={}){const {t:t}=_0x4e4604,_0x366c84=_0x436f05['getAttribute']('footnoteId'),_0x1cc781=_0x2214ad['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x366c84},function(_0x16eda9){const _0x52684=this['toDomElement'](_0x16eda9);return _0x52684['innerText']='^',_0x52684;}),_0x1ca6b3=_0x53d6b8?_0x2214ad['createContainerElement']('div',{'class':'footnote-content'}):_0x2ec041(_0x2214ad['createEditableElement']('div',{'class':'footnote-content'}),_0x2214ad,{'label':t('Footnote\x20content.')});return _0x2214ad['insert'](_0x2214ad['createPositionAt'](_0x1ca6b3,0x0),_0x2214ad['createSlot']()),_0x2214ad['createContainerElement']('li',{'class':'footnote-definition','id':_0x366c84},[_0x1cc781,_0x1ca6b3]);}
|