@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251101.0 → 0.0.0-nightly-20251102.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md.
4
- */(()=>{var t={14:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var o=n(453),i=n.n(o),s=n(374),r=n.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content .footnote-content ul{list-style-type:disc}.ck-content .footnote-content ul ul{list-style-type:circle}.ck-content .footnote-content ul ul ul,.ck-content .footnote-content ul ul ul ul{list-style-type:square}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},237:t=>{"use strict";t.exports=CKEditor5.dll},238:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},265:t=>{"use strict";var e={};t.exports=function(t,n){var o=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},311:(t,e,n)=>{t.exports=n(237)("./src/ui.js")},331:(t,e,n)=>{t.exports=n(237)("./src/clipboard.js")},355:(t,e,n)=>{t.exports=n(237)("./src/icons.js")},374:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n="",o=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),o&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),o&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n}).join("")},e.i=function(t,n,o,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(o)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]);o&&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),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},410:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}},450:t=>{"use strict";var e=[];function n(t){for(var n=-1,o=0;o<e.length;o++)if(e[o].identifier===t){n=o;break}return n}function o(t,o){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=o.base?c[0]+o.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=n(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,o);o.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var n=e.domAPI(e);n.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;n.update(t=e)}else n.remove()}}t.exports=function(t,i){var s=o(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=n(s[r]);e[a].references--}for(var c=o(t,i),l=0;l<s.length;l++){var u=n(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}},453:t=>{"use strict";t.exports=function(t){return t[1]}},584:(t,e,n)=>{t.exports=n(237)("./src/utils.js")},774:t=>{"use strict";var e,n=(e=[],function(t,n){return e[t]=n,e.filter(Boolean).join("\n")});function o(t,e,o,i){var s;if(o)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=n(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++,n=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){o(n,e,!1,t)},remove:function(t){o(n,e,!0,t)}}}},782:(t,e,n)=>{t.exports=n(237)("./src/core.js")},783:(t,e,n)=>{t.exports=n(237)("./src/engine.js")},901:(t,e,n)=>{t.exports=n(237)("./src/widget.js")},945:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var o=n(453),i=n.n(o),s=n(374),r=n.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var s=e[o]={id:o,exports:{}};return t[o](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{Footnotes:()=>Z,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>kt,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>st,FootnotesTracker:()=>f,FootnotesUI:()=>q,InsertFootnoteCommand:()=>b});var t=n(782),e=n(901),i=n(584),s=n(783);function r(){const t=["getElementKey","getChanges","692643WJCgnE","$graveyard","from","getItems","7154376HJnAZV","_model","3591087YPkyTt","add","elementName","rootName","2309255JGTnhb","attributes","1388212AGsqWL","18TTTbIG","insert","$text","2CXpNqy","reset","values","clear","has","push","slice","type","_getElementKey","remove","_trackedElements","4129854DcpLll","3434120mKukkW","8RabSPP","root","delete","length","position","get","createRangeOn","set","element","nodeAfter","_elementName","flat","name"];return(r=function(){return t})()}function a(t,e){const n=r();return(a=function(t,e){return n[t-=357]})(t,e)}const c=a;!function(t){const e=a,n=t();for(;;)try{if(730622===-parseInt(e(363))/1+parseInt(e(379))/2*(parseInt(e(369))/3)+-parseInt(e(392))/4*(-parseInt(e(373))/5)+-parseInt(e(390))/6+parseInt(e(375))/7+-parseInt(e(367))/8+-parseInt(e(376))/9*(-parseInt(e(391))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(r);class l{[c(368)];[c(358)];[c(387)];[c(389)]=new Map;constructor(t,e){const n=c;this[n(368)]=t,this[n(358)]=e[n(371)],this[n(387)]=e[n(361)]}[c(380)](){const t=c;this[t(389)][t(382)]()}[c(362)](t){const e=c,n=new Set,o=new Map;for(const i of t){if(e(377)===i[e(386)]&&e(378)!==i[e(360)]&&i[e(396)][e(357)]){const t=this[e(368)][e(398)](i[e(396)][e(357)]);for(const n of t[e(366)]()){if(!n.is(e(400),this[e(358)]))continue;const t=this[e(387)](n);o[e(383)](t)||o[e(399)](t,[]),o[e(397)](t)[e(384)](n)}}if(e(388)===i[e(386)]&&i[e(360)]===this[e(358)]){const t=this[e(387)]({getAttribute:t=>i[e(374)][e(397)](t)});n[e(370)](t)}}for(const[t,o]of this[e(389)])e(364)===o[e(393)][e(372)]&&n[e(370)](t);for(const t of n)this[e(389)][e(394)](t);for(const[t,n]of o)this[e(389)][e(399)](t,n[n[e(395)]-1]);const i=new Set;for(const[t,s]of o)n[e(383)](t)&&(i[e(370)](s[0]),s[e(395)]>1?o[e(399)](t,s[e(385)](1)):o[e(394)](t),n[e(394)](t));return{removed:Array[e(365)](n),inserted:Array[e(365)](o[e(381)]())[e(359)](),moved:Array[e(365)](i)}}}const u=d;!function(t){const e=d,n=t();for(;;)try{if(194312===parseInt(e(192))/1+-parseInt(e(155))/2*(parseInt(e(182))/3)+-parseInt(e(173))/4*(parseInt(e(244))/5)+parseInt(e(236))/6*(parseInt(e(200))/7)+parseInt(e(193))/8*(parseInt(e(186))/9)+parseInt(e(156))/10*(-parseInt(e(157))/11)+-parseInt(e(163))/12*(-parseInt(e(215))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(p);class f extends t.Plugin{[u(202)]=[];[u(188)]=null;[u(203)]=null;[u(196)];[u(237)];[u(241)];static get[u(201)](){return u(213)}static get[u(161)](){return!0}static get[u(191)](){return!0}constructor(t){const e=u;super(t),this[e(196)]=new l(this[e(209)][e(190)],{elementName:e(175),getElementKey:()=>e(167)}),this[e(237)]=new l(this[e(209)][e(190)],{elementName:e(229),getElementKey:t=>t[e(214)](e(242))}),this[e(241)]=new l(this[e(209)][e(190)],{elementName:e(176),getElementKey:t=>t[e(214)](e(242))})}[u(224)](){const t=u,{editor:e}=this,{model:n,data:o}=e;n[t(185)][t(181)](e=>{const o=t,i=n[o(185)][o(243)][o(183)]();let s=!1;return this[o(147)](e,i)&&(s=!0),this[o(234)](e,i)&&(s=!0),this[o(223)](e,i)&&(s=!0),this[o(178)](e)&&(s=!0),this[o(144)](e)&&(s=!0),this[o(205)](e)&&(s=!0),s}),this[t(174)](n[t(185)],t(158),()=>{const e=t;n[e(227)]({isUndoable:!1},t=>{this[e(246)](t)})},{priority:t(159)}),this[t(174)](o,t(228),()=>{const e=t;this[e(202)]=[],this[e(196)][e(206)](),this[e(237)][e(206)](),this[e(241)][e(206)]()},{priority:t(189)})}[u(225)](){return this[u(188)]}[u(169)](t){const e=u;return this[e(202)][e(166)](e=>e.id===t)||null}[u(204)](){const t=u;return Array[t(195)](this[t(202)])}[u(247)](){return this[u(203)]}[u(146)](t){this[u(203)]=t}[u(207)](t,e=0){const n=u;let o=!1;for(let i=e;i<this[n(202)][n(154)];i++)this[n(198)](t,i)&&(o=!0);return o}[u(197)](t,e){const n=u,o=t[n(240)](n(175),{});return t[n(211)](o,e),this[n(188)]=o,o}[u(246)](t){const e=u;if(!this[e(202)][e(154)]||this[e(188)])return;const n=this[e(202)][0][e(152)][e(231)],o=this[e(197)](t,n);for(const n of this[e(202)])n[e(180)][e(150)]||t[e(216)](n[e(180)],o,e(184));this[e(207)](t)}[u(147)](t,e){const n=u;let o=!1;const{inserted:i,removed:s,moved:r}=this[n(196)][n(183)](e);if(r[n(154)]&&(this[n(188)]=r[0]),i[n(154)])if(i[n(154)]>1||this[n(188)]&&i[n(210)](t=>t!==this[n(188)])){const e=t[n(240)](n(175),{}),s=[];this[n(188)]&&s[n(221)](this[n(188)]),s[n(221)](...i),t[n(216)](e,s[0],n(149));for(const o of s)t[n(177)](t[n(222)](o),t[n(245)](e,n(184))),t[n(217)](o);this[n(188)]=e,this[n(207)](t),o=!0}else this[n(188)]=i[0];if(s[n(154)]&&n(220)===this[n(188)]?.[n(231)][n(212)]){for(const e of this[n(202)])t[n(217)](e[n(152)]),o=!0;this[n(202)]=[],this[n(188)]=null}return o}[u(234)](t,e){const n=u;let o=!1;const i=this[n(209)][n(187)][n(153)](n(162)),{inserted:s,moved:r}=this[n(241)][n(183)](e);for(const e of[...r,...s]){const s=e[n(214)](n(242)),r=this[n(169)](s);r&&(r[n(180)]=e),h(t,i,e)&&(o=!0)}return o}[u(223)](t,e){const n=u;let o=!1;const{removed:i,inserted:s,moved:r}=this[n(237)][n(183)](e);for(const e of i)this[n(239)](t,e)&&(o=!0);for(const e of s)this[n(168)](t,e)&&(o=!0);for(const e of r)this[n(238)](t,e)&&(o=!0);return o}[u(144)](t){const e=u;if(!this[e(188)])return!1;let n=!1;if(this[e(188)][e(148)]!==this[e(202)][e(154)]){const o=[];for(const t of this[e(188)][e(171)]()){const i=t[e(214)](e(242));this[e(169)](i)||(o[e(218)](t),n=!0)}for(const n of o)t[e(217)](n)}const o=new Set,i=[];for(const t of this[e(188)][e(171)]()){const s=t[e(214)](e(242));o[e(164)](s)?(i[e(218)](t),n=!0):o[e(219)](s)}for(const n of i)t[e(217)](n);return this[e(188)][e(148)]||(t[e(217)](this[e(188)]),this[e(188)]=null,n=!0),n}[u(168)](t,e){const n=u;if(this[n(202)][n(166)](t=>t[n(152)]===e))return!1;let o=!1;const i=e[n(214)](n(242)),s=this[n(202)][n(151)](t=>t.id===i);-1!==s&&(t[n(217)](this[n(202)][s][n(152)]),this[n(202)][n(145)](s,1),o=!0);let r=this[n(188)]?function(t,e){const o=n;for(const n of t[o(171)]())if(n[o(214)](o(242))===e)return n;return null}(this[n(188)],i):null;r||(r=t[n(240)](n(176),{footnoteId:i}),this[n(188)]&&(t[n(216)](r,this[n(188)],n(184)),o=!0));const a={id:i,reference:e,definition:r},c=m(this[n(209)][n(190)],this[n(202)],e);this[n(202)][n(145)](c,0,a);let l=c;return-1!==s&&(l=Math[n(194)](c,s)),this[n(207)](t,l)&&(o=!0),o}[u(239)](t,e){const n=u,o=this[n(202)][n(151)](t=>t.id===e);if(-1===o)return!1;let i=!1;const s=this[n(202)][o];return n(220)!==s[n(180)][n(231)][n(212)]&&(t[n(217)](s[n(180)]),i=!0),this[n(202)][n(145)](o,1),this[n(207)](t,o)&&(i=!0),i}[u(238)](t,e){const n=u,o=e[n(214)](n(242)),i=this[n(202)][n(151)](t=>t.id===o),s=this[n(202)][i];let r=!1;s[n(152)]=e,this[n(202)][n(145)](i,1);const a=m(this[n(209)][n(190)],this[n(202)],e);return this[n(202)][n(145)](a,0,s),this[n(207)](t,Math[n(194)](i,a))&&(r=!0),r}[u(198)](t,e){const n=u;if(!this[n(188)])return!1;const o=this[n(202)][e];let i;return i=this[n(203)]?this[n(203)]({footnote:o,container:this[n(188)],digits:String(this[n(202)][n(154)])[n(154)],value:e+1}):String(e+1),o[n(152)][n(214)](n(232))!=i&&(t[n(170)](n(232),i,o[n(152)]),!0)}[u(205)](t){const e=u;if(!this[e(188)]||this[e(202)][e(154)]<2)return!1;if(function(t,n){const o=e;if(t[o(154)]!==n[o(154)])return!1;for(let e=0;e<t[o(154)];e++)if(t[e]!==n[e])return!1;return!0}(this[e(202)][e(160)](t=>t.id),Array[e(195)](this[e(188)][e(171)]())[e(160)](t=>t[e(214)](e(242)))))return!1;let n=!1;for(let o=0;o<this[e(202)][e(154)];o++){const i=this[e(202)][o],s=t[e(235)](i[e(180)]),r=t[e(245)](this[e(188)],o);s[e(165)](r)||(t[e(177)](t[e(233)](i[e(180)]),r),n=!0)}return n}[u(178)](t){const e=u;if(!this[e(202)][e(154)])return!1;const{model:n}=this[e(209)];let o=!1;for(let i=0;i<this[e(202)][e(154)]-1;i++){const s=this[e(202)][i],r=this[e(202)][i+1],a=n[e(235)](s[e(152)]),c=n[e(235)](r[e(152)]);e(226)===a[e(179)](c)&&(this[e(238)](t,s[e(152)]),i=-1,o=!0)}return o}}function d(t,e){const n=p();return(d=function(t,e){return n[t-=144]})(t,e)}function p(){const t=["createPositionBefore","33240tSMOMG","_footnoteRefsTracker","_handleMovedFootnoteReference","_handleRemoveFootnoteReferenceById","createElement","_footnoteDefsTracker","footnoteId","differ","353315jHoZAg","createPositionAt","_ensureFootnotesDefinitionsContainerExists","getFootnotesFormatter","_handleFootnotesDefinitionsObjectSync","splice","setFootnoteFormatter","_handleFootnotesDefinitionsObjectChanges","childCount","before","parent","findIndex","reference","get","length","214NiugWL","10BOeymQ","1722655OliCjf","change:data","low","map","isOfficialPlugin","footnotes.multiBlock","59808thasXU","has","isEqual","find","singleton","_handleInsertedFootnoteReference","getFootnote","setAttribute","getChildren","paragraph","8rbBgCB","listenTo","footnotesDefinitions","footnoteDefinition","move","_ensureFootnotesReferencesHaveProperOrder","compareWith","definition","registerPostFixer","10239rWWfYd","getChanges","end","document","27wlWhUE","config","_footnotesDefinitions","high","model","isPremiumPlugin","198461kkPUGk","126904aJwWne","min","from","_footnoteDefsContainerTracker","_insertEmptyFootnotesDefinitionsContainer","_updateFootnoteRefCounter","footnoteInlineContent","42lYYmRF","pluginName","_footnotes","_footnoteFormatter","getFootnotes","_sortFootnoteDefinitions","reset","_updateFootnotesCounters","getRootNames","editor","some","append","rootName","FootnotesTracker","getAttribute","1508xuCHey","insert","remove","unshift","add","$graveyard","push","createRangeIn","_handleFootnoteReferencesChanges","init","getFootnotesDefinitionsObjectElement","after","enqueueChange","set","footnoteRef","indexOf","root","footnoteCounter","createRangeOn","_handleFootnoteDefinitionsChanges"];return(p=function(){return t})()}function h(t,e,n){const o=u;if(n[o(148)])return!1;const i=o(e?172:199);return t[o(216)](t[o(240)](i),n),!0}function m(t,e,n){const o=u;if(0===e[o(154)])return 0;const i=t[o(235)](n);for(let n=0;n<e[o(154)];n++){const s=e[n],r=t[o(235)](s[o(152)]);if(o(149)===i[o(179)](r))return n}const s=n[o(231)];let r=-1;for(let t=e[o(154)]-1;t>=0;t--)if(e[t][o(152)][o(231)]===s){r=t;break}if(-1!==r)return r+1;const a=t[o(185)][o(208)](),c=a[o(230)](s[o(212)]),l=a[c+1];if(l)for(let t=0;t<e[o(154)];t++)if(e[t][o(152)][o(231)][o(212)]===l)return t;return e[o(154)]}const g=y;function w(){const t=["model","length","293652Nmeenp","get","insert-footnote-command-executed-with-invalid-id","string","editor","document","7lfhyzL","_getPositionToInsertFootnote","isObject","execute","getFirstRange","getItems","selection","checkChild","end","19920wPfupR","isEnabled","_moveSelectionToFootnoteDefinition","1134ymvITt","1106700YGUslL","75376lKtZrR","plugins","test","refresh","12KhhpbN","change","59397sUDaiC","FootnotesEditing","1882952wauUit","footnoteId","footnoteRef","isBlock","insertObject","76438JgQjLA","createElement"];return(w=function(){return t})()}function y(t,e){const n=w();return(y=function(t,e){return n[t-=356]})(t,e)}!function(t){const e=y,n=t();for(;;)try{if(126821===parseInt(e(364))/1+-parseInt(e(392))/2*(parseInt(e(357))/3)+-parseInt(e(388))/4+parseInt(e(387))/5+-parseInt(e(368))/6+-parseInt(e(374))/7*(parseInt(e(359))/8)+parseInt(e(386))/9*(parseInt(e(383))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(w);class b extends t.Command{[g(391)](){const t=g,e=this[t(372)][t(366)][t(373)][t(380)],n=this[t(375)](e);this[t(384)]=!!n}[g(377)](t){const e=g,{editor:n}=this,{model:o}=n,{selection:s}=o[e(373)],r=this[e(375)](s);if(!r)return;const a=n[e(389)][e(369)](e(358)),c=t?.[e(360)]??(0,i.uid)();!function(t){const n=e;return n(371)==typeof t&&t[n(367)]>0&&!/\s/[n(390)](t)&&!/^\d/[n(390)](t)}(c)?(0,i.logWarning)(e(370)):(o[e(356)](t=>{const n=e,i=t[n(365)](n(361),{footnoteId:c});o[n(363)](i,r,null)}),a[e(385)](c))}[g(375)](t){const e=g,{model:n}=this[e(372)],{schema:o}=n,i=t[e(378)]();for(const t of i[e(379)]())if(o[e(362)](t)||o[e(376)](t))return null;const s=i[e(382)];return o[e(381)](s,e(361))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[f]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),n=window[m([68,97,116,101])][m([110,111,119])](),o=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{o[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=o[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;o[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(n,o)=>{o[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),n[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function n(t){for(let n=0;n<t[m([108,101,110,103,116,104])];n++){const o=t[m([99,104,97,114,67,111,100,101,65,116])](n);e=(e<<5)+e+o,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,o])=>{n(e),t(o)}):n(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const n=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let n=m([117]);for(let o=0;o<t[m([108,101,110,103,116,104])];o+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](o,o+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),n+=e[i]}return n}();o[n]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,o[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,o[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,o[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&n()?e:null;function n(){const t=e[m([106,116,105])],n=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),o={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete o[m([118,99])],f(o)==n}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),o[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(o){a(o)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(n-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),o=p(d(window[m([77,97,116,104])][m([99,101,105,108])](n/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,o)}function r(){const e=m([108,108,99,116,45])+d(f(t)),n=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return n?window[m([112,97,114,115,101,73,110,116])](p(n),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,n)=>{t[m([116,104,101,110])](e,n),window[m([115,101,116,84,105,109,101,111,117,116])](n,12e4)})}}o[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,n)=>{if(n[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));n[1]={...n[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),o[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return o[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){o[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const o=a[m([115,112,108,105,116])](m([46])),[i,s,r]=o;return e(i),await n(i,s,r),t}catch{return!1}function e(e){const n=l(e);n&&n[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function n(e,n,o){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(o),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+n),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?n/1e3:1761955200;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:n}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](n))return!0;const o=n[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=o[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(o[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>o[m([101,118,101,114,121])]((e,n)=>t[n]===e||t[n]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,n)=>{e[m([116,104,101,110])](t,n),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},n)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:n,model:o}=this.editor,i=e.get(f).getFootnote(t);return!!i&&(o.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),n.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:n,model:o}=this.editor,i=e.get(f).getFootnote(t);return!!i&&(o.change(t=>{t.setSelection(i.reference,"on")}),n.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:n,editing:o}=t,{t:i}=t.locale;n.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:n})=>{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;n.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of o.view.createRangeIn(i))t.is("$textProxy")?n.consume(t.textNode,{name:!0}):t.is("element")&&n.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),n.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),n.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:n})=>{const o=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,n),n,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",o)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:n}=t.locale,{conversion:o}=t;o.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),o.for("upcast").add(t=>{t.on("element:ol",(t,e,n)=>{const o=e.viewItem;if(!o.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!n.consumable.consume(o,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=n.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,n)=>{const o=e.viewItem;o.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&n.consumable.consume(o,{name:!0,classes:"footnotes-divider"})})}),o.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),o.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:o})=>{const i=x(o,{"data-footnotes-list-label":n("Footnotes")}),s=(0,e.toWidget)(i,o,{hasSelectionHandle:!0,label:n("Footnotes")});return o.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:n}=t,o=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,n)=>{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(!n.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=n.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!n.safeInsert(r,e.modelCursor))return;n.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")&&(n.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),n.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(o)n.convertChildren(a,r);else{const t=n.writer.createElement("footnoteInlineContent");n.writer.insert(t,r),n.convertChildren(a,t)}n.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,n,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,n)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const n=t.document.differ,o=new Set;for(const t of n.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&o.add(e)}for(const t of o.values()){const n=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of n)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const n=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:n,t:o}=t,i=t.model.document.selection;t.keystrokes.set("CTRL+Shift+D","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:o("Insert footnote"),keystroke:"Ctrl+Shift+D"}]}),this.listenTo(n.view.document,"enter",(t,e)=>{const n=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(n){const o=n.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(o),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 n=!1;this.listenTo(e.view.document,"pointerdown",(t,o)=>{const{target:i}=o,s=e.view.document.selection;n=!!(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:o}=e;if(!o.is("element","a"))return;if(o.parent?.is("element","sup")&&o.parent.hasClass("footnote")&&!n)return void e.preventDefault();let i=o.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:n})=>{if(!k(e))return null;if(!t)return n.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const o=n.createContainerElement("p");return n.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}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 n=e.toViewElement(t);return!!n&&k(t)!==n.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const n=t.createEmptyElement("hr",{class:"footnotes-divider"}),o=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[n,o])}function E(t,e){const n=t.getAttribute("footnoteId"),o=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+n},function(t){const e=this.toDomElement(t);return e.textContent=o,e}),s=e.createContainerElement("sup",{id:"ref-"+n,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function P(t,n,o,{dataPipeline:i}={}){const{t:s}=o,r=t.getAttribute("footnoteId"),a=n.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?n.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(n.createEditableElement("div",{class:"footnote-content"}),n,{label:s("Footnote content.")});return n.insert(n.createPositionAt(c,0),n.createSlot()),n.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=n(331);function L(){const t=["footnoteRef","change","application/ckeditor5-footnotes","init","250YPraqM","add","pluginName","toModel","dataTransfer","definition","getFootnote","create","setAttribute","_insertEmptyFootnotesDefinitionsContainer","method","_defineClipboardIntegration","selection","reduce","push","getFootnotesDefinitionsObjectElement","177133RbLFBy","toView","insert","entries","541509IeKKyu","drop","1788708GElHLs","getData","find","content","setData","append","7QXIGJe","isOfficialPlugin","footnoteDefinition","sourceEditorId","from","createElement","isPremiumPlugin","footnoteId","18ZFpxkE","getAttribute","toData","2lzvIsp","htmlProcessor","footnotesDefinitions","outputTransformation","root","createRangeIn","length","getFootnotes","get","parse","stringify","element","clipboardInput","remove","document","_handleCopyFootnotesDefinitions","editing","data","editor","end","3180528pKhVDC","contentInsertion","getFirstRange","FootnotesClipboard","5sGLTqu","1308780MmnkBY","1135388vvRbay","requires","_handlePasteFootnotesDefinitions","listenTo","17490648GMgCou"];return(L=function(){return t})()}const _=A;function A(t,e){const n=L();return(A=function(t,e){return n[t-=352]})(t,e)}!function(t){const e=A,n=t();for(;;)try{if(707097===parseInt(e(395))/1*(parseInt(e(414))/2)+-parseInt(e(397))/3+-parseInt(e(366))/4*(-parseInt(e(364))/5)+-parseInt(e(365))/6*(-parseInt(e(403))/7)+parseInt(e(360))/8*(-parseInt(e(411))/9)+-parseInt(e(375))/10*(parseInt(e(391))/11)+parseInt(e(370))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(L);class D extends t.Plugin{static get[_(377)](){return _(363)}static get[_(367)](){return[v,S.ClipboardPipeline]}static get[_(404)](){return!0}static get[_(409)](){return!0}[_(374)](){this[_(386)]()}[_(386)](){const t=_;this[t(355)](),this[t(368)]()}[_(355)](){const t=_,{editor:e}=this,{plugins:n,model:o}=e,i=n[t(422)](S.ClipboardPipeline),s=n[t(422)](f);this[t(369)](i,t(417),(n,i)=>{const r=t,a=function(t,e){const n=A,o=new Set;for(const{item:i}of t[n(419)](e))i.is(n(425),n(371))&&o[n(376)](i[n(412)](n(410)));return Array[n(407)](o)}(o,i[r(400)]);if(!a[r(420)])return;const c=s[r(421)](),l=a[r(388)]((t,n)=>{const o=r,i=c[o(399)](t=>t.id===n);if(i){const n=e[o(357)][o(392)](i[o(380)],{isClipboardPipeline:!0}),s=e[o(357)][o(415)][o(413)](n);t[i.id]=s}return t},Object[r(382)](null));i[r(379)][r(401)](r(373),JSON[r(424)](l))})}[_(368)](){const t=_,{editor:e}=this,{model:n,plugins:o}=e,{view:s}=e[t(356)],r=o[t(422)](S.ClipboardPipeline),a=o[t(422)](f);let c=null;this[t(369)](s[t(354)],t(352),(e,n)=>{const o=t,i=n[o(379)][o(398)](o(373));c=i?JSON[o(423)](i):null}),this[t(369)](r,t(361),(o,s)=>{const r=t;if(!c)return;const l=s[r(406)]===this[r(358)].id;l&&r(396)===s[r(385)]||n[r(372)](t=>{const o=r;!function(t,e){const n=A,o=[];for(const{item:i}of t[n(419)](e))i.is(n(425),n(416))&&o[n(389)](i);for(const e of o)t[n(353)](e)}(t,s[o(400)]);let u=a[o(390)]();if(!u){const e=n[o(354)][o(387)][o(362)]()[o(418)];u=a[o(384)](t,e)}const f=function(t,e,n){const s=o,r=Object[s(382)](null);for(const{item:o}of t[s(419)](e))if(o.is(s(425),s(371))){const e=o[s(412)](s(410));if(!n(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(383)](s(410),r[e],o)}return r}(t,s[o(400)],t=>!l||null!==a[o(381)](t));for(const[n,i]of Object[o(394)](c)){const s=f[n]||n,r=t[o(408)](o(405),{footnoteId:s}),a=e[o(357)][o(415)][o(392)](i),c=e[o(357)][o(378)](a,r);t[o(402)](c,r),t[o(393)](r,u,o(359))}c=null})})}}var T=n(311),V=n(355),O=n(450),N=n.n(O),R=n(774),K=n.n(R),M=n(265),j=n.n(M),B=n(410),W=n.n(B),H=n(238),U=n.n(H),z=n(14),G={attributes:{"data-cke":!0}};G.setAttributes=W(),G.insert=j().bind(null,"head"),G.domAPI=K(),G.insertStyleElement=U();N()(z.A,G);z.A&&z.A.locals&&z.A.locals;class q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",J(t,T.ButtonView)),e.add("menuBar:insertFootnote",J(t,T.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const n=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in n){const o=e,i=n[o];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete n[o],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&n._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&n._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&n._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&n._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&n._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&n._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&n._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function J(t,e){const n=t.commands.get("insertFootnote");return o=>{const{t:i}=o,s=new e(o),r=s instanceof T.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(n,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{n.execute(),t.editing.view.focus()}),s}}function X(){var t=["66100980Bzjsap","194IWhyjQ","1240670fvjPmo","15178FXocBZ","isOfficialPlugin","pluginName","isPremiumPlugin","8qrgUMO","16596738WZYvGZ","16FTgFDa","2179608ektjCy","1335900EfBXfL","4795098ypJpqB","Footnotes","requires"];return(X=function(){return t})()}var Y=Q;function Q(t,e){var n=X();return(Q=function(t,e){return n[t-=384]})(t,e)}!function(t){for(var e=Q,n=t();;)try{if(923568===parseInt(e(394))/1*(-parseInt(e(396))/2)+-parseInt(e(388))/3+parseInt(e(385))/4*(-parseInt(e(395))/5)+parseInt(e(389))/6+parseInt(e(390))/7*(-parseInt(e(387))/8)+-parseInt(e(386))/9+parseInt(e(393))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(X);class Z extends t.Plugin{static get[Y(398)](){return Y(391)}static get[Y(392)](){return[v,D,q]}static get[Y(397)](){return!0}static get[Y(384)](){return!0}}const $=tt;function tt(t,e){const n=nt();return(tt=function(t,e){return n[t-=312]})(t,e)}!function(t){const e=tt,n=t();for(;;)try{if(905200===parseInt(e(314))/1*(-parseInt(e(316))/2)+-parseInt(e(320))/3*(-parseInt(e(327))/4)+parseInt(e(313))/5+-parseInt(e(326))/6*(-parseInt(e(328))/7)+parseInt(e(323))/8+-parseInt(e(329))/9+-parseInt(e(312))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(nt);const et=[$(324),$(322),$(317),$(315),$(325),$(321),$(319),$(318)];function nt(){const t=["47812900OSYHGh","8963865JGRJoK","1BBfiMu","upper-latin","563924JfNyNl","lower-latin","upper-roman","lower-roman","123NhNyOa","upper-alpha","decimal-leading-zero","12208232ONvRnW","decimal","lower-alpha","3972AXRhae","122756fzBFJK","14777kACtLJ","54729jQRLuX"];return(nt=function(){return t})()}function ot(t,e){const n=rt();return(ot=function(t,e){return n[t-=103]})(t,e)}const it=ot;!function(t){const e=ot,n=t();for(;;)try{if(338038===-parseInt(e(112))/1*(-parseInt(e(120))/2)+parseInt(e(124))/3*(parseInt(e(116))/4)+parseInt(e(117))/5+-parseInt(e(108))/6*(parseInt(e(110))/7)+parseInt(e(107))/8*(parseInt(e(104))/9)+parseInt(e(127))/10*(parseInt(e(114))/11)+parseInt(e(113))/12*(-parseInt(e(111))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(rt);class st extends t.Command{[it(115)](){const t=it,{editor:e}=this,n=e[t(128)][t(103)](f)[t(119)]();this[t(129)]=!!n,this[t(106)]=n?.[t(121)](t(109))??null}[it(125)]({value:t}){const e=it,{editor:n}=this,o=n[e(128)][e(103)](f),i=o[e(119)]();i&&et[e(105)](t)&&n[e(126)][e(123)](n=>{const s=e;n[s(118)](s(109),t,i),o[s(122)](n)})}}function rt(){const t=["setAttribute","getFootnotesDefinitionsObjectElement","1762zrTWxb","getAttribute","_updateFootnotesCounters","change","3LrysiA","execute","model","80AIJCtp","plugins","isEnabled","get","9inFGLB","includes","value","2101352hxKkGk","48666gRhubM","footnotesListStyle","483uwWDhL","5306717mAxXLU","181zCtGpq","24ZyOvLy","547492jwxlDq","refresh","2286784sHXgvZ","1610565kCVGdu"];return(rt=function(){return t})()}const at=lt;function ct(){const t=["997232OPIQwJ","model","refresh","value","execute","isInteger","setAttribute","9123kVUDjB","8370187QDuCGI","plugins","2733564dpFPxh","change","getFootnotesDefinitionsObjectElement","2186822ezPzYG","isEnabled","_updateFootnotesCounters","30FeiMzu","6sCtjil","getAttribute","footnotesListStart","20856LOPMIP","25UgJMMC","190068imFpwz","576dskTHt","get"];return(ct=function(){return t})()}function lt(t,e){const n=ct();return(lt=function(t,e){return n[t-=100]})(t,e)}!function(t){const e=lt,n=t();for(;;)try{if(748855===parseInt(e(111))/1+parseInt(e(104))/2+parseInt(e(114))/3+parseInt(e(101))/4*(-parseInt(e(100))/5)+-parseInt(e(121))/6*(parseInt(e(112))/7)+-parseInt(e(124))/8*(-parseInt(e(102))/9)+-parseInt(e(120))/10*(-parseInt(e(117))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ct);class ut extends t.Command{[at(106)](){const t=at,{editor:e}=this,n=e[t(113)][t(103)](f)[t(116)]();this[t(118)]=!!n,this[t(107)]=n?.[t(122)](t(123))??null}[at(108)]({value:t}){const e=at,{editor:n}=this,o=n[e(113)][e(103)](f),i=o[e(116)]();i&&Number[e(109)](t)&&n[e(105)][e(115)](n=>{const s=e;n[s(110)](s(123),t,i),o[s(119)](n)})}}function ft(t,e){const n=yt();return(ft=function(t,e){return n[t-=107]})(t,e)}const dt=ft;!function(t){const e=ft,n=t();for(;;)try{if(988352===parseInt(e(130))/1*(-parseInt(e(207))/2)+parseInt(e(182))/3+-parseInt(e(189))/4+parseInt(e(194))/5*(-parseInt(e(164))/6)+parseInt(e(204))/7+parseInt(e(153))/8*(parseInt(e(198))/9)+parseInt(e(183))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(yt);class pt extends t.Plugin{static get[dt(126)](){return dt(150)}static get[dt(172)](){return[v,f]}static get[dt(166)](){return!0}static get[dt(114)](){return!0}[dt(157)](){const t=dt,{editor:e}=this;e[t(169)][t(127)](t(196),t(136)),e[t(169)][t(127)](t(132),1),e[t(167)][t(181)](t(191),new st(e)),e[t(167)][t(181)](t(162),new ut(e)),this[t(158)](),this[t(145)](),this[t(177)](),this[t(175)]()}[dt(158)](){const t=dt,{editor:e}=this,{schema:n}=e[t(174)];n[t(193)](t(188),{allowAttributes:[t(197),t(165)]})}[dt(145)](){const t=dt,{editor:e}=this,{conversion:n,model:o}=e,{schema:i}=o;n[t(163)](t(179))[t(181)](e=>{const n=t;e.on(n(141),(t,e,o)=>{const s=n,r=e[s(187)],a=e[s(168)]?.[s(178)];r[s(116)](s(121))&&a?.is(s(195),s(188))&&(function(t,e,n,o){const i=s;if(!o[i(115)](e,i(165)))return;let r=1;const a=n[i(122)][i(152)](t,{attributes:i(201)});if(a){const e=Number[i(111)](t[i(200)](i(201)),10);Number[i(203)](e)||(r=e)}!a&&e[i(147)](i(165))||n[i(112)][i(173)](i(165),r,e)}(r,a,o,i),function(t,e,n,o){const i=s;if(!o[i(115)](e,i(197)))return;let r=i(136),a=!1;if(n[i(122)][i(152)](t,{attributes:i(113)})){const e={1:i(136),a:i(154),A:i(160),i:i(176),I:i(148)}[t[i(200)](i(113))];e&&(r=e),a=!0}n[i(122)][i(152)](t,{styles:i(119)})&&(r=t[i(159)](i(119)),a=!0),!a&&e[i(147)](i(197))||n[i(112)][i(173)](i(197),r,e)}(r,a,o,i))})}),n[t(163)](t(144))[t(181)](e=>{const n=t;e.on(n(133),(t,e,o)=>{const i=n;if(!o[i(122)][i(152)](e[i(124)],t[i(120)]))return;const s=ht(e[i(124)],o[i(170)]),{attributeNewValue:r}=e;null==r||1===r?o[i(112)][i(131)](i(201),s):o[i(112)][i(173)](i(201),String(r),s)}),e.on(n(206),(t,e,o)=>{const i=n;if(!o[i(122)][i(152)](e[i(124)],t[i(120)]))return;const s=ht(e[i(124)],o[i(170)]),{attributeNewValue:r}=e;r&&i(136)!==r?o[i(112)][i(143)](i(119),r,s):o[i(112)][i(125)](i(119),s)})})}[dt(175)](){const t=dt,{editor:e}=this,{model:n}=e,o=e[t(134)][t(156)](f),i=this[t(140)](),s=this[t(139)]();n[t(184)][t(205)](e=>{const r=t,a=n[r(184)][r(107)][r(129)]();let c=!1;for(const t of a){if(r(151)!==t[r(113)]||r(146)===t[r(120)])continue;const o=n[r(180)](t[r(155)][r(142)]);for(const t of o[r(128)]())t.is(r(195),r(188))&&(!t[r(147)](r(165))&&n[r(138)][r(115)](t,r(165))&&(e[r(173)](r(165),s,t),c=!0),!t[r(147)](r(197))&&n[r(138)][r(115)](t,r(197))&&(e[r(173)](r(197),i,t),c=!0))}return c&&o[r(161)](e),c})}[dt(177)](){const t=dt,{editor:e}=this;e[t(134)][t(156)](f)[t(118)](e=>this[t(199)](e))}[dt(140)](){const t=dt;return this[t(108)][t(169)][t(156)](t(196))}[dt(139)](){const t=dt;return this[t(108)][t(169)][t(156)](t(132))}[dt(199)]({container:t,value:e,digits:n}){const o=dt,i=t[o(200)](o(197)),s=t[o(200)](o(165)),r=Math[o(117)](e)+(s??1)-1;switch(i){case o(110):return function(t,e){const n=o;return String(t)[n(137)](e,"0")}(r,Math[o(186)](2,n));case o(154):case o(109):return mt(r,!1);case o(160):case o(192):return mt(r,!0);case o(176):return wt(r,!1);case o(148):return wt(r,!0);default:return String(r)}}}function ht(t,e){const n=dt,o=e[n(135)](t);return Array[n(149)](o[n(190)]())[n(202)](t=>t.is(n(195),"ol")&&t[n(116)](n(121)))}function mt(t,e){const n=dt;let o="",i=t;for(;i>0;){const t=(i-1)%26;o=String[n(185)](97+t)+o,i=Math[n(117)]((i-1)/26)}return e?o[n(171)]():o}const gt=[{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 wt(t,e){const n=dt;let o="",i=t;for(const{value:t,numeral:e}of gt)for(;i>=t;)o+=e,i-=t;return e?o:o[n(123)]()}function yt(){const t=["_updateFootnotesCounters","footnotesStart","for","2966982eGorjt","footnotesListStart","isOfficialPlugin","commands","modelCursor","config","mapper","toUpperCase","requires","setAttribute","model","_definePostfixer","lower-roman","_defineFormatter","parent","upcast","createRangeOn","add","1101243qMLkOc","9845080NXcPgd","document","fromCharCode","max","viewItem","footnotesDefinitions","249632kSJIct","getChildren","footnotesStyle","upper-latin","extend","10quEYBW","element","footnotes.footnotesProperties.defaultListStyle","footnotesListStyle","9UaYfGM","_formatFootnoteListValue","getAttribute","start","find","isNaN","7643706yAeQSo","registerPostFixer","attribute:footnotesListStyle:footnotesDefinitions","3234vmpvoH","differ","editor","lower-latin","decimal-leading-zero","parseInt","writer","type","isPremiumPlugin","checkAttribute","hasClass","floor","setFootnoteFormatter","list-style-type","name","footnotes-list","consumable","toLowerCase","item","removeStyle","pluginName","define","getItems","getChanges","917ErqQcF","removeAttribute","footnotes.footnotesProperties.defaultStartIndex","attribute:footnotesListStart:footnotesDefinitions","plugins","toViewElement","decimal","padStart","schema","_getDefaultStartIndex","_getDefaultListStyle","element:ol","nodeAfter","setStyle","downcast","_defineConverters","$text","hasAttribute","upper-roman","from","FootnotesPropertiesEditing","insert","consume","8631968GLikEL","lower-alpha","position","get","init","_defineSchema","getStyle","upper-alpha"];return(yt=function(){return t})()}class bt extends T.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new T.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:n}){super(t),this.focusCycler=new T.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,n),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,T.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const n=new T.View(this.locale);return n.children=n.createCollection(),n.children.addMany(t),n.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:n.children}),n.children.delegate("execute").to(this),n.focus=function(){for(const t of this.children)if(t instanceof T.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},n.focusTracker=new i.FocusTracker,n.keystrokes=new i.KeystrokeHandler,n.render(),n.keystrokes.listenTo(n.element),this.children.add(n),n}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),n=[e],o=new T.CollapsibleView(this.locale,n);return o.set({label:t("Footnotes properties"),isCollapsed:!0}),o.buttonView.bind("isEnabled").toMany(n,"isEnabled",(...t)=>t.some(t=>t)),o.buttonView.on("change:isEnabled",(t,e,n)=>{n||(o.isCollapsed=!0)}),this.children.add(o),[e,o]}_createStartIndexPropertyView(){const{t}=this.locale,e=new T.LabeledFieldView(this.locale,T.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const n=e.fieldView.element,o=n.valueAsNumber;Number.isNaN(o)?e.errorText=t("Invalid footnotes start index value."):n.checkValidity()?this.fire("footnotesListStart",{startIndex:o}):e.errorText=t(o<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var vt=n(945),It={attributes:{"data-cke":!0}};It.setAttributes=W(),It.insert=j().bind(null,"head"),It.domAPI=K(),It.insertStyleElement=U();N()(vt.A,It);vt.A&&vt.A.locals&&vt.A.locals;class kt extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[T.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var n;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(n=t,t=>{const{t:e}=t,o=n.commands.get("footnotesStyle"),i=(0,T.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(o,"isEnabled"),s.set({label:e("Footnotes style"),icon:V.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:n}=t.locale,o=n("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:n,icon:o,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new T.ButtonView(e);return a.set({label:n,icon:o,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new bt(t.locale,{styleGridAriaLabel:o,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,n)=>{t.execute("footnotesStart",{value:n.startIndex})}),s}({editor:n,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:n}=t.locale,o=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=T.BalloonPanelView;o.register("footnotesDefinitions",{ariaLabel:n("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ct=xt;function Ft(){var t=["11382160fQJjVk","1576280ATzsgW","85qcJZAZ","5062748efImma","3HaOTsO","9987502QqLyPD","pluginName","FootnotesProperties","isOfficialPlugin","requires","1152FFwlji","98244eokYBy","isPremiumPlugin","80176JVSBXk","23162ROramW"];return(Ft=function(){return t})()}function xt(t,e){var n=Ft();return(xt=function(t,e){return n[t-=150]})(t,e)}!function(t){for(var e=xt,n=t();;)try{if(804385===parseInt(e(163))/1+parseInt(e(150))/2+-parseInt(e(153))/3*(-parseInt(e(152))/4)+parseInt(e(151))/5*(-parseInt(e(160))/6)+parseInt(e(154))/7+-parseInt(e(162))/8*(parseInt(e(159))/9)+-parseInt(e(164))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Ft);class Et extends t.Plugin{static get[Ct(155)](){return Ct(156)}static get[Ct(158)](){return[pt,kt]}static get[Ct(157)](){return!0}static get[Ct(161)](){return!0}}function Pt(){var t=["390590uJMbHN","1143498VWcrDb","817267yTspHo","6767109uTILeX","7voykNY","2976135EkSEQk","4763364TwTtlW","10678200wHHoaB","108QXYgXR"];return(Pt=function(){return t})()}function St(t,e){var n=Pt();return(St=function(t,e){return n[t-=365]})(t,e)}!function(t){for(var e=St,n=t();;)try{if(869972===parseInt(e(372))/1+-parseInt(e(371))/2+parseInt(e(366))/3+-parseInt(e(367))/4+-parseInt(e(370))/5*(-parseInt(e(369))/6)+parseInt(e(365))/7*(-parseInt(e(368))/8)+parseInt(e(373))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Pt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=o})();
4
+ */(()=>{var t={14:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var o=n(453),i=n.n(o),s=n(374),r=n.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content .footnote-content ul{list-style-type:disc}.ck-content .footnote-content ul ul{list-style-type:circle}.ck-content .footnote-content ul ul ul,.ck-content .footnote-content ul ul ul ul{list-style-type:square}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},237:t=>{"use strict";t.exports=CKEditor5.dll},238:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},265:t=>{"use strict";var e={};t.exports=function(t,n){var o=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},311:(t,e,n)=>{t.exports=n(237)("./src/ui.js")},331:(t,e,n)=>{t.exports=n(237)("./src/clipboard.js")},355:(t,e,n)=>{t.exports=n(237)("./src/icons.js")},374:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n="",o=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),o&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),o&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n}).join("")},e.i=function(t,n,o,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(o)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]);o&&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),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},410:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}},450:t=>{"use strict";var e=[];function n(t){for(var n=-1,o=0;o<e.length;o++)if(e[o].identifier===t){n=o;break}return n}function o(t,o){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=o.base?c[0]+o.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=n(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,o);o.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var n=e.domAPI(e);n.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;n.update(t=e)}else n.remove()}}t.exports=function(t,i){var s=o(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=n(s[r]);e[a].references--}for(var c=o(t,i),l=0;l<s.length;l++){var u=n(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}},453:t=>{"use strict";t.exports=function(t){return t[1]}},584:(t,e,n)=>{t.exports=n(237)("./src/utils.js")},774:t=>{"use strict";var e,n=(e=[],function(t,n){return e[t]=n,e.filter(Boolean).join("\n")});function o(t,e,o,i){var s;if(o)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=n(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++,n=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){o(n,e,!1,t)},remove:function(t){o(n,e,!0,t)}}}},782:(t,e,n)=>{t.exports=n(237)("./src/core.js")},783:(t,e,n)=>{t.exports=n(237)("./src/engine.js")},901:(t,e,n)=>{t.exports=n(237)("./src/widget.js")},945:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var o=n(453),i=n.n(o),s=n(374),r=n.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var s=e[o]={id:o,exports:{}};return t[o](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{Footnotes:()=>Z,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>kt,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>st,FootnotesTracker:()=>f,FootnotesUI:()=>q,InsertFootnoteCommand:()=>b});var t=n(782),e=n(901),i=n(584),s=n(783);function r(){const t=["getElementKey","getChanges","692643WJCgnE","$graveyard","from","getItems","7154376HJnAZV","_model","3591087YPkyTt","add","elementName","rootName","2309255JGTnhb","attributes","1388212AGsqWL","18TTTbIG","insert","$text","2CXpNqy","reset","values","clear","has","push","slice","type","_getElementKey","remove","_trackedElements","4129854DcpLll","3434120mKukkW","8RabSPP","root","delete","length","position","get","createRangeOn","set","element","nodeAfter","_elementName","flat","name"];return(r=function(){return t})()}function a(t,e){const n=r();return(a=function(t,e){return n[t-=357]})(t,e)}const c=a;!function(t){const e=a,n=t();for(;;)try{if(730622===-parseInt(e(363))/1+parseInt(e(379))/2*(parseInt(e(369))/3)+-parseInt(e(392))/4*(-parseInt(e(373))/5)+-parseInt(e(390))/6+parseInt(e(375))/7+-parseInt(e(367))/8+-parseInt(e(376))/9*(-parseInt(e(391))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(r);class l{[c(368)];[c(358)];[c(387)];[c(389)]=new Map;constructor(t,e){const n=c;this[n(368)]=t,this[n(358)]=e[n(371)],this[n(387)]=e[n(361)]}[c(380)](){const t=c;this[t(389)][t(382)]()}[c(362)](t){const e=c,n=new Set,o=new Map;for(const i of t){if(e(377)===i[e(386)]&&e(378)!==i[e(360)]&&i[e(396)][e(357)]){const t=this[e(368)][e(398)](i[e(396)][e(357)]);for(const n of t[e(366)]()){if(!n.is(e(400),this[e(358)]))continue;const t=this[e(387)](n);o[e(383)](t)||o[e(399)](t,[]),o[e(397)](t)[e(384)](n)}}if(e(388)===i[e(386)]&&i[e(360)]===this[e(358)]){const t=this[e(387)]({getAttribute:t=>i[e(374)][e(397)](t)});n[e(370)](t)}}for(const[t,o]of this[e(389)])e(364)===o[e(393)][e(372)]&&n[e(370)](t);for(const t of n)this[e(389)][e(394)](t);for(const[t,n]of o)this[e(389)][e(399)](t,n[n[e(395)]-1]);const i=new Set;for(const[t,s]of o)n[e(383)](t)&&(i[e(370)](s[0]),s[e(395)]>1?o[e(399)](t,s[e(385)](1)):o[e(394)](t),n[e(394)](t));return{removed:Array[e(365)](n),inserted:Array[e(365)](o[e(381)]())[e(359)](),moved:Array[e(365)](i)}}}const u=d;!function(t){const e=d,n=t();for(;;)try{if(194312===parseInt(e(192))/1+-parseInt(e(155))/2*(parseInt(e(182))/3)+-parseInt(e(173))/4*(parseInt(e(244))/5)+parseInt(e(236))/6*(parseInt(e(200))/7)+parseInt(e(193))/8*(parseInt(e(186))/9)+parseInt(e(156))/10*(-parseInt(e(157))/11)+-parseInt(e(163))/12*(-parseInt(e(215))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(p);class f extends t.Plugin{[u(202)]=[];[u(188)]=null;[u(203)]=null;[u(196)];[u(237)];[u(241)];static get[u(201)](){return u(213)}static get[u(161)](){return!0}static get[u(191)](){return!0}constructor(t){const e=u;super(t),this[e(196)]=new l(this[e(209)][e(190)],{elementName:e(175),getElementKey:()=>e(167)}),this[e(237)]=new l(this[e(209)][e(190)],{elementName:e(229),getElementKey:t=>t[e(214)](e(242))}),this[e(241)]=new l(this[e(209)][e(190)],{elementName:e(176),getElementKey:t=>t[e(214)](e(242))})}[u(224)](){const t=u,{editor:e}=this,{model:n,data:o}=e;n[t(185)][t(181)](e=>{const o=t,i=n[o(185)][o(243)][o(183)]();let s=!1;return this[o(147)](e,i)&&(s=!0),this[o(234)](e,i)&&(s=!0),this[o(223)](e,i)&&(s=!0),this[o(178)](e)&&(s=!0),this[o(144)](e)&&(s=!0),this[o(205)](e)&&(s=!0),s}),this[t(174)](n[t(185)],t(158),()=>{const e=t;n[e(227)]({isUndoable:!1},t=>{this[e(246)](t)})},{priority:t(159)}),this[t(174)](o,t(228),()=>{const e=t;this[e(202)]=[],this[e(196)][e(206)](),this[e(237)][e(206)](),this[e(241)][e(206)]()},{priority:t(189)})}[u(225)](){return this[u(188)]}[u(169)](t){const e=u;return this[e(202)][e(166)](e=>e.id===t)||null}[u(204)](){const t=u;return Array[t(195)](this[t(202)])}[u(247)](){return this[u(203)]}[u(146)](t){this[u(203)]=t}[u(207)](t,e=0){const n=u;let o=!1;for(let i=e;i<this[n(202)][n(154)];i++)this[n(198)](t,i)&&(o=!0);return o}[u(197)](t,e){const n=u,o=t[n(240)](n(175),{});return t[n(211)](o,e),this[n(188)]=o,o}[u(246)](t){const e=u;if(!this[e(202)][e(154)]||this[e(188)])return;const n=this[e(202)][0][e(152)][e(231)],o=this[e(197)](t,n);for(const n of this[e(202)])n[e(180)][e(150)]||t[e(216)](n[e(180)],o,e(184));this[e(207)](t)}[u(147)](t,e){const n=u;let o=!1;const{inserted:i,removed:s,moved:r}=this[n(196)][n(183)](e);if(r[n(154)]&&(this[n(188)]=r[0]),i[n(154)])if(i[n(154)]>1||this[n(188)]&&i[n(210)](t=>t!==this[n(188)])){const e=t[n(240)](n(175),{}),s=[];this[n(188)]&&s[n(221)](this[n(188)]),s[n(221)](...i),t[n(216)](e,s[0],n(149));for(const o of s)t[n(177)](t[n(222)](o),t[n(245)](e,n(184))),t[n(217)](o);this[n(188)]=e,this[n(207)](t),o=!0}else this[n(188)]=i[0];if(s[n(154)]&&n(220)===this[n(188)]?.[n(231)][n(212)]){for(const e of this[n(202)])t[n(217)](e[n(152)]),o=!0;this[n(202)]=[],this[n(188)]=null}return o}[u(234)](t,e){const n=u;let o=!1;const i=this[n(209)][n(187)][n(153)](n(162)),{inserted:s,moved:r}=this[n(241)][n(183)](e);for(const e of[...r,...s]){const s=e[n(214)](n(242)),r=this[n(169)](s);r&&(r[n(180)]=e),h(t,i,e)&&(o=!0)}return o}[u(223)](t,e){const n=u;let o=!1;const{removed:i,inserted:s,moved:r}=this[n(237)][n(183)](e);for(const e of i)this[n(239)](t,e)&&(o=!0);for(const e of s)this[n(168)](t,e)&&(o=!0);for(const e of r)this[n(238)](t,e)&&(o=!0);return o}[u(144)](t){const e=u;if(!this[e(188)])return!1;let n=!1;if(this[e(188)][e(148)]!==this[e(202)][e(154)]){const o=[];for(const t of this[e(188)][e(171)]()){const i=t[e(214)](e(242));this[e(169)](i)||(o[e(218)](t),n=!0)}for(const n of o)t[e(217)](n)}const o=new Set,i=[];for(const t of this[e(188)][e(171)]()){const s=t[e(214)](e(242));o[e(164)](s)?(i[e(218)](t),n=!0):o[e(219)](s)}for(const n of i)t[e(217)](n);return this[e(188)][e(148)]||(t[e(217)](this[e(188)]),this[e(188)]=null,n=!0),n}[u(168)](t,e){const n=u;if(this[n(202)][n(166)](t=>t[n(152)]===e))return!1;let o=!1;const i=e[n(214)](n(242)),s=this[n(202)][n(151)](t=>t.id===i);-1!==s&&(t[n(217)](this[n(202)][s][n(152)]),this[n(202)][n(145)](s,1),o=!0);let r=this[n(188)]?function(t,e){const o=n;for(const n of t[o(171)]())if(n[o(214)](o(242))===e)return n;return null}(this[n(188)],i):null;r||(r=t[n(240)](n(176),{footnoteId:i}),this[n(188)]&&(t[n(216)](r,this[n(188)],n(184)),o=!0));const a={id:i,reference:e,definition:r},c=m(this[n(209)][n(190)],this[n(202)],e);this[n(202)][n(145)](c,0,a);let l=c;return-1!==s&&(l=Math[n(194)](c,s)),this[n(207)](t,l)&&(o=!0),o}[u(239)](t,e){const n=u,o=this[n(202)][n(151)](t=>t.id===e);if(-1===o)return!1;let i=!1;const s=this[n(202)][o];return n(220)!==s[n(180)][n(231)][n(212)]&&(t[n(217)](s[n(180)]),i=!0),this[n(202)][n(145)](o,1),this[n(207)](t,o)&&(i=!0),i}[u(238)](t,e){const n=u,o=e[n(214)](n(242)),i=this[n(202)][n(151)](t=>t.id===o),s=this[n(202)][i];let r=!1;s[n(152)]=e,this[n(202)][n(145)](i,1);const a=m(this[n(209)][n(190)],this[n(202)],e);return this[n(202)][n(145)](a,0,s),this[n(207)](t,Math[n(194)](i,a))&&(r=!0),r}[u(198)](t,e){const n=u;if(!this[n(188)])return!1;const o=this[n(202)][e];let i;return i=this[n(203)]?this[n(203)]({footnote:o,container:this[n(188)],digits:String(this[n(202)][n(154)])[n(154)],value:e+1}):String(e+1),o[n(152)][n(214)](n(232))!=i&&(t[n(170)](n(232),i,o[n(152)]),!0)}[u(205)](t){const e=u;if(!this[e(188)]||this[e(202)][e(154)]<2)return!1;if(function(t,n){const o=e;if(t[o(154)]!==n[o(154)])return!1;for(let e=0;e<t[o(154)];e++)if(t[e]!==n[e])return!1;return!0}(this[e(202)][e(160)](t=>t.id),Array[e(195)](this[e(188)][e(171)]())[e(160)](t=>t[e(214)](e(242)))))return!1;let n=!1;for(let o=0;o<this[e(202)][e(154)];o++){const i=this[e(202)][o],s=t[e(235)](i[e(180)]),r=t[e(245)](this[e(188)],o);s[e(165)](r)||(t[e(177)](t[e(233)](i[e(180)]),r),n=!0)}return n}[u(178)](t){const e=u;if(!this[e(202)][e(154)])return!1;const{model:n}=this[e(209)];let o=!1;for(let i=0;i<this[e(202)][e(154)]-1;i++){const s=this[e(202)][i],r=this[e(202)][i+1],a=n[e(235)](s[e(152)]),c=n[e(235)](r[e(152)]);e(226)===a[e(179)](c)&&(this[e(238)](t,s[e(152)]),i=-1,o=!0)}return o}}function d(t,e){const n=p();return(d=function(t,e){return n[t-=144]})(t,e)}function p(){const t=["createPositionBefore","33240tSMOMG","_footnoteRefsTracker","_handleMovedFootnoteReference","_handleRemoveFootnoteReferenceById","createElement","_footnoteDefsTracker","footnoteId","differ","353315jHoZAg","createPositionAt","_ensureFootnotesDefinitionsContainerExists","getFootnotesFormatter","_handleFootnotesDefinitionsObjectSync","splice","setFootnoteFormatter","_handleFootnotesDefinitionsObjectChanges","childCount","before","parent","findIndex","reference","get","length","214NiugWL","10BOeymQ","1722655OliCjf","change:data","low","map","isOfficialPlugin","footnotes.multiBlock","59808thasXU","has","isEqual","find","singleton","_handleInsertedFootnoteReference","getFootnote","setAttribute","getChildren","paragraph","8rbBgCB","listenTo","footnotesDefinitions","footnoteDefinition","move","_ensureFootnotesReferencesHaveProperOrder","compareWith","definition","registerPostFixer","10239rWWfYd","getChanges","end","document","27wlWhUE","config","_footnotesDefinitions","high","model","isPremiumPlugin","198461kkPUGk","126904aJwWne","min","from","_footnoteDefsContainerTracker","_insertEmptyFootnotesDefinitionsContainer","_updateFootnoteRefCounter","footnoteInlineContent","42lYYmRF","pluginName","_footnotes","_footnoteFormatter","getFootnotes","_sortFootnoteDefinitions","reset","_updateFootnotesCounters","getRootNames","editor","some","append","rootName","FootnotesTracker","getAttribute","1508xuCHey","insert","remove","unshift","add","$graveyard","push","createRangeIn","_handleFootnoteReferencesChanges","init","getFootnotesDefinitionsObjectElement","after","enqueueChange","set","footnoteRef","indexOf","root","footnoteCounter","createRangeOn","_handleFootnoteDefinitionsChanges"];return(p=function(){return t})()}function h(t,e,n){const o=u;if(n[o(148)])return!1;const i=o(e?172:199);return t[o(216)](t[o(240)](i),n),!0}function m(t,e,n){const o=u;if(0===e[o(154)])return 0;const i=t[o(235)](n);for(let n=0;n<e[o(154)];n++){const s=e[n],r=t[o(235)](s[o(152)]);if(o(149)===i[o(179)](r))return n}const s=n[o(231)];let r=-1;for(let t=e[o(154)]-1;t>=0;t--)if(e[t][o(152)][o(231)]===s){r=t;break}if(-1!==r)return r+1;const a=t[o(185)][o(208)](),c=a[o(230)](s[o(212)]),l=a[c+1];if(l)for(let t=0;t<e[o(154)];t++)if(e[t][o(152)][o(231)][o(212)]===l)return t;return e[o(154)]}const g=y;function w(){const t=["model","length","293652Nmeenp","get","insert-footnote-command-executed-with-invalid-id","string","editor","document","7lfhyzL","_getPositionToInsertFootnote","isObject","execute","getFirstRange","getItems","selection","checkChild","end","19920wPfupR","isEnabled","_moveSelectionToFootnoteDefinition","1134ymvITt","1106700YGUslL","75376lKtZrR","plugins","test","refresh","12KhhpbN","change","59397sUDaiC","FootnotesEditing","1882952wauUit","footnoteId","footnoteRef","isBlock","insertObject","76438JgQjLA","createElement"];return(w=function(){return t})()}function y(t,e){const n=w();return(y=function(t,e){return n[t-=356]})(t,e)}!function(t){const e=y,n=t();for(;;)try{if(126821===parseInt(e(364))/1+-parseInt(e(392))/2*(parseInt(e(357))/3)+-parseInt(e(388))/4+parseInt(e(387))/5+-parseInt(e(368))/6+-parseInt(e(374))/7*(parseInt(e(359))/8)+parseInt(e(386))/9*(parseInt(e(383))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(w);class b extends t.Command{[g(391)](){const t=g,e=this[t(372)][t(366)][t(373)][t(380)],n=this[t(375)](e);this[t(384)]=!!n}[g(377)](t){const e=g,{editor:n}=this,{model:o}=n,{selection:s}=o[e(373)],r=this[e(375)](s);if(!r)return;const a=n[e(389)][e(369)](e(358)),c=t?.[e(360)]??(0,i.uid)();!function(t){const n=e;return n(371)==typeof t&&t[n(367)]>0&&!/\s/[n(390)](t)&&!/^\d/[n(390)](t)}(c)?(0,i.logWarning)(e(370)):(o[e(356)](t=>{const n=e,i=t[n(365)](n(361),{footnoteId:c});o[n(363)](i,r,null)}),a[e(385)](c))}[g(375)](t){const e=g,{model:n}=this[e(372)],{schema:o}=n,i=t[e(378)]();for(const t of i[e(379)]())if(o[e(362)](t)||o[e(376)](t))return null;const s=i[e(382)];return o[e(381)](s,e(361))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[f]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),n=window[m([68,97,116,101])][m([110,111,119])](),o=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{o[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=o[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;o[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(n,o)=>{o[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),n[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function n(t){for(let n=0;n<t[m([108,101,110,103,116,104])];n++){const o=t[m([99,104,97,114,67,111,100,101,65,116])](n);e=(e<<5)+e+o,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,o])=>{n(e),t(o)}):n(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const n=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let n=m([117]);for(let o=0;o<t[m([108,101,110,103,116,104])];o+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](o,o+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),n+=e[i]}return n}();o[n]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,o[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,o[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,o[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&n()?e:null;function n(){const t=e[m([106,116,105])],n=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),o={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete o[m([118,99])],f(o)==n}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),o[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(o){a(o)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(n-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),o=p(d(window[m([77,97,116,104])][m([99,101,105,108])](n/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,o)}function r(){const e=m([108,108,99,116,45])+d(f(t)),n=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return n?window[m([112,97,114,115,101,73,110,116])](p(n),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,n)=>{t[m([116,104,101,110])](e,n),window[m([115,101,116,84,105,109,101,111,117,116])](n,12e4)})}}o[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,n)=>{if(n[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));n[1]={...n[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),o[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return o[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){o[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const o=a[m([115,112,108,105,116])](m([46])),[i,s,r]=o;return e(i),await n(i,s,r),t}catch{return!1}function e(e){const n=l(e);n&&n[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function n(e,n,o){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(o),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+n),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?n/1e3:1762041600;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:n}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](n))return!0;const o=n[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=o[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(o[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>o[m([101,118,101,114,121])]((e,n)=>t[n]===e||t[n]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,n)=>{e[m([116,104,101,110])](t,n),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},n)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:n,model:o}=this.editor,i=e.get(f).getFootnote(t);return!!i&&(o.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),n.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:n,model:o}=this.editor,i=e.get(f).getFootnote(t);return!!i&&(o.change(t=>{t.setSelection(i.reference,"on")}),n.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:n,editing:o}=t,{t:i}=t.locale;n.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:n})=>{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;n.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of o.view.createRangeIn(i))t.is("$textProxy")?n.consume(t.textNode,{name:!0}):t.is("element")&&n.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),n.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),n.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:n})=>{const o=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,n),n,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",o)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:n}=t.locale,{conversion:o}=t;o.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),o.for("upcast").add(t=>{t.on("element:ol",(t,e,n)=>{const o=e.viewItem;if(!o.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!n.consumable.consume(o,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=n.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,n)=>{const o=e.viewItem;o.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&n.consumable.consume(o,{name:!0,classes:"footnotes-divider"})})}),o.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),o.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:o})=>{const i=x(o,{"data-footnotes-list-label":n("Footnotes")}),s=(0,e.toWidget)(i,o,{hasSelectionHandle:!0,label:n("Footnotes")});return o.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:n}=t,o=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,n)=>{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(!n.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=n.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!n.safeInsert(r,e.modelCursor))return;n.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")&&(n.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),n.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(o)n.convertChildren(a,r);else{const t=n.writer.createElement("footnoteInlineContent");n.writer.insert(t,r),n.convertChildren(a,t)}n.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,n,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,n)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const n=t.document.differ,o=new Set;for(const t of n.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&o.add(e)}for(const t of o.values()){const n=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of n)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const n=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:n,t:o}=t,i=t.model.document.selection;t.keystrokes.set("CTRL+Shift+D","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:o("Insert footnote"),keystroke:"Ctrl+Shift+D"}]}),this.listenTo(n.view.document,"enter",(t,e)=>{const n=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(n){const o=n.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(o),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 n=!1;this.listenTo(e.view.document,"pointerdown",(t,o)=>{const{target:i}=o,s=e.view.document.selection;n=!!(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:o}=e;if(!o.is("element","a"))return;if(o.parent?.is("element","sup")&&o.parent.hasClass("footnote")&&!n)return void e.preventDefault();let i=o.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:n})=>{if(!k(e))return null;if(!t)return n.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const o=n.createContainerElement("p");return n.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}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 n=e.toViewElement(t);return!!n&&k(t)!==n.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const n=t.createEmptyElement("hr",{class:"footnotes-divider"}),o=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[n,o])}function E(t,e){const n=t.getAttribute("footnoteId"),o=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+n},function(t){const e=this.toDomElement(t);return e.textContent=o,e}),s=e.createContainerElement("sup",{id:"ref-"+n,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function P(t,n,o,{dataPipeline:i}={}){const{t:s}=o,r=t.getAttribute("footnoteId"),a=n.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?n.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(n.createEditableElement("div",{class:"footnote-content"}),n,{label:s("Footnote content.")});return n.insert(n.createPositionAt(c,0),n.createSlot()),n.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=n(331);function L(){const t=["footnoteRef","change","application/ckeditor5-footnotes","init","250YPraqM","add","pluginName","toModel","dataTransfer","definition","getFootnote","create","setAttribute","_insertEmptyFootnotesDefinitionsContainer","method","_defineClipboardIntegration","selection","reduce","push","getFootnotesDefinitionsObjectElement","177133RbLFBy","toView","insert","entries","541509IeKKyu","drop","1788708GElHLs","getData","find","content","setData","append","7QXIGJe","isOfficialPlugin","footnoteDefinition","sourceEditorId","from","createElement","isPremiumPlugin","footnoteId","18ZFpxkE","getAttribute","toData","2lzvIsp","htmlProcessor","footnotesDefinitions","outputTransformation","root","createRangeIn","length","getFootnotes","get","parse","stringify","element","clipboardInput","remove","document","_handleCopyFootnotesDefinitions","editing","data","editor","end","3180528pKhVDC","contentInsertion","getFirstRange","FootnotesClipboard","5sGLTqu","1308780MmnkBY","1135388vvRbay","requires","_handlePasteFootnotesDefinitions","listenTo","17490648GMgCou"];return(L=function(){return t})()}const _=A;function A(t,e){const n=L();return(A=function(t,e){return n[t-=352]})(t,e)}!function(t){const e=A,n=t();for(;;)try{if(707097===parseInt(e(395))/1*(parseInt(e(414))/2)+-parseInt(e(397))/3+-parseInt(e(366))/4*(-parseInt(e(364))/5)+-parseInt(e(365))/6*(-parseInt(e(403))/7)+parseInt(e(360))/8*(-parseInt(e(411))/9)+-parseInt(e(375))/10*(parseInt(e(391))/11)+parseInt(e(370))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(L);class D extends t.Plugin{static get[_(377)](){return _(363)}static get[_(367)](){return[v,S.ClipboardPipeline]}static get[_(404)](){return!0}static get[_(409)](){return!0}[_(374)](){this[_(386)]()}[_(386)](){const t=_;this[t(355)](),this[t(368)]()}[_(355)](){const t=_,{editor:e}=this,{plugins:n,model:o}=e,i=n[t(422)](S.ClipboardPipeline),s=n[t(422)](f);this[t(369)](i,t(417),(n,i)=>{const r=t,a=function(t,e){const n=A,o=new Set;for(const{item:i}of t[n(419)](e))i.is(n(425),n(371))&&o[n(376)](i[n(412)](n(410)));return Array[n(407)](o)}(o,i[r(400)]);if(!a[r(420)])return;const c=s[r(421)](),l=a[r(388)]((t,n)=>{const o=r,i=c[o(399)](t=>t.id===n);if(i){const n=e[o(357)][o(392)](i[o(380)],{isClipboardPipeline:!0}),s=e[o(357)][o(415)][o(413)](n);t[i.id]=s}return t},Object[r(382)](null));i[r(379)][r(401)](r(373),JSON[r(424)](l))})}[_(368)](){const t=_,{editor:e}=this,{model:n,plugins:o}=e,{view:s}=e[t(356)],r=o[t(422)](S.ClipboardPipeline),a=o[t(422)](f);let c=null;this[t(369)](s[t(354)],t(352),(e,n)=>{const o=t,i=n[o(379)][o(398)](o(373));c=i?JSON[o(423)](i):null}),this[t(369)](r,t(361),(o,s)=>{const r=t;if(!c)return;const l=s[r(406)]===this[r(358)].id;l&&r(396)===s[r(385)]||n[r(372)](t=>{const o=r;!function(t,e){const n=A,o=[];for(const{item:i}of t[n(419)](e))i.is(n(425),n(416))&&o[n(389)](i);for(const e of o)t[n(353)](e)}(t,s[o(400)]);let u=a[o(390)]();if(!u){const e=n[o(354)][o(387)][o(362)]()[o(418)];u=a[o(384)](t,e)}const f=function(t,e,n){const s=o,r=Object[s(382)](null);for(const{item:o}of t[s(419)](e))if(o.is(s(425),s(371))){const e=o[s(412)](s(410));if(!n(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(383)](s(410),r[e],o)}return r}(t,s[o(400)],t=>!l||null!==a[o(381)](t));for(const[n,i]of Object[o(394)](c)){const s=f[n]||n,r=t[o(408)](o(405),{footnoteId:s}),a=e[o(357)][o(415)][o(392)](i),c=e[o(357)][o(378)](a,r);t[o(402)](c,r),t[o(393)](r,u,o(359))}c=null})})}}var T=n(311),V=n(355),O=n(450),N=n.n(O),R=n(774),K=n.n(R),M=n(265),j=n.n(M),B=n(410),W=n.n(B),H=n(238),U=n.n(H),z=n(14),G={attributes:{"data-cke":!0}};G.setAttributes=W(),G.insert=j().bind(null,"head"),G.domAPI=K(),G.insertStyleElement=U();N()(z.A,G);z.A&&z.A.locals&&z.A.locals;class q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",J(t,T.ButtonView)),e.add("menuBar:insertFootnote",J(t,T.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const n=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in n){const o=e,i=n[o];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete n[o],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&n._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&n._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&n._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&n._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&n._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&n._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&n._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function J(t,e){const n=t.commands.get("insertFootnote");return o=>{const{t:i}=o,s=new e(o),r=s instanceof T.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(n,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{n.execute(),t.editing.view.focus()}),s}}function X(){var t=["66100980Bzjsap","194IWhyjQ","1240670fvjPmo","15178FXocBZ","isOfficialPlugin","pluginName","isPremiumPlugin","8qrgUMO","16596738WZYvGZ","16FTgFDa","2179608ektjCy","1335900EfBXfL","4795098ypJpqB","Footnotes","requires"];return(X=function(){return t})()}var Y=Q;function Q(t,e){var n=X();return(Q=function(t,e){return n[t-=384]})(t,e)}!function(t){for(var e=Q,n=t();;)try{if(923568===parseInt(e(394))/1*(-parseInt(e(396))/2)+-parseInt(e(388))/3+parseInt(e(385))/4*(-parseInt(e(395))/5)+parseInt(e(389))/6+parseInt(e(390))/7*(-parseInt(e(387))/8)+-parseInt(e(386))/9+parseInt(e(393))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(X);class Z extends t.Plugin{static get[Y(398)](){return Y(391)}static get[Y(392)](){return[v,D,q]}static get[Y(397)](){return!0}static get[Y(384)](){return!0}}const $=tt;function tt(t,e){const n=nt();return(tt=function(t,e){return n[t-=312]})(t,e)}!function(t){const e=tt,n=t();for(;;)try{if(905200===parseInt(e(314))/1*(-parseInt(e(316))/2)+-parseInt(e(320))/3*(-parseInt(e(327))/4)+parseInt(e(313))/5+-parseInt(e(326))/6*(-parseInt(e(328))/7)+parseInt(e(323))/8+-parseInt(e(329))/9+-parseInt(e(312))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(nt);const et=[$(324),$(322),$(317),$(315),$(325),$(321),$(319),$(318)];function nt(){const t=["47812900OSYHGh","8963865JGRJoK","1BBfiMu","upper-latin","563924JfNyNl","lower-latin","upper-roman","lower-roman","123NhNyOa","upper-alpha","decimal-leading-zero","12208232ONvRnW","decimal","lower-alpha","3972AXRhae","122756fzBFJK","14777kACtLJ","54729jQRLuX"];return(nt=function(){return t})()}function ot(t,e){const n=rt();return(ot=function(t,e){return n[t-=103]})(t,e)}const it=ot;!function(t){const e=ot,n=t();for(;;)try{if(338038===-parseInt(e(112))/1*(-parseInt(e(120))/2)+parseInt(e(124))/3*(parseInt(e(116))/4)+parseInt(e(117))/5+-parseInt(e(108))/6*(parseInt(e(110))/7)+parseInt(e(107))/8*(parseInt(e(104))/9)+parseInt(e(127))/10*(parseInt(e(114))/11)+parseInt(e(113))/12*(-parseInt(e(111))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(rt);class st extends t.Command{[it(115)](){const t=it,{editor:e}=this,n=e[t(128)][t(103)](f)[t(119)]();this[t(129)]=!!n,this[t(106)]=n?.[t(121)](t(109))??null}[it(125)]({value:t}){const e=it,{editor:n}=this,o=n[e(128)][e(103)](f),i=o[e(119)]();i&&et[e(105)](t)&&n[e(126)][e(123)](n=>{const s=e;n[s(118)](s(109),t,i),o[s(122)](n)})}}function rt(){const t=["setAttribute","getFootnotesDefinitionsObjectElement","1762zrTWxb","getAttribute","_updateFootnotesCounters","change","3LrysiA","execute","model","80AIJCtp","plugins","isEnabled","get","9inFGLB","includes","value","2101352hxKkGk","48666gRhubM","footnotesListStyle","483uwWDhL","5306717mAxXLU","181zCtGpq","24ZyOvLy","547492jwxlDq","refresh","2286784sHXgvZ","1610565kCVGdu"];return(rt=function(){return t})()}const at=lt;function ct(){const t=["997232OPIQwJ","model","refresh","value","execute","isInteger","setAttribute","9123kVUDjB","8370187QDuCGI","plugins","2733564dpFPxh","change","getFootnotesDefinitionsObjectElement","2186822ezPzYG","isEnabled","_updateFootnotesCounters","30FeiMzu","6sCtjil","getAttribute","footnotesListStart","20856LOPMIP","25UgJMMC","190068imFpwz","576dskTHt","get"];return(ct=function(){return t})()}function lt(t,e){const n=ct();return(lt=function(t,e){return n[t-=100]})(t,e)}!function(t){const e=lt,n=t();for(;;)try{if(748855===parseInt(e(111))/1+parseInt(e(104))/2+parseInt(e(114))/3+parseInt(e(101))/4*(-parseInt(e(100))/5)+-parseInt(e(121))/6*(parseInt(e(112))/7)+-parseInt(e(124))/8*(-parseInt(e(102))/9)+-parseInt(e(120))/10*(-parseInt(e(117))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ct);class ut extends t.Command{[at(106)](){const t=at,{editor:e}=this,n=e[t(113)][t(103)](f)[t(116)]();this[t(118)]=!!n,this[t(107)]=n?.[t(122)](t(123))??null}[at(108)]({value:t}){const e=at,{editor:n}=this,o=n[e(113)][e(103)](f),i=o[e(116)]();i&&Number[e(109)](t)&&n[e(105)][e(115)](n=>{const s=e;n[s(110)](s(123),t,i),o[s(119)](n)})}}function ft(t,e){const n=yt();return(ft=function(t,e){return n[t-=107]})(t,e)}const dt=ft;!function(t){const e=ft,n=t();for(;;)try{if(988352===parseInt(e(130))/1*(-parseInt(e(207))/2)+parseInt(e(182))/3+-parseInt(e(189))/4+parseInt(e(194))/5*(-parseInt(e(164))/6)+parseInt(e(204))/7+parseInt(e(153))/8*(parseInt(e(198))/9)+parseInt(e(183))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(yt);class pt extends t.Plugin{static get[dt(126)](){return dt(150)}static get[dt(172)](){return[v,f]}static get[dt(166)](){return!0}static get[dt(114)](){return!0}[dt(157)](){const t=dt,{editor:e}=this;e[t(169)][t(127)](t(196),t(136)),e[t(169)][t(127)](t(132),1),e[t(167)][t(181)](t(191),new st(e)),e[t(167)][t(181)](t(162),new ut(e)),this[t(158)](),this[t(145)](),this[t(177)](),this[t(175)]()}[dt(158)](){const t=dt,{editor:e}=this,{schema:n}=e[t(174)];n[t(193)](t(188),{allowAttributes:[t(197),t(165)]})}[dt(145)](){const t=dt,{editor:e}=this,{conversion:n,model:o}=e,{schema:i}=o;n[t(163)](t(179))[t(181)](e=>{const n=t;e.on(n(141),(t,e,o)=>{const s=n,r=e[s(187)],a=e[s(168)]?.[s(178)];r[s(116)](s(121))&&a?.is(s(195),s(188))&&(function(t,e,n,o){const i=s;if(!o[i(115)](e,i(165)))return;let r=1;const a=n[i(122)][i(152)](t,{attributes:i(201)});if(a){const e=Number[i(111)](t[i(200)](i(201)),10);Number[i(203)](e)||(r=e)}!a&&e[i(147)](i(165))||n[i(112)][i(173)](i(165),r,e)}(r,a,o,i),function(t,e,n,o){const i=s;if(!o[i(115)](e,i(197)))return;let r=i(136),a=!1;if(n[i(122)][i(152)](t,{attributes:i(113)})){const e={1:i(136),a:i(154),A:i(160),i:i(176),I:i(148)}[t[i(200)](i(113))];e&&(r=e),a=!0}n[i(122)][i(152)](t,{styles:i(119)})&&(r=t[i(159)](i(119)),a=!0),!a&&e[i(147)](i(197))||n[i(112)][i(173)](i(197),r,e)}(r,a,o,i))})}),n[t(163)](t(144))[t(181)](e=>{const n=t;e.on(n(133),(t,e,o)=>{const i=n;if(!o[i(122)][i(152)](e[i(124)],t[i(120)]))return;const s=ht(e[i(124)],o[i(170)]),{attributeNewValue:r}=e;null==r||1===r?o[i(112)][i(131)](i(201),s):o[i(112)][i(173)](i(201),String(r),s)}),e.on(n(206),(t,e,o)=>{const i=n;if(!o[i(122)][i(152)](e[i(124)],t[i(120)]))return;const s=ht(e[i(124)],o[i(170)]),{attributeNewValue:r}=e;r&&i(136)!==r?o[i(112)][i(143)](i(119),r,s):o[i(112)][i(125)](i(119),s)})})}[dt(175)](){const t=dt,{editor:e}=this,{model:n}=e,o=e[t(134)][t(156)](f),i=this[t(140)](),s=this[t(139)]();n[t(184)][t(205)](e=>{const r=t,a=n[r(184)][r(107)][r(129)]();let c=!1;for(const t of a){if(r(151)!==t[r(113)]||r(146)===t[r(120)])continue;const o=n[r(180)](t[r(155)][r(142)]);for(const t of o[r(128)]())t.is(r(195),r(188))&&(!t[r(147)](r(165))&&n[r(138)][r(115)](t,r(165))&&(e[r(173)](r(165),s,t),c=!0),!t[r(147)](r(197))&&n[r(138)][r(115)](t,r(197))&&(e[r(173)](r(197),i,t),c=!0))}return c&&o[r(161)](e),c})}[dt(177)](){const t=dt,{editor:e}=this;e[t(134)][t(156)](f)[t(118)](e=>this[t(199)](e))}[dt(140)](){const t=dt;return this[t(108)][t(169)][t(156)](t(196))}[dt(139)](){const t=dt;return this[t(108)][t(169)][t(156)](t(132))}[dt(199)]({container:t,value:e,digits:n}){const o=dt,i=t[o(200)](o(197)),s=t[o(200)](o(165)),r=Math[o(117)](e)+(s??1)-1;switch(i){case o(110):return function(t,e){const n=o;return String(t)[n(137)](e,"0")}(r,Math[o(186)](2,n));case o(154):case o(109):return mt(r,!1);case o(160):case o(192):return mt(r,!0);case o(176):return wt(r,!1);case o(148):return wt(r,!0);default:return String(r)}}}function ht(t,e){const n=dt,o=e[n(135)](t);return Array[n(149)](o[n(190)]())[n(202)](t=>t.is(n(195),"ol")&&t[n(116)](n(121)))}function mt(t,e){const n=dt;let o="",i=t;for(;i>0;){const t=(i-1)%26;o=String[n(185)](97+t)+o,i=Math[n(117)]((i-1)/26)}return e?o[n(171)]():o}const gt=[{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 wt(t,e){const n=dt;let o="",i=t;for(const{value:t,numeral:e}of gt)for(;i>=t;)o+=e,i-=t;return e?o:o[n(123)]()}function yt(){const t=["_updateFootnotesCounters","footnotesStart","for","2966982eGorjt","footnotesListStart","isOfficialPlugin","commands","modelCursor","config","mapper","toUpperCase","requires","setAttribute","model","_definePostfixer","lower-roman","_defineFormatter","parent","upcast","createRangeOn","add","1101243qMLkOc","9845080NXcPgd","document","fromCharCode","max","viewItem","footnotesDefinitions","249632kSJIct","getChildren","footnotesStyle","upper-latin","extend","10quEYBW","element","footnotes.footnotesProperties.defaultListStyle","footnotesListStyle","9UaYfGM","_formatFootnoteListValue","getAttribute","start","find","isNaN","7643706yAeQSo","registerPostFixer","attribute:footnotesListStyle:footnotesDefinitions","3234vmpvoH","differ","editor","lower-latin","decimal-leading-zero","parseInt","writer","type","isPremiumPlugin","checkAttribute","hasClass","floor","setFootnoteFormatter","list-style-type","name","footnotes-list","consumable","toLowerCase","item","removeStyle","pluginName","define","getItems","getChanges","917ErqQcF","removeAttribute","footnotes.footnotesProperties.defaultStartIndex","attribute:footnotesListStart:footnotesDefinitions","plugins","toViewElement","decimal","padStart","schema","_getDefaultStartIndex","_getDefaultListStyle","element:ol","nodeAfter","setStyle","downcast","_defineConverters","$text","hasAttribute","upper-roman","from","FootnotesPropertiesEditing","insert","consume","8631968GLikEL","lower-alpha","position","get","init","_defineSchema","getStyle","upper-alpha"];return(yt=function(){return t})()}class bt extends T.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new T.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:n}){super(t),this.focusCycler=new T.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,n),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,T.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const n=new T.View(this.locale);return n.children=n.createCollection(),n.children.addMany(t),n.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:n.children}),n.children.delegate("execute").to(this),n.focus=function(){for(const t of this.children)if(t instanceof T.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},n.focusTracker=new i.FocusTracker,n.keystrokes=new i.KeystrokeHandler,n.render(),n.keystrokes.listenTo(n.element),this.children.add(n),n}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),n=[e],o=new T.CollapsibleView(this.locale,n);return o.set({label:t("Footnotes properties"),isCollapsed:!0}),o.buttonView.bind("isEnabled").toMany(n,"isEnabled",(...t)=>t.some(t=>t)),o.buttonView.on("change:isEnabled",(t,e,n)=>{n||(o.isCollapsed=!0)}),this.children.add(o),[e,o]}_createStartIndexPropertyView(){const{t}=this.locale,e=new T.LabeledFieldView(this.locale,T.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const n=e.fieldView.element,o=n.valueAsNumber;Number.isNaN(o)?e.errorText=t("Invalid footnotes start index value."):n.checkValidity()?this.fire("footnotesListStart",{startIndex:o}):e.errorText=t(o<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var vt=n(945),It={attributes:{"data-cke":!0}};It.setAttributes=W(),It.insert=j().bind(null,"head"),It.domAPI=K(),It.insertStyleElement=U();N()(vt.A,It);vt.A&&vt.A.locals&&vt.A.locals;class kt extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[T.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var n;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(n=t,t=>{const{t:e}=t,o=n.commands.get("footnotesStyle"),i=(0,T.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(o,"isEnabled"),s.set({label:e("Footnotes style"),icon:V.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:n}=t.locale,o=n("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:n,icon:o,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new T.ButtonView(e);return a.set({label:n,icon:o,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new bt(t.locale,{styleGridAriaLabel:o,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,n)=>{t.execute("footnotesStart",{value:n.startIndex})}),s}({editor:n,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:n}=t.locale,o=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=T.BalloonPanelView;o.register("footnotesDefinitions",{ariaLabel:n("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ct=xt;function Ft(){var t=["11382160fQJjVk","1576280ATzsgW","85qcJZAZ","5062748efImma","3HaOTsO","9987502QqLyPD","pluginName","FootnotesProperties","isOfficialPlugin","requires","1152FFwlji","98244eokYBy","isPremiumPlugin","80176JVSBXk","23162ROramW"];return(Ft=function(){return t})()}function xt(t,e){var n=Ft();return(xt=function(t,e){return n[t-=150]})(t,e)}!function(t){for(var e=xt,n=t();;)try{if(804385===parseInt(e(163))/1+parseInt(e(150))/2+-parseInt(e(153))/3*(-parseInt(e(152))/4)+parseInt(e(151))/5*(-parseInt(e(160))/6)+parseInt(e(154))/7+-parseInt(e(162))/8*(parseInt(e(159))/9)+-parseInt(e(164))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Ft);class Et extends t.Plugin{static get[Ct(155)](){return Ct(156)}static get[Ct(158)](){return[pt,kt]}static get[Ct(157)](){return!0}static get[Ct(161)](){return!0}}function Pt(){var t=["390590uJMbHN","1143498VWcrDb","817267yTspHo","6767109uTILeX","7voykNY","2976135EkSEQk","4763364TwTtlW","10678200wHHoaB","108QXYgXR"];return(Pt=function(){return t})()}function St(t,e){var n=Pt();return(St=function(t,e){return n[t-=365]})(t,e)}!function(t){for(var e=St,n=t();;)try{if(869972===parseInt(e(372))/1+-parseInt(e(371))/2+parseInt(e(366))/3+-parseInt(e(367))/4+-parseInt(e(370))/5*(-parseInt(e(369))/6)+parseInt(e(365))/7*(-parseInt(e(368))/8)+parseInt(e(373))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Pt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=o})();
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1f3d21,Command as _0x278339}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x2c15fa,isWidget as _0x54acc0,toWidgetEditable as _0x3a0a31,WidgetToolbarRepository as _0x148e9e}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x17bb3f,logWarning as _0x5d35ce,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x5743a6,ClickObserver as _0x4d8c97}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x268d6c}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x4d1176,ButtonView as _0x238c7e,View as _0x13cfa5,ViewCollection as _0x5477af,FocusCycler as _0x5f207d,addKeyboardHandlingForGrid as _0x4bc2e2,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x37b4f6,BalloonPanelView as _0x2e5d73,createDropdown as _0x5d7306}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x205cc2,IconListStyleDecimal as _0x2284b3,IconListStyleDecimalLeadingZero as _0x5b5fd6,IconListStyleLowerRoman as _0x2fb8f2,IconListStyleUpperRoman as _0x3bb33d,IconListStyleLowerLatin as _0x3379b4,IconListStyleUpperLatin as _0x159f95}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x51ff45,_0x4d13ee){this['_model']=_0x51ff45,this['_elementName']=_0x4d13ee['elementName'],this['_getElementKey']=_0x4d13ee['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x1a6e2e){const _0x3160ef=new Set(),_0x5892b8=new Map();for(const _0x3e843a of _0x1a6e2e){if('insert'===_0x3e843a['type']&&'$text'!==_0x3e843a['name']&&_0x3e843a['position']['nodeAfter']){const _0x4dbf10=this['_model']['createRangeOn'](_0x3e843a['position']['nodeAfter']);for(const _0x3e375d of _0x4dbf10['getItems']()){if(!_0x3e375d['is']('element',this['_elementName']))continue;const _0x5598f3=this['_getElementKey'](_0x3e375d);_0x5892b8['has'](_0x5598f3)||_0x5892b8['set'](_0x5598f3,[]),_0x5892b8['get'](_0x5598f3)['push'](_0x3e375d);}}if('remove'===_0x3e843a['type']&&_0x3e843a['name']===this['_elementName']){const _0x54ed32=this['_getElementKey']({'getAttribute':_0x25d888=>_0x3e843a['attributes']['get'](_0x25d888)});_0x3160ef['add'](_0x54ed32);}}for(const [_0x52a0ab,_0x362972]of this['_trackedElements'])'$graveyard'===_0x362972['root']['rootName']&&_0x3160ef['add'](_0x52a0ab);for(const _0x2e5b73 of _0x3160ef)this['_trackedElements']['delete'](_0x2e5b73);for(const [_0x80991b,_0x208820]of _0x5892b8)this['_trackedElements']['set'](_0x80991b,_0x208820[_0x208820['length']-0x1]);const _0x844b71=new Set();for(const [_0x485908,_0x27ba37]of _0x5892b8)_0x3160ef['has'](_0x485908)&&(_0x844b71['add'](_0x27ba37[0x0]),_0x27ba37['length']>0x1?_0x5892b8['set'](_0x485908,_0x27ba37['slice'](0x1)):_0x5892b8['delete'](_0x485908),_0x3160ef['delete'](_0x485908));return{'removed':Array['from'](_0x3160ef),'inserted':Array['from'](_0x5892b8['values']())['flat'](),'moved':Array['from'](_0x844b71)};}}class c extends _0x1f3d21{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x190a49){super(_0x190a49),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x37c7ed=>_0x37c7ed['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x1ea96a=>_0x1ea96a['getAttribute']('footnoteId')});}['init'](){const {editor:_0x29845f}=this,{model:_0x2e91fb,data:_0x2342b5}=_0x29845f;_0x2e91fb['document']['registerPostFixer'](_0x57c280=>{const _0x1b71b4=_0x2e91fb['document']['differ']['getChanges']();let _0x1f76cd=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x57c280,_0x1b71b4)&&(_0x1f76cd=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x57c280,_0x1b71b4)&&(_0x1f76cd=!0x0),this['_handleFootnoteReferencesChanges'](_0x57c280,_0x1b71b4)&&(_0x1f76cd=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x57c280)&&(_0x1f76cd=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x57c280)&&(_0x1f76cd=!0x0),this['_sortFootnoteDefinitions'](_0x57c280)&&(_0x1f76cd=!0x0),_0x1f76cd;}),this['listenTo'](_0x2e91fb['document'],'change:data',()=>{_0x2e91fb['enqueueChange']({'isUndoable':!0x1},_0xd02de6=>{this['_ensureFootnotesDefinitionsContainerExists'](_0xd02de6);});},{'priority':'low'}),this['listenTo'](_0x2342b5,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x4811c3){return this['_footnotes']['find'](_0x3b26fa=>_0x3b26fa['id']===_0x4811c3)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x2ea01e){this['_footnoteFormatter']=_0x2ea01e;}['_updateFootnotesCounters'](_0x24216d,_0x1f5cff=0x0){let _0x5b42ff=!0x1;for(let _0x3a7246=_0x1f5cff;_0x3a7246<this['_footnotes']['length'];_0x3a7246++)this['_updateFootnoteRefCounter'](_0x24216d,_0x3a7246)&&(_0x5b42ff=!0x0);return _0x5b42ff;}['_insertEmptyFootnotesDefinitionsContainer'](_0x193cce,_0x1c9b08){const _0x53294b=_0x193cce['createElement']('footnotesDefinitions',{});return _0x193cce['append'](_0x53294b,_0x1c9b08),this['_footnotesDefinitions']=_0x53294b,_0x53294b;}['_ensureFootnotesDefinitionsContainerExists'](_0x89f711){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x379baa=this['_footnotes'][0x0]['reference']['root'],_0x368b1a=this['_insertEmptyFootnotesDefinitionsContainer'](_0x89f711,_0x379baa);for(const _0xe441d of this['_footnotes'])_0xe441d['definition']['parent']||_0x89f711['insert'](_0xe441d['definition'],_0x368b1a,'end');this['_updateFootnotesCounters'](_0x89f711);}['_handleFootnotesDefinitionsObjectChanges'](_0x273069,_0x318fcd){let _0x21859d=!0x1;const {inserted:_0x4afd69,removed:_0x336952,moved:_0x15ecf2}=this['_footnoteDefsContainerTracker']['getChanges'](_0x318fcd);if(_0x15ecf2['length']&&(this['_footnotesDefinitions']=_0x15ecf2[0x0]),_0x4afd69['length']){if(_0x4afd69['length']>0x1||this['_footnotesDefinitions']&&_0x4afd69['some'](_0x411d76=>_0x411d76!==this['_footnotesDefinitions'])){const _0x12dab3=_0x273069['createElement']('footnotesDefinitions',{}),_0x1f5a72=[];this['_footnotesDefinitions']&&_0x1f5a72['push'](this['_footnotesDefinitions']),_0x1f5a72['push'](..._0x4afd69),_0x273069['insert'](_0x12dab3,_0x1f5a72[0x0],'before');for(const _0x24ddaf of _0x1f5a72)_0x273069['move'](_0x273069['createRangeIn'](_0x24ddaf),_0x273069['createPositionAt'](_0x12dab3,'end')),_0x273069['remove'](_0x24ddaf);this['_footnotesDefinitions']=_0x12dab3,this['_updateFootnotesCounters'](_0x273069),_0x21859d=!0x0;}else this['_footnotesDefinitions']=_0x4afd69[0x0];}if(_0x336952['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x75b367 of this['_footnotes'])_0x273069['remove'](_0x75b367['reference']),_0x21859d=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x21859d;}['_handleFootnoteDefinitionsChanges'](_0x4b75c5,_0x4218e3){let _0x1c34ed=!0x1;const _0xa58559=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0xc04ddb,moved:_0x306632}=this['_footnoteDefsTracker']['getChanges'](_0x4218e3);for(const _0x47dc0b of[..._0x306632,..._0xc04ddb]){const _0x41e836=_0x47dc0b['getAttribute']('footnoteId'),_0x3eb7ee=this['getFootnote'](_0x41e836);_0x3eb7ee&&(_0x3eb7ee['definition']=_0x47dc0b),_(_0x4b75c5,_0xa58559,_0x47dc0b)&&(_0x1c34ed=!0x0);}return _0x1c34ed;}['_handleFootnoteReferencesChanges'](_0xf6ea97,_0x4346de){let _0x25cae0=!0x1;const {removed:_0x46177f,inserted:_0xd65261,moved:_0x5c5ffe}=this['_footnoteRefsTracker']['getChanges'](_0x4346de);for(const _0x434911 of _0x46177f)this['_handleRemoveFootnoteReferenceById'](_0xf6ea97,_0x434911)&&(_0x25cae0=!0x0);for(const _0x283bba of _0xd65261)this['_handleInsertedFootnoteReference'](_0xf6ea97,_0x283bba)&&(_0x25cae0=!0x0);for(const _0x4255f7 of _0x5c5ffe)this['_handleMovedFootnoteReference'](_0xf6ea97,_0x4255f7)&&(_0x25cae0=!0x0);return _0x25cae0;}['_handleFootnotesDefinitionsObjectSync'](_0x340e25){if(!this['_footnotesDefinitions'])return!0x1;let _0x3b1274=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x3bd472=[];for(const _0x2887e5 of this['_footnotesDefinitions']['getChildren']()){const _0x204bb2=_0x2887e5['getAttribute']('footnoteId');this['getFootnote'](_0x204bb2)||(_0x3bd472['unshift'](_0x2887e5),_0x3b1274=!0x0);}for(const _0x4246c7 of _0x3bd472)_0x340e25['remove'](_0x4246c7);}const _0x2b5c95=new Set(),_0x355535=[];for(const _0x4b405b of this['_footnotesDefinitions']['getChildren']()){const _0x287ff8=_0x4b405b['getAttribute']('footnoteId');_0x2b5c95['has'](_0x287ff8)?(_0x355535['unshift'](_0x4b405b),_0x3b1274=!0x0):_0x2b5c95['add'](_0x287ff8);}for(const _0x45c650 of _0x355535)_0x340e25['remove'](_0x45c650);return this['_footnotesDefinitions']['childCount']||(_0x340e25['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x3b1274=!0x0),_0x3b1274;}['_handleInsertedFootnoteReference'](_0x2c76b2,_0x150b35){if(this['_footnotes']['find'](_0x3d8eab=>_0x3d8eab['reference']===_0x150b35))return!0x1;let _0x5e1791=!0x1;const _0x46dddc=_0x150b35['getAttribute']('footnoteId'),_0x4b4bb9=this['_footnotes']['findIndex'](_0x368fe9=>_0x368fe9['id']===_0x46dddc);-0x1!==_0x4b4bb9&&(_0x2c76b2['remove'](this['_footnotes'][_0x4b4bb9]['reference']),this['_footnotes']['splice'](_0x4b4bb9,0x1),_0x5e1791=!0x0);let _0x56f0a0=this['_footnotesDefinitions']?function(_0x589021,_0x2541e9){for(const _0x4d02d7 of _0x589021['getChildren']())if(_0x4d02d7['getAttribute']('footnoteId')===_0x2541e9)return _0x4d02d7;return null;}(this['_footnotesDefinitions'],_0x46dddc):null;_0x56f0a0||(_0x56f0a0=_0x2c76b2['createElement']('footnoteDefinition',{'footnoteId':_0x46dddc}),this['_footnotesDefinitions']&&(_0x2c76b2['insert'](_0x56f0a0,this['_footnotesDefinitions'],'end'),_0x5e1791=!0x0));const _0x3921c3={'id':_0x46dddc,'reference':_0x150b35,'definition':_0x56f0a0},_0x114cde=I(this['editor']['model'],this['_footnotes'],_0x150b35);this['_footnotes']['splice'](_0x114cde,0x0,_0x3921c3);let _0x4753f3=_0x114cde;return-0x1!==_0x4b4bb9&&(_0x4753f3=Math['min'](_0x114cde,_0x4b4bb9)),this['_updateFootnotesCounters'](_0x2c76b2,_0x4753f3)&&(_0x5e1791=!0x0),_0x5e1791;}['_handleRemoveFootnoteReferenceById'](_0x589eae,_0x16a0b4){const _0x4424b4=this['_footnotes']['findIndex'](_0x1d4260=>_0x1d4260['id']===_0x16a0b4);if(-0x1===_0x4424b4)return!0x1;let _0x5a7596=!0x1;const _0x5cf07f=this['_footnotes'][_0x4424b4];return'$graveyard'!==_0x5cf07f['definition']['root']['rootName']&&(_0x589eae['remove'](_0x5cf07f['definition']),_0x5a7596=!0x0),this['_footnotes']['splice'](_0x4424b4,0x1),this['_updateFootnotesCounters'](_0x589eae,_0x4424b4)&&(_0x5a7596=!0x0),_0x5a7596;}['_handleMovedFootnoteReference'](_0x4e5cae,_0x4b5aeb){const _0x179fe8=_0x4b5aeb['getAttribute']('footnoteId'),_0x4a17ed=this['_footnotes']['findIndex'](_0x367fd2=>_0x367fd2['id']===_0x179fe8),_0x24c1f3=this['_footnotes'][_0x4a17ed];let _0x1e5c7d=!0x1;_0x24c1f3['reference']=_0x4b5aeb,this['_footnotes']['splice'](_0x4a17ed,0x1);const _0x41baae=I(this['editor']['model'],this['_footnotes'],_0x4b5aeb);return this['_footnotes']['splice'](_0x41baae,0x0,_0x24c1f3),this['_updateFootnotesCounters'](_0x4e5cae,Math['min'](_0x4a17ed,_0x41baae))&&(_0x1e5c7d=!0x0),_0x1e5c7d;}['_updateFootnoteRefCounter'](_0x2dafa7,_0x25976d){if(!this['_footnotesDefinitions'])return!0x1;const _0x19aa1f=this['_footnotes'][_0x25976d];let _0x193429;return _0x193429=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x19aa1f,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x25976d+0x1}):String(_0x25976d+0x1),_0x19aa1f['reference']['getAttribute']('footnoteCounter')!=_0x193429&&(_0x2dafa7['setAttribute']('footnoteCounter',_0x193429,_0x19aa1f['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x3fbb54){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x3ac97a,_0x4b4e1b){if(_0x3ac97a['length']!==_0x4b4e1b['length'])return!0x1;for(let _0x2c1ffb=0x0;_0x2c1ffb<_0x3ac97a['length'];_0x2c1ffb++)if(_0x3ac97a[_0x2c1ffb]!==_0x4b4e1b[_0x2c1ffb])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x151244=>_0x151244['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x21e3b1=>_0x21e3b1['getAttribute']('footnoteId'))))return!0x1;let _0x3bf5c4=!0x1;for(let _0x98b774=0x0;_0x98b774<this['_footnotes']['length'];_0x98b774++){const _0x386eb8=this['_footnotes'][_0x98b774],_0x327ab3=_0x3fbb54['createPositionBefore'](_0x386eb8['definition']),_0x4e9a72=_0x3fbb54['createPositionAt'](this['_footnotesDefinitions'],_0x98b774);_0x327ab3['isEqual'](_0x4e9a72)||(_0x3fbb54['move'](_0x3fbb54['createRangeOn'](_0x386eb8['definition']),_0x4e9a72),_0x3bf5c4=!0x0);}return _0x3bf5c4;}['_ensureFootnotesReferencesHaveProperOrder'](_0x499889){if(!this['_footnotes']['length'])return!0x1;const {model:_0x2d3291}=this['editor'];let _0x158787=!0x1;for(let _0x4732dd=0x0;_0x4732dd<this['_footnotes']['length']-0x1;_0x4732dd++){const _0x4d2ab2=this['_footnotes'][_0x4732dd],_0x396ec5=this['_footnotes'][_0x4732dd+0x1],_0x5e81b5=_0x2d3291['createPositionBefore'](_0x4d2ab2['reference']),_0x256fea=_0x2d3291['createPositionBefore'](_0x396ec5['reference']);'after'===_0x5e81b5['compareWith'](_0x256fea)&&(this['_handleMovedFootnoteReference'](_0x499889,_0x4d2ab2['reference']),_0x4732dd=-0x1,_0x158787=!0x0);}return _0x158787;}}function _(_0x409219,_0x41a556,_0x1d80da){if(_0x1d80da['childCount'])return!0x1;const _0x3b2685=_0x41a556?'paragraph':'footnoteInlineContent';return _0x409219['insert'](_0x409219['createElement'](_0x3b2685),_0x1d80da),!0x0;}function I(_0x3f572c,_0x4019bc,_0x1243a8){if(0x0===_0x4019bc['length'])return 0x0;const _0x4c9d98=_0x3f572c['createPositionBefore'](_0x1243a8);for(let _0x74aff6=0x0;_0x74aff6<_0x4019bc['length'];_0x74aff6++){const _0x4cc16a=_0x4019bc[_0x74aff6],_0x2d2651=_0x3f572c['createPositionBefore'](_0x4cc16a['reference']);if('before'===_0x4c9d98['compareWith'](_0x2d2651))return _0x74aff6;}const _0x599d0c=_0x1243a8['root'];let _0xcb2166=-0x1;for(let _0x126936=_0x4019bc['length']-0x1;_0x126936>=0x0;_0x126936--)if(_0x4019bc[_0x126936]['reference']['root']===_0x599d0c){_0xcb2166=_0x126936;break;}if(-0x1!==_0xcb2166)return _0xcb2166+0x1;const _0x2a0a65=_0x3f572c['document']['getRootNames'](),_0x502efa=_0x2a0a65['indexOf'](_0x599d0c['rootName']),_0x1464cb=_0x2a0a65[_0x502efa+0x1];if(_0x1464cb){for(let _0xe7d606=0x0;_0xe7d606<_0x4019bc['length'];_0xe7d606++)if(_0x4019bc[_0xe7d606]['reference']['root']['rootName']===_0x1464cb)return _0xe7d606;}return _0x4019bc['length'];}class w extends _0x278339{['refresh'](){const _0x194dd6=this['editor']['model']['document']['selection'],_0x1574f3=this['_getPositionToInsertFootnote'](_0x194dd6);this['isEnabled']=!!_0x1574f3;}['execute'](_0x256460){const {editor:_0x2b9226}=this,{model:_0x4e827f}=_0x2b9226,{selection:_0x5bbd15}=_0x4e827f['document'],_0x42c6bc=this['_getPositionToInsertFootnote'](_0x5bbd15);if(!_0x42c6bc)return;const _0x1bf39c=_0x2b9226['plugins']['get']('FootnotesEditing'),_0x39a68a=_0x256460?.['footnoteId']??_0x17bb3f();!function(_0x532f4d){return'string'==typeof _0x532f4d&&_0x532f4d['length']>0x0&&!/\s/['test'](_0x532f4d)&&!/^\d/['test'](_0x532f4d);}(_0x39a68a)?_0x5d35ce('insert-footnote-command-executed-with-invalid-id'):(_0x4e827f['change'](_0x15be06=>{const _0x240b86=_0x15be06['createElement']('footnoteRef',{'footnoteId':_0x39a68a});_0x4e827f['insertObject'](_0x240b86,_0x42c6bc,null);}),_0x1bf39c['_moveSelectionToFootnoteDefinition'](_0x39a68a));}['_getPositionToInsertFootnote'](_0x24376c){const {model:_0xa523a2}=this['editor'],{schema:_0x5ceb32}=_0xa523a2,_0x2166c5=_0x24376c['getFirstRange']();for(const _0x2118d9 of _0x2166c5['getItems']())if(_0x5ceb32['isBlock'](_0x2118d9)||_0x5ceb32['isObject'](_0x2118d9))return null;const _0xcda1d2=_0x2166c5['end'];return _0x5ceb32['checkChild'](_0xcda1d2,'footnoteRef')?_0xcda1d2:null;}}class r extends _0x1f3d21{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1a1dc1}=this;_0x1a1dc1['config']['define']('footnotes.multiBlock',!0x0),_0x1a1dc1['commands']['add']('insertFootnote',new w(_0x1a1dc1)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x15b3eb){const _0x56a332=_0x51eb34([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]),_0x3b3a7d=0x47a28506,_0x4008a0=0x47a5f2de^_0x3b3a7d,_0x45119c=window[_0x51eb34([0x44,0x61,0x74,0x65])][_0x51eb34([0x6e,0x6f,0x77])](),_0x55effc=_0x15b3eb[_0x51eb34([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f1fc3=new window[(_0x51eb34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f1b38=>{_0x55effc[_0x51eb34([0x6f,0x6e,0x63,0x65])](_0x51eb34([0x72,0x65,0x61,0x64,0x79]),_0x2f1b38);}),_0x8d833d={[_0x51eb34([0x6b,0x74,0x79])]:_0x51eb34([0x45,0x43]),[_0x51eb34([0x75,0x73,0x65])]:_0x51eb34([0x73,0x69,0x67]),[_0x51eb34([0x63,0x72,0x76])]:_0x51eb34([0x50,0x2d,0x32,0x35,0x36]),[_0x51eb34([0x78])]:_0x51eb34([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]),[_0x51eb34([0x79])]:_0x51eb34([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]),[_0x51eb34([0x61,0x6c,0x67])]:_0x51eb34([0x45,0x53,0x32,0x35,0x36])},_0x3b751b=_0x55effc[_0x51eb34([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x51eb34([0x67,0x65,0x74])](_0x51eb34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x266379(){let _0x38f071,_0x39c2d2=null,_0x5b8cac=null;try{if(_0x3b751b==_0x51eb34([0x47,0x50,0x4c]))return _0x51eb34([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x38f071=_0x453e17(),!_0x38f071)return _0x51eb34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x38f071[_0x51eb34([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b8cac=_0x21a651(_0x38f071[_0x51eb34([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x38f071[_0x51eb34([0x6a,0x74,0x69])])),await _0x54fedf()?_0xd4b54()?_0x253538()?_0x51eb34([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2a6f0b()?(_0x38f071[_0x51eb34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51eb34([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x39c2d2=_0x26167a(_0x51eb34([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x38f071[_0x51eb34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51eb34([0x74,0x72,0x69,0x61,0x6c])&&(_0x39c2d2=_0x26167a(_0x51eb34([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb43cf9()):_0x51eb34([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x51eb34([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x51eb34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x51eb34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x253538(){const _0x1a55e6=[_0x51eb34([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x51eb34([0x74,0x72,0x69,0x61,0x6c])][_0x51eb34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38f071[_0x51eb34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x45119c/0x3e8:0xe10*_0x4008a0;return _0x38f071[_0x51eb34([0x65,0x78,0x70])]<_0x1a55e6;}function _0xd4b54(){const _0x42ab8f=_0x38f071[_0x51eb34([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x42ab8f&&(!!_0x42ab8f[_0x51eb34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51eb34([0x2a]))||!!_0x42ab8f[_0x51eb34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51eb34([0x46,0x4f,0x4f])));}function _0x2a6f0b(){const _0x1b10b7=_0x38f071[_0x51eb34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b10b7||0x0==_0x1b10b7[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x52d3df}=new URL(window[_0x51eb34([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1b10b7[_0x51eb34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52d3df))return!0x0;const _0x5b91e1=_0x52d3df[_0x51eb34([0x73,0x70,0x6c,0x69,0x74])](_0x51eb34([0x2e]));return _0x1b10b7[_0x51eb34([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1491cc=>_0x1491cc[_0x51eb34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51eb34([0x2a])))[_0x51eb34([0x6d,0x61,0x70])](_0xdcb4d=>_0xdcb4d[_0x51eb34([0x73,0x70,0x6c,0x69,0x74])](_0x51eb34([0x2e])))[_0x51eb34([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x801b36=>_0x801b36[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5b91e1[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51eb34([0x6d,0x61,0x70])](_0x6c9ee2=>Array(_0x5b91e1[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x6c9ee2[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51eb34([0x66,0x69,0x6c,0x6c])](_0x6c9ee2[0x0]===_0x51eb34([0x2a])?_0x51eb34([0x2a]):'')[_0x51eb34([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x6c9ee2))[_0x51eb34([0x73,0x6f,0x6d,0x65])](_0x19b6c4=>_0x5b91e1[_0x51eb34([0x65,0x76,0x65,0x72,0x79])]((_0x5a7b22,_0x1095b0)=>_0x19b6c4[_0x1095b0]===_0x5a7b22||_0x19b6c4[_0x1095b0]===_0x51eb34([0x2a])));}function _0xb43cf9(){return _0x39c2d2&&_0x5b8cac?new window[(_0x51eb34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b50ad,_0x1839cf)=>{_0x39c2d2[_0x51eb34([0x74,0x68,0x65,0x6e])](_0x3b50ad,_0x1839cf),_0x5b8cac[_0x51eb34([0x74,0x68,0x65,0x6e])](_0x33a1bd=>{_0x33a1bd!=_0x51eb34([0x56,0x61,0x6c,0x69,0x64])&&_0x3b50ad(_0x33a1bd);},_0x1839cf);}):_0x39c2d2||_0x5b8cac||_0x51eb34([0x56,0x61,0x6c,0x69,0x64]);}}function _0x21a651(_0x5a724c,_0x2d6ea8){return new window[(_0x51eb34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x323e29=>{if(_0x4871ff())return _0x323e29(_0x51eb34([0x56,0x61,0x6c,0x69,0x64]));_0x242598(),_0x55effc[_0x51eb34([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x51eb34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x584ed1=!0x1;const _0x30ca2e=_0x17bb3f();function _0x1b6dd2(_0xb2d4a8){return!!_0xb2d4a8&&(typeof _0xb2d4a8===_0x51eb34([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb2d4a8===_0x51eb34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb2d4a8[_0x51eb34([0x74,0x68,0x65,0x6e])]===_0x51eb34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb2d4a8[_0x51eb34([0x63,0x61,0x74,0x63,0x68])]===_0x51eb34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x44838a(_0x384e4a){_0x9791e8(_0x384e4a)[_0x51eb34([0x74,0x68,0x65,0x6e])](_0x52880b=>{if(!_0x52880b||_0x52880b[_0x51eb34([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x51eb34([0x6f,0x6b]))return _0x51eb34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1ba8d5(_0x457d54(_0x30ca2e+_0x2d6ea8))!=_0x52880b[_0x51eb34([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x51eb34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x51eb34([0x56,0x61,0x6c,0x69,0x64]);})[_0x51eb34([0x74,0x68,0x65,0x6e])](_0x45669a=>(_0x1823ce(),_0x45669a),()=>{const _0x5552f9=_0x3f0072();return null==_0x5552f9?(_0x1823ce(),_0x51eb34([0x56,0x61,0x6c,0x69,0x64])):_0x51eb34(_0x45119c-_0x5552f9>(0x63ae0106^_0x3b3a7d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x51eb34([0x74,0x68,0x65,0x6e])](_0x323e29)[_0x51eb34([0x63,0x61,0x74,0x63,0x68])](()=>{_0x323e29(_0x51eb34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3783e2=0x47946b86^_0x3b3a7d;function _0x1823ce(){const _0x48c661=_0x51eb34([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ba8d5(_0x457d54(_0x5a724c)),_0x348a4b=_0xeb571b(_0x1ba8d5(window[_0x51eb34([0x4d,0x61,0x74,0x68])][_0x51eb34([0x63,0x65,0x69,0x6c])](_0x45119c/_0x3783e2)));window[_0x51eb34([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51eb34([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48c661,_0x348a4b);}function _0x3f0072(){const _0x198b7f=_0x51eb34([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ba8d5(_0x457d54(_0x5a724c)),_0x43c674=window[_0x51eb34([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51eb34([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x198b7f);return _0x43c674?window[_0x51eb34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xeb571b(_0x43c674),0x10)*_0x3783e2:null;}function _0x9791e8(_0x41a997){return new window[(_0x51eb34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x586dd8,_0x587770)=>{_0x41a997[_0x51eb34([0x74,0x68,0x65,0x6e])](_0x586dd8,_0x587770),window[_0x51eb34([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x587770,0x47a351c6^_0x3b3a7d);});}}_0x55effc[_0x51eb34([0x6f,0x6e])](_0x51eb34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x21c70a,_0x5147e4)=>{if(_0x5147e4[0x0]!=_0x5a724c)return _0x323e29(_0x51eb34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5147e4[0x1]={..._0x5147e4[0x1],[_0x51eb34([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x30ca2e};},{[_0x51eb34([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51eb34([0x68,0x69,0x67,0x68])}),_0x55effc[_0x51eb34([0x6f,0x6e])](_0x51eb34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x138f35=>{_0x1b6dd2(_0x138f35[_0x51eb34([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x584ed1=!0x0,_0x44838a(_0x138f35[_0x51eb34([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x51eb34([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51eb34([0x6c,0x6f,0x77])}),_0x4f1fc3[_0x51eb34([0x74,0x68,0x65,0x6e])](()=>{_0x584ed1||_0x323e29(_0x51eb34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4871ff(){return _0x55effc[_0x51eb34([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51eb34([0x76,0x69,0x65,0x77])][_0x51eb34([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x51eb34([0x61,0x75,0x74,0x6f]);}function _0x242598(){_0x55effc[_0x51eb34([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51eb34([0x76,0x69,0x65,0x77])][_0x51eb34([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51eb34([0x61,0x75,0x74,0x6f]);}}function _0x26167a(_0xfbba4f){const _0x4e8e3f=[new window[(_0x51eb34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x349f8c=>setTimeout(_0x349f8c,0x47abbbca^_0x3b3a7d)),_0x4f1fc3[_0x51eb34([0x74,0x68,0x65,0x6e])](()=>new window[(_0x51eb34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x316190=>{let _0x2e2e8a=0x0;_0x55effc[_0x51eb34([0x6d,0x6f,0x64,0x65,0x6c])][_0x51eb34([0x6f,0x6e])](_0x51eb34([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3f22e6,_0x216a87)=>{_0x216a87[0x0][_0x51eb34([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2e2e8a++,_0x2e2e8a==(0x47a284fe^_0x3b3a7d)&&(_0x316190(),_0x3f22e6[_0x51eb34([0x6f,0x66,0x66])]());});}))];return window[_0x51eb34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51eb34([0x72,0x61,0x63,0x65])](_0x4e8e3f)[_0x51eb34([0x74,0x68,0x65,0x6e])](()=>_0xfbba4f);}async function _0x273f41(){await _0x4f1fc3,_0x55effc[_0x51eb34([0x6d,0x6f,0x64,0x65,0x6c])][_0x51eb34([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x9706e2,_0x55effc[_0x51eb34([0x6d,0x6f,0x64,0x65,0x6c])][_0x51eb34([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x9706e2,_0x55effc[_0x51eb34([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x51eb34([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x44eac1(_0x1184e4){const _0x24157a=_0x145e62();_0x55effc[_0x24157a]=_0x51eb34([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1184e4,_0x1184e4!=_0x51eb34([0x56,0x61,0x6c,0x69,0x64])&&_0x273f41();}function _0x145e62(){const _0x5dd9a3=window[_0x51eb34([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x51eb34([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x51eb34([0x6e,0x6f,0x77])]())[_0x51eb34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x51eb34([0x2e]),'');let _0x28d199=_0x51eb34([0x75]);for(let _0x2207ad=0x0;_0x2207ad<_0x5dd9a3[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2207ad+=0x2){let _0x1a7958=window[_0x51eb34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dd9a3[_0x51eb34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2207ad,_0x2207ad+0x2));_0x1a7958>=_0x56a332[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a7958-=_0x56a332[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x28d199+=_0x56a332[_0x1a7958];}return _0x28d199;}function _0x453e17(){const _0x2730e7=_0x3b751b[_0x51eb34([0x73,0x70,0x6c,0x69,0x74])](_0x51eb34([0x2e]));if(0x3!=_0x2730e7[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5b3dcf(_0x2730e7[0x1]);function _0x5b3dcf(_0x16cd8d){const _0xdc1c2f=_0x1497ea(_0x16cd8d);return _0xdc1c2f&&_0x3fb5aa()?_0xdc1c2f:null;function _0x3fb5aa(){const _0x576fa4=_0xdc1c2f[_0x51eb34([0x6a,0x74,0x69])],_0x56df05=window[_0x51eb34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x576fa4[_0x51eb34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x576fa4[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x9c54a2={..._0xdc1c2f,[_0x51eb34([0x6a,0x74,0x69])]:_0x576fa4[_0x51eb34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x576fa4[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x9c54a2[_0x51eb34([0x76,0x63])],_0x457d54(_0x9c54a2)==_0x56df05;}}}async function _0x54fedf(){let _0x2cee5d=!0x0;try{const _0x508ed9=_0x3b751b[_0x51eb34([0x73,0x70,0x6c,0x69,0x74])](_0x51eb34([0x2e])),[_0x215322,_0x398908,_0x4c4584]=_0x508ed9;return _0x13d4c4(_0x215322),await _0x14589e(_0x215322,_0x398908,_0x4c4584),_0x2cee5d;}catch{return!0x1;}function _0x13d4c4(_0x5b4ff4){const _0x45b67d=_0x1497ea(_0x5b4ff4);_0x45b67d&&_0x45b67d[_0x51eb34([0x61,0x6c,0x67])]==_0x51eb34([0x45,0x53,0x32,0x35,0x36])||(_0x2cee5d=!0x1);}async function _0x14589e(_0x2bfe42,_0x54bc9b,_0x39483b){const _0x6610cc=window[_0x51eb34([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x51eb34([0x66,0x72,0x6f,0x6d])](_0x1a3783(_0x39483b),_0x368234=>_0x368234[_0x51eb34([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x313f8f=new window[(_0x51eb34([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x51eb34([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2bfe42+_0x51eb34([0x2e])+_0x54bc9b),_0x51d97e=window[_0x51eb34([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x51eb34([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x51d97e)return;const _0x4535d3=await _0x51d97e[_0x51eb34([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x51eb34([0x6a,0x77,0x6b]),_0x8d833d,{[_0x51eb34([0x6e,0x61,0x6d,0x65])]:_0x51eb34([0x45,0x43,0x44,0x53,0x41]),[_0x51eb34([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x51eb34([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x51eb34([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x51d97e[_0x51eb34([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x51eb34([0x6e,0x61,0x6d,0x65])]:_0x51eb34([0x45,0x43,0x44,0x53,0x41]),[_0x51eb34([0x68,0x61,0x73,0x68])]:{[_0x51eb34([0x6e,0x61,0x6d,0x65])]:_0x51eb34([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4535d3,_0x6610cc,_0x313f8f)||(_0x2cee5d=!0x1);}}function _0x1497ea(_0x4ec858){return _0x4ec858[_0x51eb34([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x51eb34([0x65,0x79]))?JSON[_0x51eb34([0x70,0x61,0x72,0x73,0x65])](_0x1a3783(_0x4ec858)):null;}function _0x1a3783(_0x45de61){return window[_0x51eb34([0x61,0x74,0x6f,0x62])](_0x45de61[_0x51eb34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x51eb34([0x2b]))[_0x51eb34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x51eb34([0x2f])));}function _0x457d54(_0x44b5b2){let _0x440e18=0x1505;function _0x4106f6(_0x54b528){for(let _0x35968a=0x0;_0x35968a<_0x54b528[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35968a++){const _0x419688=_0x54b528[_0x51eb34([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x35968a);_0x440e18=(_0x440e18<<0x5)+_0x440e18+_0x419688,_0x440e18&=_0x440e18;}}function _0x981679(_0x123c66){Array[_0x51eb34([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x123c66)?_0x123c66[_0x51eb34([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x981679):_0x123c66&&typeof _0x123c66==_0x51eb34([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x51eb34([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x123c66)[_0x51eb34([0x73,0x6f,0x72,0x74])]()[_0x51eb34([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2ced81,_0x520bfa])=>{_0x4106f6(_0x2ced81),_0x981679(_0x520bfa);}):_0x4106f6(window[_0x51eb34([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x123c66));}return _0x981679(_0x44b5b2),_0x440e18>>>0x0;}function _0x1ba8d5(_0x42dbf7){return _0x42dbf7[_0x51eb34([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x51eb34([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x51eb34([0x30]));}function _0xeb571b(_0xf2a5ab){return _0xf2a5ab[_0x51eb34([0x73,0x70,0x6c,0x69,0x74])]('')[_0x51eb34([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x51eb34([0x6a,0x6f,0x69,0x6e])]('');}function _0x9706e2(){}function _0x51eb34(_0x406b61){return _0x406b61['map'](_0x4061e4=>String['fromCharCode'](_0x4061e4))['join']('');}_0x44eac1(await _0x266379());}(this);}['_moveSelectionToFootnoteDefinition'](_0x2b949b){const {plugins:_0x507b34,editing:_0x51d5a9,model:_0x38e12e}=this['editor'],_0x32a6f9=_0x507b34['get'](c)['getFootnote'](_0x2b949b);return!!_0x32a6f9&&(_0x38e12e['change'](_0x362657=>{_0x362657['setSelection'](_0x362657['createPositionAt'](_0x32a6f9['definition'],'end'));}),_0x51d5a9['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3df88b){const {plugins:_0x978888,editing:_0x49c0c6,model:_0x3eb157}=this['editor'],_0xb36b76=_0x978888['get'](c)['getFootnote'](_0x3df88b);return!!_0xb36b76&&(_0x3eb157['change'](_0x44a438=>{_0x44a438['setSelection'](_0xb36b76['reference'],'on');}),_0x49c0c6['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x429266}=this['editor']['model'],_0x49e129=this['editor']['config']['get']('footnotes.multiBlock');_0x429266['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x429266['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x429266['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x49e129?_0x429266['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x429266['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x429266['addChildCheck'](_0x164a1a=>{for(const _0x148d30 of _0x164a1a)if('footnoteDefinition'===_0x148d30['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1d162a}=this,{conversion:_0x20bb67,editing:_0x245c5e}=_0x1d162a,{t:t}=_0x1d162a['locale'];_0x20bb67['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2a3595,{writer:_0x20e91d,consumable:_0x10ea57})=>{const _0x376cc9=_0x2a3595['getChild'](0x0);if(!_0x376cc9||!_0x376cc9['is']('element','a'))return null;const _0x4b180=_0x376cc9['getAttribute']('href')||'';if(!_0x4b180['startsWith']('#'))return null;const _0x32f9bc=_0x4b180['replace'](/^#/,'');if(!_0x32f9bc)return null;_0x10ea57['consume'](_0x376cc9,{'name':!0x0,'attributes':['href']});for(const {item:_0x599ec7}of _0x245c5e['view']['createRangeIn'](_0x376cc9))_0x599ec7['is']('$textProxy')?_0x10ea57['consume'](_0x599ec7['textNode'],{'name':!0x0}):_0x599ec7['is']('element')&&_0x10ea57['consume'](_0x599ec7,{'name':!0x0});return _0x20e91d['createElement']('footnoteRef',{'footnoteId':_0x32f9bc});}}),_0x20bb67['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x545300,{writer:_0x53bba0})=>D(_0x545300,_0x53bba0)}),_0x20bb67['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xd2890c,{writer:_0x305474})=>{const _0x166233=_0xd2890c['getAttribute']('footnoteCounter');return _0x2c15fa(D(_0xd2890c,_0x305474),_0x305474,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x166233)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5195b6}=this,{t:t}=_0x5195b6['locale'],{conversion:_0x3f082b}=_0x5195b6;_0x3f082b['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3f082b['for']('upcast')['add'](_0x495f29=>{_0x495f29['on']('element:ol',(_0x53620d,_0x592076,_0x48ab2e)=>{const _0x4c1c04=_0x592076['viewItem'];if(!_0x4c1c04['hasClass']('footnotes-list')||!_0x592076['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x48ab2e['consumable']['consume'](_0x4c1c04,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5c6c5a,modelCursor:_0x1db45d}=_0x48ab2e['convertChildren'](_0x592076['viewItem'],_0x592076['modelCursor']);_0x592076['modelRange']=_0x5c6c5a,_0x592076['modelCursor']=_0x1db45d;}),_0x495f29['on']('element:hr',(_0x2079ea,_0x15bcac,_0x1d200e)=>{const _0x5c6b6b=_0x15bcac['viewItem'];_0x5c6b6b['hasClass']('footnotes-divider')&&_0x15bcac['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x1d200e['consumable']['consume'](_0x5c6b6b,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3f082b['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1be48,{writer:_0x27f190})=>g(_0x27f190)}),_0x3f082b['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x330319,{writer:_0x280dd9})=>{const _0x375e5f=g(_0x280dd9,{'data-footnotes-list-label':t('Footnotes')}),_0x208676=_0x2c15fa(_0x375e5f,_0x280dd9,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x280dd9['setCustomProperty']('footnotesDefinitions',!0x0,_0x208676),_0x208676;}});}['_defineDefinitionConverters'](){const {editor:_0x37ce85}=this,{conversion:_0x2ea3d9,locale:_0x5400b5}=_0x37ce85,_0xae38a=_0x37ce85['config']['get']('footnotes.multiBlock');_0x2ea3d9['for']('upcast')['add'](_0x4d769d=>{_0x4d769d['on']('element:li',(_0x319f2d,_0xaf3c21,_0x213b56)=>{const _0x19589a=_0xaf3c21['viewItem'];if(!_0x19589a['hasClass']('footnote-definition')||!_0x19589a['getAttribute']('id'))return;const _0x28913d=_0x19589a['parent'];if(!_0x28913d['is']('element','ol')||!_0x28913d['hasClass']('footnotes-list'))return;if(!_0x213b56['consumable']['test'](_0x19589a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x298ceb=_0x213b56['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x19589a['getAttribute']('id')});if(!_0x213b56['safeInsert'](_0x298ceb,_0xaf3c21['modelCursor']))return;_0x213b56['consumable']['consume'](_0x19589a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x328203=Array['from'](_0x19589a['getChildren']())['find'](_0x15258c=>_0x15258c['is']('element')&&_0x15258c['hasClass']('footnote-content'));for(const _0x5d7633 of _0x19589a['getChildren']())_0x5d7633['is']('element')&&(_0x213b56['consumable']['consume'](_0x5d7633,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x213b56['consumable']['consume'](_0x5d7633,{'name':!0x0,'classes':'footnote-content'}));if(_0x328203){if(_0xae38a)_0x213b56['convertChildren'](_0x328203,_0x298ceb);else{const _0x406fd0=_0x213b56['writer']['createElement']('footnoteInlineContent');_0x213b56['writer']['insert'](_0x406fd0,_0x298ceb),_0x213b56['convertChildren'](_0x328203,_0x406fd0);}}_0x213b56['updateConversionResult'](_0x298ceb,_0xaf3c21);});}),_0x2ea3d9['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x36a40a,{writer:_0x4e92ef})=>v(_0x36a40a,_0x4e92ef,_0x5400b5,{'dataPipeline':!0x0})}),_0x2ea3d9['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x302d0f,{writer:_0x77ea46})=>v(_0x302d0f,_0x77ea46,_0x5400b5)});}['_defineBogusParagraphConverters'](){const {editor:_0x58f39c}=this,{conversion:_0x1fd39e}=_0x58f39c;_0x58f39c['config']['get']('footnotes.multiBlock')?(_0x1fd39e['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x1fd39e['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x58f39c['model']['document'],'change:data',()=>{!function(_0x593879,_0x177df0){const _0x54eb2b=_0x593879['document']['differ'],_0xcb1bbb=new Set();for(const _0xb4f446 of _0x54eb2b['getChanges']()){const _0x3c9945='attribute'==_0xb4f446['type']?_0xb4f446['range']['start']['parent']:_0xb4f446['position']['parent'];_0x3c9945['is']('element','footnoteDefinition')&&_0xcb1bbb['add'](_0x3c9945);}for(const _0x3d2d52 of _0xcb1bbb['values']()){const _0x4b116f=Array['from'](_0x3d2d52['getChildren']())['filter'](_0x47037b=>p(_0x47037b,_0x177df0['mapper']));for(const _0x3b01e0 of _0x4b116f)_0x177df0['reconvertItem'](_0x3b01e0);}}(_0x58f39c['model'],_0x58f39c['editing']);})):(_0x1fd39e['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x1fd39e['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5eb7fa,{writer:_0xd2c6fa})=>{const _0x3446d5=_0xd2c6fa['createContainerElement']('span');return _0xd2c6fa['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3446d5),_0x3446d5;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5ca190}=this,{editing:_0x2f3daa,t:t}=_0x5ca190,_0x516de7=_0x5ca190['model']['document']['selection'];_0x5ca190['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x5ca190['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x2f3daa['view']['document'],'enter',(_0xc9f51,_0x2f47a2)=>{const _0x400017=function(_0x56c469){const _0x1ac725=_0x56c469['getSelectedElement']();if(_0x1ac725?.['is']('element','footnoteRef'))return _0x1ac725;return null;}(_0x516de7);if(_0x400017){const _0x580612=_0x400017['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x580612),_0x2f47a2['preventDefault'](),_0xc9f51['stop']();}},{'context':_0x54acc0});}['_defineClickHandlers'](){const {editor:_0x8fccf7}=this,{editing:_0x56f919}=_0x8fccf7;_0x8fccf7['editing']['view']['addObserver'](_0x5743a6),_0x8fccf7['editing']['view']['addObserver'](_0x4d8c97);let _0x326546=!0x1;this['listenTo'](_0x56f919['view']['document'],'pointerdown',(_0x213d67,_0x3472b2)=>{const {target:_0x38cf82}=_0x3472b2,_0xbd6393=_0x56f919['view']['document']['selection'];_0x326546=!!(_0x38cf82['is']('element','a')&&_0x38cf82['parent']?.['is']('element','sup')&&_0x38cf82['parent']['hasClass']('footnote'))&&_0xbd6393['getSelectedElement']()===_0x38cf82['parent'];},{'priority':'high'}),this['listenTo'](_0x56f919['view']['document'],'click',(_0x16f4da,_0x5efc71)=>{const {target:_0x4fbdbd}=_0x5efc71;if(!_0x4fbdbd['is']('element','a'))return;if(_0x4fbdbd['parent']?.['is']('element','sup')&&_0x4fbdbd['parent']['hasClass']('footnote')&&!_0x326546)return void _0x5efc71['preventDefault']();let _0x22b4c3=_0x4fbdbd['getAttribute']('href');if(!_0x22b4c3?.['startsWith']('#'))return;_0x22b4c3=_0x22b4c3['slice'](0x1);let _0x3228ba=!0x1;(_0x22b4c3['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x22b4c3['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x22b4c3))&&(_0x3228ba=!0x0),_0x3228ba&&(_0x5efc71['preventDefault'](),_0x16f4da['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x362259}={}){return(_0x167c18,{writer:_0x38a5ed})=>{if(!h(_0x167c18))return null;if(!_0x362259)return _0x38a5ed['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x55bf5c=_0x38a5ed['createContainerElement']('p');return _0x38a5ed['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x55bf5c),_0x55bf5c;};}function h(_0x441eb1){const {parent:_0x1e40cc}=_0x441eb1;if(!_0x1e40cc?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1e40cc['childCount'])return!0x1;for(const _0x1cebc6 of _0x441eb1['getAttributeKeys']())if(!_0x1cebc6['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x1cebc6)return!0x1;return!0x0;}function p(_0x1bbcc0,_0x2c9422){if(!_0x1bbcc0['is']('element','paragraph'))return!0x1;const _0x57e521=_0x2c9422['toViewElement'](_0x1bbcc0);return!!_0x57e521&&h(_0x1bbcc0)!==_0x57e521['is']('element','span');}function J(_0x2994c2){return _0x54acc0(_0x2994c2)&&_0x2994c2['is']('containerElement')&&!!_0x2994c2['getCustomProperty']('footnotesDefinitions');}function g(_0x577b9e,_0x260ded={}){const _0x5a660c=_0x577b9e['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x451ed4=_0x577b9e['createContainerElement']('ol',{'class':'footnotes-list'},_0x577b9e['createSlot']());return _0x577b9e['createContainerElement']('div',{'class':'footnotes',..._0x260ded},[_0x5a660c,_0x451ed4]);}function D(_0xcc4a83,_0x58c0a0){const _0x27716b=_0xcc4a83['getAttribute']('footnoteId'),_0x145b2e=_0xcc4a83['getAttribute']('footnoteCounter'),_0xec2938=_0x58c0a0['createUIElement']('a',{'href':'#'+_0x27716b},function(_0x2db0cf){const _0x1e996a=this['toDomElement'](_0x2db0cf);return _0x1e996a['textContent']=_0x145b2e,_0x1e996a;}),_0xf6f1e6=_0x58c0a0['createContainerElement']('sup',{'id':'ref-'+_0x27716b,'class':'footnote'},[_0xec2938]);return _0xf6f1e6['getFillerOffset']=()=>null,_0xf6f1e6;}function v(_0x270928,_0x179b4a,_0x4bd8f4,{dataPipeline:_0x103853}={}){const {t:t}=_0x4bd8f4,_0x5ea890=_0x270928['getAttribute']('footnoteId'),_0x2f4465=_0x179b4a['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5ea890},function(_0x293a5f){const _0x327781=this['toDomElement'](_0x293a5f);return _0x327781['innerText']='^',_0x327781;}),_0x1892ca=_0x103853?_0x179b4a['createContainerElement']('div',{'class':'footnote-content'}):_0x3a0a31(_0x179b4a['createEditableElement']('div',{'class':'footnote-content'}),_0x179b4a,{'label':t('Footnote\x20content.')});return _0x179b4a['insert'](_0x179b4a['createPositionAt'](_0x1892ca,0x0),_0x179b4a['createSlot']()),_0x179b4a['createContainerElement']('li',{'class':'footnote-definition','id':_0x5ea890},[_0x2f4465,_0x1892ca]);}class e extends _0x1f3d21{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x268d6c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x5ad368}=this,{plugins:_0x76b9c7,model:_0x2d59b4}=_0x5ad368,_0x5cb5eb=_0x76b9c7['get'](_0x268d6c),_0xb4cca=_0x76b9c7['get'](c);this['listenTo'](_0x5cb5eb,'outputTransformation',(_0x31b3a5,_0x3de4da)=>{const _0xf31427=function(_0x5532b8,_0x3b1d60){const _0x4a4934=new Set();for(const {item:_0x5bc40f}of _0x5532b8['createRangeIn'](_0x3b1d60))_0x5bc40f['is']('element','footnoteRef')&&_0x4a4934['add'](_0x5bc40f['getAttribute']('footnoteId'));return Array['from'](_0x4a4934);}(_0x2d59b4,_0x3de4da['content']);if(!_0xf31427['length'])return;const _0x52ae34=_0xb4cca['getFootnotes'](),_0x81e75a=_0xf31427['reduce']((_0x38326b,_0x5e883e)=>{const _0x4930cc=_0x52ae34['find'](_0x73dd35=>_0x73dd35['id']===_0x5e883e);if(_0x4930cc){const _0xab1153=_0x5ad368['data']['toView'](_0x4930cc['definition'],{'isClipboardPipeline':!0x0}),_0x95f289=_0x5ad368['data']['htmlProcessor']['toData'](_0xab1153);_0x38326b[_0x4930cc['id']]=_0x95f289;}return _0x38326b;},Object['create'](null));_0x3de4da['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x81e75a));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x309647}=this,{model:_0x5ae7b6,plugins:_0xcea926}=_0x309647,{view:_0x5966d3}=_0x309647['editing'],_0x2abaeb=_0xcea926['get'](_0x268d6c),_0x3b5fc3=_0xcea926['get'](c);let _0x48c142=null;this['listenTo'](_0x5966d3['document'],'clipboardInput',(_0x59fb5c,_0xe7dca)=>{const _0x440207=_0xe7dca['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x48c142=_0x440207?JSON['parse'](_0x440207):null;}),this['listenTo'](_0x2abaeb,'contentInsertion',(_0x48ce16,_0x1c729c)=>{if(!_0x48c142)return;const _0x54e416=_0x1c729c['sourceEditorId']===this['editor']['id'];_0x54e416&&'drop'===_0x1c729c['method']||_0x5ae7b6['change'](_0x52f3ed=>{!function(_0x490c78,_0x29275e){const _0x38b0f5=[];for(const {item:_0x5c211e}of _0x490c78['createRangeIn'](_0x29275e))_0x5c211e['is']('element','footnotesDefinitions')&&_0x38b0f5['push'](_0x5c211e);for(const _0x248da9 of _0x38b0f5)_0x490c78['remove'](_0x248da9);}(_0x52f3ed,_0x1c729c['content']);let _0x1533c0=_0x3b5fc3['getFootnotesDefinitionsObjectElement']();if(!_0x1533c0){const _0xf826c9=_0x5ae7b6['document']['selection']['getFirstRange']()['root'];_0x1533c0=_0x3b5fc3['_insertEmptyFootnotesDefinitionsContainer'](_0x52f3ed,_0xf826c9);}const _0x1ffce2=function(_0x28ac5e,_0x236cf6,_0x339b37){const _0x25ba36=Object['create'](null);for(const {item:_0x8f040e}of _0x28ac5e['createRangeIn'](_0x236cf6))if(_0x8f040e['is']('element','footnoteRef')){const _0x4206d3=_0x8f040e['getAttribute']('footnoteId');if(!_0x339b37(_0x4206d3))continue;_0x25ba36[_0x4206d3]||(_0x25ba36[_0x4206d3]=_0x17bb3f()),_0x28ac5e['setAttribute']('footnoteId',_0x25ba36[_0x4206d3],_0x8f040e);}return _0x25ba36;}(_0x52f3ed,_0x1c729c['content'],_0x2645ee=>!_0x54e416||null!==_0x3b5fc3['getFootnote'](_0x2645ee));for(const [_0x456b7c,_0x3f403b]of Object['entries'](_0x48c142)){const _0x475200=_0x1ffce2[_0x456b7c]||_0x456b7c,_0x58d057=_0x52f3ed['createElement']('footnoteDefinition',{'footnoteId':_0x475200}),_0x97e2f3=_0x309647['data']['htmlProcessor']['toView'](_0x3f403b),_0x53a1f1=_0x309647['data']['toModel'](_0x97e2f3,_0x58d057);_0x52f3ed['append'](_0x53a1f1,_0x58d057),_0x52f3ed['insert'](_0x58d057,_0x1533c0,'end');}_0x48c142=null;});});}}class i extends _0x1f3d21{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x608bd4}=this,{componentFactory:_0x322615}=_0x608bd4['ui'];_0x322615['add']('insertFootnote',x(_0x608bd4,_0x238c7e)),_0x322615['add']('menuBar:insertFootnote',x(_0x608bd4,_0x4d1176)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xd5da9c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x26d2c3;for(const _0x110132 in _0xd5da9c){const _0x362e41=_0x110132,_0x136afe=_0xd5da9c[_0x362e41];if('footnotesLicenseKeyValid'==_0x136afe||'footnotesLicenseKeyInvalid'==_0x136afe||'footnotesLicenseKeyExpired'==_0x136afe||'footnotesLicenseKeyDomainLimit'==_0x136afe||'footnotesLicenseKeyNotAllowed'==_0x136afe||'footnotesLicenseKeyEvaluationLimit'==_0x136afe||'footnotesLicenseKeyTrialLimit'==_0x136afe||'footnotesLicenseKeyUsageLimit'==_0x136afe){delete _0xd5da9c[_0x362e41],_0x26d2c3=_0x136afe,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x26d2c3&&_0xd5da9c['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x26d2c3&&_0xd5da9c['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x26d2c3&&_0xd5da9c['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x26d2c3&&_0xd5da9c['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x26d2c3&&_0xd5da9c['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x26d2c3&&_0xd5da9c['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x26d2c3&&_0xd5da9c['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x36f086,_0x19fd90){const _0x33dd57=_0x36f086['commands']['get']('insertFootnote');return _0x3d881b=>{const {t:t}=_0x3d881b,_0x1661d6=new _0x19fd90(_0x3d881b),_0xd6b79e=_0x1661d6 instanceof _0x4d1176;return _0x1661d6['bind']('isEnabled')['to'](_0x33dd57,'isEnabled'),_0x1661d6['set']({'label':t(_0xd6b79e?'Footnote':'Insert\x20footnote'),'icon':_0x205cc2,'tooltip':!0x0}),_0x1661d6['on']('execute',()=>{_0x33dd57['execute'](),_0x36f086['editing']['view']['focus']();}),_0x1661d6;};}class nt extends _0x1f3d21{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x278339{['refresh'](){const {editor:_0x33132d}=this,_0x4ba462=_0x33132d['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4ba462,this['value']=_0x4ba462?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x138af7}){const {editor:_0x1dc921}=this,_0x4b9645=_0x1dc921['plugins']['get'](c),_0x2ceb0f=_0x4b9645['getFootnotesDefinitionsObjectElement']();_0x2ceb0f&&Q['includes'](_0x138af7)&&_0x1dc921['model']['change'](_0x89b574=>{_0x89b574['setAttribute']('footnotesListStyle',_0x138af7,_0x2ceb0f),_0x4b9645['_updateFootnotesCounters'](_0x89b574);});}}class b extends _0x278339{['refresh'](){const {editor:_0x1a0e68}=this,_0x4f04eb=_0x1a0e68['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4f04eb,this['value']=_0x4f04eb?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x1bffb5}){const {editor:_0x4db566}=this,_0x49935b=_0x4db566['plugins']['get'](c),_0x1da13d=_0x49935b['getFootnotesDefinitionsObjectElement']();_0x1da13d&&Number['isInteger'](_0x1bffb5)&&_0x4db566['model']['change'](_0x1c9509=>{_0x1c9509['setAttribute']('footnotesListStart',_0x1bffb5,_0x1da13d),_0x49935b['_updateFootnotesCounters'](_0x1c9509);});}}class P extends _0x1f3d21{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x561014}=this;_0x561014['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x561014['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x561014['commands']['add']('footnotesStyle',new S(_0x561014)),_0x561014['commands']['add']('footnotesStart',new b(_0x561014)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x37c198}=this,{schema:_0x3dd664}=_0x37c198['model'];_0x3dd664['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x2b397e}=this,{conversion:_0x45cc80,model:_0x15d635}=_0x2b397e,{schema:_0x547799}=_0x15d635;_0x45cc80['for']('upcast')['add'](_0x1d76b3=>{_0x1d76b3['on']('element:ol',(_0x560998,_0x37f3c4,_0x1e45e0)=>{const _0xffccac=_0x37f3c4['viewItem'],_0x54cd1b=_0x37f3c4['modelCursor']?.['parent'];_0xffccac['hasClass']('footnotes-list')&&_0x54cd1b?.['is']('element','footnotesDefinitions')&&(function(_0x5068a9,_0x5ea8d2,_0x232ff2,_0x458d84){if(!_0x458d84['checkAttribute'](_0x5ea8d2,'footnotesListStart'))return;let _0x44553f=0x1;const _0x4055df=_0x232ff2['consumable']['consume'](_0x5068a9,{'attributes':'start'});if(_0x4055df){const _0x56ff29=Number['parseInt'](_0x5068a9['getAttribute']('start'),0xa);Number['isNaN'](_0x56ff29)||(_0x44553f=_0x56ff29);}!_0x4055df&&_0x5ea8d2['hasAttribute']('footnotesListStart')||_0x232ff2['writer']['setAttribute']('footnotesListStart',_0x44553f,_0x5ea8d2);}(_0xffccac,_0x54cd1b,_0x1e45e0,_0x547799),function(_0x29b99a,_0xef20f6,_0x35792c,_0x1f3e60){if(!_0x1f3e60['checkAttribute'](_0xef20f6,'footnotesListStyle'))return;let _0x21eb51='decimal',_0x19ad37=!0x1;if(_0x35792c['consumable']['consume'](_0x29b99a,{'attributes':'type'})){const _0xcdfb96={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x29b99a['getAttribute']('type')];_0xcdfb96&&(_0x21eb51=_0xcdfb96),_0x19ad37=!0x0;}_0x35792c['consumable']['consume'](_0x29b99a,{'styles':'list-style-type'})&&(_0x21eb51=_0x29b99a['getStyle']('list-style-type'),_0x19ad37=!0x0),!_0x19ad37&&_0xef20f6['hasAttribute']('footnotesListStyle')||_0x35792c['writer']['setAttribute']('footnotesListStyle',_0x21eb51,_0xef20f6);}(_0xffccac,_0x54cd1b,_0x1e45e0,_0x547799));});}),_0x45cc80['for']('downcast')['add'](_0x2bd269=>{_0x2bd269['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x27b70e,_0x1a417c,_0x1f35c8)=>{if(!_0x1f35c8['consumable']['consume'](_0x1a417c['item'],_0x27b70e['name']))return;const _0x596db0=C(_0x1a417c['item'],_0x1f35c8['mapper']),{attributeNewValue:_0x48d112}=_0x1a417c;null==_0x48d112||0x1===_0x48d112?_0x1f35c8['writer']['removeAttribute']('start',_0x596db0):_0x1f35c8['writer']['setAttribute']('start',String(_0x48d112),_0x596db0);}),_0x2bd269['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x3a5b7f,_0x2f584b,_0x548bcc)=>{if(!_0x548bcc['consumable']['consume'](_0x2f584b['item'],_0x3a5b7f['name']))return;const _0x18aa65=C(_0x2f584b['item'],_0x548bcc['mapper']),{attributeNewValue:_0x50e382}=_0x2f584b;_0x50e382&&'decimal'!==_0x50e382?_0x548bcc['writer']['setStyle']('list-style-type',_0x50e382,_0x18aa65):_0x548bcc['writer']['removeStyle']('list-style-type',_0x18aa65);});});}['_definePostfixer'](){const {editor:_0x22e5c0}=this,{model:_0x29e909}=_0x22e5c0,_0x575c9f=_0x22e5c0['plugins']['get'](c),_0x39547a=this['_getDefaultListStyle'](),_0x6ac73=this['_getDefaultStartIndex']();_0x29e909['document']['registerPostFixer'](_0x5a6203=>{const _0x14fcbe=_0x29e909['document']['differ']['getChanges']();let _0xd3fc56=!0x1;for(const _0x4e794d of _0x14fcbe){if('insert'!==_0x4e794d['type']||'$text'===_0x4e794d['name'])continue;const _0x8f210a=_0x29e909['createRangeOn'](_0x4e794d['position']['nodeAfter']);for(const _0x23f66c of _0x8f210a['getItems']())_0x23f66c['is']('element','footnotesDefinitions')&&(!_0x23f66c['hasAttribute']('footnotesListStart')&&_0x29e909['schema']['checkAttribute'](_0x23f66c,'footnotesListStart')&&(_0x5a6203['setAttribute']('footnotesListStart',_0x6ac73,_0x23f66c),_0xd3fc56=!0x0),!_0x23f66c['hasAttribute']('footnotesListStyle')&&_0x29e909['schema']['checkAttribute'](_0x23f66c,'footnotesListStyle')&&(_0x5a6203['setAttribute']('footnotesListStyle',_0x39547a,_0x23f66c),_0xd3fc56=!0x0));}return _0xd3fc56&&_0x575c9f['_updateFootnotesCounters'](_0x5a6203),_0xd3fc56;});}['_defineFormatter'](){const {editor:_0x5c3b8b}=this;_0x5c3b8b['plugins']['get'](c)['setFootnoteFormatter'](_0x1da184=>this['_formatFootnoteListValue'](_0x1da184));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x2f2db8,value:_0x1e21bc,digits:_0x564e10}){const _0x4ca9c7=_0x2f2db8['getAttribute']('footnotesListStyle'),_0x341d18=_0x2f2db8['getAttribute']('footnotesListStart'),_0x461047=Math['floor'](_0x1e21bc)+(_0x341d18??0x1)-0x1;switch(_0x4ca9c7){case'decimal-leading-zero':return function(_0x173b07,_0x3fb035){return String(_0x173b07)['padStart'](_0x3fb035,'0');}(_0x461047,Math['max'](0x2,_0x564e10));case'lower-alpha':case'lower-latin':return M(_0x461047,!0x1);case'upper-alpha':case'upper-latin':return M(_0x461047,!0x0);case'lower-roman':return V(_0x461047,!0x1);case'upper-roman':return V(_0x461047,!0x0);default:return String(_0x461047);}}}function C(_0x424d54,_0xe8daa4){const _0x2a4510=_0xe8daa4['toViewElement'](_0x424d54);return Array['from'](_0x2a4510['getChildren']())['find'](_0x42d8ab=>_0x42d8ab['is']('element','ol')&&_0x42d8ab['hasClass']('footnotes-list'));}function M(_0xddbe96,_0x27a58b){let _0xc79b90='',_0x282f5c=_0xddbe96;for(;_0x282f5c>0x0;){const _0x144d12=(_0x282f5c-0x1)%0x1a;_0xc79b90=String['fromCharCode'](0x61+_0x144d12)+_0xc79b90,_0x282f5c=Math['floor']((_0x282f5c-0x1)/0x1a);}return _0x27a58b?_0xc79b90['toUpperCase']():_0xc79b90;}const N=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function V(_0x475c04,_0x39e7ba){let _0xebec45='',_0x2a5f29=_0x475c04;for(const {value:_0x3b6daa,numeral:_0x545e2a}of N)for(;_0x2a5f29>=_0x3b6daa;)_0xebec45+=_0x545e2a,_0x2a5f29-=_0x3b6daa;return _0x39e7ba?_0xebec45:_0xebec45['toLowerCase']();}class H extends _0x13cfa5{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x5477af();['focusCycler'];constructor(_0x5b582f,{styleButtonViews:_0x3c11df,styleGridAriaLabel:_0x40d0e9}){super(_0x5b582f),(this['focusCycler']=new _0x5f207d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3c11df,_0x40d0e9),[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 _0x2338af of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x2338af['element']);_0x4bc2e2({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>rt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x912140=_0x33246b=>_0x33246b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x912140),this['keystrokes']['set']('arrowleft',_0x912140),this['keystrokes']['set']('arrowup',_0x912140),this['keystrokes']['set']('arrowdown',_0x912140);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x4d66bb,_0x5a92e1){const _0x55d831=new _0x13cfa5(this['locale']);return _0x55d831['children']=_0x55d831['createCollection'](),_0x55d831['children']['addMany'](_0x4d66bb),_0x55d831['setTemplate']({'tag':'div','attributes':{'aria-label':_0x5a92e1,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x55d831['children']}),_0x55d831['children']['delegate']('execute')['to'](this),_0x55d831['focus']=function(){for(const _0x5cfd27 of this['children'])if(_0x5cfd27 instanceof _0x238c7e&&_0x5cfd27['isOn'])return void _0x5cfd27['focus']();this['children']['first']['focus']();},_0x55d831['focusTracker']=new et(),_0x55d831['keystrokes']=new ot(),_0x55d831['render'](),_0x55d831['keystrokes']['listenTo'](_0x55d831['element']),this['children']['add'](_0x55d831),_0x55d831;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x296237=this['_createStartIndexPropertyView'](),_0x188b2f=[_0x296237],_0x433375=new tt(this['locale'],_0x188b2f);return _0x433375['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x433375['buttonView']['bind']('isEnabled')['toMany'](_0x188b2f,'isEnabled',(..._0x5ad8a7)=>_0x5ad8a7['some'](_0x215e75=>_0x215e75)),_0x433375['buttonView']['on']('change:isEnabled',(_0x26cce2,_0x4a0a84,_0x470508)=>{_0x470508||(_0x433375['isCollapsed']=!0x0);}),this['children']['add'](_0x433375),[_0x296237,_0x433375];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x10184e=new st(this['locale'],it);return _0x10184e['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x10184e['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x10184e['fieldView']['on']('input',()=>{const _0x42175c=_0x10184e['fieldView']['element'],_0x12685e=_0x42175c['valueAsNumber'];Number['isNaN'](_0x12685e)?_0x10184e['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x42175c['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x12685e}):_0x10184e['errorText']=t(_0x12685e<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x10184e;}}class j extends _0x1f3d21{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x37b4f6,_0x148e9e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1f67ff}=this,{componentFactory:_0x5b7294}=_0x1f67ff['ui'];_0x1f67ff['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x5b7294['add']('footnotesStyle',function(_0x4477dd){return _0x5dfb0e=>{const {t:t}=_0x5dfb0e,_0x56bcd0=_0x4477dd['commands']['get']('footnotesStyle'),_0x4e00f2=_0x5d7306(_0x5dfb0e),{buttonView:_0x5c1f69}=_0x4e00f2;return _0x4e00f2['class']='ck-footnotes-styles-dropdown',_0x4e00f2['bind']('isEnabled')['to'](_0x56bcd0,'isEnabled'),_0x5c1f69['set']({'label':t('Footnotes\x20style'),'icon':_0x205cc2,'tooltip':!0x0}),_0x4e00f2['once']('change:isOpen',()=>{const _0x3a4164=function({editor:_0x5985e8,dropdownView:_0xe0dcab}){const {t:t}=_0x5985e8['locale'],_0x53dd87=t('Footnotes\x20definitions\x20styles'),_0x122905=function(_0x563d8f){const t=_0x563d8f['locale']['t'],_0x39d6c5=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x2284b3},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x5b5fd6},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x2fb8f2},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x3bb33d},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x3379b4},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x159f95}];return _0x39d6c5['map'](function(_0x363434){const _0xc02cf4=_0x363434['locale'];return({label:_0x44072f,icon:_0x225b11,tooltip:_0x181a51,style:_0x4b6b9a})=>{const _0x1fa567=_0x363434['commands']['get']('footnotesStyle'),_0x13c288=new _0x238c7e(_0xc02cf4);return _0x13c288['set']({'label':_0x44072f,'icon':_0x225b11,'tooltip':_0x181a51}),_0x13c288['bind']('isOn')['to'](_0x1fa567,'value',_0x46aa04=>_0x46aa04===_0x4b6b9a),_0x13c288['bind']('isEnabled')['to'](_0x1fa567,'isEnabled'),_0x13c288['on']('execute',()=>{_0x363434['execute']('footnotesStyle',{'value':_0x4b6b9a}),_0x363434['editing']['view']['focus']();}),_0x13c288;};}(_0x563d8f));}(_0x5985e8),_0x1f45b1=new H(_0x5985e8['locale'],{'styleGridAriaLabel':_0x53dd87,'styleButtonViews':_0x122905});return _0x1f45b1['delegate']('execute')['to'](_0xe0dcab),_0x1f45b1['on']('footnotesListStart',(_0x3eae6a,_0x2e217d)=>{_0x5985e8['execute']('footnotesStart',{'value':_0x2e217d['startIndex']});}),_0x1f45b1;}({'editor':_0x4477dd,'dropdownView':_0x4e00f2});_0x4e00f2['panelView']['children']['add'](_0x3a4164);}),_0x4e00f2;};}(_0x1f67ff));}['afterInit'](){const {editor:_0x59ab5f}=this,{t:t}=_0x59ab5f['locale'],_0x291d46=_0x59ab5f['plugins']['get'](_0x148e9e),{defaultPositions:_0x54c364}=_0x2e5d73;_0x291d46['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x59ab5f['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0xc26f7d=>{let _0x408c50=_0xc26f7d['getFirstPosition']()?.['parent'];return _0x408c50?.['is']('$text')&&(_0x408c50=_0x408c50['parent']),_0x408c50?.['is']('element')?_0x408c50['findAncestor'](J):null;},'positions':[_0x54c364['southArrowNorth'],_0x54c364['southArrowNorthMiddleWest'],_0x54c364['southArrowNorthMiddleEast'],_0x54c364['southArrowNorthWest'],_0x54c364['southArrowNorthEast'],_0x54c364['northArrowSouth'],_0x54c364['northArrowSouthMiddleWest'],_0x54c364['northArrowSouthMiddleEast'],_0x54c364['northArrowSouthWest'],_0x54c364['northArrowSouthEast'],_0x54c364['viewportStickyNorth']]});}}class lt extends _0x1f3d21{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,lt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,b as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w as InsertFootnoteCommand};
23
+ import{Plugin as _0x455464,Command as _0x55ead5}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x1a1d9c,isWidget as _0x1899ef,toWidgetEditable as _0xad70b7,WidgetToolbarRepository as _0x4ed730}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x193af1,logWarning as _0x506bf5,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x1e3809,ClickObserver as _0x4bd884}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x5e02c7}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x2f467e,ButtonView as _0x3fc837,View as _0x16ec18,ViewCollection as _0x24d7eb,FocusCycler as _0x3fac62,addKeyboardHandlingForGrid as _0x30afc3,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x58e7ed,BalloonPanelView as _0x4f2f53,createDropdown as _0x25312a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x28343b,IconListStyleDecimal as _0x2fe3d9,IconListStyleDecimalLeadingZero as _0xfa77b3,IconListStyleLowerRoman as _0x56fe8c,IconListStyleUpperRoman as _0x2c3adb,IconListStyleLowerLatin as _0x20b999,IconListStyleUpperLatin as _0x4c7353}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x5dd4a4,_0x3e2910){this['_model']=_0x5dd4a4,this['_elementName']=_0x3e2910['elementName'],this['_getElementKey']=_0x3e2910['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x1db99d){const _0x88cd2=new Set(),_0xdef548=new Map();for(const _0x315e9a of _0x1db99d){if('insert'===_0x315e9a['type']&&'$text'!==_0x315e9a['name']&&_0x315e9a['position']['nodeAfter']){const _0x382697=this['_model']['createRangeOn'](_0x315e9a['position']['nodeAfter']);for(const _0x4f55dd of _0x382697['getItems']()){if(!_0x4f55dd['is']('element',this['_elementName']))continue;const _0x444606=this['_getElementKey'](_0x4f55dd);_0xdef548['has'](_0x444606)||_0xdef548['set'](_0x444606,[]),_0xdef548['get'](_0x444606)['push'](_0x4f55dd);}}if('remove'===_0x315e9a['type']&&_0x315e9a['name']===this['_elementName']){const _0x4d2b7b=this['_getElementKey']({'getAttribute':_0xd6a87b=>_0x315e9a['attributes']['get'](_0xd6a87b)});_0x88cd2['add'](_0x4d2b7b);}}for(const [_0x3e8905,_0x5a9055]of this['_trackedElements'])'$graveyard'===_0x5a9055['root']['rootName']&&_0x88cd2['add'](_0x3e8905);for(const _0x9cf9a7 of _0x88cd2)this['_trackedElements']['delete'](_0x9cf9a7);for(const [_0x37ba7d,_0x17f5f6]of _0xdef548)this['_trackedElements']['set'](_0x37ba7d,_0x17f5f6[_0x17f5f6['length']-0x1]);const _0x57f870=new Set();for(const [_0x23b706,_0x4e0109]of _0xdef548)_0x88cd2['has'](_0x23b706)&&(_0x57f870['add'](_0x4e0109[0x0]),_0x4e0109['length']>0x1?_0xdef548['set'](_0x23b706,_0x4e0109['slice'](0x1)):_0xdef548['delete'](_0x23b706),_0x88cd2['delete'](_0x23b706));return{'removed':Array['from'](_0x88cd2),'inserted':Array['from'](_0xdef548['values']())['flat'](),'moved':Array['from'](_0x57f870)};}}class c extends _0x455464{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17b1e5){super(_0x17b1e5),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x5767a5=>_0x5767a5['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x32ea99=>_0x32ea99['getAttribute']('footnoteId')});}['init'](){const {editor:_0x436c20}=this,{model:_0x33ef80,data:_0x2c789f}=_0x436c20;_0x33ef80['document']['registerPostFixer'](_0x583b63=>{const _0x5be11a=_0x33ef80['document']['differ']['getChanges']();let _0x15fad8=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x583b63,_0x5be11a)&&(_0x15fad8=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x583b63,_0x5be11a)&&(_0x15fad8=!0x0),this['_handleFootnoteReferencesChanges'](_0x583b63,_0x5be11a)&&(_0x15fad8=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x583b63)&&(_0x15fad8=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x583b63)&&(_0x15fad8=!0x0),this['_sortFootnoteDefinitions'](_0x583b63)&&(_0x15fad8=!0x0),_0x15fad8;}),this['listenTo'](_0x33ef80['document'],'change:data',()=>{_0x33ef80['enqueueChange']({'isUndoable':!0x1},_0x129e01=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x129e01);});},{'priority':'low'}),this['listenTo'](_0x2c789f,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x1fd8bd){return this['_footnotes']['find'](_0xc6803a=>_0xc6803a['id']===_0x1fd8bd)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x13e601){this['_footnoteFormatter']=_0x13e601;}['_updateFootnotesCounters'](_0x3bb88b,_0x382192=0x0){let _0x2fd6ba=!0x1;for(let _0x1c3a4e=_0x382192;_0x1c3a4e<this['_footnotes']['length'];_0x1c3a4e++)this['_updateFootnoteRefCounter'](_0x3bb88b,_0x1c3a4e)&&(_0x2fd6ba=!0x0);return _0x2fd6ba;}['_insertEmptyFootnotesDefinitionsContainer'](_0x346c96,_0x129499){const _0x16d616=_0x346c96['createElement']('footnotesDefinitions',{});return _0x346c96['append'](_0x16d616,_0x129499),this['_footnotesDefinitions']=_0x16d616,_0x16d616;}['_ensureFootnotesDefinitionsContainerExists'](_0x4759e7){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x654630=this['_footnotes'][0x0]['reference']['root'],_0x3f31a6=this['_insertEmptyFootnotesDefinitionsContainer'](_0x4759e7,_0x654630);for(const _0x71eca3 of this['_footnotes'])_0x71eca3['definition']['parent']||_0x4759e7['insert'](_0x71eca3['definition'],_0x3f31a6,'end');this['_updateFootnotesCounters'](_0x4759e7);}['_handleFootnotesDefinitionsObjectChanges'](_0x565c86,_0x395871){let _0x4d12d6=!0x1;const {inserted:_0x6e078,removed:_0x590d81,moved:_0x1393fe}=this['_footnoteDefsContainerTracker']['getChanges'](_0x395871);if(_0x1393fe['length']&&(this['_footnotesDefinitions']=_0x1393fe[0x0]),_0x6e078['length']){if(_0x6e078['length']>0x1||this['_footnotesDefinitions']&&_0x6e078['some'](_0x54c72c=>_0x54c72c!==this['_footnotesDefinitions'])){const _0x2f931c=_0x565c86['createElement']('footnotesDefinitions',{}),_0x17a397=[];this['_footnotesDefinitions']&&_0x17a397['push'](this['_footnotesDefinitions']),_0x17a397['push'](..._0x6e078),_0x565c86['insert'](_0x2f931c,_0x17a397[0x0],'before');for(const _0x558056 of _0x17a397)_0x565c86['move'](_0x565c86['createRangeIn'](_0x558056),_0x565c86['createPositionAt'](_0x2f931c,'end')),_0x565c86['remove'](_0x558056);this['_footnotesDefinitions']=_0x2f931c,this['_updateFootnotesCounters'](_0x565c86),_0x4d12d6=!0x0;}else this['_footnotesDefinitions']=_0x6e078[0x0];}if(_0x590d81['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x327c70 of this['_footnotes'])_0x565c86['remove'](_0x327c70['reference']),_0x4d12d6=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x4d12d6;}['_handleFootnoteDefinitionsChanges'](_0x3fc42e,_0x1fc074){let _0x52bb66=!0x1;const _0x549dd4=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x39a799,moved:_0x4ab14a}=this['_footnoteDefsTracker']['getChanges'](_0x1fc074);for(const _0x4228ca of[..._0x4ab14a,..._0x39a799]){const _0x3827e0=_0x4228ca['getAttribute']('footnoteId'),_0x1322d4=this['getFootnote'](_0x3827e0);_0x1322d4&&(_0x1322d4['definition']=_0x4228ca),_(_0x3fc42e,_0x549dd4,_0x4228ca)&&(_0x52bb66=!0x0);}return _0x52bb66;}['_handleFootnoteReferencesChanges'](_0x2f41bc,_0x526471){let _0x4e8448=!0x1;const {removed:_0x15b4c6,inserted:_0x2cc714,moved:_0x400387}=this['_footnoteRefsTracker']['getChanges'](_0x526471);for(const _0x13ea99 of _0x15b4c6)this['_handleRemoveFootnoteReferenceById'](_0x2f41bc,_0x13ea99)&&(_0x4e8448=!0x0);for(const _0x4e7d2c of _0x2cc714)this['_handleInsertedFootnoteReference'](_0x2f41bc,_0x4e7d2c)&&(_0x4e8448=!0x0);for(const _0x422650 of _0x400387)this['_handleMovedFootnoteReference'](_0x2f41bc,_0x422650)&&(_0x4e8448=!0x0);return _0x4e8448;}['_handleFootnotesDefinitionsObjectSync'](_0x9bce22){if(!this['_footnotesDefinitions'])return!0x1;let _0x2966d0=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x2b247c=[];for(const _0x5c5880 of this['_footnotesDefinitions']['getChildren']()){const _0x23d3ea=_0x5c5880['getAttribute']('footnoteId');this['getFootnote'](_0x23d3ea)||(_0x2b247c['unshift'](_0x5c5880),_0x2966d0=!0x0);}for(const _0x3edcc1 of _0x2b247c)_0x9bce22['remove'](_0x3edcc1);}const _0x377b21=new Set(),_0x400c7d=[];for(const _0x21ac01 of this['_footnotesDefinitions']['getChildren']()){const _0x964e62=_0x21ac01['getAttribute']('footnoteId');_0x377b21['has'](_0x964e62)?(_0x400c7d['unshift'](_0x21ac01),_0x2966d0=!0x0):_0x377b21['add'](_0x964e62);}for(const _0x1f1b72 of _0x400c7d)_0x9bce22['remove'](_0x1f1b72);return this['_footnotesDefinitions']['childCount']||(_0x9bce22['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x2966d0=!0x0),_0x2966d0;}['_handleInsertedFootnoteReference'](_0x267005,_0x18be13){if(this['_footnotes']['find'](_0x340f5f=>_0x340f5f['reference']===_0x18be13))return!0x1;let _0x7879d=!0x1;const _0x30ea7f=_0x18be13['getAttribute']('footnoteId'),_0x4688ab=this['_footnotes']['findIndex'](_0x5bb9fc=>_0x5bb9fc['id']===_0x30ea7f);-0x1!==_0x4688ab&&(_0x267005['remove'](this['_footnotes'][_0x4688ab]['reference']),this['_footnotes']['splice'](_0x4688ab,0x1),_0x7879d=!0x0);let _0x533164=this['_footnotesDefinitions']?function(_0x269cb8,_0x3777b7){for(const _0x2f5855 of _0x269cb8['getChildren']())if(_0x2f5855['getAttribute']('footnoteId')===_0x3777b7)return _0x2f5855;return null;}(this['_footnotesDefinitions'],_0x30ea7f):null;_0x533164||(_0x533164=_0x267005['createElement']('footnoteDefinition',{'footnoteId':_0x30ea7f}),this['_footnotesDefinitions']&&(_0x267005['insert'](_0x533164,this['_footnotesDefinitions'],'end'),_0x7879d=!0x0));const _0x52c95c={'id':_0x30ea7f,'reference':_0x18be13,'definition':_0x533164},_0x5ac1e7=I(this['editor']['model'],this['_footnotes'],_0x18be13);this['_footnotes']['splice'](_0x5ac1e7,0x0,_0x52c95c);let _0x286eaf=_0x5ac1e7;return-0x1!==_0x4688ab&&(_0x286eaf=Math['min'](_0x5ac1e7,_0x4688ab)),this['_updateFootnotesCounters'](_0x267005,_0x286eaf)&&(_0x7879d=!0x0),_0x7879d;}['_handleRemoveFootnoteReferenceById'](_0x1d4eb3,_0x3e03b3){const _0x4644b7=this['_footnotes']['findIndex'](_0x355138=>_0x355138['id']===_0x3e03b3);if(-0x1===_0x4644b7)return!0x1;let _0x4ea80d=!0x1;const _0x2ddc28=this['_footnotes'][_0x4644b7];return'$graveyard'!==_0x2ddc28['definition']['root']['rootName']&&(_0x1d4eb3['remove'](_0x2ddc28['definition']),_0x4ea80d=!0x0),this['_footnotes']['splice'](_0x4644b7,0x1),this['_updateFootnotesCounters'](_0x1d4eb3,_0x4644b7)&&(_0x4ea80d=!0x0),_0x4ea80d;}['_handleMovedFootnoteReference'](_0xc3dbdb,_0x26a63d){const _0x532f84=_0x26a63d['getAttribute']('footnoteId'),_0x472125=this['_footnotes']['findIndex'](_0x809d26=>_0x809d26['id']===_0x532f84),_0x1cb466=this['_footnotes'][_0x472125];let _0x55117b=!0x1;_0x1cb466['reference']=_0x26a63d,this['_footnotes']['splice'](_0x472125,0x1);const _0x2b626e=I(this['editor']['model'],this['_footnotes'],_0x26a63d);return this['_footnotes']['splice'](_0x2b626e,0x0,_0x1cb466),this['_updateFootnotesCounters'](_0xc3dbdb,Math['min'](_0x472125,_0x2b626e))&&(_0x55117b=!0x0),_0x55117b;}['_updateFootnoteRefCounter'](_0x489b83,_0x3e54ad){if(!this['_footnotesDefinitions'])return!0x1;const _0x2c4878=this['_footnotes'][_0x3e54ad];let _0x19bc36;return _0x19bc36=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x2c4878,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x3e54ad+0x1}):String(_0x3e54ad+0x1),_0x2c4878['reference']['getAttribute']('footnoteCounter')!=_0x19bc36&&(_0x489b83['setAttribute']('footnoteCounter',_0x19bc36,_0x2c4878['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x276d80){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x17c380,_0x4f6ae5){if(_0x17c380['length']!==_0x4f6ae5['length'])return!0x1;for(let _0x1c2d1b=0x0;_0x1c2d1b<_0x17c380['length'];_0x1c2d1b++)if(_0x17c380[_0x1c2d1b]!==_0x4f6ae5[_0x1c2d1b])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x465d1b=>_0x465d1b['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x6f709d=>_0x6f709d['getAttribute']('footnoteId'))))return!0x1;let _0x17b944=!0x1;for(let _0x1176cd=0x0;_0x1176cd<this['_footnotes']['length'];_0x1176cd++){const _0x447806=this['_footnotes'][_0x1176cd],_0x2712a4=_0x276d80['createPositionBefore'](_0x447806['definition']),_0x501571=_0x276d80['createPositionAt'](this['_footnotesDefinitions'],_0x1176cd);_0x2712a4['isEqual'](_0x501571)||(_0x276d80['move'](_0x276d80['createRangeOn'](_0x447806['definition']),_0x501571),_0x17b944=!0x0);}return _0x17b944;}['_ensureFootnotesReferencesHaveProperOrder'](_0x3c6a3b){if(!this['_footnotes']['length'])return!0x1;const {model:_0x3047f1}=this['editor'];let _0x285310=!0x1;for(let _0x12c04f=0x0;_0x12c04f<this['_footnotes']['length']-0x1;_0x12c04f++){const _0x4312a2=this['_footnotes'][_0x12c04f],_0x1b0e36=this['_footnotes'][_0x12c04f+0x1],_0x4654f0=_0x3047f1['createPositionBefore'](_0x4312a2['reference']),_0x35bd41=_0x3047f1['createPositionBefore'](_0x1b0e36['reference']);'after'===_0x4654f0['compareWith'](_0x35bd41)&&(this['_handleMovedFootnoteReference'](_0x3c6a3b,_0x4312a2['reference']),_0x12c04f=-0x1,_0x285310=!0x0);}return _0x285310;}}function _(_0x2d0e18,_0x4705cb,_0x2f5c93){if(_0x2f5c93['childCount'])return!0x1;const _0x230218=_0x4705cb?'paragraph':'footnoteInlineContent';return _0x2d0e18['insert'](_0x2d0e18['createElement'](_0x230218),_0x2f5c93),!0x0;}function I(_0x14ffda,_0x3a9904,_0x182b6f){if(0x0===_0x3a9904['length'])return 0x0;const _0x325abd=_0x14ffda['createPositionBefore'](_0x182b6f);for(let _0x1c54fa=0x0;_0x1c54fa<_0x3a9904['length'];_0x1c54fa++){const _0x490519=_0x3a9904[_0x1c54fa],_0x3a8aa4=_0x14ffda['createPositionBefore'](_0x490519['reference']);if('before'===_0x325abd['compareWith'](_0x3a8aa4))return _0x1c54fa;}const _0x55bf47=_0x182b6f['root'];let _0x5ee60f=-0x1;for(let _0x1d4d51=_0x3a9904['length']-0x1;_0x1d4d51>=0x0;_0x1d4d51--)if(_0x3a9904[_0x1d4d51]['reference']['root']===_0x55bf47){_0x5ee60f=_0x1d4d51;break;}if(-0x1!==_0x5ee60f)return _0x5ee60f+0x1;const _0x14d759=_0x14ffda['document']['getRootNames'](),_0x1cb8c0=_0x14d759['indexOf'](_0x55bf47['rootName']),_0x20a3bf=_0x14d759[_0x1cb8c0+0x1];if(_0x20a3bf){for(let _0x232a25=0x0;_0x232a25<_0x3a9904['length'];_0x232a25++)if(_0x3a9904[_0x232a25]['reference']['root']['rootName']===_0x20a3bf)return _0x232a25;}return _0x3a9904['length'];}class w extends _0x55ead5{['refresh'](){const _0x1903b2=this['editor']['model']['document']['selection'],_0xf9d889=this['_getPositionToInsertFootnote'](_0x1903b2);this['isEnabled']=!!_0xf9d889;}['execute'](_0x59ffed){const {editor:_0x6dd101}=this,{model:_0x5e0c86}=_0x6dd101,{selection:_0x427f7d}=_0x5e0c86['document'],_0x2eae69=this['_getPositionToInsertFootnote'](_0x427f7d);if(!_0x2eae69)return;const _0x119c74=_0x6dd101['plugins']['get']('FootnotesEditing'),_0x5b3f14=_0x59ffed?.['footnoteId']??_0x193af1();!function(_0x345a0f){return'string'==typeof _0x345a0f&&_0x345a0f['length']>0x0&&!/\s/['test'](_0x345a0f)&&!/^\d/['test'](_0x345a0f);}(_0x5b3f14)?_0x506bf5('insert-footnote-command-executed-with-invalid-id'):(_0x5e0c86['change'](_0x339efd=>{const _0x792f17=_0x339efd['createElement']('footnoteRef',{'footnoteId':_0x5b3f14});_0x5e0c86['insertObject'](_0x792f17,_0x2eae69,null);}),_0x119c74['_moveSelectionToFootnoteDefinition'](_0x5b3f14));}['_getPositionToInsertFootnote'](_0x29d70a){const {model:_0x42b94c}=this['editor'],{schema:_0x22d32d}=_0x42b94c,_0x850313=_0x29d70a['getFirstRange']();for(const _0xa88d15 of _0x850313['getItems']())if(_0x22d32d['isBlock'](_0xa88d15)||_0x22d32d['isObject'](_0xa88d15))return null;const _0xc4b61=_0x850313['end'];return _0x22d32d['checkChild'](_0xc4b61,'footnoteRef')?_0xc4b61:null;}}class r extends _0x455464{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x32259d}=this;_0x32259d['config']['define']('footnotes.multiBlock',!0x0),_0x32259d['commands']['add']('insertFootnote',new w(_0x32259d)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x59df0a){const _0x20b26b=_0x49da89([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]),_0x2596a1=0x47a28506,_0x4af3f4=0x47a5f2f6^_0x2596a1,_0x38c8d2=window[_0x49da89([0x44,0x61,0x74,0x65])][_0x49da89([0x6e,0x6f,0x77])](),_0x537bc5=_0x59df0a[_0x49da89([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a9025=new window[(_0x49da89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x163591=>{_0x537bc5[_0x49da89([0x6f,0x6e,0x63,0x65])](_0x49da89([0x72,0x65,0x61,0x64,0x79]),_0x163591);}),_0x4d3a05={[_0x49da89([0x6b,0x74,0x79])]:_0x49da89([0x45,0x43]),[_0x49da89([0x75,0x73,0x65])]:_0x49da89([0x73,0x69,0x67]),[_0x49da89([0x63,0x72,0x76])]:_0x49da89([0x50,0x2d,0x32,0x35,0x36]),[_0x49da89([0x78])]:_0x49da89([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]),[_0x49da89([0x79])]:_0x49da89([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]),[_0x49da89([0x61,0x6c,0x67])]:_0x49da89([0x45,0x53,0x32,0x35,0x36])},_0x2852d4=_0x537bc5[_0x49da89([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x49da89([0x67,0x65,0x74])](_0x49da89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4ded3e(){let _0x2acd51,_0x50ebef=null,_0x2f17da=null;try{if(_0x2852d4==_0x49da89([0x47,0x50,0x4c]))return _0x49da89([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2acd51=_0x37b1f2(),!_0x2acd51)return _0x49da89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2acd51[_0x49da89([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f17da=_0x51c96b(_0x2acd51[_0x49da89([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2acd51[_0x49da89([0x6a,0x74,0x69])])),await _0x19f371()?_0x537923()?_0x1105c6()?_0x49da89([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x596104()?(_0x2acd51[_0x49da89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49da89([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x50ebef=_0x97713e(_0x49da89([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2acd51[_0x49da89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49da89([0x74,0x72,0x69,0x61,0x6c])&&(_0x50ebef=_0x97713e(_0x49da89([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1d9ac7()):_0x49da89([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x49da89([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x49da89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x49da89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1105c6(){const _0x40e194=[_0x49da89([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x49da89([0x74,0x72,0x69,0x61,0x6c])][_0x49da89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2acd51[_0x49da89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x38c8d2/0x3e8:0xe10*_0x4af3f4;return _0x2acd51[_0x49da89([0x65,0x78,0x70])]<_0x40e194;}function _0x537923(){const _0x17573b=_0x2acd51[_0x49da89([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17573b&&(!!_0x17573b[_0x49da89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49da89([0x2a]))||!!_0x17573b[_0x49da89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49da89([0x46,0x4f,0x4f])));}function _0x596104(){const _0xd3b92f=_0x2acd51[_0x49da89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xd3b92f||0x0==_0xd3b92f[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x55a44e}=new URL(window[_0x49da89([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xd3b92f[_0x49da89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a44e))return!0x0;const _0x2f804a=_0x55a44e[_0x49da89([0x73,0x70,0x6c,0x69,0x74])](_0x49da89([0x2e]));return _0xd3b92f[_0x49da89([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f094a=>_0x3f094a[_0x49da89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49da89([0x2a])))[_0x49da89([0x6d,0x61,0x70])](_0x1821e5=>_0x1821e5[_0x49da89([0x73,0x70,0x6c,0x69,0x74])](_0x49da89([0x2e])))[_0x49da89([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x322103=>_0x322103[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2f804a[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x49da89([0x6d,0x61,0x70])](_0x491d60=>Array(_0x2f804a[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x491d60[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x49da89([0x66,0x69,0x6c,0x6c])](_0x491d60[0x0]===_0x49da89([0x2a])?_0x49da89([0x2a]):'')[_0x49da89([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x491d60))[_0x49da89([0x73,0x6f,0x6d,0x65])](_0x26df4d=>_0x2f804a[_0x49da89([0x65,0x76,0x65,0x72,0x79])]((_0x3e1109,_0x3b764a)=>_0x26df4d[_0x3b764a]===_0x3e1109||_0x26df4d[_0x3b764a]===_0x49da89([0x2a])));}function _0x1d9ac7(){return _0x50ebef&&_0x2f17da?new window[(_0x49da89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1bf3ca,_0x3b98a4)=>{_0x50ebef[_0x49da89([0x74,0x68,0x65,0x6e])](_0x1bf3ca,_0x3b98a4),_0x2f17da[_0x49da89([0x74,0x68,0x65,0x6e])](_0x4f0263=>{_0x4f0263!=_0x49da89([0x56,0x61,0x6c,0x69,0x64])&&_0x1bf3ca(_0x4f0263);},_0x3b98a4);}):_0x50ebef||_0x2f17da||_0x49da89([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51c96b(_0x770750,_0x448cda){return new window[(_0x49da89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15f290=>{if(_0x554afb())return _0x15f290(_0x49da89([0x56,0x61,0x6c,0x69,0x64]));_0x3c78ce(),_0x537bc5[_0x49da89([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x49da89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x347250=!0x1;const _0xf8030f=_0x193af1();function _0x57826d(_0x12c5eb){return!!_0x12c5eb&&(typeof _0x12c5eb===_0x49da89([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x12c5eb===_0x49da89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x12c5eb[_0x49da89([0x74,0x68,0x65,0x6e])]===_0x49da89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x12c5eb[_0x49da89([0x63,0x61,0x74,0x63,0x68])]===_0x49da89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a9078(_0xee9c6c){_0x1b24c2(_0xee9c6c)[_0x49da89([0x74,0x68,0x65,0x6e])](_0x23c51a=>{if(!_0x23c51a||_0x23c51a[_0x49da89([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x49da89([0x6f,0x6b]))return _0x49da89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5726fc(_0x1ffca4(_0xf8030f+_0x448cda))!=_0x23c51a[_0x49da89([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x49da89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x49da89([0x56,0x61,0x6c,0x69,0x64]);})[_0x49da89([0x74,0x68,0x65,0x6e])](_0x4fee06=>(_0x133fc5(),_0x4fee06),()=>{const _0x47a4d3=_0x26feec();return null==_0x47a4d3?(_0x133fc5(),_0x49da89([0x56,0x61,0x6c,0x69,0x64])):_0x49da89(_0x38c8d2-_0x47a4d3>(0x63ae0106^_0x2596a1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x49da89([0x74,0x68,0x65,0x6e])](_0x15f290)[_0x49da89([0x63,0x61,0x74,0x63,0x68])](()=>{_0x15f290(_0x49da89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x153a35=0x47946b86^_0x2596a1;function _0x133fc5(){const _0x47ef7e=_0x49da89([0x6c,0x6c,0x63,0x74,0x2d])+_0x5726fc(_0x1ffca4(_0x770750)),_0x2c5f7e=_0x4477ec(_0x5726fc(window[_0x49da89([0x4d,0x61,0x74,0x68])][_0x49da89([0x63,0x65,0x69,0x6c])](_0x38c8d2/_0x153a35)));window[_0x49da89([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49da89([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x47ef7e,_0x2c5f7e);}function _0x26feec(){const _0x57afc9=_0x49da89([0x6c,0x6c,0x63,0x74,0x2d])+_0x5726fc(_0x1ffca4(_0x770750)),_0x420cc3=window[_0x49da89([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49da89([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57afc9);return _0x420cc3?window[_0x49da89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4477ec(_0x420cc3),0x10)*_0x153a35:null;}function _0x1b24c2(_0x53de8e){return new window[(_0x49da89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x29549d,_0x1eda6c)=>{_0x53de8e[_0x49da89([0x74,0x68,0x65,0x6e])](_0x29549d,_0x1eda6c),window[_0x49da89([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1eda6c,0x47a351c6^_0x2596a1);});}}_0x537bc5[_0x49da89([0x6f,0x6e])](_0x49da89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x542378,_0xa0600b)=>{if(_0xa0600b[0x0]!=_0x770750)return _0x15f290(_0x49da89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa0600b[0x1]={..._0xa0600b[0x1],[_0x49da89([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xf8030f};},{[_0x49da89([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49da89([0x68,0x69,0x67,0x68])}),_0x537bc5[_0x49da89([0x6f,0x6e])](_0x49da89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ae17b=>{_0x57826d(_0x3ae17b[_0x49da89([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x347250=!0x0,_0x5a9078(_0x3ae17b[_0x49da89([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x49da89([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49da89([0x6c,0x6f,0x77])}),_0x1a9025[_0x49da89([0x74,0x68,0x65,0x6e])](()=>{_0x347250||_0x15f290(_0x49da89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x554afb(){return _0x537bc5[_0x49da89([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49da89([0x76,0x69,0x65,0x77])][_0x49da89([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x49da89([0x61,0x75,0x74,0x6f]);}function _0x3c78ce(){_0x537bc5[_0x49da89([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49da89([0x76,0x69,0x65,0x77])][_0x49da89([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49da89([0x61,0x75,0x74,0x6f]);}}function _0x97713e(_0x386cd7){const _0x5c9c82=[new window[(_0x49da89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bb86f=>setTimeout(_0x1bb86f,0x47abbbca^_0x2596a1)),_0x1a9025[_0x49da89([0x74,0x68,0x65,0x6e])](()=>new window[(_0x49da89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f2199=>{let _0x1fdd7b=0x0;_0x537bc5[_0x49da89([0x6d,0x6f,0x64,0x65,0x6c])][_0x49da89([0x6f,0x6e])](_0x49da89([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x458468,_0x57ebe5)=>{_0x57ebe5[0x0][_0x49da89([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1fdd7b++,_0x1fdd7b==(0x47a284fe^_0x2596a1)&&(_0x2f2199(),_0x458468[_0x49da89([0x6f,0x66,0x66])]());});}))];return window[_0x49da89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49da89([0x72,0x61,0x63,0x65])](_0x5c9c82)[_0x49da89([0x74,0x68,0x65,0x6e])](()=>_0x386cd7);}async function _0x57571c(){await _0x1a9025,_0x537bc5[_0x49da89([0x6d,0x6f,0x64,0x65,0x6c])][_0x49da89([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1abd61,_0x537bc5[_0x49da89([0x6d,0x6f,0x64,0x65,0x6c])][_0x49da89([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1abd61,_0x537bc5[_0x49da89([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x49da89([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5184f6(_0x56b190){const _0x15cbbb=_0x40cc9b();_0x537bc5[_0x15cbbb]=_0x49da89([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x56b190,_0x56b190!=_0x49da89([0x56,0x61,0x6c,0x69,0x64])&&_0x57571c();}function _0x40cc9b(){const _0x527a5e=window[_0x49da89([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x49da89([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x49da89([0x6e,0x6f,0x77])]())[_0x49da89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x49da89([0x2e]),'');let _0x3248ba=_0x49da89([0x75]);for(let _0x40e932=0x0;_0x40e932<_0x527a5e[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40e932+=0x2){let _0xda8680=window[_0x49da89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x527a5e[_0x49da89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40e932,_0x40e932+0x2));_0xda8680>=_0x20b26b[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xda8680-=_0x20b26b[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3248ba+=_0x20b26b[_0xda8680];}return _0x3248ba;}function _0x37b1f2(){const _0x3816c8=_0x2852d4[_0x49da89([0x73,0x70,0x6c,0x69,0x74])](_0x49da89([0x2e]));if(0x3!=_0x3816c8[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x308292(_0x3816c8[0x1]);function _0x308292(_0xc0d97c){const _0xa2872=_0x16e5f4(_0xc0d97c);return _0xa2872&&_0x5df41c()?_0xa2872:null;function _0x5df41c(){const _0x4ec775=_0xa2872[_0x49da89([0x6a,0x74,0x69])],_0x624045=window[_0x49da89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ec775[_0x49da89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ec775[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1084c1={..._0xa2872,[_0x49da89([0x6a,0x74,0x69])]:_0x4ec775[_0x49da89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ec775[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1084c1[_0x49da89([0x76,0x63])],_0x1ffca4(_0x1084c1)==_0x624045;}}}async function _0x19f371(){let _0x1e51cd=!0x0;try{const _0x40f34b=_0x2852d4[_0x49da89([0x73,0x70,0x6c,0x69,0x74])](_0x49da89([0x2e])),[_0x2b6a7a,_0x2f6dcb,_0x51eb9b]=_0x40f34b;return _0xc5ac4a(_0x2b6a7a),await _0x58bdfb(_0x2b6a7a,_0x2f6dcb,_0x51eb9b),_0x1e51cd;}catch{return!0x1;}function _0xc5ac4a(_0x4c0aae){const _0x2ca878=_0x16e5f4(_0x4c0aae);_0x2ca878&&_0x2ca878[_0x49da89([0x61,0x6c,0x67])]==_0x49da89([0x45,0x53,0x32,0x35,0x36])||(_0x1e51cd=!0x1);}async function _0x58bdfb(_0x1b1b6a,_0x405580,_0x22d2ff){const _0x556af1=window[_0x49da89([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x49da89([0x66,0x72,0x6f,0x6d])](_0x1d9822(_0x22d2ff),_0x281b86=>_0x281b86[_0x49da89([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1028a0=new window[(_0x49da89([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x49da89([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1b1b6a+_0x49da89([0x2e])+_0x405580),_0x1566ee=window[_0x49da89([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x49da89([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1566ee)return;const _0x3f897a=await _0x1566ee[_0x49da89([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x49da89([0x6a,0x77,0x6b]),_0x4d3a05,{[_0x49da89([0x6e,0x61,0x6d,0x65])]:_0x49da89([0x45,0x43,0x44,0x53,0x41]),[_0x49da89([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x49da89([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x49da89([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1566ee[_0x49da89([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x49da89([0x6e,0x61,0x6d,0x65])]:_0x49da89([0x45,0x43,0x44,0x53,0x41]),[_0x49da89([0x68,0x61,0x73,0x68])]:{[_0x49da89([0x6e,0x61,0x6d,0x65])]:_0x49da89([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3f897a,_0x556af1,_0x1028a0)||(_0x1e51cd=!0x1);}}function _0x16e5f4(_0x3b4dfd){return _0x3b4dfd[_0x49da89([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x49da89([0x65,0x79]))?JSON[_0x49da89([0x70,0x61,0x72,0x73,0x65])](_0x1d9822(_0x3b4dfd)):null;}function _0x1d9822(_0x1b692){return window[_0x49da89([0x61,0x74,0x6f,0x62])](_0x1b692[_0x49da89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x49da89([0x2b]))[_0x49da89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x49da89([0x2f])));}function _0x1ffca4(_0x1cf9c7){let _0x2df3c4=0x1505;function _0x3caa18(_0x19224a){for(let _0x4400f3=0x0;_0x4400f3<_0x19224a[_0x49da89([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4400f3++){const _0x24b752=_0x19224a[_0x49da89([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4400f3);_0x2df3c4=(_0x2df3c4<<0x5)+_0x2df3c4+_0x24b752,_0x2df3c4&=_0x2df3c4;}}function _0x35b17c(_0x100b55){Array[_0x49da89([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x100b55)?_0x100b55[_0x49da89([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x35b17c):_0x100b55&&typeof _0x100b55==_0x49da89([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x49da89([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x100b55)[_0x49da89([0x73,0x6f,0x72,0x74])]()[_0x49da89([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1effde,_0x5bb087])=>{_0x3caa18(_0x1effde),_0x35b17c(_0x5bb087);}):_0x3caa18(window[_0x49da89([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x100b55));}return _0x35b17c(_0x1cf9c7),_0x2df3c4>>>0x0;}function _0x5726fc(_0x5814fc){return _0x5814fc[_0x49da89([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x49da89([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x49da89([0x30]));}function _0x4477ec(_0x12753a){return _0x12753a[_0x49da89([0x73,0x70,0x6c,0x69,0x74])]('')[_0x49da89([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x49da89([0x6a,0x6f,0x69,0x6e])]('');}function _0x1abd61(){}function _0x49da89(_0x43eb1c){return _0x43eb1c['map'](_0x173b01=>String['fromCharCode'](_0x173b01))['join']('');}_0x5184f6(await _0x4ded3e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x454007){const {plugins:_0x28c8e5,editing:_0x1ce1ca,model:_0x3107d5}=this['editor'],_0x544afd=_0x28c8e5['get'](c)['getFootnote'](_0x454007);return!!_0x544afd&&(_0x3107d5['change'](_0x16c088=>{_0x16c088['setSelection'](_0x16c088['createPositionAt'](_0x544afd['definition'],'end'));}),_0x1ce1ca['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0xceda4a){const {plugins:_0x20db1f,editing:_0xc8c8f3,model:_0x3d5c07}=this['editor'],_0x296b5e=_0x20db1f['get'](c)['getFootnote'](_0xceda4a);return!!_0x296b5e&&(_0x3d5c07['change'](_0x3ec7cc=>{_0x3ec7cc['setSelection'](_0x296b5e['reference'],'on');}),_0xc8c8f3['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2789c4}=this['editor']['model'],_0x53e3d3=this['editor']['config']['get']('footnotes.multiBlock');_0x2789c4['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2789c4['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2789c4['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x53e3d3?_0x2789c4['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2789c4['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2789c4['addChildCheck'](_0x1a4ab7=>{for(const _0x2e1a1d of _0x1a4ab7)if('footnoteDefinition'===_0x2e1a1d['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x344f1b}=this,{conversion:_0x202e94,editing:_0x441ed4}=_0x344f1b,{t:t}=_0x344f1b['locale'];_0x202e94['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xfad577,{writer:_0x5d76ed,consumable:_0x51cec6})=>{const _0x411ff2=_0xfad577['getChild'](0x0);if(!_0x411ff2||!_0x411ff2['is']('element','a'))return null;const _0x2502b3=_0x411ff2['getAttribute']('href')||'';if(!_0x2502b3['startsWith']('#'))return null;const _0x5c8890=_0x2502b3['replace'](/^#/,'');if(!_0x5c8890)return null;_0x51cec6['consume'](_0x411ff2,{'name':!0x0,'attributes':['href']});for(const {item:_0x2bf622}of _0x441ed4['view']['createRangeIn'](_0x411ff2))_0x2bf622['is']('$textProxy')?_0x51cec6['consume'](_0x2bf622['textNode'],{'name':!0x0}):_0x2bf622['is']('element')&&_0x51cec6['consume'](_0x2bf622,{'name':!0x0});return _0x5d76ed['createElement']('footnoteRef',{'footnoteId':_0x5c8890});}}),_0x202e94['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5a8f37,{writer:_0xdef932})=>D(_0x5a8f37,_0xdef932)}),_0x202e94['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x15ff6b,{writer:_0x5ac32b})=>{const _0x424c99=_0x15ff6b['getAttribute']('footnoteCounter');return _0x1a1d9c(D(_0x15ff6b,_0x5ac32b),_0x5ac32b,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x424c99)});}});}['_defineDefinitionsConverters'](){const {editor:_0x6f6c6a}=this,{t:t}=_0x6f6c6a['locale'],{conversion:_0x52f3c3}=_0x6f6c6a;_0x52f3c3['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x52f3c3['for']('upcast')['add'](_0x3713f7=>{_0x3713f7['on']('element:ol',(_0x3030fb,_0x580e22,_0x46c4fd)=>{const _0x595cb3=_0x580e22['viewItem'];if(!_0x595cb3['hasClass']('footnotes-list')||!_0x580e22['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x46c4fd['consumable']['consume'](_0x595cb3,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x2548bd,modelCursor:_0x19fe02}=_0x46c4fd['convertChildren'](_0x580e22['viewItem'],_0x580e22['modelCursor']);_0x580e22['modelRange']=_0x2548bd,_0x580e22['modelCursor']=_0x19fe02;}),_0x3713f7['on']('element:hr',(_0x96dcd1,_0x364107,_0x5b2893)=>{const _0x147146=_0x364107['viewItem'];_0x147146['hasClass']('footnotes-divider')&&_0x364107['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5b2893['consumable']['consume'](_0x147146,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x52f3c3['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x52bb75,{writer:_0x4921ac})=>g(_0x4921ac)}),_0x52f3c3['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x38d753,{writer:_0x15b037})=>{const _0xee4a5=g(_0x15b037,{'data-footnotes-list-label':t('Footnotes')}),_0x6ba6cd=_0x1a1d9c(_0xee4a5,_0x15b037,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x15b037['setCustomProperty']('footnotesDefinitions',!0x0,_0x6ba6cd),_0x6ba6cd;}});}['_defineDefinitionConverters'](){const {editor:_0x532eb4}=this,{conversion:_0x2ba379,locale:_0x2bedb2}=_0x532eb4,_0x48aa07=_0x532eb4['config']['get']('footnotes.multiBlock');_0x2ba379['for']('upcast')['add'](_0xb281a2=>{_0xb281a2['on']('element:li',(_0x2bd76c,_0x45017c,_0x276140)=>{const _0x4de82a=_0x45017c['viewItem'];if(!_0x4de82a['hasClass']('footnote-definition')||!_0x4de82a['getAttribute']('id'))return;const _0x22ce0c=_0x4de82a['parent'];if(!_0x22ce0c['is']('element','ol')||!_0x22ce0c['hasClass']('footnotes-list'))return;if(!_0x276140['consumable']['test'](_0x4de82a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4d6079=_0x276140['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x4de82a['getAttribute']('id')});if(!_0x276140['safeInsert'](_0x4d6079,_0x45017c['modelCursor']))return;_0x276140['consumable']['consume'](_0x4de82a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x34a77b=Array['from'](_0x4de82a['getChildren']())['find'](_0x13e66d=>_0x13e66d['is']('element')&&_0x13e66d['hasClass']('footnote-content'));for(const _0x36660c of _0x4de82a['getChildren']())_0x36660c['is']('element')&&(_0x276140['consumable']['consume'](_0x36660c,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x276140['consumable']['consume'](_0x36660c,{'name':!0x0,'classes':'footnote-content'}));if(_0x34a77b){if(_0x48aa07)_0x276140['convertChildren'](_0x34a77b,_0x4d6079);else{const _0x11860f=_0x276140['writer']['createElement']('footnoteInlineContent');_0x276140['writer']['insert'](_0x11860f,_0x4d6079),_0x276140['convertChildren'](_0x34a77b,_0x11860f);}}_0x276140['updateConversionResult'](_0x4d6079,_0x45017c);});}),_0x2ba379['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x26278c,{writer:_0x2076d5})=>v(_0x26278c,_0x2076d5,_0x2bedb2,{'dataPipeline':!0x0})}),_0x2ba379['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3cad68,{writer:_0x4e5adc})=>v(_0x3cad68,_0x4e5adc,_0x2bedb2)});}['_defineBogusParagraphConverters'](){const {editor:_0x37456c}=this,{conversion:_0x2d2e80}=_0x37456c;_0x37456c['config']['get']('footnotes.multiBlock')?(_0x2d2e80['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x2d2e80['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x37456c['model']['document'],'change:data',()=>{!function(_0x35aefc,_0x445365){const _0x541c2e=_0x35aefc['document']['differ'],_0x49d7db=new Set();for(const _0x3d478c of _0x541c2e['getChanges']()){const _0x57627d='attribute'==_0x3d478c['type']?_0x3d478c['range']['start']['parent']:_0x3d478c['position']['parent'];_0x57627d['is']('element','footnoteDefinition')&&_0x49d7db['add'](_0x57627d);}for(const _0x288194 of _0x49d7db['values']()){const _0x56bde6=Array['from'](_0x288194['getChildren']())['filter'](_0x57d6b0=>p(_0x57d6b0,_0x445365['mapper']));for(const _0x2f070a of _0x56bde6)_0x445365['reconvertItem'](_0x2f070a);}}(_0x37456c['model'],_0x37456c['editing']);})):(_0x2d2e80['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x2d2e80['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x359d94,{writer:_0x52e5ba})=>{const _0x46a8cc=_0x52e5ba['createContainerElement']('span');return _0x52e5ba['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x46a8cc),_0x46a8cc;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5a1701}=this,{editing:_0x4dea4d,t:t}=_0x5a1701,_0x31c6d1=_0x5a1701['model']['document']['selection'];_0x5a1701['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x5a1701['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x4dea4d['view']['document'],'enter',(_0x21a659,_0x4343b4)=>{const _0x4733e8=function(_0x1877e7){const _0x336f60=_0x1877e7['getSelectedElement']();if(_0x336f60?.['is']('element','footnoteRef'))return _0x336f60;return null;}(_0x31c6d1);if(_0x4733e8){const _0x3d2956=_0x4733e8['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x3d2956),_0x4343b4['preventDefault'](),_0x21a659['stop']();}},{'context':_0x1899ef});}['_defineClickHandlers'](){const {editor:_0x497793}=this,{editing:_0x332ece}=_0x497793;_0x497793['editing']['view']['addObserver'](_0x1e3809),_0x497793['editing']['view']['addObserver'](_0x4bd884);let _0x37ec61=!0x1;this['listenTo'](_0x332ece['view']['document'],'pointerdown',(_0x1a33d0,_0x34079e)=>{const {target:_0x2476f9}=_0x34079e,_0x58918d=_0x332ece['view']['document']['selection'];_0x37ec61=!!(_0x2476f9['is']('element','a')&&_0x2476f9['parent']?.['is']('element','sup')&&_0x2476f9['parent']['hasClass']('footnote'))&&_0x58918d['getSelectedElement']()===_0x2476f9['parent'];},{'priority':'high'}),this['listenTo'](_0x332ece['view']['document'],'click',(_0x242af7,_0x3c6d0c)=>{const {target:_0x1620d1}=_0x3c6d0c;if(!_0x1620d1['is']('element','a'))return;if(_0x1620d1['parent']?.['is']('element','sup')&&_0x1620d1['parent']['hasClass']('footnote')&&!_0x37ec61)return void _0x3c6d0c['preventDefault']();let _0x196547=_0x1620d1['getAttribute']('href');if(!_0x196547?.['startsWith']('#'))return;_0x196547=_0x196547['slice'](0x1);let _0x5d39ec=!0x1;(_0x196547['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x196547['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x196547))&&(_0x5d39ec=!0x0),_0x5d39ec&&(_0x3c6d0c['preventDefault'](),_0x242af7['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x38fc9d}={}){return(_0x40425e,{writer:_0x214ba2})=>{if(!h(_0x40425e))return null;if(!_0x38fc9d)return _0x214ba2['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x415ec0=_0x214ba2['createContainerElement']('p');return _0x214ba2['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x415ec0),_0x415ec0;};}function h(_0x41c40b){const {parent:_0x3c633b}=_0x41c40b;if(!_0x3c633b?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3c633b['childCount'])return!0x1;for(const _0x119945 of _0x41c40b['getAttributeKeys']())if(!_0x119945['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x119945)return!0x1;return!0x0;}function p(_0x1c01e7,_0x1c3b95){if(!_0x1c01e7['is']('element','paragraph'))return!0x1;const _0x1b9284=_0x1c3b95['toViewElement'](_0x1c01e7);return!!_0x1b9284&&h(_0x1c01e7)!==_0x1b9284['is']('element','span');}function J(_0x14d93a){return _0x1899ef(_0x14d93a)&&_0x14d93a['is']('containerElement')&&!!_0x14d93a['getCustomProperty']('footnotesDefinitions');}function g(_0x4e3223,_0x59c4d1={}){const _0x247503=_0x4e3223['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x59e7e4=_0x4e3223['createContainerElement']('ol',{'class':'footnotes-list'},_0x4e3223['createSlot']());return _0x4e3223['createContainerElement']('div',{'class':'footnotes',..._0x59c4d1},[_0x247503,_0x59e7e4]);}function D(_0x2b75a2,_0x928689){const _0x12d75b=_0x2b75a2['getAttribute']('footnoteId'),_0x2b35c8=_0x2b75a2['getAttribute']('footnoteCounter'),_0x2af074=_0x928689['createUIElement']('a',{'href':'#'+_0x12d75b},function(_0x493d33){const _0x23ab2f=this['toDomElement'](_0x493d33);return _0x23ab2f['textContent']=_0x2b35c8,_0x23ab2f;}),_0x1d6842=_0x928689['createContainerElement']('sup',{'id':'ref-'+_0x12d75b,'class':'footnote'},[_0x2af074]);return _0x1d6842['getFillerOffset']=()=>null,_0x1d6842;}function v(_0x15ae83,_0x38290b,_0x168cbf,{dataPipeline:_0x1b8a94}={}){const {t:t}=_0x168cbf,_0x2a6a5d=_0x15ae83['getAttribute']('footnoteId'),_0x1ebc8c=_0x38290b['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2a6a5d},function(_0x43c81d){const _0x38eced=this['toDomElement'](_0x43c81d);return _0x38eced['innerText']='^',_0x38eced;}),_0x2beb72=_0x1b8a94?_0x38290b['createContainerElement']('div',{'class':'footnote-content'}):_0xad70b7(_0x38290b['createEditableElement']('div',{'class':'footnote-content'}),_0x38290b,{'label':t('Footnote\x20content.')});return _0x38290b['insert'](_0x38290b['createPositionAt'](_0x2beb72,0x0),_0x38290b['createSlot']()),_0x38290b['createContainerElement']('li',{'class':'footnote-definition','id':_0x2a6a5d},[_0x1ebc8c,_0x2beb72]);}class e extends _0x455464{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x5e02c7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x5e387c}=this,{plugins:_0x3b323d,model:_0x309fcc}=_0x5e387c,_0x55cb53=_0x3b323d['get'](_0x5e02c7),_0x2b3307=_0x3b323d['get'](c);this['listenTo'](_0x55cb53,'outputTransformation',(_0x5a054d,_0x4349c1)=>{const _0x3ccc54=function(_0x176177,_0x3036ca){const _0x159ed7=new Set();for(const {item:_0x101e4d}of _0x176177['createRangeIn'](_0x3036ca))_0x101e4d['is']('element','footnoteRef')&&_0x159ed7['add'](_0x101e4d['getAttribute']('footnoteId'));return Array['from'](_0x159ed7);}(_0x309fcc,_0x4349c1['content']);if(!_0x3ccc54['length'])return;const _0x2c0d2e=_0x2b3307['getFootnotes'](),_0x23be44=_0x3ccc54['reduce']((_0x31f6b5,_0x3294a7)=>{const _0x10eee1=_0x2c0d2e['find'](_0x342ea=>_0x342ea['id']===_0x3294a7);if(_0x10eee1){const _0xa8be3c=_0x5e387c['data']['toView'](_0x10eee1['definition'],{'isClipboardPipeline':!0x0}),_0x58c9ca=_0x5e387c['data']['htmlProcessor']['toData'](_0xa8be3c);_0x31f6b5[_0x10eee1['id']]=_0x58c9ca;}return _0x31f6b5;},Object['create'](null));_0x4349c1['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x23be44));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x51bf48}=this,{model:_0x1f8456,plugins:_0x426f91}=_0x51bf48,{view:_0x4ead94}=_0x51bf48['editing'],_0x2392f2=_0x426f91['get'](_0x5e02c7),_0x4c0ca4=_0x426f91['get'](c);let _0x4156a0=null;this['listenTo'](_0x4ead94['document'],'clipboardInput',(_0x6d9bbf,_0x300e39)=>{const _0xb1f6fc=_0x300e39['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x4156a0=_0xb1f6fc?JSON['parse'](_0xb1f6fc):null;}),this['listenTo'](_0x2392f2,'contentInsertion',(_0x3d2cc5,_0x278b75)=>{if(!_0x4156a0)return;const _0x5011a9=_0x278b75['sourceEditorId']===this['editor']['id'];_0x5011a9&&'drop'===_0x278b75['method']||_0x1f8456['change'](_0x29d16f=>{!function(_0x246c84,_0x5bba46){const _0x548a3b=[];for(const {item:_0xeafa2b}of _0x246c84['createRangeIn'](_0x5bba46))_0xeafa2b['is']('element','footnotesDefinitions')&&_0x548a3b['push'](_0xeafa2b);for(const _0x1f2538 of _0x548a3b)_0x246c84['remove'](_0x1f2538);}(_0x29d16f,_0x278b75['content']);let _0x43f258=_0x4c0ca4['getFootnotesDefinitionsObjectElement']();if(!_0x43f258){const _0x30f44e=_0x1f8456['document']['selection']['getFirstRange']()['root'];_0x43f258=_0x4c0ca4['_insertEmptyFootnotesDefinitionsContainer'](_0x29d16f,_0x30f44e);}const _0x9324a0=function(_0x1f557a,_0x1e21f9,_0xecd535){const _0x127c73=Object['create'](null);for(const {item:_0x10d0a8}of _0x1f557a['createRangeIn'](_0x1e21f9))if(_0x10d0a8['is']('element','footnoteRef')){const _0x408121=_0x10d0a8['getAttribute']('footnoteId');if(!_0xecd535(_0x408121))continue;_0x127c73[_0x408121]||(_0x127c73[_0x408121]=_0x193af1()),_0x1f557a['setAttribute']('footnoteId',_0x127c73[_0x408121],_0x10d0a8);}return _0x127c73;}(_0x29d16f,_0x278b75['content'],_0x583cb1=>!_0x5011a9||null!==_0x4c0ca4['getFootnote'](_0x583cb1));for(const [_0x42f8b2,_0x388aec]of Object['entries'](_0x4156a0)){const _0x20c0b9=_0x9324a0[_0x42f8b2]||_0x42f8b2,_0x1e2f0e=_0x29d16f['createElement']('footnoteDefinition',{'footnoteId':_0x20c0b9}),_0x2d5440=_0x51bf48['data']['htmlProcessor']['toView'](_0x388aec),_0x1d4590=_0x51bf48['data']['toModel'](_0x2d5440,_0x1e2f0e);_0x29d16f['append'](_0x1d4590,_0x1e2f0e),_0x29d16f['insert'](_0x1e2f0e,_0x43f258,'end');}_0x4156a0=null;});});}}class i extends _0x455464{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x304b7a}=this,{componentFactory:_0x45a535}=_0x304b7a['ui'];_0x45a535['add']('insertFootnote',x(_0x304b7a,_0x3fc837)),_0x45a535['add']('menuBar:insertFootnote',x(_0x304b7a,_0x2f467e)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5baff5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x23f96c;for(const _0x3ea8bc in _0x5baff5){const _0x47b023=_0x3ea8bc,_0x5f2360=_0x5baff5[_0x47b023];if('footnotesLicenseKeyValid'==_0x5f2360||'footnotesLicenseKeyInvalid'==_0x5f2360||'footnotesLicenseKeyExpired'==_0x5f2360||'footnotesLicenseKeyDomainLimit'==_0x5f2360||'footnotesLicenseKeyNotAllowed'==_0x5f2360||'footnotesLicenseKeyEvaluationLimit'==_0x5f2360||'footnotesLicenseKeyTrialLimit'==_0x5f2360||'footnotesLicenseKeyUsageLimit'==_0x5f2360){delete _0x5baff5[_0x47b023],_0x23f96c=_0x5f2360,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x23f96c&&_0x5baff5['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x23f96c&&_0x5baff5['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x23f96c&&_0x5baff5['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x23f96c&&_0x5baff5['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x23f96c&&_0x5baff5['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x23f96c&&_0x5baff5['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x23f96c&&_0x5baff5['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x4b689a,_0x4f03d1){const _0x367b3d=_0x4b689a['commands']['get']('insertFootnote');return _0x5d2617=>{const {t:t}=_0x5d2617,_0x29685c=new _0x4f03d1(_0x5d2617),_0x5a1ead=_0x29685c instanceof _0x2f467e;return _0x29685c['bind']('isEnabled')['to'](_0x367b3d,'isEnabled'),_0x29685c['set']({'label':t(_0x5a1ead?'Footnote':'Insert\x20footnote'),'icon':_0x28343b,'tooltip':!0x0}),_0x29685c['on']('execute',()=>{_0x367b3d['execute'](),_0x4b689a['editing']['view']['focus']();}),_0x29685c;};}class nt extends _0x455464{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x55ead5{['refresh'](){const {editor:_0x28391b}=this,_0x4d7799=_0x28391b['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4d7799,this['value']=_0x4d7799?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x351290}){const {editor:_0x2cd47e}=this,_0x1fa108=_0x2cd47e['plugins']['get'](c),_0x1a5874=_0x1fa108['getFootnotesDefinitionsObjectElement']();_0x1a5874&&Q['includes'](_0x351290)&&_0x2cd47e['model']['change'](_0x460f38=>{_0x460f38['setAttribute']('footnotesListStyle',_0x351290,_0x1a5874),_0x1fa108['_updateFootnotesCounters'](_0x460f38);});}}class b extends _0x55ead5{['refresh'](){const {editor:_0x80fb4a}=this,_0x3a6a45=_0x80fb4a['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3a6a45,this['value']=_0x3a6a45?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x218e8d}){const {editor:_0x49be99}=this,_0x51af81=_0x49be99['plugins']['get'](c),_0x2d042a=_0x51af81['getFootnotesDefinitionsObjectElement']();_0x2d042a&&Number['isInteger'](_0x218e8d)&&_0x49be99['model']['change'](_0x3a37c6=>{_0x3a37c6['setAttribute']('footnotesListStart',_0x218e8d,_0x2d042a),_0x51af81['_updateFootnotesCounters'](_0x3a37c6);});}}class P extends _0x455464{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4fe198}=this;_0x4fe198['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x4fe198['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x4fe198['commands']['add']('footnotesStyle',new S(_0x4fe198)),_0x4fe198['commands']['add']('footnotesStart',new b(_0x4fe198)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x2b26e3}=this,{schema:_0x579728}=_0x2b26e3['model'];_0x579728['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x27c619}=this,{conversion:_0x4b49cf,model:_0x692f9}=_0x27c619,{schema:_0x58ee29}=_0x692f9;_0x4b49cf['for']('upcast')['add'](_0x4be6e2=>{_0x4be6e2['on']('element:ol',(_0x14e9a6,_0x22196d,_0x1f15b2)=>{const _0x22c64d=_0x22196d['viewItem'],_0x1d58cf=_0x22196d['modelCursor']?.['parent'];_0x22c64d['hasClass']('footnotes-list')&&_0x1d58cf?.['is']('element','footnotesDefinitions')&&(function(_0x579ca6,_0x44b9bc,_0x425611,_0x5a52b4){if(!_0x5a52b4['checkAttribute'](_0x44b9bc,'footnotesListStart'))return;let _0x480120=0x1;const _0x1a3a92=_0x425611['consumable']['consume'](_0x579ca6,{'attributes':'start'});if(_0x1a3a92){const _0x2fd968=Number['parseInt'](_0x579ca6['getAttribute']('start'),0xa);Number['isNaN'](_0x2fd968)||(_0x480120=_0x2fd968);}!_0x1a3a92&&_0x44b9bc['hasAttribute']('footnotesListStart')||_0x425611['writer']['setAttribute']('footnotesListStart',_0x480120,_0x44b9bc);}(_0x22c64d,_0x1d58cf,_0x1f15b2,_0x58ee29),function(_0xed827d,_0x2bc2a2,_0x95ebf5,_0x5393ed){if(!_0x5393ed['checkAttribute'](_0x2bc2a2,'footnotesListStyle'))return;let _0x28cc21='decimal',_0x227096=!0x1;if(_0x95ebf5['consumable']['consume'](_0xed827d,{'attributes':'type'})){const _0x20d4b6={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0xed827d['getAttribute']('type')];_0x20d4b6&&(_0x28cc21=_0x20d4b6),_0x227096=!0x0;}_0x95ebf5['consumable']['consume'](_0xed827d,{'styles':'list-style-type'})&&(_0x28cc21=_0xed827d['getStyle']('list-style-type'),_0x227096=!0x0),!_0x227096&&_0x2bc2a2['hasAttribute']('footnotesListStyle')||_0x95ebf5['writer']['setAttribute']('footnotesListStyle',_0x28cc21,_0x2bc2a2);}(_0x22c64d,_0x1d58cf,_0x1f15b2,_0x58ee29));});}),_0x4b49cf['for']('downcast')['add'](_0xe61169=>{_0xe61169['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x46fc1b,_0x113ec9,_0x4f6f6a)=>{if(!_0x4f6f6a['consumable']['consume'](_0x113ec9['item'],_0x46fc1b['name']))return;const _0x540f3a=C(_0x113ec9['item'],_0x4f6f6a['mapper']),{attributeNewValue:_0x383735}=_0x113ec9;null==_0x383735||0x1===_0x383735?_0x4f6f6a['writer']['removeAttribute']('start',_0x540f3a):_0x4f6f6a['writer']['setAttribute']('start',String(_0x383735),_0x540f3a);}),_0xe61169['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x26baae,_0x5cf4a1,_0x19ba4f)=>{if(!_0x19ba4f['consumable']['consume'](_0x5cf4a1['item'],_0x26baae['name']))return;const _0x451274=C(_0x5cf4a1['item'],_0x19ba4f['mapper']),{attributeNewValue:_0x2ba1b6}=_0x5cf4a1;_0x2ba1b6&&'decimal'!==_0x2ba1b6?_0x19ba4f['writer']['setStyle']('list-style-type',_0x2ba1b6,_0x451274):_0x19ba4f['writer']['removeStyle']('list-style-type',_0x451274);});});}['_definePostfixer'](){const {editor:_0x1575c4}=this,{model:_0x197d0a}=_0x1575c4,_0x12a6e6=_0x1575c4['plugins']['get'](c),_0x1c7537=this['_getDefaultListStyle'](),_0x313969=this['_getDefaultStartIndex']();_0x197d0a['document']['registerPostFixer'](_0x20af3f=>{const _0x43c4d3=_0x197d0a['document']['differ']['getChanges']();let _0x5280af=!0x1;for(const _0x6d43df of _0x43c4d3){if('insert'!==_0x6d43df['type']||'$text'===_0x6d43df['name'])continue;const _0xef2448=_0x197d0a['createRangeOn'](_0x6d43df['position']['nodeAfter']);for(const _0x13b21c of _0xef2448['getItems']())_0x13b21c['is']('element','footnotesDefinitions')&&(!_0x13b21c['hasAttribute']('footnotesListStart')&&_0x197d0a['schema']['checkAttribute'](_0x13b21c,'footnotesListStart')&&(_0x20af3f['setAttribute']('footnotesListStart',_0x313969,_0x13b21c),_0x5280af=!0x0),!_0x13b21c['hasAttribute']('footnotesListStyle')&&_0x197d0a['schema']['checkAttribute'](_0x13b21c,'footnotesListStyle')&&(_0x20af3f['setAttribute']('footnotesListStyle',_0x1c7537,_0x13b21c),_0x5280af=!0x0));}return _0x5280af&&_0x12a6e6['_updateFootnotesCounters'](_0x20af3f),_0x5280af;});}['_defineFormatter'](){const {editor:_0x39d07a}=this;_0x39d07a['plugins']['get'](c)['setFootnoteFormatter'](_0x464f48=>this['_formatFootnoteListValue'](_0x464f48));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0xd58840,value:_0x4abde3,digits:_0x3b80d6}){const _0x5c50a6=_0xd58840['getAttribute']('footnotesListStyle'),_0x54607a=_0xd58840['getAttribute']('footnotesListStart'),_0x437a89=Math['floor'](_0x4abde3)+(_0x54607a??0x1)-0x1;switch(_0x5c50a6){case'decimal-leading-zero':return function(_0xae279e,_0x4b7602){return String(_0xae279e)['padStart'](_0x4b7602,'0');}(_0x437a89,Math['max'](0x2,_0x3b80d6));case'lower-alpha':case'lower-latin':return M(_0x437a89,!0x1);case'upper-alpha':case'upper-latin':return M(_0x437a89,!0x0);case'lower-roman':return V(_0x437a89,!0x1);case'upper-roman':return V(_0x437a89,!0x0);default:return String(_0x437a89);}}}function C(_0x215d72,_0x47b5e4){const _0x4dce3f=_0x47b5e4['toViewElement'](_0x215d72);return Array['from'](_0x4dce3f['getChildren']())['find'](_0x50ca23=>_0x50ca23['is']('element','ol')&&_0x50ca23['hasClass']('footnotes-list'));}function M(_0xef0c92,_0xee38bd){let _0x325a0b='',_0x526a42=_0xef0c92;for(;_0x526a42>0x0;){const _0x2ce340=(_0x526a42-0x1)%0x1a;_0x325a0b=String['fromCharCode'](0x61+_0x2ce340)+_0x325a0b,_0x526a42=Math['floor']((_0x526a42-0x1)/0x1a);}return _0xee38bd?_0x325a0b['toUpperCase']():_0x325a0b;}const N=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function V(_0x1bfbd3,_0x33354f){let _0x4c153f='',_0x3d774a=_0x1bfbd3;for(const {value:_0x430577,numeral:_0x3d4a15}of N)for(;_0x3d774a>=_0x430577;)_0x4c153f+=_0x3d4a15,_0x3d774a-=_0x430577;return _0x33354f?_0x4c153f:_0x4c153f['toLowerCase']();}class H extends _0x16ec18{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x24d7eb();['focusCycler'];constructor(_0x4c7092,{styleButtonViews:_0xef1a59,styleGridAriaLabel:_0x21fb29}){super(_0x4c7092),(this['focusCycler']=new _0x3fac62({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0xef1a59,_0x21fb29),[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 _0x429a4b of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x429a4b['element']);_0x30afc3({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>rt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x4449f4=_0x3596ba=>_0x3596ba['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4449f4),this['keystrokes']['set']('arrowleft',_0x4449f4),this['keystrokes']['set']('arrowup',_0x4449f4),this['keystrokes']['set']('arrowdown',_0x4449f4);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x56cd93,_0x1709c0){const _0x4a92ca=new _0x16ec18(this['locale']);return _0x4a92ca['children']=_0x4a92ca['createCollection'](),_0x4a92ca['children']['addMany'](_0x56cd93),_0x4a92ca['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1709c0,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x4a92ca['children']}),_0x4a92ca['children']['delegate']('execute')['to'](this),_0x4a92ca['focus']=function(){for(const _0x4355d2 of this['children'])if(_0x4355d2 instanceof _0x3fc837&&_0x4355d2['isOn'])return void _0x4355d2['focus']();this['children']['first']['focus']();},_0x4a92ca['focusTracker']=new et(),_0x4a92ca['keystrokes']=new ot(),_0x4a92ca['render'](),_0x4a92ca['keystrokes']['listenTo'](_0x4a92ca['element']),this['children']['add'](_0x4a92ca),_0x4a92ca;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x534590=this['_createStartIndexPropertyView'](),_0x2f7342=[_0x534590],_0x17c40c=new tt(this['locale'],_0x2f7342);return _0x17c40c['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x17c40c['buttonView']['bind']('isEnabled')['toMany'](_0x2f7342,'isEnabled',(..._0x42dc93)=>_0x42dc93['some'](_0x322d2f=>_0x322d2f)),_0x17c40c['buttonView']['on']('change:isEnabled',(_0xcc252b,_0x21917a,_0x58068d)=>{_0x58068d||(_0x17c40c['isCollapsed']=!0x0);}),this['children']['add'](_0x17c40c),[_0x534590,_0x17c40c];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2abef5=new st(this['locale'],it);return _0x2abef5['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2abef5['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2abef5['fieldView']['on']('input',()=>{const _0x24e592=_0x2abef5['fieldView']['element'],_0x2c3fb2=_0x24e592['valueAsNumber'];Number['isNaN'](_0x2c3fb2)?_0x2abef5['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x24e592['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x2c3fb2}):_0x2abef5['errorText']=t(_0x2c3fb2<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2abef5;}}class j extends _0x455464{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x58e7ed,_0x4ed730];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4d446b}=this,{componentFactory:_0x3bc900}=_0x4d446b['ui'];_0x4d446b['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x3bc900['add']('footnotesStyle',function(_0x419c56){return _0x36ad7e=>{const {t:t}=_0x36ad7e,_0x16061b=_0x419c56['commands']['get']('footnotesStyle'),_0x8aae44=_0x25312a(_0x36ad7e),{buttonView:_0x1c791d}=_0x8aae44;return _0x8aae44['class']='ck-footnotes-styles-dropdown',_0x8aae44['bind']('isEnabled')['to'](_0x16061b,'isEnabled'),_0x1c791d['set']({'label':t('Footnotes\x20style'),'icon':_0x28343b,'tooltip':!0x0}),_0x8aae44['once']('change:isOpen',()=>{const _0x521300=function({editor:_0x1cfc8b,dropdownView:_0x584dee}){const {t:t}=_0x1cfc8b['locale'],_0x11dd0c=t('Footnotes\x20definitions\x20styles'),_0x3f746c=function(_0x40f0fb){const t=_0x40f0fb['locale']['t'],_0x43130e=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x2fe3d9},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0xfa77b3},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x56fe8c},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x2c3adb},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x20b999},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x4c7353}];return _0x43130e['map'](function(_0x3fd3bb){const _0x554a4f=_0x3fd3bb['locale'];return({label:_0x1f5843,icon:_0xd99f13,tooltip:_0x4ffd21,style:_0x5d782e})=>{const _0x43ee67=_0x3fd3bb['commands']['get']('footnotesStyle'),_0x3430cf=new _0x3fc837(_0x554a4f);return _0x3430cf['set']({'label':_0x1f5843,'icon':_0xd99f13,'tooltip':_0x4ffd21}),_0x3430cf['bind']('isOn')['to'](_0x43ee67,'value',_0x350320=>_0x350320===_0x5d782e),_0x3430cf['bind']('isEnabled')['to'](_0x43ee67,'isEnabled'),_0x3430cf['on']('execute',()=>{_0x3fd3bb['execute']('footnotesStyle',{'value':_0x5d782e}),_0x3fd3bb['editing']['view']['focus']();}),_0x3430cf;};}(_0x40f0fb));}(_0x1cfc8b),_0x297d1c=new H(_0x1cfc8b['locale'],{'styleGridAriaLabel':_0x11dd0c,'styleButtonViews':_0x3f746c});return _0x297d1c['delegate']('execute')['to'](_0x584dee),_0x297d1c['on']('footnotesListStart',(_0x591b4c,_0x1c785b)=>{_0x1cfc8b['execute']('footnotesStart',{'value':_0x1c785b['startIndex']});}),_0x297d1c;}({'editor':_0x419c56,'dropdownView':_0x8aae44});_0x8aae44['panelView']['children']['add'](_0x521300);}),_0x8aae44;};}(_0x4d446b));}['afterInit'](){const {editor:_0x2051ab}=this,{t:t}=_0x2051ab['locale'],_0x2c83e6=_0x2051ab['plugins']['get'](_0x4ed730),{defaultPositions:_0x4b465c}=_0x4f2f53;_0x2c83e6['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x2051ab['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x2a04f6=>{let _0x51a85d=_0x2a04f6['getFirstPosition']()?.['parent'];return _0x51a85d?.['is']('$text')&&(_0x51a85d=_0x51a85d['parent']),_0x51a85d?.['is']('element')?_0x51a85d['findAncestor'](J):null;},'positions':[_0x4b465c['southArrowNorth'],_0x4b465c['southArrowNorthMiddleWest'],_0x4b465c['southArrowNorthMiddleEast'],_0x4b465c['southArrowNorthWest'],_0x4b465c['southArrowNorthEast'],_0x4b465c['northArrowSouth'],_0x4b465c['northArrowSouthMiddleWest'],_0x4b465c['northArrowSouthMiddleEast'],_0x4b465c['northArrowSouthWest'],_0x4b465c['northArrowSouthEast'],_0x4b465c['viewportStickyNorth']]});}}class lt extends _0x455464{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,lt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,b as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w as InsertFootnoteCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-footnotes",
3
- "version": "0.0.0-nightly-20251101.0",
3
+ "version": "0.0.0-nightly-20251102.0",
4
4
  "description": "The footnotes feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -23,14 +23,14 @@
23
23
  "type": "module",
24
24
  "main": "src/index.js",
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251101.0",
27
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251101.0",
28
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251101.0",
29
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251101.0",
30
- "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251101.0",
31
- "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251101.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251101.0",
33
- "ckeditor5": "0.0.0-nightly-20251101.0"
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251102.0",
27
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251102.0",
28
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251102.0",
29
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251102.0",
30
+ "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251102.0",
31
+ "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251102.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251102.0",
33
+ "ckeditor5": "0.0.0-nightly-20251102.0"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (http://cksource.com/)",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x44a4de}from'ckeditor5/src/core.js';import{isWidget as _0x562ade,toWidget as _0x2c514d,toWidgetEditable as _0xfcf061}from'ckeditor5/src/widget.js';import{uid as _0x3731d1}from'ckeditor5/src/utils.js';import{PointerObserver as _0x24fee1,ClickObserver as _0x80f299}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x2e716e}from'./footnotestracker.js';import{InsertFootnoteCommand as _0xfb83ec}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x44a4de{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x2e716e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4c121e}=this;_0x4c121e['config']['define']('footnotes.multiBlock',!0x0),_0x4c121e['commands']['add']('insertFootnote',new _0xfb83ec(_0x4c121e)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x47763a){const _0x25fadf=_0x4b62d7([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]),_0x17af37=0x47a28506,_0x4bc91d=0x47a5f2de^_0x17af37,_0x5a3d1b=window[_0x4b62d7([0x44,0x61,0x74,0x65])][_0x4b62d7([0x6e,0x6f,0x77])](),_0x2a285e=_0x47763a[_0x4b62d7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2196d2=new window[(_0x4b62d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a27ce=>{_0x2a285e[_0x4b62d7([0x6f,0x6e,0x63,0x65])](_0x4b62d7([0x72,0x65,0x61,0x64,0x79]),_0x3a27ce);}),_0x1ffae4={[_0x4b62d7([0x6b,0x74,0x79])]:_0x4b62d7([0x45,0x43]),[_0x4b62d7([0x75,0x73,0x65])]:_0x4b62d7([0x73,0x69,0x67]),[_0x4b62d7([0x63,0x72,0x76])]:_0x4b62d7([0x50,0x2d,0x32,0x35,0x36]),[_0x4b62d7([0x78])]:_0x4b62d7([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]),[_0x4b62d7([0x79])]:_0x4b62d7([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]),[_0x4b62d7([0x61,0x6c,0x67])]:_0x4b62d7([0x45,0x53,0x32,0x35,0x36])},_0x56ff5f=_0x2a285e[_0x4b62d7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b62d7([0x67,0x65,0x74])](_0x4b62d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3cf280(){let _0x8f20ae,_0x454b4f=null,_0xbae097=null;try{if(_0x56ff5f==_0x4b62d7([0x47,0x50,0x4c]))return _0x4b62d7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x8f20ae=_0x38d2b4(),!_0x8f20ae)return _0x4b62d7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x8f20ae[_0x4b62d7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xbae097=_0x125d08(_0x8f20ae[_0x4b62d7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x8f20ae[_0x4b62d7([0x6a,0x74,0x69])])),await _0x2d2636()?_0x5ad543()?_0x40b347()?_0x4b62d7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e8a56()?(_0x8f20ae[_0x4b62d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b62d7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x454b4f=_0x3945db(_0x4b62d7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x8f20ae[_0x4b62d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b62d7([0x74,0x72,0x69,0x61,0x6c])&&(_0x454b4f=_0x3945db(_0x4b62d7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5f217f()):_0x4b62d7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b62d7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b62d7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4b62d7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x40b347(){const _0x3a69dd=[_0x4b62d7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b62d7([0x74,0x72,0x69,0x61,0x6c])][_0x4b62d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8f20ae[_0x4b62d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5a3d1b/0x3e8:0xe10*_0x4bc91d;return _0x8f20ae[_0x4b62d7([0x65,0x78,0x70])]<_0x3a69dd;}function _0x5ad543(){const _0x34d283=_0x8f20ae[_0x4b62d7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x34d283&&(!!_0x34d283[_0x4b62d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b62d7([0x2a]))||!!_0x34d283[_0x4b62d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b62d7([0x46,0x4f,0x4f])));}function _0x5e8a56(){const _0x754d93=_0x8f20ae[_0x4b62d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x754d93||0x0==_0x754d93[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x9b8a0e}=new URL(window[_0x4b62d7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x754d93[_0x4b62d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b8a0e))return!0x0;const _0x4a7a71=_0x9b8a0e[_0x4b62d7([0x73,0x70,0x6c,0x69,0x74])](_0x4b62d7([0x2e]));return _0x754d93[_0x4b62d7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2991ac=>_0x2991ac[_0x4b62d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b62d7([0x2a])))[_0x4b62d7([0x6d,0x61,0x70])](_0x45fd62=>_0x45fd62[_0x4b62d7([0x73,0x70,0x6c,0x69,0x74])](_0x4b62d7([0x2e])))[_0x4b62d7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c29d5=>_0x4c29d5[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4a7a71[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b62d7([0x6d,0x61,0x70])](_0x37722f=>Array(_0x4a7a71[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x37722f[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b62d7([0x66,0x69,0x6c,0x6c])](_0x37722f[0x0]===_0x4b62d7([0x2a])?_0x4b62d7([0x2a]):'')[_0x4b62d7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x37722f))[_0x4b62d7([0x73,0x6f,0x6d,0x65])](_0x5a5f46=>_0x4a7a71[_0x4b62d7([0x65,0x76,0x65,0x72,0x79])]((_0x1e9f5a,_0x3c70cb)=>_0x5a5f46[_0x3c70cb]===_0x1e9f5a||_0x5a5f46[_0x3c70cb]===_0x4b62d7([0x2a])));}function _0x5f217f(){return _0x454b4f&&_0xbae097?new window[(_0x4b62d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35bc80,_0xf6fb08)=>{_0x454b4f[_0x4b62d7([0x74,0x68,0x65,0x6e])](_0x35bc80,_0xf6fb08),_0xbae097[_0x4b62d7([0x74,0x68,0x65,0x6e])](_0x4a1abb=>{_0x4a1abb!=_0x4b62d7([0x56,0x61,0x6c,0x69,0x64])&&_0x35bc80(_0x4a1abb);},_0xf6fb08);}):_0x454b4f||_0xbae097||_0x4b62d7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x125d08(_0x5222d5,_0x43a0b9){return new window[(_0x4b62d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12b3ac=>{if(_0x52555c())return _0x12b3ac(_0x4b62d7([0x56,0x61,0x6c,0x69,0x64]));_0x2b3979(),_0x2a285e[_0x4b62d7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b62d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4cc59b=!0x1;const _0x2d4738=_0x3731d1();function _0x405752(_0x1b9bd5){return!!_0x1b9bd5&&(typeof _0x1b9bd5===_0x4b62d7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b9bd5===_0x4b62d7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b9bd5[_0x4b62d7([0x74,0x68,0x65,0x6e])]===_0x4b62d7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b9bd5[_0x4b62d7([0x63,0x61,0x74,0x63,0x68])]===_0x4b62d7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f6c88(_0x187116){_0x124e65(_0x187116)[_0x4b62d7([0x74,0x68,0x65,0x6e])](_0x195272=>{if(!_0x195272||_0x195272[_0x4b62d7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b62d7([0x6f,0x6b]))return _0x4b62d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2146d1(_0x410497(_0x2d4738+_0x43a0b9))!=_0x195272[_0x4b62d7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b62d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b62d7([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b62d7([0x74,0x68,0x65,0x6e])](_0x2f02a3=>(_0x5e4a3e(),_0x2f02a3),()=>{const _0x137aa1=_0x33ba30();return null==_0x137aa1?(_0x5e4a3e(),_0x4b62d7([0x56,0x61,0x6c,0x69,0x64])):_0x4b62d7(_0x5a3d1b-_0x137aa1>(0x63ae0106^_0x17af37)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b62d7([0x74,0x68,0x65,0x6e])](_0x12b3ac)[_0x4b62d7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x12b3ac(_0x4b62d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c85d0=0x47946b86^_0x17af37;function _0x5e4a3e(){const _0x56731c=_0x4b62d7([0x6c,0x6c,0x63,0x74,0x2d])+_0x2146d1(_0x410497(_0x5222d5)),_0x1d4e2d=_0x38a18f(_0x2146d1(window[_0x4b62d7([0x4d,0x61,0x74,0x68])][_0x4b62d7([0x63,0x65,0x69,0x6c])](_0x5a3d1b/_0x3c85d0)));window[_0x4b62d7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b62d7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56731c,_0x1d4e2d);}function _0x33ba30(){const _0x431f1a=_0x4b62d7([0x6c,0x6c,0x63,0x74,0x2d])+_0x2146d1(_0x410497(_0x5222d5)),_0x583396=window[_0x4b62d7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b62d7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x431f1a);return _0x583396?window[_0x4b62d7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38a18f(_0x583396),0x10)*_0x3c85d0:null;}function _0x124e65(_0x457da8){return new window[(_0x4b62d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12fd4d,_0x48ba8d)=>{_0x457da8[_0x4b62d7([0x74,0x68,0x65,0x6e])](_0x12fd4d,_0x48ba8d),window[_0x4b62d7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x48ba8d,0x47a351c6^_0x17af37);});}}_0x2a285e[_0x4b62d7([0x6f,0x6e])](_0x4b62d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x39a7c1,_0x1ea7d8)=>{if(_0x1ea7d8[0x0]!=_0x5222d5)return _0x12b3ac(_0x4b62d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ea7d8[0x1]={..._0x1ea7d8[0x1],[_0x4b62d7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d4738};},{[_0x4b62d7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b62d7([0x68,0x69,0x67,0x68])}),_0x2a285e[_0x4b62d7([0x6f,0x6e])](_0x4b62d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58f5b7=>{_0x405752(_0x58f5b7[_0x4b62d7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4cc59b=!0x0,_0x2f6c88(_0x58f5b7[_0x4b62d7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b62d7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b62d7([0x6c,0x6f,0x77])}),_0x2196d2[_0x4b62d7([0x74,0x68,0x65,0x6e])](()=>{_0x4cc59b||_0x12b3ac(_0x4b62d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x52555c(){return _0x2a285e[_0x4b62d7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b62d7([0x76,0x69,0x65,0x77])][_0x4b62d7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b62d7([0x61,0x75,0x74,0x6f]);}function _0x2b3979(){_0x2a285e[_0x4b62d7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b62d7([0x76,0x69,0x65,0x77])][_0x4b62d7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b62d7([0x61,0x75,0x74,0x6f]);}}function _0x3945db(_0x16cc5c){const _0xb369b6=[new window[(_0x4b62d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1daee7=>setTimeout(_0x1daee7,0x47abbbca^_0x17af37)),_0x2196d2[_0x4b62d7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b62d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11cabd=>{let _0x1dd7b8=0x0;_0x2a285e[_0x4b62d7([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b62d7([0x6f,0x6e])](_0x4b62d7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d2f92,_0x235021)=>{_0x235021[0x0][_0x4b62d7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1dd7b8++,_0x1dd7b8==(0x47a284fe^_0x17af37)&&(_0x11cabd(),_0x1d2f92[_0x4b62d7([0x6f,0x66,0x66])]());});}))];return window[_0x4b62d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b62d7([0x72,0x61,0x63,0x65])](_0xb369b6)[_0x4b62d7([0x74,0x68,0x65,0x6e])](()=>_0x16cc5c);}async function _0x2fd79e(){await _0x2196d2,_0x2a285e[_0x4b62d7([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b62d7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d5c55,_0x2a285e[_0x4b62d7([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b62d7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d5c55,_0x2a285e[_0x4b62d7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b62d7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a8761(_0x36d9f0){const _0x1df9f6=_0x346e20();_0x2a285e[_0x1df9f6]=_0x4b62d7([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x36d9f0,_0x36d9f0!=_0x4b62d7([0x56,0x61,0x6c,0x69,0x64])&&_0x2fd79e();}function _0x346e20(){const _0x4e3528=window[_0x4b62d7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b62d7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b62d7([0x6e,0x6f,0x77])]())[_0x4b62d7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b62d7([0x2e]),'');let _0x43e2e6=_0x4b62d7([0x75]);for(let _0x56a96b=0x0;_0x56a96b<_0x4e3528[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56a96b+=0x2){let _0x31f621=window[_0x4b62d7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e3528[_0x4b62d7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56a96b,_0x56a96b+0x2));_0x31f621>=_0x25fadf[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x31f621-=_0x25fadf[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x43e2e6+=_0x25fadf[_0x31f621];}return _0x43e2e6;}function _0x38d2b4(){const _0x3ac977=_0x56ff5f[_0x4b62d7([0x73,0x70,0x6c,0x69,0x74])](_0x4b62d7([0x2e]));if(0x3!=_0x3ac977[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x48cf9d(_0x3ac977[0x1]);function _0x48cf9d(_0x37bb55){const _0xdd3feb=_0xe6e829(_0x37bb55);return _0xdd3feb&&_0x4acba1()?_0xdd3feb:null;function _0x4acba1(){const _0x20c45a=_0xdd3feb[_0x4b62d7([0x6a,0x74,0x69])],_0xe31d8b=window[_0x4b62d7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20c45a[_0x4b62d7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20c45a[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x947cfe={..._0xdd3feb,[_0x4b62d7([0x6a,0x74,0x69])]:_0x20c45a[_0x4b62d7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x20c45a[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x947cfe[_0x4b62d7([0x76,0x63])],_0x410497(_0x947cfe)==_0xe31d8b;}}}async function _0x2d2636(){let _0x368d67=!0x0;try{const _0x2f2010=_0x56ff5f[_0x4b62d7([0x73,0x70,0x6c,0x69,0x74])](_0x4b62d7([0x2e])),[_0x4fc523,_0x6ad0b,_0x48b608]=_0x2f2010;return _0x197f3f(_0x4fc523),await _0x1f8ba4(_0x4fc523,_0x6ad0b,_0x48b608),_0x368d67;}catch{return!0x1;}function _0x197f3f(_0xf8b59b){const _0x4d800f=_0xe6e829(_0xf8b59b);_0x4d800f&&_0x4d800f[_0x4b62d7([0x61,0x6c,0x67])]==_0x4b62d7([0x45,0x53,0x32,0x35,0x36])||(_0x368d67=!0x1);}async function _0x1f8ba4(_0x599299,_0x42f9c8,_0x3e9da0){const _0x7aff0b=window[_0x4b62d7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b62d7([0x66,0x72,0x6f,0x6d])](_0x23e918(_0x3e9da0),_0x2bab54=>_0x2bab54[_0x4b62d7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5ea21e=new window[(_0x4b62d7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b62d7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x599299+_0x4b62d7([0x2e])+_0x42f9c8),_0x4b92bb=window[_0x4b62d7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b62d7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b92bb)return;const _0x210f90=await _0x4b92bb[_0x4b62d7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b62d7([0x6a,0x77,0x6b]),_0x1ffae4,{[_0x4b62d7([0x6e,0x61,0x6d,0x65])]:_0x4b62d7([0x45,0x43,0x44,0x53,0x41]),[_0x4b62d7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b62d7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b62d7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b92bb[_0x4b62d7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b62d7([0x6e,0x61,0x6d,0x65])]:_0x4b62d7([0x45,0x43,0x44,0x53,0x41]),[_0x4b62d7([0x68,0x61,0x73,0x68])]:{[_0x4b62d7([0x6e,0x61,0x6d,0x65])]:_0x4b62d7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x210f90,_0x7aff0b,_0x5ea21e)||(_0x368d67=!0x1);}}function _0xe6e829(_0x13f265){return _0x13f265[_0x4b62d7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b62d7([0x65,0x79]))?JSON[_0x4b62d7([0x70,0x61,0x72,0x73,0x65])](_0x23e918(_0x13f265)):null;}function _0x23e918(_0x16b218){return window[_0x4b62d7([0x61,0x74,0x6f,0x62])](_0x16b218[_0x4b62d7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b62d7([0x2b]))[_0x4b62d7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b62d7([0x2f])));}function _0x410497(_0x3e16a3){let _0x151be3=0x1505;function _0x1a80b2(_0x185b6e){for(let _0xd5563f=0x0;_0xd5563f<_0x185b6e[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd5563f++){const _0x10b4a9=_0x185b6e[_0x4b62d7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xd5563f);_0x151be3=(_0x151be3<<0x5)+_0x151be3+_0x10b4a9,_0x151be3&=_0x151be3;}}function _0x53f4ff(_0x481b43){Array[_0x4b62d7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x481b43)?_0x481b43[_0x4b62d7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x53f4ff):_0x481b43&&typeof _0x481b43==_0x4b62d7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b62d7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x481b43)[_0x4b62d7([0x73,0x6f,0x72,0x74])]()[_0x4b62d7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c65ae,_0x19a223])=>{_0x1a80b2(_0x3c65ae),_0x53f4ff(_0x19a223);}):_0x1a80b2(window[_0x4b62d7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x481b43));}return _0x53f4ff(_0x3e16a3),_0x151be3>>>0x0;}function _0x2146d1(_0x5dd578){return _0x5dd578[_0x4b62d7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b62d7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b62d7([0x30]));}function _0x38a18f(_0x23722b){return _0x23722b[_0x4b62d7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b62d7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b62d7([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d5c55(){}function _0x4b62d7(_0x6144fb){return _0x6144fb['map'](_0x574d74=>String['fromCharCode'](_0x574d74))['join']('');}_0x4a8761(await _0x3cf280());}(this);}['_moveSelectionToFootnoteDefinition'](_0xbdff52){const {plugins:_0x53faeb,editing:_0x4f6b60,model:_0x3ec22c}=this['editor'],_0x2c9353=_0x53faeb['get'](_0x2e716e)['getFootnote'](_0xbdff52);return!!_0x2c9353&&(_0x3ec22c['change'](_0x9bb16f=>{_0x9bb16f['setSelection'](_0x9bb16f['createPositionAt'](_0x2c9353['definition'],'end'));}),_0x4f6b60['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x1cc8e1){const {plugins:_0x2da8c6,editing:_0x94c1c,model:_0x89161b}=this['editor'],_0x5ed815=_0x2da8c6['get'](_0x2e716e)['getFootnote'](_0x1cc8e1);return!!_0x5ed815&&(_0x89161b['change'](_0x5e1809=>{_0x5e1809['setSelection'](_0x5ed815['reference'],'on');}),_0x94c1c['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x311be7}=this['editor']['model'],_0x3a2aa2=this['editor']['config']['get']('footnotes.multiBlock');_0x311be7['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x311be7['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x311be7['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3a2aa2?_0x311be7['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x311be7['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x311be7['addChildCheck'](_0x36ef55=>{for(const _0x2b21e4 of _0x36ef55)if('footnoteDefinition'===_0x2b21e4['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x4f4730}=this,{conversion:_0x229435,editing:_0x4e1a40}=_0x4f4730,{t:t}=_0x4f4730['locale'];_0x229435['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xcdd1ae,{writer:_0x1e5897,consumable:_0x1bedfb})=>{const _0x282b65=_0xcdd1ae['getChild'](0x0);if(!_0x282b65||!_0x282b65['is']('element','a'))return null;const _0x3aba8e=_0x282b65['getAttribute']('href')||'';if(!_0x3aba8e['startsWith']('#'))return null;const _0x22c41f=_0x3aba8e['replace'](/^#/,'');if(!_0x22c41f)return null;_0x1bedfb['consume'](_0x282b65,{'name':!0x0,'attributes':['href']});for(const {item:_0x3e957b}of _0x4e1a40['view']['createRangeIn'](_0x282b65))_0x3e957b['is']('$textProxy')?_0x1bedfb['consume'](_0x3e957b['textNode'],{'name':!0x0}):_0x3e957b['is']('element')&&_0x1bedfb['consume'](_0x3e957b,{'name':!0x0});return _0x1e5897['createElement']('footnoteRef',{'footnoteId':_0x22c41f});}}),_0x229435['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x422249,{writer:_0x5cf13a})=>D(_0x422249,_0x5cf13a)}),_0x229435['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5ae499,{writer:_0x4a950f})=>{const _0x186785=_0x5ae499['getAttribute']('footnoteCounter');return _0x2c514d(D(_0x5ae499,_0x4a950f),_0x4a950f,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x186785)});}});}['_defineDefinitionsConverters'](){const {editor:_0x32892b}=this,{t:t}=_0x32892b['locale'],{conversion:_0x15535b}=_0x32892b;_0x15535b['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x15535b['for']('upcast')['add'](_0x3f3fda=>{_0x3f3fda['on']('element:ol',(_0x6bc3bd,_0x374a56,_0x4950e5)=>{const _0x5aaa4f=_0x374a56['viewItem'];if(!_0x5aaa4f['hasClass']('footnotes-list')||!_0x374a56['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4950e5['consumable']['consume'](_0x5aaa4f,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x53bbf9,modelCursor:_0x2b58a1}=_0x4950e5['convertChildren'](_0x374a56['viewItem'],_0x374a56['modelCursor']);_0x374a56['modelRange']=_0x53bbf9,_0x374a56['modelCursor']=_0x2b58a1;}),_0x3f3fda['on']('element:hr',(_0x455779,_0x59c91,_0x26c46a)=>{const _0x35dbea=_0x59c91['viewItem'];_0x35dbea['hasClass']('footnotes-divider')&&_0x59c91['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x26c46a['consumable']['consume'](_0x35dbea,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x15535b['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1990c,{writer:_0x3516f})=>g(_0x3516f)}),_0x15535b['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5afc26,{writer:_0x2d79a3})=>{const _0xa58b0f=g(_0x2d79a3,{'data-footnotes-list-label':t('Footnotes')}),_0x2e5af1=_0x2c514d(_0xa58b0f,_0x2d79a3,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2d79a3['setCustomProperty']('footnotesDefinitions',!0x0,_0x2e5af1),_0x2e5af1;}});}['_defineDefinitionConverters'](){const {editor:_0x119115}=this,{conversion:_0x1c29b8,locale:_0x2701fb}=_0x119115,_0x406210=_0x119115['config']['get']('footnotes.multiBlock');_0x1c29b8['for']('upcast')['add'](_0x24f32f=>{_0x24f32f['on']('element:li',(_0x5294cd,_0x5ef295,_0x57d726)=>{const _0x378308=_0x5ef295['viewItem'];if(!_0x378308['hasClass']('footnote-definition')||!_0x378308['getAttribute']('id'))return;const _0x40df41=_0x378308['parent'];if(!_0x40df41['is']('element','ol')||!_0x40df41['hasClass']('footnotes-list'))return;if(!_0x57d726['consumable']['test'](_0x378308,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x54a32f=_0x57d726['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x378308['getAttribute']('id')});if(!_0x57d726['safeInsert'](_0x54a32f,_0x5ef295['modelCursor']))return;_0x57d726['consumable']['consume'](_0x378308,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2dea02=Array['from'](_0x378308['getChildren']())['find'](_0x3e9568=>_0x3e9568['is']('element')&&_0x3e9568['hasClass']('footnote-content'));for(const _0x24f07b of _0x378308['getChildren']())_0x24f07b['is']('element')&&(_0x57d726['consumable']['consume'](_0x24f07b,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x57d726['consumable']['consume'](_0x24f07b,{'name':!0x0,'classes':'footnote-content'}));if(_0x2dea02){if(_0x406210)_0x57d726['convertChildren'](_0x2dea02,_0x54a32f);else{const _0x4b8bb7=_0x57d726['writer']['createElement']('footnoteInlineContent');_0x57d726['writer']['insert'](_0x4b8bb7,_0x54a32f),_0x57d726['convertChildren'](_0x2dea02,_0x4b8bb7);}}_0x57d726['updateConversionResult'](_0x54a32f,_0x5ef295);});}),_0x1c29b8['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x52b922,{writer:_0x37ed35})=>v(_0x52b922,_0x37ed35,_0x2701fb,{'dataPipeline':!0x0})}),_0x1c29b8['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4d095e,{writer:_0x372975})=>v(_0x4d095e,_0x372975,_0x2701fb)});}['_defineBogusParagraphConverters'](){const {editor:_0x48eb48}=this,{conversion:_0x163b85}=_0x48eb48;_0x48eb48['config']['get']('footnotes.multiBlock')?(_0x163b85['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x163b85['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x48eb48['model']['document'],'change:data',()=>{!function(_0x3413ec,_0x4cbe1e){const _0x15e28b=_0x3413ec['document']['differ'],_0x26006c=new Set();for(const _0x3d98bb of _0x15e28b['getChanges']()){const _0x553699='attribute'==_0x3d98bb['type']?_0x3d98bb['range']['start']['parent']:_0x3d98bb['position']['parent'];_0x553699['is']('element','footnoteDefinition')&&_0x26006c['add'](_0x553699);}for(const _0x33654a of _0x26006c['values']()){const _0x17dd21=Array['from'](_0x33654a['getChildren']())['filter'](_0x3e166a=>p(_0x3e166a,_0x4cbe1e['mapper']));for(const _0x52d294 of _0x17dd21)_0x4cbe1e['reconvertItem'](_0x52d294);}}(_0x48eb48['model'],_0x48eb48['editing']);})):(_0x163b85['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x163b85['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x366c4c,{writer:_0x5a83c9})=>{const _0x514917=_0x5a83c9['createContainerElement']('span');return _0x5a83c9['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x514917),_0x514917;}}));}['_defineKeyboardHandlers'](){const {editor:_0x20f4fd}=this,{editing:_0x3aa2f2,t:t}=_0x20f4fd,_0x10b1cc=_0x20f4fd['model']['document']['selection'];_0x20f4fd['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x20f4fd['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x3aa2f2['view']['document'],'enter',(_0x195fb6,_0xa2d1c9)=>{const _0x3d669a=function(_0x3197aa){const _0x35145e=_0x3197aa['getSelectedElement']();if(_0x35145e?.['is']('element','footnoteRef'))return _0x35145e;return null;}(_0x10b1cc);if(_0x3d669a){const _0x6fccc0=_0x3d669a['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x6fccc0),_0xa2d1c9['preventDefault'](),_0x195fb6['stop']();}},{'context':_0x562ade});}['_defineClickHandlers'](){const {editor:_0x3a7a47}=this,{editing:_0x22809a}=_0x3a7a47;_0x3a7a47['editing']['view']['addObserver'](_0x24fee1),_0x3a7a47['editing']['view']['addObserver'](_0x80f299);let _0x3f0aed=!0x1;this['listenTo'](_0x22809a['view']['document'],'pointerdown',(_0x2e2988,_0x32c73a)=>{const {target:_0x4fc5c0}=_0x32c73a,_0x17f217=_0x22809a['view']['document']['selection'];_0x3f0aed=!!(_0x4fc5c0['is']('element','a')&&_0x4fc5c0['parent']?.['is']('element','sup')&&_0x4fc5c0['parent']['hasClass']('footnote'))&&_0x17f217['getSelectedElement']()===_0x4fc5c0['parent'];},{'priority':'high'}),this['listenTo'](_0x22809a['view']['document'],'click',(_0x5f0d33,_0x4cd147)=>{const {target:_0x302c4b}=_0x4cd147;if(!_0x302c4b['is']('element','a'))return;if(_0x302c4b['parent']?.['is']('element','sup')&&_0x302c4b['parent']['hasClass']('footnote')&&!_0x3f0aed)return void _0x4cd147['preventDefault']();let _0x10390d=_0x302c4b['getAttribute']('href');if(!_0x10390d?.['startsWith']('#'))return;_0x10390d=_0x10390d['slice'](0x1);let _0x3660ed=!0x1;(_0x10390d['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x10390d['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x10390d))&&(_0x3660ed=!0x0),_0x3660ed&&(_0x4cd147['preventDefault'](),_0x5f0d33['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x349594}={}){return(_0x39c4f7,{writer:_0x53fa68})=>{if(!h(_0x39c4f7))return null;if(!_0x349594)return _0x53fa68['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x2b72e7=_0x53fa68['createContainerElement']('p');return _0x53fa68['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2b72e7),_0x2b72e7;};}function h(_0x481cbd){const {parent:_0x38525d}=_0x481cbd;if(!_0x38525d?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x38525d['childCount'])return!0x1;for(const _0x31f55 of _0x481cbd['getAttributeKeys']())if(!_0x31f55['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x31f55)return!0x1;return!0x0;}function p(_0x55d71f,_0xe3727d){if(!_0x55d71f['is']('element','paragraph'))return!0x1;const _0x56c88b=_0xe3727d['toViewElement'](_0x55d71f);return!!_0x56c88b&&h(_0x55d71f)!==_0x56c88b['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x48f8e5){return _0x562ade(_0x48f8e5)&&_0x48f8e5['is']('containerElement')&&!!_0x48f8e5['getCustomProperty']('footnotesDefinitions');}function g(_0xb6da97,_0x4e6853={}){const _0x5a783a=_0xb6da97['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x35147e=_0xb6da97['createContainerElement']('ol',{'class':'footnotes-list'},_0xb6da97['createSlot']());return _0xb6da97['createContainerElement']('div',{'class':'footnotes',..._0x4e6853},[_0x5a783a,_0x35147e]);}function D(_0x4e3699,_0x128743){const _0x537f9d=_0x4e3699['getAttribute']('footnoteId'),_0x50226d=_0x4e3699['getAttribute']('footnoteCounter'),_0x3d1e86=_0x128743['createUIElement']('a',{'href':'#'+_0x537f9d},function(_0x234388){const _0xb98671=this['toDomElement'](_0x234388);return _0xb98671['textContent']=_0x50226d,_0xb98671;}),_0x16630a=_0x128743['createContainerElement']('sup',{'id':'ref-'+_0x537f9d,'class':'footnote'},[_0x3d1e86]);return _0x16630a['getFillerOffset']=()=>null,_0x16630a;}function v(_0x2b7f02,_0x7dc5c1,_0x42f4af,{dataPipeline:_0x27513}={}){const {t:t}=_0x42f4af,_0xbbe99b=_0x2b7f02['getAttribute']('footnoteId'),_0x1440ba=_0x7dc5c1['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xbbe99b},function(_0x18568f){const _0x5422ed=this['toDomElement'](_0x18568f);return _0x5422ed['innerText']='^',_0x5422ed;}),_0x2895af=_0x27513?_0x7dc5c1['createContainerElement']('div',{'class':'footnote-content'}):_0xfcf061(_0x7dc5c1['createEditableElement']('div',{'class':'footnote-content'}),_0x7dc5c1,{'label':t('Footnote\x20content.')});return _0x7dc5c1['insert'](_0x7dc5c1['createPositionAt'](_0x2895af,0x0),_0x7dc5c1['createSlot']()),_0x7dc5c1['createContainerElement']('li',{'class':'footnote-definition','id':_0xbbe99b},[_0x1440ba,_0x2895af]);}
23
+ import{Plugin as _0x3bdcbf}from'ckeditor5/src/core.js';import{isWidget as _0x162735,toWidget as _0x514aed,toWidgetEditable as _0x4a9e57}from'ckeditor5/src/widget.js';import{uid as _0x1db0cf}from'ckeditor5/src/utils.js';import{PointerObserver as _0x26da05,ClickObserver as _0x4a97d9}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x530f60}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x1ced10}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x3bdcbf{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x530f60];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x35037c}=this;_0x35037c['config']['define']('footnotes.multiBlock',!0x0),_0x35037c['commands']['add']('insertFootnote',new _0x1ced10(_0x35037c)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x55ef08){const _0x2b6db2=_0x16560f([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]),_0x275993=0x47a28506,_0x2e539a=0x47a5f2f6^_0x275993,_0x130cca=window[_0x16560f([0x44,0x61,0x74,0x65])][_0x16560f([0x6e,0x6f,0x77])](),_0x250c44=_0x55ef08[_0x16560f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x336940=new window[(_0x16560f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b57c3=>{_0x250c44[_0x16560f([0x6f,0x6e,0x63,0x65])](_0x16560f([0x72,0x65,0x61,0x64,0x79]),_0x5b57c3);}),_0x3ef0c6={[_0x16560f([0x6b,0x74,0x79])]:_0x16560f([0x45,0x43]),[_0x16560f([0x75,0x73,0x65])]:_0x16560f([0x73,0x69,0x67]),[_0x16560f([0x63,0x72,0x76])]:_0x16560f([0x50,0x2d,0x32,0x35,0x36]),[_0x16560f([0x78])]:_0x16560f([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]),[_0x16560f([0x79])]:_0x16560f([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]),[_0x16560f([0x61,0x6c,0x67])]:_0x16560f([0x45,0x53,0x32,0x35,0x36])},_0x5c46cb=_0x250c44[_0x16560f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x16560f([0x67,0x65,0x74])](_0x16560f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5cebc9(){let _0x7ae5a7,_0x22894b=null,_0x288feb=null;try{if(_0x5c46cb==_0x16560f([0x47,0x50,0x4c]))return _0x16560f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x7ae5a7=_0x403849(),!_0x7ae5a7)return _0x16560f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x7ae5a7[_0x16560f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x288feb=_0x21c884(_0x7ae5a7[_0x16560f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x7ae5a7[_0x16560f([0x6a,0x74,0x69])])),await _0x5afa63()?_0x1359b5()?_0x3da6cd()?_0x16560f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x44ed13()?(_0x7ae5a7[_0x16560f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16560f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x22894b=_0x4af9fb(_0x16560f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x7ae5a7[_0x16560f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16560f([0x74,0x72,0x69,0x61,0x6c])&&(_0x22894b=_0x4af9fb(_0x16560f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x14a0f5()):_0x16560f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x16560f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x16560f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x16560f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3da6cd(){const _0x44337a=[_0x16560f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x16560f([0x74,0x72,0x69,0x61,0x6c])][_0x16560f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7ae5a7[_0x16560f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x130cca/0x3e8:0xe10*_0x2e539a;return _0x7ae5a7[_0x16560f([0x65,0x78,0x70])]<_0x44337a;}function _0x1359b5(){const _0x3ad0ca=_0x7ae5a7[_0x16560f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3ad0ca&&(!!_0x3ad0ca[_0x16560f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16560f([0x2a]))||!!_0x3ad0ca[_0x16560f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16560f([0x46,0x4f,0x4f])));}function _0x44ed13(){const _0x3fef0d=_0x7ae5a7[_0x16560f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3fef0d||0x0==_0x3fef0d[_0x16560f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1c26b3}=new URL(window[_0x16560f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3fef0d[_0x16560f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c26b3))return!0x0;const _0x17ab11=_0x1c26b3[_0x16560f([0x73,0x70,0x6c,0x69,0x74])](_0x16560f([0x2e]));return _0x3fef0d[_0x16560f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x44e8f1=>_0x44e8f1[_0x16560f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16560f([0x2a])))[_0x16560f([0x6d,0x61,0x70])](_0x3c3e3b=>_0x3c3e3b[_0x16560f([0x73,0x70,0x6c,0x69,0x74])](_0x16560f([0x2e])))[_0x16560f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39ae9a=>_0x39ae9a[_0x16560f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x17ab11[_0x16560f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16560f([0x6d,0x61,0x70])](_0x226102=>Array(_0x17ab11[_0x16560f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x226102[_0x16560f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16560f([0x66,0x69,0x6c,0x6c])](_0x226102[0x0]===_0x16560f([0x2a])?_0x16560f([0x2a]):'')[_0x16560f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x226102))[_0x16560f([0x73,0x6f,0x6d,0x65])](_0x384be5=>_0x17ab11[_0x16560f([0x65,0x76,0x65,0x72,0x79])]((_0x5ac154,_0x4cda58)=>_0x384be5[_0x4cda58]===_0x5ac154||_0x384be5[_0x4cda58]===_0x16560f([0x2a])));}function _0x14a0f5(){return _0x22894b&&_0x288feb?new window[(_0x16560f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52b293,_0x100a39)=>{_0x22894b[_0x16560f([0x74,0x68,0x65,0x6e])](_0x52b293,_0x100a39),_0x288feb[_0x16560f([0x74,0x68,0x65,0x6e])](_0x449925=>{_0x449925!=_0x16560f([0x56,0x61,0x6c,0x69,0x64])&&_0x52b293(_0x449925);},_0x100a39);}):_0x22894b||_0x288feb||_0x16560f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x21c884(_0x31153f,_0x379198){return new window[(_0x16560f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d67ce=>{if(_0x345a23())return _0x5d67ce(_0x16560f([0x56,0x61,0x6c,0x69,0x64]));_0x4df014(),_0x250c44[_0x16560f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x16560f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x57fb9c=!0x1;const _0x3c9099=_0x1db0cf();function _0xd4266e(_0x19f623){return!!_0x19f623&&(typeof _0x19f623===_0x16560f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x19f623===_0x16560f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x19f623[_0x16560f([0x74,0x68,0x65,0x6e])]===_0x16560f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x19f623[_0x16560f([0x63,0x61,0x74,0x63,0x68])]===_0x16560f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x52a521(_0x44c9dd){_0x11bc42(_0x44c9dd)[_0x16560f([0x74,0x68,0x65,0x6e])](_0x104761=>{if(!_0x104761||_0x104761[_0x16560f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x16560f([0x6f,0x6b]))return _0x16560f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x742141(_0x7bdd10(_0x3c9099+_0x379198))!=_0x104761[_0x16560f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x16560f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x16560f([0x56,0x61,0x6c,0x69,0x64]);})[_0x16560f([0x74,0x68,0x65,0x6e])](_0x568ea6=>(_0x2aae1f(),_0x568ea6),()=>{const _0xc676a7=_0x5e8a3d();return null==_0xc676a7?(_0x2aae1f(),_0x16560f([0x56,0x61,0x6c,0x69,0x64])):_0x16560f(_0x130cca-_0xc676a7>(0x63ae0106^_0x275993)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x16560f([0x74,0x68,0x65,0x6e])](_0x5d67ce)[_0x16560f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d67ce(_0x16560f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5534f7=0x47946b86^_0x275993;function _0x2aae1f(){const _0x387c80=_0x16560f([0x6c,0x6c,0x63,0x74,0x2d])+_0x742141(_0x7bdd10(_0x31153f)),_0x43ba05=_0x5f17d4(_0x742141(window[_0x16560f([0x4d,0x61,0x74,0x68])][_0x16560f([0x63,0x65,0x69,0x6c])](_0x130cca/_0x5534f7)));window[_0x16560f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16560f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x387c80,_0x43ba05);}function _0x5e8a3d(){const _0x3e64ac=_0x16560f([0x6c,0x6c,0x63,0x74,0x2d])+_0x742141(_0x7bdd10(_0x31153f)),_0x862dd3=window[_0x16560f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16560f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e64ac);return _0x862dd3?window[_0x16560f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f17d4(_0x862dd3),0x10)*_0x5534f7:null;}function _0x11bc42(_0x2b0518){return new window[(_0x16560f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23f2a9,_0x54b0ed)=>{_0x2b0518[_0x16560f([0x74,0x68,0x65,0x6e])](_0x23f2a9,_0x54b0ed),window[_0x16560f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x54b0ed,0x47a351c6^_0x275993);});}}_0x250c44[_0x16560f([0x6f,0x6e])](_0x16560f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a85fd,_0x5474d1)=>{if(_0x5474d1[0x0]!=_0x31153f)return _0x5d67ce(_0x16560f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5474d1[0x1]={..._0x5474d1[0x1],[_0x16560f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3c9099};},{[_0x16560f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16560f([0x68,0x69,0x67,0x68])}),_0x250c44[_0x16560f([0x6f,0x6e])](_0x16560f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e2797=>{_0xd4266e(_0x5e2797[_0x16560f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x57fb9c=!0x0,_0x52a521(_0x5e2797[_0x16560f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x16560f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16560f([0x6c,0x6f,0x77])}),_0x336940[_0x16560f([0x74,0x68,0x65,0x6e])](()=>{_0x57fb9c||_0x5d67ce(_0x16560f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x345a23(){return _0x250c44[_0x16560f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16560f([0x76,0x69,0x65,0x77])][_0x16560f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x16560f([0x61,0x75,0x74,0x6f]);}function _0x4df014(){_0x250c44[_0x16560f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16560f([0x76,0x69,0x65,0x77])][_0x16560f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16560f([0x61,0x75,0x74,0x6f]);}}function _0x4af9fb(_0x155e9c){const _0x321731=[new window[(_0x16560f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f5c98=>setTimeout(_0x4f5c98,0x47abbbca^_0x275993)),_0x336940[_0x16560f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x16560f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e267b=>{let _0x173444=0x0;_0x250c44[_0x16560f([0x6d,0x6f,0x64,0x65,0x6c])][_0x16560f([0x6f,0x6e])](_0x16560f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x574261,_0x1ffe5d)=>{_0x1ffe5d[0x0][_0x16560f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x173444++,_0x173444==(0x47a284fe^_0x275993)&&(_0x2e267b(),_0x574261[_0x16560f([0x6f,0x66,0x66])]());});}))];return window[_0x16560f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16560f([0x72,0x61,0x63,0x65])](_0x321731)[_0x16560f([0x74,0x68,0x65,0x6e])](()=>_0x155e9c);}async function _0x88610f(){await _0x336940,_0x250c44[_0x16560f([0x6d,0x6f,0x64,0x65,0x6c])][_0x16560f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ab5dc,_0x250c44[_0x16560f([0x6d,0x6f,0x64,0x65,0x6c])][_0x16560f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ab5dc,_0x250c44[_0x16560f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x16560f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x431aa4(_0x4975d8){const _0xc90ddf=_0x1f34c9();_0x250c44[_0xc90ddf]=_0x16560f([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4975d8,_0x4975d8!=_0x16560f([0x56,0x61,0x6c,0x69,0x64])&&_0x88610f();}function _0x1f34c9(){const _0x4f6f72=window[_0x16560f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x16560f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x16560f([0x6e,0x6f,0x77])]())[_0x16560f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x16560f([0x2e]),'');let _0x10b34c=_0x16560f([0x75]);for(let _0x302d22=0x0;_0x302d22<_0x4f6f72[_0x16560f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x302d22+=0x2){let _0x3b4008=window[_0x16560f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f6f72[_0x16560f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x302d22,_0x302d22+0x2));_0x3b4008>=_0x2b6db2[_0x16560f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b4008-=_0x2b6db2[_0x16560f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x10b34c+=_0x2b6db2[_0x3b4008];}return _0x10b34c;}function _0x403849(){const _0x2e7bee=_0x5c46cb[_0x16560f([0x73,0x70,0x6c,0x69,0x74])](_0x16560f([0x2e]));if(0x3!=_0x2e7bee[_0x16560f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4355dc(_0x2e7bee[0x1]);function _0x4355dc(_0x33d12){const _0x19503f=_0x26ebc9(_0x33d12);return _0x19503f&&_0x4051c3()?_0x19503f:null;function _0x4051c3(){const _0x58c570=_0x19503f[_0x16560f([0x6a,0x74,0x69])],_0x3ce3d2=window[_0x16560f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58c570[_0x16560f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58c570[_0x16560f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x22684f={..._0x19503f,[_0x16560f([0x6a,0x74,0x69])]:_0x58c570[_0x16560f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x58c570[_0x16560f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x22684f[_0x16560f([0x76,0x63])],_0x7bdd10(_0x22684f)==_0x3ce3d2;}}}async function _0x5afa63(){let _0x5bb41c=!0x0;try{const _0x3e372c=_0x5c46cb[_0x16560f([0x73,0x70,0x6c,0x69,0x74])](_0x16560f([0x2e])),[_0x2a6920,_0x158ac5,_0x297cbd]=_0x3e372c;return _0xe14b5(_0x2a6920),await _0xc25616(_0x2a6920,_0x158ac5,_0x297cbd),_0x5bb41c;}catch{return!0x1;}function _0xe14b5(_0x4766d1){const _0x5c880e=_0x26ebc9(_0x4766d1);_0x5c880e&&_0x5c880e[_0x16560f([0x61,0x6c,0x67])]==_0x16560f([0x45,0x53,0x32,0x35,0x36])||(_0x5bb41c=!0x1);}async function _0xc25616(_0x50e85a,_0x535f11,_0x5475c8){const _0x1b5b6=window[_0x16560f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x16560f([0x66,0x72,0x6f,0x6d])](_0x1210f4(_0x5475c8),_0x3074c8=>_0x3074c8[_0x16560f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2870fb=new window[(_0x16560f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x16560f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x50e85a+_0x16560f([0x2e])+_0x535f11),_0xc1ed31=window[_0x16560f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x16560f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xc1ed31)return;const _0x29b4df=await _0xc1ed31[_0x16560f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x16560f([0x6a,0x77,0x6b]),_0x3ef0c6,{[_0x16560f([0x6e,0x61,0x6d,0x65])]:_0x16560f([0x45,0x43,0x44,0x53,0x41]),[_0x16560f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x16560f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x16560f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xc1ed31[_0x16560f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x16560f([0x6e,0x61,0x6d,0x65])]:_0x16560f([0x45,0x43,0x44,0x53,0x41]),[_0x16560f([0x68,0x61,0x73,0x68])]:{[_0x16560f([0x6e,0x61,0x6d,0x65])]:_0x16560f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x29b4df,_0x1b5b6,_0x2870fb)||(_0x5bb41c=!0x1);}}function _0x26ebc9(_0x4b0469){return _0x4b0469[_0x16560f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x16560f([0x65,0x79]))?JSON[_0x16560f([0x70,0x61,0x72,0x73,0x65])](_0x1210f4(_0x4b0469)):null;}function _0x1210f4(_0x4ee4b4){return window[_0x16560f([0x61,0x74,0x6f,0x62])](_0x4ee4b4[_0x16560f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x16560f([0x2b]))[_0x16560f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x16560f([0x2f])));}function _0x7bdd10(_0xc7177a){let _0x58835f=0x1505;function _0x5e25fc(_0x263912){for(let _0x4cf36f=0x0;_0x4cf36f<_0x263912[_0x16560f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4cf36f++){const _0x4b52c3=_0x263912[_0x16560f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4cf36f);_0x58835f=(_0x58835f<<0x5)+_0x58835f+_0x4b52c3,_0x58835f&=_0x58835f;}}function _0x243149(_0x569350){Array[_0x16560f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x569350)?_0x569350[_0x16560f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x243149):_0x569350&&typeof _0x569350==_0x16560f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x16560f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x569350)[_0x16560f([0x73,0x6f,0x72,0x74])]()[_0x16560f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4f0179,_0x1e68cc])=>{_0x5e25fc(_0x4f0179),_0x243149(_0x1e68cc);}):_0x5e25fc(window[_0x16560f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x569350));}return _0x243149(_0xc7177a),_0x58835f>>>0x0;}function _0x742141(_0x4d6b7d){return _0x4d6b7d[_0x16560f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x16560f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x16560f([0x30]));}function _0x5f17d4(_0x3d217d){return _0x3d217d[_0x16560f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x16560f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x16560f([0x6a,0x6f,0x69,0x6e])]('');}function _0x3ab5dc(){}function _0x16560f(_0x207f0d){return _0x207f0d['map'](_0x45d161=>String['fromCharCode'](_0x45d161))['join']('');}_0x431aa4(await _0x5cebc9());}(this);}['_moveSelectionToFootnoteDefinition'](_0x1812db){const {plugins:_0x31904e,editing:_0x1a6953,model:_0x5615be}=this['editor'],_0xd07804=_0x31904e['get'](_0x530f60)['getFootnote'](_0x1812db);return!!_0xd07804&&(_0x5615be['change'](_0x3945a2=>{_0x3945a2['setSelection'](_0x3945a2['createPositionAt'](_0xd07804['definition'],'end'));}),_0x1a6953['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x49fbc9){const {plugins:_0x16577e,editing:_0x5de0ec,model:_0x3abc7c}=this['editor'],_0x51d705=_0x16577e['get'](_0x530f60)['getFootnote'](_0x49fbc9);return!!_0x51d705&&(_0x3abc7c['change'](_0x2b3365=>{_0x2b3365['setSelection'](_0x51d705['reference'],'on');}),_0x5de0ec['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4f01c3}=this['editor']['model'],_0x30f7af=this['editor']['config']['get']('footnotes.multiBlock');_0x4f01c3['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4f01c3['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4f01c3['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x30f7af?_0x4f01c3['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4f01c3['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4f01c3['addChildCheck'](_0x5a8679=>{for(const _0x2eb664 of _0x5a8679)if('footnoteDefinition'===_0x2eb664['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x20dded}=this,{conversion:_0x566aa0,editing:_0x112281}=_0x20dded,{t:t}=_0x20dded['locale'];_0x566aa0['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x54ed65,{writer:_0x1497d7,consumable:_0x5265f3})=>{const _0x46621c=_0x54ed65['getChild'](0x0);if(!_0x46621c||!_0x46621c['is']('element','a'))return null;const _0x48d2ba=_0x46621c['getAttribute']('href')||'';if(!_0x48d2ba['startsWith']('#'))return null;const _0x1c6fc8=_0x48d2ba['replace'](/^#/,'');if(!_0x1c6fc8)return null;_0x5265f3['consume'](_0x46621c,{'name':!0x0,'attributes':['href']});for(const {item:_0x1f68df}of _0x112281['view']['createRangeIn'](_0x46621c))_0x1f68df['is']('$textProxy')?_0x5265f3['consume'](_0x1f68df['textNode'],{'name':!0x0}):_0x1f68df['is']('element')&&_0x5265f3['consume'](_0x1f68df,{'name':!0x0});return _0x1497d7['createElement']('footnoteRef',{'footnoteId':_0x1c6fc8});}}),_0x566aa0['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3f0f85,{writer:_0x184ac3})=>D(_0x3f0f85,_0x184ac3)}),_0x566aa0['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5e7912,{writer:_0x553e8a})=>{const _0x31b877=_0x5e7912['getAttribute']('footnoteCounter');return _0x514aed(D(_0x5e7912,_0x553e8a),_0x553e8a,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x31b877)});}});}['_defineDefinitionsConverters'](){const {editor:_0x569189}=this,{t:t}=_0x569189['locale'],{conversion:_0x564e6b}=_0x569189;_0x564e6b['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x564e6b['for']('upcast')['add'](_0x39bf4f=>{_0x39bf4f['on']('element:ol',(_0x4bb8b6,_0x4e0431,_0x39bc66)=>{const _0x18b362=_0x4e0431['viewItem'];if(!_0x18b362['hasClass']('footnotes-list')||!_0x4e0431['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x39bc66['consumable']['consume'](_0x18b362,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x1ffbbb,modelCursor:_0x2ef5e7}=_0x39bc66['convertChildren'](_0x4e0431['viewItem'],_0x4e0431['modelCursor']);_0x4e0431['modelRange']=_0x1ffbbb,_0x4e0431['modelCursor']=_0x2ef5e7;}),_0x39bf4f['on']('element:hr',(_0x4f6a42,_0x3acba5,_0xb4e645)=>{const _0xbd8d71=_0x3acba5['viewItem'];_0xbd8d71['hasClass']('footnotes-divider')&&_0x3acba5['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0xb4e645['consumable']['consume'](_0xbd8d71,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x564e6b['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x174d59,{writer:_0x337c3e})=>g(_0x337c3e)}),_0x564e6b['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x50b1bf,{writer:_0x53d106})=>{const _0x2bfd78=g(_0x53d106,{'data-footnotes-list-label':t('Footnotes')}),_0x933e2a=_0x514aed(_0x2bfd78,_0x53d106,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x53d106['setCustomProperty']('footnotesDefinitions',!0x0,_0x933e2a),_0x933e2a;}});}['_defineDefinitionConverters'](){const {editor:_0x3710d8}=this,{conversion:_0x43f524,locale:_0xe69835}=_0x3710d8,_0x55db61=_0x3710d8['config']['get']('footnotes.multiBlock');_0x43f524['for']('upcast')['add'](_0xb4c017=>{_0xb4c017['on']('element:li',(_0x3b7310,_0x4c7881,_0x29d996)=>{const _0x3c8fcc=_0x4c7881['viewItem'];if(!_0x3c8fcc['hasClass']('footnote-definition')||!_0x3c8fcc['getAttribute']('id'))return;const _0x23fa5e=_0x3c8fcc['parent'];if(!_0x23fa5e['is']('element','ol')||!_0x23fa5e['hasClass']('footnotes-list'))return;if(!_0x29d996['consumable']['test'](_0x3c8fcc,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0xfd6d9d=_0x29d996['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3c8fcc['getAttribute']('id')});if(!_0x29d996['safeInsert'](_0xfd6d9d,_0x4c7881['modelCursor']))return;_0x29d996['consumable']['consume'](_0x3c8fcc,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x7d793c=Array['from'](_0x3c8fcc['getChildren']())['find'](_0x31d671=>_0x31d671['is']('element')&&_0x31d671['hasClass']('footnote-content'));for(const _0x569f11 of _0x3c8fcc['getChildren']())_0x569f11['is']('element')&&(_0x29d996['consumable']['consume'](_0x569f11,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x29d996['consumable']['consume'](_0x569f11,{'name':!0x0,'classes':'footnote-content'}));if(_0x7d793c){if(_0x55db61)_0x29d996['convertChildren'](_0x7d793c,_0xfd6d9d);else{const _0x3dcb09=_0x29d996['writer']['createElement']('footnoteInlineContent');_0x29d996['writer']['insert'](_0x3dcb09,_0xfd6d9d),_0x29d996['convertChildren'](_0x7d793c,_0x3dcb09);}}_0x29d996['updateConversionResult'](_0xfd6d9d,_0x4c7881);});}),_0x43f524['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1d74f4,{writer:_0x34e01e})=>v(_0x1d74f4,_0x34e01e,_0xe69835,{'dataPipeline':!0x0})}),_0x43f524['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2be1f8,{writer:_0x36e2e5})=>v(_0x2be1f8,_0x36e2e5,_0xe69835)});}['_defineBogusParagraphConverters'](){const {editor:_0x1a1775}=this,{conversion:_0x5efb2b}=_0x1a1775;_0x1a1775['config']['get']('footnotes.multiBlock')?(_0x5efb2b['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x5efb2b['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x1a1775['model']['document'],'change:data',()=>{!function(_0x253780,_0x309525){const _0x55dcf5=_0x253780['document']['differ'],_0x490d51=new Set();for(const _0x112142 of _0x55dcf5['getChanges']()){const _0x2e4a81='attribute'==_0x112142['type']?_0x112142['range']['start']['parent']:_0x112142['position']['parent'];_0x2e4a81['is']('element','footnoteDefinition')&&_0x490d51['add'](_0x2e4a81);}for(const _0x449a0f of _0x490d51['values']()){const _0x39542a=Array['from'](_0x449a0f['getChildren']())['filter'](_0x3039c8=>p(_0x3039c8,_0x309525['mapper']));for(const _0x5194c5 of _0x39542a)_0x309525['reconvertItem'](_0x5194c5);}}(_0x1a1775['model'],_0x1a1775['editing']);})):(_0x5efb2b['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x5efb2b['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2000d8,{writer:_0x168abe})=>{const _0x471677=_0x168abe['createContainerElement']('span');return _0x168abe['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x471677),_0x471677;}}));}['_defineKeyboardHandlers'](){const {editor:_0x1ee248}=this,{editing:_0xf05576,t:t}=_0x1ee248,_0x1fb7e0=_0x1ee248['model']['document']['selection'];_0x1ee248['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x1ee248['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0xf05576['view']['document'],'enter',(_0x379d12,_0x20a768)=>{const _0x560a95=function(_0xfc26fd){const _0x1f62d0=_0xfc26fd['getSelectedElement']();if(_0x1f62d0?.['is']('element','footnoteRef'))return _0x1f62d0;return null;}(_0x1fb7e0);if(_0x560a95){const _0x25ada3=_0x560a95['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x25ada3),_0x20a768['preventDefault'](),_0x379d12['stop']();}},{'context':_0x162735});}['_defineClickHandlers'](){const {editor:_0x324483}=this,{editing:_0x3f890d}=_0x324483;_0x324483['editing']['view']['addObserver'](_0x26da05),_0x324483['editing']['view']['addObserver'](_0x4a97d9);let _0x1ae842=!0x1;this['listenTo'](_0x3f890d['view']['document'],'pointerdown',(_0x535747,_0x584842)=>{const {target:_0x365649}=_0x584842,_0x4218bc=_0x3f890d['view']['document']['selection'];_0x1ae842=!!(_0x365649['is']('element','a')&&_0x365649['parent']?.['is']('element','sup')&&_0x365649['parent']['hasClass']('footnote'))&&_0x4218bc['getSelectedElement']()===_0x365649['parent'];},{'priority':'high'}),this['listenTo'](_0x3f890d['view']['document'],'click',(_0x162f3a,_0x3e07ca)=>{const {target:_0x3879fc}=_0x3e07ca;if(!_0x3879fc['is']('element','a'))return;if(_0x3879fc['parent']?.['is']('element','sup')&&_0x3879fc['parent']['hasClass']('footnote')&&!_0x1ae842)return void _0x3e07ca['preventDefault']();let _0x57c907=_0x3879fc['getAttribute']('href');if(!_0x57c907?.['startsWith']('#'))return;_0x57c907=_0x57c907['slice'](0x1);let _0x92b485=!0x1;(_0x57c907['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x57c907['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x57c907))&&(_0x92b485=!0x0),_0x92b485&&(_0x3e07ca['preventDefault'](),_0x162f3a['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x4452f9}={}){return(_0x2586ca,{writer:_0x4d3022})=>{if(!h(_0x2586ca))return null;if(!_0x4452f9)return _0x4d3022['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x1b2654=_0x4d3022['createContainerElement']('p');return _0x4d3022['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1b2654),_0x1b2654;};}function h(_0x25a9d6){const {parent:_0x2a7a94}=_0x25a9d6;if(!_0x2a7a94?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2a7a94['childCount'])return!0x1;for(const _0xae609e of _0x25a9d6['getAttributeKeys']())if(!_0xae609e['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xae609e)return!0x1;return!0x0;}function p(_0x253aee,_0x56db78){if(!_0x253aee['is']('element','paragraph'))return!0x1;const _0x1b0013=_0x56db78['toViewElement'](_0x253aee);return!!_0x1b0013&&h(_0x253aee)!==_0x1b0013['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x1cb111){return _0x162735(_0x1cb111)&&_0x1cb111['is']('containerElement')&&!!_0x1cb111['getCustomProperty']('footnotesDefinitions');}function g(_0x100ec9,_0x1dd386={}){const _0xb9449a=_0x100ec9['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x555d25=_0x100ec9['createContainerElement']('ol',{'class':'footnotes-list'},_0x100ec9['createSlot']());return _0x100ec9['createContainerElement']('div',{'class':'footnotes',..._0x1dd386},[_0xb9449a,_0x555d25]);}function D(_0x1c1778,_0x5f34da){const _0x2d0007=_0x1c1778['getAttribute']('footnoteId'),_0x17ac57=_0x1c1778['getAttribute']('footnoteCounter'),_0xa46dc8=_0x5f34da['createUIElement']('a',{'href':'#'+_0x2d0007},function(_0x4ffe54){const _0x452219=this['toDomElement'](_0x4ffe54);return _0x452219['textContent']=_0x17ac57,_0x452219;}),_0x2c4bb9=_0x5f34da['createContainerElement']('sup',{'id':'ref-'+_0x2d0007,'class':'footnote'},[_0xa46dc8]);return _0x2c4bb9['getFillerOffset']=()=>null,_0x2c4bb9;}function v(_0x10cd54,_0x420a49,_0x40a0af,{dataPipeline:_0x2c44e0}={}){const {t:t}=_0x40a0af,_0x1b31ce=_0x10cd54['getAttribute']('footnoteId'),_0x31599c=_0x420a49['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1b31ce},function(_0xaeb26d){const _0x27a55c=this['toDomElement'](_0xaeb26d);return _0x27a55c['innerText']='^',_0x27a55c;}),_0x23f433=_0x2c44e0?_0x420a49['createContainerElement']('div',{'class':'footnote-content'}):_0x4a9e57(_0x420a49['createEditableElement']('div',{'class':'footnote-content'}),_0x420a49,{'label':t('Footnote\x20content.')});return _0x420a49['insert'](_0x420a49['createPositionAt'](_0x23f433,0x0),_0x420a49['createSlot']()),_0x420a49['createContainerElement']('li',{'class':'footnote-definition','id':_0x1b31ce},[_0x31599c,_0x23f433]);}