@ckeditor/ckeditor5-footnotes 47.5.0-alpha.6 → 47.5.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotesediting.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
package/build/footnotes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Dt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>f,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["9KzZIja","$graveyard","rootName","length","70344sIvDap","insert","attributes","35WljHva","element","flat","3139930pyyBKU","push","483YsvomN","_getElementKey","elementName","set","reset","root","position","remove","nodeAfter","_elementName","from","type","98FAzOld","getItems","getChanges","734340NGUVtL","_model","add","createRangeOn","get","clear","getElementKey","slice","delete","values","9514mrGMkZ","has","4289307FRpDwO","$text","_trackedElements","174144GugLuZ","name","1668942DsiCEI"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=101]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(309365===parseInt(e(137))/1*(parseInt(e(124))/2)+parseInt(e(144))/3+parseInt(e(142))/4*(-parseInt(e(107))/5)+parseInt(e(127))/6+parseInt(e(112))/7*(-parseInt(e(104))/8)+-parseInt(e(145))/9*(parseInt(e(110))/10)+parseInt(e(139))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(128)];[r(121)];[r(113)];[r(141)]=new Map;constructor(t,e){const o=r;this[o(128)]=t,this[o(121)]=e[o(114)],this[o(113)]=e[o(133)]}[r(116)](){const t=r;this[t(141)][t(132)]()}[r(126)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(105)===i[e(123)]&&e(140)!==i[e(143)]&&i[e(118)][e(120)]){const t=this[e(128)][e(130)](i[e(118)][e(120)]);for(const o of t[e(125)]()){if(!o.is(e(108),this[e(121)]))continue;const t=this[e(113)](o);n[e(138)](t)||n[e(115)](t,[]),n[e(131)](t)[e(111)](o)}}if(e(119)===i[e(123)]&&i[e(143)]===this[e(121)]){const t=this[e(113)]({getAttribute:t=>i[e(106)][e(131)](t)});o[e(129)](t)}}for(const[t,n]of this[e(141)])e(101)===n[e(117)][e(102)]&&o[e(129)](t);for(const t of o)this[e(141)][e(135)](t);for(const[t,o]of n)this[e(141)][e(115)](t,o[o[e(103)]-1]);const i=new Set;for(const[t,s]of n)o[e(138)](t)&&(i[e(129)](s[0]),s[e(103)]>1?n[e(115)](t,s[e(134)](1)):n[e(135)](t),o[e(135)](t));return{removed:Array[e(122)](o),inserted:Array[e(122)](n[e(136)]())[e(109)](),moved:Array[e(122)](i)}}}const u=d;!function(t){const e=d,o=t();for(;;)try{if(107063===-parseInt(e(510))/1+-parseInt(e(479))/2+parseInt(e(422))/3+-parseInt(e(434))/4+-parseInt(e(420))/5+-parseInt(e(455))/6*(parseInt(e(456))/7)+parseInt(e(463))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(p);class f extends t.Plugin{[u(494)]=[];[u(452)]=null;[u(441)]=null;[u(438)];[u(427)];[u(416)];static get[u(489)](){return u(453)}static get[u(435)](){return!0}static get[u(462)](){return!0}constructor(t){const e=u;super(t),this[e(438)]=new l(this[e(461)][e(486)],{elementName:e(447),getElementKey:()=>e(451)}),this[e(427)]=new l(this[e(461)][e(486)],{elementName:e(425),getElementKey:t=>t[e(473)](e(436))}),this[e(416)]=new l(this[e(461)][e(486)],{elementName:e(454),getElementKey:t=>t[e(473)](e(436))})}[u(465)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(444)][t(466)](e=>{const n=t,i=o[n(444)][n(500)][n(482)]();let s=!1;return this[n(492)](e,i)&&(s=!0),this[n(472)](e,i)&&(s=!0),this[n(457)](e,i)&&(s=!0),this[n(418)](e)&&(s=!0),this[n(499)](e)&&(s=!0),this[n(478)](e)&&(s=!0),s}),this[t(415)](o[t(444)],t(504),()=>{const e=t;o[e(469)]({isUndoable:!1},t=>{this[e(471)](t)})},{priority:t(439)}),this[t(415)](n,t(458),()=>{const e=t;this[e(494)]=[],this[e(438)][e(431)](),this[e(427)][e(431)](),this[e(416)][e(431)]()},{priority:t(496)})}[u(423)](){return this[u(452)]}[u(507)](t){const e=u;return this[e(494)][e(440)](e=>e.id===t)||null}[u(491)](){const t=u;return Array[t(421)](this[t(494)])}[u(437)](){return this[u(441)]}[u(476)](t){this[u(441)]=t}[u(432)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(494)][o(459)];i++)this[o(490)](t,i)&&(n=!0);return n}[u(419)](t,e){const o=u,n=t[o(474)](o(447),{});return t[o(483)](n,e),this[o(452)]=n,n}[u(471)](t){const e=u;if(!this[e(494)][e(459)]||this[e(452)])return;const o=this[e(494)][0][e(470)][e(428)],n=this[e(419)](t,o);for(const o of this[e(494)])o[e(446)][e(430)]||t[e(502)](o[e(446)],n,e(480));this[e(432)](t)}[u(492)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(438)][o(482)](e);if(r[o(459)]&&(this[o(452)]=r[0]),i[o(459)])if(i[o(459)]>1||this[o(452)]&&i[o(417)](t=>t!==this[o(452)])){const e=t[o(474)](o(447),{}),s=[];this[o(452)]&&s[o(508)](this[o(452)]),s[o(508)](...i),t[o(502)](e,s[0],o(509));for(const n of s)t[o(501)](t[o(424)](n),t[o(460)](e,o(480))),t[o(445)](n);this[o(452)]=e,this[o(432)](t),n=!0}else this[o(452)]=i[0];if(s[o(459)]&&o(429)===this[o(452)]?.[o(428)][o(484)]){for(const e of this[o(494)])t[o(445)](e[o(470)]),n=!0;this[o(494)]=[],this[o(452)]=null}return n}[u(472)](t,e){const o=u;let n=!1;const i=this[o(461)][o(503)][o(468)](o(464)),{inserted:s,moved:r}=this[o(416)][o(482)](e);for(const e of[...r,...s]){const s=e[o(473)](o(436)),r=this[o(507)](s);r&&(r[o(446)]=e),h(t,i,e)&&(n=!0)}return n}[u(457)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(427)][o(482)](e);for(const e of i)this[o(449)](t,e)&&(n=!0);for(const e of s)this[o(495)](t,e)&&(n=!0);for(const e of r)this[o(443)](t,e)&&(n=!0);return n}[u(499)](t){const e=u;if(!this[e(452)])return!1;let o=!1;if(this[e(452)][e(498)]!==this[e(494)][e(459)]){const n=[];for(const t of this[e(452)][e(488)]()){const i=t[e(473)](e(436));this[e(507)](i)||(n[e(485)](t),o=!0)}for(const o of n)t[e(445)](o)}const n=new Set,i=[];for(const t of this[e(452)][e(488)]()){const s=t[e(473)](e(436));n[e(487)](s)?(i[e(485)](t),o=!0):n[e(477)](s)}for(const o of i)t[e(445)](o);return this[e(452)][e(498)]||(t[e(445)](this[e(452)]),this[e(452)]=null,o=!0),o}[u(495)](t,e){const o=u;if(this[o(494)][o(440)](t=>t[o(470)]===e))return!1;let n=!1;const i=e[o(473)](o(436)),s=this[o(494)][o(493)](t=>t.id===i);-1!==s&&(t[o(445)](this[o(494)][s][o(470)]),this[o(494)][o(442)](s,1),n=!0);let r=this[o(452)]?function(t,e){const n=o;for(const o of t[n(488)]())if(o[n(473)](n(436))===e)return o;return null}(this[o(452)],i):null;r||(r=t[o(474)](o(454),{footnoteId:i}),this[o(452)]&&(t[o(502)](r,this[o(452)],o(480)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(461)][o(486)],this[o(494)],e);this[o(494)][o(442)](c,0,a);let l=c;return-1!==s&&(l=Math[o(505)](c,s)),this[o(432)](t,l)&&(n=!0),n}[u(449)](t,e){const o=u,n=this[o(494)][o(493)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(494)][n];return o(429)!==s[o(446)][o(428)][o(484)]&&(t[o(445)](s[o(446)]),i=!0),this[o(494)][o(442)](n,1),this[o(432)](t,n)&&(i=!0),i}[u(443)](t,e){const o=u,n=e[o(473)](o(436)),i=this[o(494)][o(493)](t=>t.id===n),s=this[o(494)][i];let r=!1;s[o(470)]=e,this[o(494)][o(442)](i,1);const a=m(this[o(461)][o(486)],this[o(494)],e);return this[o(494)][o(442)](a,0,s),this[o(432)](t,Math[o(505)](i,a))&&(r=!0),r}[u(490)](t,e){const o=u;if(!this[o(452)])return!1;const n=this[o(494)][e];let i;return i=this[o(441)]?this[o(441)]({footnote:n,container:this[o(452)],digits:String(this[o(494)][o(459)])[o(459)],value:e+1}):String(e+1),n[o(470)][o(473)](o(467))!=i&&(t[o(506)](o(467),i,n[o(470)]),!0)}[u(478)](t){const e=u;if(!this[e(452)]||this[e(494)][e(459)]<2)return!1;if(function(t,o){const n=e;if(t[n(459)]!==o[n(459)])return!1;for(let e=0;e<t[n(459)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(494)][e(511)](t=>t.id),Array[e(421)](this[e(452)][e(488)]())[e(511)](t=>t[e(473)](e(436)))))return!1;let o=!1;for(let n=0;n<this[e(494)][e(459)];n++){const i=this[e(494)][n],s=t[e(481)](i[e(446)]),r=t[e(460)](this[e(452)],n);s[e(426)](r)||(t[e(501)](t[e(475)](i[e(446)]),r),o=!0)}return o}[u(418)](t){const e=u;if(!this[e(494)][e(459)])return!1;const{model:o}=this[e(461)];let n=!1;for(let i=0;i<this[e(494)][e(459)]-1;i++){const s=this[e(494)][i],r=this[e(494)][i+1],a=o[e(481)](s[e(470)]),c=o[e(481)](r[e(470)]);e(497)===a[e(433)](c)&&(this[e(443)](t,s[e(470)]),i=-1,n=!0)}return n}}function d(t,e){const o=p();return(d=function(t,e){return o[t-=413]})(t,e)}function p(){const t=["getFootnote","push","before","33171gyqaLC","map","footnoteInlineContent","getRootNames","listenTo","_footnoteDefsTracker","some","_ensureFootnotesReferencesHaveProperOrder","_insertEmptyFootnotesDefinitionsContainer","1069295AMOgSY","from","285990XFKodX","getFootnotesDefinitionsObjectElement","createRangeIn","footnoteRef","isEqual","_footnoteRefsTracker","root","$graveyard","parent","reset","_updateFootnotesCounters","compareWith","617512QqOwvU","isOfficialPlugin","footnoteId","getFootnotesFormatter","_footnoteDefsContainerTracker","low","find","_footnoteFormatter","splice","_handleMovedFootnoteReference","document","remove","definition","footnotesDefinitions","paragraph","_handleRemoveFootnoteReferenceById","indexOf","singleton","_footnotesDefinitions","FootnotesTracker","footnoteDefinition","646698BAChkp","7cTzRsG","_handleFootnoteReferencesChanges","set","length","createPositionAt","editor","isPremiumPlugin","4647216obWBXW","footnotes.multiBlock","init","registerPostFixer","footnoteCounter","get","enqueueChange","reference","_ensureFootnotesDefinitionsContainerExists","_handleFootnoteDefinitionsChanges","getAttribute","createElement","createRangeOn","setFootnoteFormatter","add","_sortFootnoteDefinitions","119956WIRjEt","end","createPositionBefore","getChanges","append","rootName","unshift","model","has","getChildren","pluginName","_updateFootnoteRefCounter","getFootnotes","_handleFootnotesDefinitionsObjectChanges","findIndex","_footnotes","_handleInsertedFootnoteReference","high","after","childCount","_handleFootnotesDefinitionsObjectSync","differ","move","insert","config","change:data","min","setAttribute"];return(p=function(){return t})()}function h(t,e,o){const n=u;if(o[n(498)])return!1;const i=n(e?448:413);return t[n(502)](t[n(474)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(459)])return 0;const i=t[n(481)](o);for(let o=0;o<e[n(459)];o++){const s=e[o],r=t[n(481)](s[n(470)]);if(n(509)===i[n(433)](r))return o}const s=o[n(428)];let r=-1;for(let t=e[n(459)]-1;t>=0;t--)if(e[t][n(470)][n(428)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(444)][n(414)](),c=a[n(450)](s[n(484)]),l=a[c+1];if(l)for(let t=0;t<e[n(459)];t++)if(e[t][n(470)][n(428)][n(484)]===l)return t;return e[n(459)]}const g=y;function w(){const t=["test","execute","checkChild","string","createElement","insert-footnote-command-executed-with-invalid-id","2241820tyEodI","636534JPmZNS","FootnotesEditing","plugins","model","editor","change","isEnabled","_moveSelectionToFootnoteDefinition","isBlock","isObject","get","end","refresh","footnoteId","document","length","_getPositionToInsertFootnote","4880862tgrQRr","insertObject","getItems","195990OAbDwc","901125cbYFPk","selection","getFirstRange","624600PNmbwf","704090EyVSdr","footnoteRef"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=218]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(416203===-parseInt(e(237))/1+-parseInt(e(228))/2+-parseInt(e(223))/3+parseInt(e(227))/4+parseInt(e(224))/5+parseInt(e(220))/6+parseInt(e(236))/7)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(249)](){const t=g,e=this[t(241)][t(240)][t(251)][t(225)],o=this[t(219)](e);this[t(243)]=!!o}[g(231)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(251)],r=this[e(219)](s);if(!r)return;const a=o[e(239)][e(247)](e(238)),c=t?.[e(250)]??(0,i.uid)();!function(t){const o=e;return o(233)==typeof t&&t[o(218)]>0&&!/\s/[o(230)](t)&&!/^\d/[o(230)](t)}(c)?(0,i.logWarning)(e(235)):(n[e(242)](t=>{const o=e,i=t[o(234)](o(229),{footnoteId:c});n[o(221)](i,r,null)}),a[e(244)](c))}[g(219)](t){const e=g,{model:o}=this[e(241)],{schema:n}=o,i=t[e(226)]();for(const t of i[e(222)]())if(n[e(245)](t)||n[e(246)](t))return null;const s=i[e(248)];return n[e(232)](s,e(229))?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=h([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[h([121])]:h([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],u(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?f(u(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+f(u(t)),n=d(f(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+f(u(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1770595200;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(f).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(f).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>x(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(x(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>E(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=E(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function E(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function x(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var D=o(331);function P(){const t=["footnoteDefinition","1158059JVOFcI","clipboardInput","length","string","footnotesDefinitions","1916715njCYlI","includes","footnoteInlineContent","_defineClipboardIntegration","parse","getRanges","htmlProcessor","stringify","config","entries","isPremiumPlugin","FootnotesClipboard","2303PQczmW","232684imweXd","requires","dataTransfer","getChildren","_handlePasteFootnotesDefinitions","createRangeIn","selection","cloneElement","definition","application/ckeditor5-footnotes","hasAttribute","element","remove","insert","push","add","8TilLkp","method","5221620ewdKqI","2711574xbuLdr","document","root","setAttribute","footnotes.multiBlock","end","change","find","isOfficialPlugin","getData","footnoteId","footnoteRef","from","get","1180233wWDKge","getFirstRange","data","getSelectedBlocks","editor","listenTo","4fNugbg","content","getFootnotesDefinitionsObjectElement","_insertEmptyFootnotesDefinitionsContainer","outputTransformation","flatMap","editing","getFootnotes","sourceEditorId","createElement","getAttribute","toModel","append","reduce","create","toView","init","setData","_handleCopyFootnotesDefinitions","keys","drop","pluginName","getFootnote","contentInsertion","toData"];return(P=function(){return t})()}const T=A;function A(t,e){const o=P();return(A=function(t,e){return o[t-=110]})(t,e)}!function(t){const e=A,o=t();for(;;)try{if(357321===parseInt(e(115))/1*(-parseInt(e(155))/2)+parseInt(e(149))/3+parseInt(e(116))/4+-parseInt(e(186))/5+-parseInt(e(135))/6+-parseInt(e(181))/7*(-parseInt(e(132))/8)+parseInt(e(134))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(P);class _ extends t.Plugin{static get[T(176)](){return T(114)}static get[T(117)](){return[v,D.ClipboardPipeline]}static get[T(143)](){return!0}static get[T(113)](){return!0}[T(171)](){this[T(189)]()}[T(189)](){const t=T;this[t(173)](),this[t(120)]()}[T(173)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(148)](D.ClipboardPipeline),s=o[t(148)](f);this[t(154)](i,t(159),(o,i)=>{const r=t,a=O(n[r(121)](i[r(156)]));if(!a[r(183)])return;const c=s[r(162)](),l=a[r(168)]((t,o)=>{const n=r,i=c[n(142)](t=>t.id===o);if(i){const o=e[n(151)][n(170)](i[n(124)],{isClipboardPipeline:!0}),s=e[n(151)][n(192)][n(179)](o);t[i.id]=s}return t},Object[r(169)](null));i[r(118)][r(172)](r(125),JSON[r(110)](l))})}[T(120)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(161)],r=n[t(148)](D.ClipboardPipeline),a=n[t(148)](f),c=e[t(111)][t(148)](t(139));let l=null;this[t(154)](s[t(136)],t(182),(e,o)=>{const n=t,i=o[n(118)][n(144)](n(125));l=i?JSON[n(190)](i):null}),this[t(154)](r,t(178),(n,s)=>{const r=t,u=s[r(163)]===this[r(153)].id;u&&r(175)===s[r(133)]||o[r(141)](t=>{const n=r;let f=a[n(157)]();const d=!!f&&Array[n(147)](o[n(136)][n(122)][n(152)]())[n(187)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(127),e(146)))return!0;return!1}(o[n(121)](s[n(156)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(169)](null);for(const e of i[o(119)]())e.is(o(127),o(180))&&e[o(126)](o(145))&&(s[e[o(165)](o(145))]=t[o(123)](e,!0));return Object[o(174)](s)[o(183)]?s:null}(t,s[n(156)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(121)](e))n.is(o(127),o(185))&&i[o(130)](n);for(const e of i)t[o(128)](e)}(t,s[n(156)]),!l)return;const{selection:p}=o[n(136)],h=p[n(150)]()[n(137)];f&&!d||(f=L(t,s[n(156)]),f||=a[n(158)](t,h));const m=Array[n(147)](p[n(191)]())[n(160)](O),g=function(t,e,o){const s=n,r=Object[s(169)](null);for(const{item:n}of t[s(121)](e))if(n.is(s(127),s(146))){const e=n[s(165)](s(145));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(138)](s(145),r[e],n)}return r}(t,s[n(156)],t=>{const e=n;return!u||!!a[e(177)](t)&&!m[e(187)](t)});for(const[o,i]of Object[n(112)](l)){const s=g[o]||o;let r;if(n(184)!=typeof i)r=i,s!==o&&t[n(138)](n(145),s,r);else{r=t[n(164)](n(180),{footnoteId:s});const o=e[n(151)][n(192)][n(170)](i);let a;if(c)a=e[n(151)][n(166)](o,r);else{a=t[n(164)](n(188));const i=e[n(151)][n(166)](o,a);t[n(129)](i,a)}t[n(167)](a,r)}t[n(129)](r,f,n(140))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(121)](e))if(n.is(o(127),o(185)))return n;return null}function O(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(127),e(146))&&o[e(131)](n[e(165)](e(145)));return Array[e(147)](o)}var V=o(311),N=o(355),R=o(929),K=o.n(R),j=o(297),M=o.n(j),B=o(102),W=o.n(B),U=o(123),z=o.n(U),q=o(741),H=o.n(q),G=o(728),J={attributes:{"data-cke":!0}};J.setAttributes=z(),J.insert=W().bind(null,"head"),J.domAPI=M(),J.insertStyleElement=H();K()(G.A,J);G.A&&G.A.locals&&G.A.locals;class X extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Q(t,V.ButtonView)),e.add("menuBar:insertFootnote",Q(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Q(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=Z;function $(){var t=["requires","isPremiumPlugin","7195QiQguw","Footnotes","894GrFOga","458829tRiuqC","isOfficialPlugin","306231BJxsTG","88mSHiQu","4112vSDPsD","34767KDoksl","92822MOVSvu","4cvHXED","pluginName","7271460unIsJU"];return($=function(){return t})()}function Z(t,e){var o=$();return(Z=function(t,e){return o[t-=224]})(t,e)}!function(t){for(var e=Z,o=t();;)try{if(108747===-parseInt(e(227))/1+parseInt(e(228))/2*(-parseInt(e(238))/3)+parseInt(e(225))/4+-parseInt(e(233))/5*(parseInt(e(235))/6)+-parseInt(e(236))/7+-parseInt(e(224))/8*(parseInt(e(226))/9)+parseInt(e(230))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[Y(229)](){return Y(234)}static get[Y(231)](){return[v,_,X]}static get[Y(237)](){return!0}static get[Y(232)](){return!0}}const et=nt;!function(t){const e=nt,o=t();for(;;)try{if(539356===parseInt(e(138))/1*(parseInt(e(136))/2)+-parseInt(e(141))/3*(parseInt(e(147))/4)+parseInt(e(133))/5+-parseInt(e(145))/6*(parseInt(e(132))/7)+-parseInt(e(146))/8+parseInt(e(128))/9*(-parseInt(e(134))/10)+parseInt(e(130))/11*(parseInt(e(129))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);const ot=[et(137),et(142),et(144),et(135),et(143),et(140),et(139),et(131)];function nt(t,e){const o=it();return(nt=function(t,e){return o[t-=128]})(t,e)}function it(){const t=["lower-roman","upper-alpha","2676pbUaOq","decimal-leading-zero","lower-alpha","lower-latin","43338KWSADk","1319800XFWapH","4108DJSVRv","8271szBekn","708apVbYc","308649WFUfcd","upper-roman","973tchJVV","3660555JbrLmE","4110UVPOjE","upper-latin","136562CBsxGD","decimal","9YZkAPc"];return(it=function(){return t})()}const st=at;function rt(){const t=["11666515zdGsQI","382jaspXY","15275UduBDq","35363450jbIcVs","_updateFootnotesCounters","4304wegFVx","execute","value","change","2079711VznoDU","getAttribute","setAttribute","getFootnotesDefinitionsObjectElement","footnotesListStyle","10604196lXCmky","4EEzOOa","includes","plugins","refresh","7365440VYzRbd","isEnabled","3114ziUPFn","model","get"];return(rt=function(){return t})()}function at(t,e){const o=rt();return(at=function(t,e){return o[t-=373]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(867778===parseInt(e(389))/1*(-parseInt(e(385))/2)+parseInt(e(393))/3*(-parseInt(e(375))/4)+-parseInt(e(386))/5*(parseInt(e(381))/6)+-parseInt(e(384))/7+parseInt(e(379))/8+parseInt(e(374))/9+parseInt(e(387))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[st(378)](){const t=st,{editor:e}=this,o=e[t(377)][t(383)](f)[t(396)]();this[t(380)]=!!o,this[t(391)]=o?.[t(394)](t(373))??null}[st(390)]({value:t}){const e=st,{editor:o}=this,n=o[e(377)][e(383)](f),i=n[e(396)]();i&&ot[e(376)](t)&&o[e(382)][e(392)](o=>{const s=e;o[s(395)](s(373),t,i),n[s(388)](o)})}}const lt=ft;function ut(){const t=["change","10376DmpsTP","87350KvoSZZ","plugins","setAttribute","getAttribute","model","footnotesListStart","_updateFootnotesCounters","get","refresh","6489aKKLpU","221034lbJAOv","120712VQvRDN","isEnabled","470cpskdx","getFootnotesDefinitionsObjectElement","103263bUnRuZ","value","1519500OPOdNn","execute","32LRmOOO","isInteger","77guDFwJ"];return(ut=function(){return t})()}function ft(t,e){const o=ut();return(ft=function(t,e){return o[t-=141]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(192415===-parseInt(e(144))/1+parseInt(e(164))/2+parseInt(e(163))/3+-parseInt(e(148))/4*(parseInt(e(153))/5)+parseInt(e(146))/6+parseInt(e(150))/7*(parseInt(e(152))/8)+-parseInt(e(162))/9*(-parseInt(e(142))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class dt extends t.Command{[lt(161)](){const t=lt,{editor:e}=this,o=e[t(154)][t(160)](f)[t(143)]();this[t(141)]=!!o,this[t(145)]=o?.[t(156)](t(158))??null}[lt(147)]({value:t}){const e=lt,{editor:o}=this,n=o[e(154)][e(160)](f),i=n[e(143)]();i&&Number[e(149)](t)&&o[e(157)][e(151)](o=>{const s=e;o[s(155)](s(158),t,i),n[s(159)](o)})}}const pt=mt;function ht(){const t=["document","attribute:footnotesListStyle:footnotesDefinitions","toLowerCase","init","6640cJeSYg","differ","get","list-style-type","parent","footnotesDefinitions","registerPostFixer","setAttribute","item","getStyle","consume","consumable","element","getAttribute","82souOQt","type","footnotesStart","_defineSchema","setStyle","footnotesStyle","from","isPremiumPlugin","getItems","floor","footnotes-list","insert","hasAttribute","setFootnoteFormatter","padStart","10289350Rbihjp","decimal","1080rSpMpy","removeAttribute","_getDefaultListStyle","getChildren","find","FootnotesPropertiesEditing","modelCursor","plugins","upper-alpha","25269900XyDwQW","isOfficialPlugin","pluginName","_defineConverters","13esMuJU","nodeAfter","4437162MEFnsY","$text","attribute:footnotesListStart:footnotesDefinitions","requires","checkAttribute","_formatFootnoteListValue","5268uiLDDC","footnotesListStyle","upcast","upper-latin","max","upper-roman","footnotes.footnotesProperties.defaultStartIndex","getChanges","schema","lower-roman","_defineFormatter","toViewElement","footnotes.footnotesProperties.defaultListStyle","removeStyle","commands","21609bQaEic","createRangeOn","position","_updateFootnotesCounters","parseInt","216wyxaYv","config","start","writer","lower-latin","lower-alpha","define","editor","downcast","fromCharCode","element:ol","_getDefaultStartIndex","for","name","viewItem","isNaN","mapper","footnotesListStart","model","11RFsdoN","extend","_definePostfixer","hasClass","add","toUpperCase","decimal-leading-zero","1945SJqsfy","8740GPXGGN"];return(ht=function(){return t})()}function mt(t,e){const o=ht();return(mt=function(t,e){return o[t-=313]})(t,e)}!function(t){const e=mt,o=t();for(;;)try{if(685554===parseInt(e(358))/1*(parseInt(e(378))/2)+parseInt(e(395))/3*(-parseInt(e(359))/4)+parseInt(e(364))/5*(-parseInt(e(416))/6)+parseInt(e(327))/7*(-parseInt(e(332))/8)+-parseInt(e(410))/9+-parseInt(e(393))/10*(-parseInt(e(351))/11)+-parseInt(e(404))/12*(-parseInt(e(408))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class gt extends t.Plugin{static get[pt(406)](){return pt(400)}static get[pt(413)](){return[v,f]}static get[pt(405)](){return!0}static get[pt(385)](){return!0}[pt(363)](){const t=pt,{editor:e}=this;e[t(333)][t(338)](t(324),t(394)),e[t(333)][t(338)](t(318),1),e[t(326)][t(355)](t(383),new ct(e)),e[t(326)][t(355)](t(380),new dt(e)),this[t(381)](),this[t(407)](),this[t(322)](),this[t(353)]()}[pt(381)](){const t=pt,{editor:e}=this,{schema:o}=e[t(350)];o[t(352)](t(369),{allowAttributes:[t(313),t(349)]})}[pt(407)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(344)](t(314))[t(355)](e=>{const o=t;e.on(o(342),(t,e,n)=>{const s=o,r=e[s(346)],a=e[s(401)]?.[s(368)];r[s(354)](s(388))&&a?.is(s(376),s(369))&&(function(t,e,o,n){const i=s;if(!n[i(414)](e,i(349)))return;let r=1;const a=o[i(375)][i(374)](t,{attributes:i(334)});if(a){const e=Number[i(331)](t[i(377)](i(334)),10);Number[i(347)](e)||(r=e)}!a&&e[i(390)](i(349))||o[i(335)][i(371)](i(349),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(414)](e,i(313)))return;let r=i(394),a=!1;if(o[i(375)][i(374)](t,{attributes:i(379)})){const e={1:i(394),a:i(337),A:i(403),i:i(321),I:i(317)}[t[i(377)](i(379))];e&&(r=e),a=!0}o[i(375)][i(374)](t,{styles:i(367)})&&(r=function(t){const e=i;switch(t){case e(337):return e(336);case e(403):return e(315);default:return t}}(t[i(373)](i(367))),a=!0),!a&&e[i(390)](i(313))||o[i(335)][i(371)](i(313),r,e)}(r,a,n,i))})}),o[t(344)](t(340))[t(355)](e=>{const o=t;e.on(o(412),(t,e,n)=>{const i=o;if(!n[i(375)][i(374)](e[i(372)],t[i(345)]))return;const s=wt(e[i(372)],n[i(348)]),{attributeNewValue:r}=e;null==r||1===r?n[i(335)][i(396)](i(334),s):n[i(335)][i(371)](i(334),String(r),s)}),e.on(o(361),(t,e,n)=>{const i=o;if(!n[i(375)][i(374)](e[i(372)],t[i(345)]))return;const s=wt(e[i(372)],n[i(348)]),{attributeNewValue:r}=e;r&&i(394)!==r?n[i(335)][i(382)](i(367),r,s):n[i(335)][i(325)](i(367),s)})})}[pt(353)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(402)][t(366)](f),i=this[t(397)](),s=this[t(343)]();o[t(360)][t(370)](e=>{const r=t,a=o[r(360)][r(365)][r(319)]();let c=!1;for(const t of a){if(r(389)!==t[r(379)]||r(411)===t[r(345)])continue;const n=o[r(328)](t[r(329)][r(409)]);for(const t of n[r(386)]())t.is(r(376),r(369))&&(!t[r(390)](r(349))&&o[r(320)][r(414)](t,r(349))&&(e[r(371)](r(349),s,t),c=!0),!t[r(390)](r(313))&&o[r(320)][r(414)](t,r(313))&&(e[r(371)](r(313),i,t),c=!0))}return c&&n[r(330)](e),c})}[pt(322)](){const t=pt,{editor:e}=this;e[t(402)][t(366)](f)[t(391)](e=>this[t(415)](e))}[pt(397)](){const t=pt;return this[t(339)][t(333)][t(366)](t(324))}[pt(343)](){const t=pt;return this[t(339)][t(333)][t(366)](t(318))}[pt(415)]({container:t,value:e,digits:o}){const n=pt,i=t[n(377)](n(313)),s=t[n(377)](n(349)),r=Math[n(387)](e)+(s??1)-1;switch(i){case n(357):return function(t,e){const o=n;return String(t)[o(392)](e,"0")}(r,Math[n(316)](2,o));case n(337):case n(336):return yt(r,!1);case n(403):case n(315):return yt(r,!0);case n(321):return vt(r,!1);case n(317):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=pt,n=e[o(323)](t);return Array[o(384)](n[o(398)]())[o(399)](t=>t.is(o(376),"ol")&&t[o(354)](o(388)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(341)](97+t)+n,i=Math[o(387)]((i-1)/26)}return e?n[o(356)]():n}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function vt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(362)]()}class It extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=z(),Ct.insert=W().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=H();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}function Et(){var t=["8STwRNJ","2790eGHSuk","isPremiumPlugin","FootnotesProperties","50769bbXeQB","isOfficialPlugin","9191847fWaYrB","requires","3686451QunxCX","329318KTmRyY","pluginName","1577895pcFNNc","2161104QRXDWh","10sPPFyV","26489089MGummp","4WrTiIE"];return(Et=function(){return t})()}var xt=St;function St(t,e){var o=Et();return(St=function(t,e){return o[t-=191]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(852029===parseInt(e(203))/1*(parseInt(e(191))/2)+-parseInt(e(202))/3*(parseInt(e(193))/4)+parseInt(e(205))/5+-parseInt(e(206))/6+-parseInt(e(200))/7*(-parseInt(e(194))/8)+-parseInt(e(198))/9*(-parseInt(e(195))/10)+-parseInt(e(192))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Dt extends t.Plugin{static get[xt(204)](){return xt(197)}static get[xt(201)](){return[gt,Ft]}static get[xt(199)](){return!0}static get[xt(196)](){return!0}}function Pt(t,e){var o=Tt();return(Pt=function(t,e){return o[t-=183]})(t,e)}function Tt(){var t=["6648990NEkoyi","424SAuhcO","3OMeMWP","260046ITglna","6477385gGtKVd","6ykutBu","2186990ifqESe","7edwgTS","586793Wedoqj","4623416NnCOWr","13331835BCJYlR"];return(Tt=function(){return t})()}!function(t){for(var e=Pt,o=t();;)try{if(892535===-parseInt(e(183))/1*(-parseInt(e(191))/2)+-parseInt(e(188))/3*(parseInt(e(184))/4)+parseInt(e(190))/5+-parseInt(e(186))/6*(parseInt(e(193))/7)+-parseInt(e(187))/8*(-parseInt(e(189))/9)+-parseInt(e(192))/10+-parseInt(e(185))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
5
|
+
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>I,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>f,FootnotesUI:()=>J,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["9KzZIja","$graveyard","rootName","length","70344sIvDap","insert","attributes","35WljHva","element","flat","3139930pyyBKU","push","483YsvomN","_getElementKey","elementName","set","reset","root","position","remove","nodeAfter","_elementName","from","type","98FAzOld","getItems","getChanges","734340NGUVtL","_model","add","createRangeOn","get","clear","getElementKey","slice","delete","values","9514mrGMkZ","has","4289307FRpDwO","$text","_trackedElements","174144GugLuZ","name","1668942DsiCEI"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=101]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(309365===parseInt(e(137))/1*(parseInt(e(124))/2)+parseInt(e(144))/3+parseInt(e(142))/4*(-parseInt(e(107))/5)+parseInt(e(127))/6+parseInt(e(112))/7*(-parseInt(e(104))/8)+-parseInt(e(145))/9*(parseInt(e(110))/10)+parseInt(e(139))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(128)];[r(121)];[r(113)];[r(141)]=new Map;constructor(t,e){const o=r;this[o(128)]=t,this[o(121)]=e[o(114)],this[o(113)]=e[o(133)]}[r(116)](){const t=r;this[t(141)][t(132)]()}[r(126)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(105)===i[e(123)]&&e(140)!==i[e(143)]&&i[e(118)][e(120)]){const t=this[e(128)][e(130)](i[e(118)][e(120)]);for(const o of t[e(125)]()){if(!o.is(e(108),this[e(121)]))continue;const t=this[e(113)](o);n[e(138)](t)||n[e(115)](t,[]),n[e(131)](t)[e(111)](o)}}if(e(119)===i[e(123)]&&i[e(143)]===this[e(121)]){const t=this[e(113)]({getAttribute:t=>i[e(106)][e(131)](t)});o[e(129)](t)}}for(const[t,n]of this[e(141)])e(101)===n[e(117)][e(102)]&&o[e(129)](t);for(const t of o)this[e(141)][e(135)](t);for(const[t,o]of n)this[e(141)][e(115)](t,o[o[e(103)]-1]);const i=new Set;for(const[t,s]of n)o[e(138)](t)&&(i[e(129)](s[0]),s[e(103)]>1?n[e(115)](t,s[e(134)](1)):n[e(135)](t),o[e(135)](t));return{removed:Array[e(122)](o),inserted:Array[e(122)](n[e(136)]())[e(109)](),moved:Array[e(122)](i)}}}const u=d;!function(t){const e=d,o=t();for(;;)try{if(107063===-parseInt(e(510))/1+-parseInt(e(479))/2+parseInt(e(422))/3+-parseInt(e(434))/4+-parseInt(e(420))/5+-parseInt(e(455))/6*(parseInt(e(456))/7)+parseInt(e(463))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(p);class f extends t.Plugin{[u(494)]=[];[u(452)]=null;[u(441)]=null;[u(438)];[u(427)];[u(416)];static get[u(489)](){return u(453)}static get[u(435)](){return!0}static get[u(462)](){return!0}constructor(t){const e=u;super(t),this[e(438)]=new l(this[e(461)][e(486)],{elementName:e(447),getElementKey:()=>e(451)}),this[e(427)]=new l(this[e(461)][e(486)],{elementName:e(425),getElementKey:t=>t[e(473)](e(436))}),this[e(416)]=new l(this[e(461)][e(486)],{elementName:e(454),getElementKey:t=>t[e(473)](e(436))})}[u(465)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(444)][t(466)](e=>{const n=t,i=o[n(444)][n(500)][n(482)]();let s=!1;return this[n(492)](e,i)&&(s=!0),this[n(472)](e,i)&&(s=!0),this[n(457)](e,i)&&(s=!0),this[n(418)](e)&&(s=!0),this[n(499)](e)&&(s=!0),this[n(478)](e)&&(s=!0),s}),this[t(415)](o[t(444)],t(504),()=>{const e=t;o[e(469)]({isUndoable:!1},t=>{this[e(471)](t)})},{priority:t(439)}),this[t(415)](n,t(458),()=>{const e=t;this[e(494)]=[],this[e(438)][e(431)](),this[e(427)][e(431)](),this[e(416)][e(431)]()},{priority:t(496)})}[u(423)](){return this[u(452)]}[u(507)](t){const e=u;return this[e(494)][e(440)](e=>e.id===t)||null}[u(491)](){const t=u;return Array[t(421)](this[t(494)])}[u(437)](){return this[u(441)]}[u(476)](t){this[u(441)]=t}[u(432)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(494)][o(459)];i++)this[o(490)](t,i)&&(n=!0);return n}[u(419)](t,e){const o=u,n=t[o(474)](o(447),{});return t[o(483)](n,e),this[o(452)]=n,n}[u(471)](t){const e=u;if(!this[e(494)][e(459)]||this[e(452)])return;const o=this[e(494)][0][e(470)][e(428)],n=this[e(419)](t,o);for(const o of this[e(494)])o[e(446)][e(430)]||t[e(502)](o[e(446)],n,e(480));this[e(432)](t)}[u(492)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(438)][o(482)](e);if(r[o(459)]&&(this[o(452)]=r[0]),i[o(459)])if(i[o(459)]>1||this[o(452)]&&i[o(417)](t=>t!==this[o(452)])){const e=t[o(474)](o(447),{}),s=[];this[o(452)]&&s[o(508)](this[o(452)]),s[o(508)](...i),t[o(502)](e,s[0],o(509));for(const n of s)t[o(501)](t[o(424)](n),t[o(460)](e,o(480))),t[o(445)](n);this[o(452)]=e,this[o(432)](t),n=!0}else this[o(452)]=i[0];if(s[o(459)]&&o(429)===this[o(452)]?.[o(428)][o(484)]){for(const e of this[o(494)])t[o(445)](e[o(470)]),n=!0;this[o(494)]=[],this[o(452)]=null}return n}[u(472)](t,e){const o=u;let n=!1;const i=this[o(461)][o(503)][o(468)](o(464)),{inserted:s,moved:r}=this[o(416)][o(482)](e);for(const e of[...r,...s]){const s=e[o(473)](o(436)),r=this[o(507)](s);r&&(r[o(446)]=e),h(t,i,e)&&(n=!0)}return n}[u(457)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(427)][o(482)](e);for(const e of i)this[o(449)](t,e)&&(n=!0);for(const e of s)this[o(495)](t,e)&&(n=!0);for(const e of r)this[o(443)](t,e)&&(n=!0);return n}[u(499)](t){const e=u;if(!this[e(452)])return!1;let o=!1;if(this[e(452)][e(498)]!==this[e(494)][e(459)]){const n=[];for(const t of this[e(452)][e(488)]()){const i=t[e(473)](e(436));this[e(507)](i)||(n[e(485)](t),o=!0)}for(const o of n)t[e(445)](o)}const n=new Set,i=[];for(const t of this[e(452)][e(488)]()){const s=t[e(473)](e(436));n[e(487)](s)?(i[e(485)](t),o=!0):n[e(477)](s)}for(const o of i)t[e(445)](o);return this[e(452)][e(498)]||(t[e(445)](this[e(452)]),this[e(452)]=null,o=!0),o}[u(495)](t,e){const o=u;if(this[o(494)][o(440)](t=>t[o(470)]===e))return!1;let n=!1;const i=e[o(473)](o(436)),s=this[o(494)][o(493)](t=>t.id===i);-1!==s&&(t[o(445)](this[o(494)][s][o(470)]),this[o(494)][o(442)](s,1),n=!0);let r=this[o(452)]?function(t,e){const n=o;for(const o of t[n(488)]())if(o[n(473)](n(436))===e)return o;return null}(this[o(452)],i):null;r||(r=t[o(474)](o(454),{footnoteId:i}),this[o(452)]&&(t[o(502)](r,this[o(452)],o(480)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(461)][o(486)],this[o(494)],e);this[o(494)][o(442)](c,0,a);let l=c;return-1!==s&&(l=Math[o(505)](c,s)),this[o(432)](t,l)&&(n=!0),n}[u(449)](t,e){const o=u,n=this[o(494)][o(493)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(494)][n];return o(429)!==s[o(446)][o(428)][o(484)]&&(t[o(445)](s[o(446)]),i=!0),this[o(494)][o(442)](n,1),this[o(432)](t,n)&&(i=!0),i}[u(443)](t,e){const o=u,n=e[o(473)](o(436)),i=this[o(494)][o(493)](t=>t.id===n),s=this[o(494)][i];let r=!1;s[o(470)]=e,this[o(494)][o(442)](i,1);const a=m(this[o(461)][o(486)],this[o(494)],e);return this[o(494)][o(442)](a,0,s),this[o(432)](t,Math[o(505)](i,a))&&(r=!0),r}[u(490)](t,e){const o=u;if(!this[o(452)])return!1;const n=this[o(494)][e];let i;return i=this[o(441)]?this[o(441)]({footnote:n,container:this[o(452)],digits:String(this[o(494)][o(459)])[o(459)],value:e+1}):String(e+1),n[o(470)][o(473)](o(467))!=i&&(t[o(506)](o(467),i,n[o(470)]),!0)}[u(478)](t){const e=u;if(!this[e(452)]||this[e(494)][e(459)]<2)return!1;if(function(t,o){const n=e;if(t[n(459)]!==o[n(459)])return!1;for(let e=0;e<t[n(459)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(494)][e(511)](t=>t.id),Array[e(421)](this[e(452)][e(488)]())[e(511)](t=>t[e(473)](e(436)))))return!1;let o=!1;for(let n=0;n<this[e(494)][e(459)];n++){const i=this[e(494)][n],s=t[e(481)](i[e(446)]),r=t[e(460)](this[e(452)],n);s[e(426)](r)||(t[e(501)](t[e(475)](i[e(446)]),r),o=!0)}return o}[u(418)](t){const e=u;if(!this[e(494)][e(459)])return!1;const{model:o}=this[e(461)];let n=!1;for(let i=0;i<this[e(494)][e(459)]-1;i++){const s=this[e(494)][i],r=this[e(494)][i+1],a=o[e(481)](s[e(470)]),c=o[e(481)](r[e(470)]);e(497)===a[e(433)](c)&&(this[e(443)](t,s[e(470)]),i=-1,n=!0)}return n}}function d(t,e){const o=p();return(d=function(t,e){return o[t-=413]})(t,e)}function p(){const t=["getFootnote","push","before","33171gyqaLC","map","footnoteInlineContent","getRootNames","listenTo","_footnoteDefsTracker","some","_ensureFootnotesReferencesHaveProperOrder","_insertEmptyFootnotesDefinitionsContainer","1069295AMOgSY","from","285990XFKodX","getFootnotesDefinitionsObjectElement","createRangeIn","footnoteRef","isEqual","_footnoteRefsTracker","root","$graveyard","parent","reset","_updateFootnotesCounters","compareWith","617512QqOwvU","isOfficialPlugin","footnoteId","getFootnotesFormatter","_footnoteDefsContainerTracker","low","find","_footnoteFormatter","splice","_handleMovedFootnoteReference","document","remove","definition","footnotesDefinitions","paragraph","_handleRemoveFootnoteReferenceById","indexOf","singleton","_footnotesDefinitions","FootnotesTracker","footnoteDefinition","646698BAChkp","7cTzRsG","_handleFootnoteReferencesChanges","set","length","createPositionAt","editor","isPremiumPlugin","4647216obWBXW","footnotes.multiBlock","init","registerPostFixer","footnoteCounter","get","enqueueChange","reference","_ensureFootnotesDefinitionsContainerExists","_handleFootnoteDefinitionsChanges","getAttribute","createElement","createRangeOn","setFootnoteFormatter","add","_sortFootnoteDefinitions","119956WIRjEt","end","createPositionBefore","getChanges","append","rootName","unshift","model","has","getChildren","pluginName","_updateFootnoteRefCounter","getFootnotes","_handleFootnotesDefinitionsObjectChanges","findIndex","_footnotes","_handleInsertedFootnoteReference","high","after","childCount","_handleFootnotesDefinitionsObjectSync","differ","move","insert","config","change:data","min","setAttribute"];return(p=function(){return t})()}function h(t,e,o){const n=u;if(o[n(498)])return!1;const i=n(e?448:413);return t[n(502)](t[n(474)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(459)])return 0;const i=t[n(481)](o);for(let o=0;o<e[n(459)];o++){const s=e[o],r=t[n(481)](s[n(470)]);if(n(509)===i[n(433)](r))return o}const s=o[n(428)];let r=-1;for(let t=e[n(459)]-1;t>=0;t--)if(e[t][n(470)][n(428)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(444)][n(414)](),c=a[n(450)](s[n(484)]),l=a[c+1];if(l)for(let t=0;t<e[n(459)];t++)if(e[t][n(470)][n(428)][n(484)]===l)return t;return e[n(459)]}const g=y;function w(){const t=["refresh","6220QqNnAH","4194UfiyxA","getFirstRange","selection","2397288khkBav","model","string","getItems","FootnotesEditing","test","49608BuPSaz","length","footnoteRef","isBlock","isObject","_moveSelectionToFootnoteDefinition","isEnabled","_getPositionToInsertFootnote","insert-footnote-command-executed-with-invalid-id","editor","get","checkChild","end","document","footnoteId","6786909JSScfF","7MOYzps","4426380zbRpYa","insertObject","change","60znDAtM","plugins","3143510uINPUb","createElement","9948504NHDJgI","execute"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=289]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(751072===parseInt(e(320))/1*(parseInt(e(303))/2)+-parseInt(e(314))/3+parseInt(e(300))/4+parseInt(e(310))/5*(-parseInt(e(311))/6)+parseInt(e(299))/7*(-parseInt(e(307))/8)+parseInt(e(298))/9+parseInt(e(305))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(309)](){const t=g,e=this[t(292)][t(315)][t(296)][t(313)],o=this[t(290)](e);this[t(289)]=!!o}[g(308)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(296)],r=this[e(290)](s);if(!r)return;const a=o[e(304)][e(293)](e(318)),c=t?.[e(297)]??(0,i.uid)();!function(t){const o=e;return o(316)==typeof t&&t[o(321)]>0&&!/\s/[o(319)](t)&&!/^\d/[o(319)](t)}(c)?(0,i.logWarning)(e(291)):(n[e(302)](t=>{const o=e,i=t[o(306)](o(322),{footnoteId:c});n[o(301)](i,r,null)}),a[e(325)](c))}[g(290)](t){const e=g,{model:o}=this[e(292)],{schema:n}=o,i=t[e(312)]();for(const t of i[e(317)]())if(n[e(323)](t)||n[e(324)](t))return null;const s=i[e(295)];return n[e(294)](s,e(322))?s:null}}class I 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=h([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[h([121])]:h([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],u(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?f(u(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+f(u(t)),n=d(f(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+f(u(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1770681600;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(f).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(f).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:v()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);function D(){const t=["footnoteDefinition","1158059JVOFcI","clipboardInput","length","string","footnotesDefinitions","1916715njCYlI","includes","footnoteInlineContent","_defineClipboardIntegration","parse","getRanges","htmlProcessor","stringify","config","entries","isPremiumPlugin","FootnotesClipboard","2303PQczmW","232684imweXd","requires","dataTransfer","getChildren","_handlePasteFootnotesDefinitions","createRangeIn","selection","cloneElement","definition","application/ckeditor5-footnotes","hasAttribute","element","remove","insert","push","add","8TilLkp","method","5221620ewdKqI","2711574xbuLdr","document","root","setAttribute","footnotes.multiBlock","end","change","find","isOfficialPlugin","getData","footnoteId","footnoteRef","from","get","1180233wWDKge","getFirstRange","data","getSelectedBlocks","editor","listenTo","4fNugbg","content","getFootnotesDefinitionsObjectElement","_insertEmptyFootnotesDefinitionsContainer","outputTransformation","flatMap","editing","getFootnotes","sourceEditorId","createElement","getAttribute","toModel","append","reduce","create","toView","init","setData","_handleCopyFootnotesDefinitions","keys","drop","pluginName","getFootnote","contentInsertion","toData"];return(D=function(){return t})()}const T=A;function A(t,e){const o=D();return(A=function(t,e){return o[t-=110]})(t,e)}!function(t){const e=A,o=t();for(;;)try{if(357321===parseInt(e(115))/1*(-parseInt(e(155))/2)+parseInt(e(149))/3+parseInt(e(116))/4+-parseInt(e(186))/5+-parseInt(e(135))/6+-parseInt(e(181))/7*(-parseInt(e(132))/8)+parseInt(e(134))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[T(176)](){return T(114)}static get[T(117)](){return[I,P.ClipboardPipeline]}static get[T(143)](){return!0}static get[T(113)](){return!0}[T(171)](){this[T(189)]()}[T(189)](){const t=T;this[t(173)](),this[t(120)]()}[T(173)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(148)](P.ClipboardPipeline),s=o[t(148)](f);this[t(154)](i,t(159),(o,i)=>{const r=t,a=V(n[r(121)](i[r(156)]));if(!a[r(183)])return;const c=s[r(162)](),l=a[r(168)]((t,o)=>{const n=r,i=c[n(142)](t=>t.id===o);if(i){const o=e[n(151)][n(170)](i[n(124)],{isClipboardPipeline:!0}),s=e[n(151)][n(192)][n(179)](o);t[i.id]=s}return t},Object[r(169)](null));i[r(118)][r(172)](r(125),JSON[r(110)](l))})}[T(120)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(161)],r=n[t(148)](P.ClipboardPipeline),a=n[t(148)](f),c=e[t(111)][t(148)](t(139));let l=null;this[t(154)](s[t(136)],t(182),(e,o)=>{const n=t,i=o[n(118)][n(144)](n(125));l=i?JSON[n(190)](i):null}),this[t(154)](r,t(178),(n,s)=>{const r=t,u=s[r(163)]===this[r(153)].id;u&&r(175)===s[r(133)]||o[r(141)](t=>{const n=r;let f=a[n(157)]();const d=!!f&&Array[n(147)](o[n(136)][n(122)][n(152)]())[n(187)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(127),e(146)))return!0;return!1}(o[n(121)](s[n(156)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(169)](null);for(const e of i[o(119)]())e.is(o(127),o(180))&&e[o(126)](o(145))&&(s[e[o(165)](o(145))]=t[o(123)](e,!0));return Object[o(174)](s)[o(183)]?s:null}(t,s[n(156)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(121)](e))n.is(o(127),o(185))&&i[o(130)](n);for(const e of i)t[o(128)](e)}(t,s[n(156)]),!l)return;const{selection:p}=o[n(136)],h=p[n(150)]()[n(137)];f&&!d||(f=L(t,s[n(156)]),f||=a[n(158)](t,h));const m=Array[n(147)](p[n(191)]())[n(160)](V),g=function(t,e,o){const s=n,r=Object[s(169)](null);for(const{item:n}of t[s(121)](e))if(n.is(s(127),s(146))){const e=n[s(165)](s(145));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(138)](s(145),r[e],n)}return r}(t,s[n(156)],t=>{const e=n;return!u||!!a[e(177)](t)&&!m[e(187)](t)});for(const[o,i]of Object[n(112)](l)){const s=g[o]||o;let r;if(n(184)!=typeof i)r=i,s!==o&&t[n(138)](n(145),s,r);else{r=t[n(164)](n(180),{footnoteId:s});const o=e[n(151)][n(192)][n(170)](i);let a;if(c)a=e[n(151)][n(166)](o,r);else{a=t[n(164)](n(188));const i=e[n(151)][n(166)](o,a);t[n(129)](i,a)}t[n(167)](a,r)}t[n(129)](r,f,n(140))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(121)](e))if(n.is(o(127),o(185)))return n;return null}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(127),e(146))&&o[e(131)](n[e(165)](e(145)));return Array[e(147)](o)}var N=o(311),O=o(355),R=o(929),K=o.n(R),j=o(297),M=o.n(j),B=o(102),W=o.n(B),U=o(123),z=o.n(U),H=o(741),X=o.n(H),q=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=z(),G.insert=W().bind(null,"head"),G.domAPI=M(),G.insertStyleElement=X();K()(q.A,G);q.A&&q.A.locals&&q.A.locals;class J extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Y(t,N.ButtonView)),e.add("menuBar:insertFootnote",Y(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Y(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Q=Z;function $(){var t=["requires","isPremiumPlugin","7195QiQguw","Footnotes","894GrFOga","458829tRiuqC","isOfficialPlugin","306231BJxsTG","88mSHiQu","4112vSDPsD","34767KDoksl","92822MOVSvu","4cvHXED","pluginName","7271460unIsJU"];return($=function(){return t})()}function Z(t,e){var o=$();return(Z=function(t,e){return o[t-=224]})(t,e)}!function(t){for(var e=Z,o=t();;)try{if(108747===-parseInt(e(227))/1+parseInt(e(228))/2*(-parseInt(e(238))/3)+parseInt(e(225))/4+-parseInt(e(233))/5*(parseInt(e(235))/6)+-parseInt(e(236))/7+-parseInt(e(224))/8*(parseInt(e(226))/9)+parseInt(e(230))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[Q(229)](){return Q(234)}static get[Q(231)](){return[I,_,J]}static get[Q(237)](){return!0}static get[Q(232)](){return!0}}const et=nt;!function(t){const e=nt,o=t();for(;;)try{if(539356===parseInt(e(138))/1*(parseInt(e(136))/2)+-parseInt(e(141))/3*(parseInt(e(147))/4)+parseInt(e(133))/5+-parseInt(e(145))/6*(parseInt(e(132))/7)+-parseInt(e(146))/8+parseInt(e(128))/9*(-parseInt(e(134))/10)+parseInt(e(130))/11*(parseInt(e(129))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);const ot=[et(137),et(142),et(144),et(135),et(143),et(140),et(139),et(131)];function nt(t,e){const o=it();return(nt=function(t,e){return o[t-=128]})(t,e)}function it(){const t=["lower-roman","upper-alpha","2676pbUaOq","decimal-leading-zero","lower-alpha","lower-latin","43338KWSADk","1319800XFWapH","4108DJSVRv","8271szBekn","708apVbYc","308649WFUfcd","upper-roman","973tchJVV","3660555JbrLmE","4110UVPOjE","upper-latin","136562CBsxGD","decimal","9YZkAPc"];return(it=function(){return t})()}const st=at;function rt(){const t=["5CodELh","1180sGTFND","get","isEnabled","plugins","refresh","footnotesListStyle","1255362xSqwEX","setAttribute","2NvoKnz","model","value","66829xSTGwF","132473nCyvUE","1012644hlNOPI","392xVmANB","getAttribute","4533003mBIadx","_updateFootnotesCounters","55777gNWIYZ","change","includes","2923820PKpBNV","execute","getFootnotesDefinitionsObjectElement"];return(rt=function(){return t})()}function at(t,e){const o=rt();return(at=function(t,e){return o[t-=250]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(460352===parseInt(e(259))/1*(parseInt(e(274))/2)+-parseInt(e(272))/3+parseInt(e(262))/4*(-parseInt(e(265))/5)+parseInt(e(254))/6+-parseInt(e(252))/7*(-parseInt(e(255))/8)+-parseInt(e(257))/9+parseInt(e(266))/10*(parseInt(e(253))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[st(270)](){const t=st,{editor:e}=this,o=e[t(269)][t(267)](f)[t(264)]();this[t(268)]=!!o,this[t(251)]=o?.[t(256)](t(271))??null}[st(263)]({value:t}){const e=st,{editor:o}=this,n=o[e(269)][e(267)](f),i=n[e(264)]();i&&ot[e(261)](t)&&o[e(250)][e(260)](o=>{const s=e;o[s(273)](s(271),t,i),n[s(258)](o)})}}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=280]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(716663===-parseInt(e(290))/1+-parseInt(e(285))/2+parseInt(e(282))/3*(parseInt(e(284))/4)+-parseInt(e(294))/5*(parseInt(e(293))/6)+parseInt(e(281))/7*(-parseInt(e(289))/8)+parseInt(e(295))/9*(parseInt(e(304))/10)+-parseInt(e(287))/11*(-parseInt(e(288))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(286)](){const t=lt,{editor:e}=this,o=e[t(298)][t(297)](f)[t(292)]();this[t(283)]=!!o,this[t(300)]=o?.[t(291)](t(302))??null}[lt(305)]({value:t}){const e=lt,{editor:o}=this,n=o[e(298)][e(297)](f),i=n[e(292)]();i&&Number[e(299)](t)&&o[e(280)][e(296)](o=>{const s=e;o[s(301)](s(302),t,i),n[s(303)](o)})}}function dt(){const t=["_updateFootnotesCounters","11634430xaTqjT","execute","model","105TRZLtz","472089wHkbBV","isEnabled","4jGiFci","2186308uwXrkK","refresh","165OXXZxA","2788608VXkifC","449240YXsRWE","1049134oUXXnG","getAttribute","getFootnotesDefinitionsObjectElement","3315870yHHfig","10iZrVEh","9IhYroM","change","get","plugins","isInteger","value","setAttribute","footnotesListStart"];return(dt=function(){return t})()}const pt=mt;function ht(){const t=["document","attribute:footnotesListStyle:footnotesDefinitions","toLowerCase","init","6640cJeSYg","differ","get","list-style-type","parent","footnotesDefinitions","registerPostFixer","setAttribute","item","getStyle","consume","consumable","element","getAttribute","82souOQt","type","footnotesStart","_defineSchema","setStyle","footnotesStyle","from","isPremiumPlugin","getItems","floor","footnotes-list","insert","hasAttribute","setFootnoteFormatter","padStart","10289350Rbihjp","decimal","1080rSpMpy","removeAttribute","_getDefaultListStyle","getChildren","find","FootnotesPropertiesEditing","modelCursor","plugins","upper-alpha","25269900XyDwQW","isOfficialPlugin","pluginName","_defineConverters","13esMuJU","nodeAfter","4437162MEFnsY","$text","attribute:footnotesListStart:footnotesDefinitions","requires","checkAttribute","_formatFootnoteListValue","5268uiLDDC","footnotesListStyle","upcast","upper-latin","max","upper-roman","footnotes.footnotesProperties.defaultStartIndex","getChanges","schema","lower-roman","_defineFormatter","toViewElement","footnotes.footnotesProperties.defaultListStyle","removeStyle","commands","21609bQaEic","createRangeOn","position","_updateFootnotesCounters","parseInt","216wyxaYv","config","start","writer","lower-latin","lower-alpha","define","editor","downcast","fromCharCode","element:ol","_getDefaultStartIndex","for","name","viewItem","isNaN","mapper","footnotesListStart","model","11RFsdoN","extend","_definePostfixer","hasClass","add","toUpperCase","decimal-leading-zero","1945SJqsfy","8740GPXGGN"];return(ht=function(){return t})()}function mt(t,e){const o=ht();return(mt=function(t,e){return o[t-=313]})(t,e)}!function(t){const e=mt,o=t();for(;;)try{if(685554===parseInt(e(358))/1*(parseInt(e(378))/2)+parseInt(e(395))/3*(-parseInt(e(359))/4)+parseInt(e(364))/5*(-parseInt(e(416))/6)+parseInt(e(327))/7*(-parseInt(e(332))/8)+-parseInt(e(410))/9+-parseInt(e(393))/10*(-parseInt(e(351))/11)+-parseInt(e(404))/12*(-parseInt(e(408))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class gt extends t.Plugin{static get[pt(406)](){return pt(400)}static get[pt(413)](){return[I,f]}static get[pt(405)](){return!0}static get[pt(385)](){return!0}[pt(363)](){const t=pt,{editor:e}=this;e[t(333)][t(338)](t(324),t(394)),e[t(333)][t(338)](t(318),1),e[t(326)][t(355)](t(383),new ct(e)),e[t(326)][t(355)](t(380),new ft(e)),this[t(381)](),this[t(407)](),this[t(322)](),this[t(353)]()}[pt(381)](){const t=pt,{editor:e}=this,{schema:o}=e[t(350)];o[t(352)](t(369),{allowAttributes:[t(313),t(349)]})}[pt(407)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(344)](t(314))[t(355)](e=>{const o=t;e.on(o(342),(t,e,n)=>{const s=o,r=e[s(346)],a=e[s(401)]?.[s(368)];r[s(354)](s(388))&&a?.is(s(376),s(369))&&(function(t,e,o,n){const i=s;if(!n[i(414)](e,i(349)))return;let r=1;const a=o[i(375)][i(374)](t,{attributes:i(334)});if(a){const e=Number[i(331)](t[i(377)](i(334)),10);Number[i(347)](e)||(r=e)}!a&&e[i(390)](i(349))||o[i(335)][i(371)](i(349),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(414)](e,i(313)))return;let r=i(394),a=!1;if(o[i(375)][i(374)](t,{attributes:i(379)})){const e={1:i(394),a:i(337),A:i(403),i:i(321),I:i(317)}[t[i(377)](i(379))];e&&(r=e),a=!0}o[i(375)][i(374)](t,{styles:i(367)})&&(r=function(t){const e=i;switch(t){case e(337):return e(336);case e(403):return e(315);default:return t}}(t[i(373)](i(367))),a=!0),!a&&e[i(390)](i(313))||o[i(335)][i(371)](i(313),r,e)}(r,a,n,i))})}),o[t(344)](t(340))[t(355)](e=>{const o=t;e.on(o(412),(t,e,n)=>{const i=o;if(!n[i(375)][i(374)](e[i(372)],t[i(345)]))return;const s=wt(e[i(372)],n[i(348)]),{attributeNewValue:r}=e;null==r||1===r?n[i(335)][i(396)](i(334),s):n[i(335)][i(371)](i(334),String(r),s)}),e.on(o(361),(t,e,n)=>{const i=o;if(!n[i(375)][i(374)](e[i(372)],t[i(345)]))return;const s=wt(e[i(372)],n[i(348)]),{attributeNewValue:r}=e;r&&i(394)!==r?n[i(335)][i(382)](i(367),r,s):n[i(335)][i(325)](i(367),s)})})}[pt(353)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(402)][t(366)](f),i=this[t(397)](),s=this[t(343)]();o[t(360)][t(370)](e=>{const r=t,a=o[r(360)][r(365)][r(319)]();let c=!1;for(const t of a){if(r(389)!==t[r(379)]||r(411)===t[r(345)])continue;const n=o[r(328)](t[r(329)][r(409)]);for(const t of n[r(386)]())t.is(r(376),r(369))&&(!t[r(390)](r(349))&&o[r(320)][r(414)](t,r(349))&&(e[r(371)](r(349),s,t),c=!0),!t[r(390)](r(313))&&o[r(320)][r(414)](t,r(313))&&(e[r(371)](r(313),i,t),c=!0))}return c&&n[r(330)](e),c})}[pt(322)](){const t=pt,{editor:e}=this;e[t(402)][t(366)](f)[t(391)](e=>this[t(415)](e))}[pt(397)](){const t=pt;return this[t(339)][t(333)][t(366)](t(324))}[pt(343)](){const t=pt;return this[t(339)][t(333)][t(366)](t(318))}[pt(415)]({container:t,value:e,digits:o}){const n=pt,i=t[n(377)](n(313)),s=t[n(377)](n(349)),r=Math[n(387)](e)+(s??1)-1;switch(i){case n(357):return function(t,e){const o=n;return String(t)[o(392)](e,"0")}(r,Math[n(316)](2,o));case n(337):case n(336):return yt(r,!1);case n(403):case n(315):return yt(r,!0);case n(321):return It(r,!1);case n(317):return It(r,!0);default:return String(r)}}}function wt(t,e){const o=pt,n=e[o(323)](t);return Array[o(384)](n[o(398)]())[o(399)](t=>t.is(o(376),"ol")&&t[o(354)](o(388)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(341)](97+t)+n,i=Math[o(387)]((i-1)/26)}return e?n[o(356)]():n}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function It(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(362)]()}class vt extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=z(),Ct.insert=W().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=X();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}function xt(){var t=["8STwRNJ","2790eGHSuk","isPremiumPlugin","FootnotesProperties","50769bbXeQB","isOfficialPlugin","9191847fWaYrB","requires","3686451QunxCX","329318KTmRyY","pluginName","1577895pcFNNc","2161104QRXDWh","10sPPFyV","26489089MGummp","4WrTiIE"];return(xt=function(){return t})()}var Et=St;function St(t,e){var o=xt();return(St=function(t,e){return o[t-=191]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(852029===parseInt(e(203))/1*(parseInt(e(191))/2)+-parseInt(e(202))/3*(parseInt(e(193))/4)+parseInt(e(205))/5+-parseInt(e(206))/6+-parseInt(e(200))/7*(-parseInt(e(194))/8)+-parseInt(e(198))/9*(-parseInt(e(195))/10)+-parseInt(e(192))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Pt extends t.Plugin{static get[Et(204)](){return Et(197)}static get[Et(201)](){return[gt,Ft]}static get[Et(199)](){return!0}static get[Et(196)](){return!0}}function Dt(t,e){var o=Tt();return(Dt=function(t,e){return o[t-=183]})(t,e)}function Tt(){var t=["6648990NEkoyi","424SAuhcO","3OMeMWP","260046ITglna","6477385gGtKVd","6ykutBu","2186990ifqESe","7edwgTS","586793Wedoqj","4623416NnCOWr","13331835BCJYlR"];return(Tt=function(){return t})()}!function(t){for(var e=Dt,o=t();;)try{if(892535===-parseInt(e(183))/1*(-parseInt(e(191))/2)+-parseInt(e(188))/3*(parseInt(e(184))/4)+parseInt(e(190))/5+-parseInt(e(186))/6*(parseInt(e(193))/7)+-parseInt(e(187))/8*(-parseInt(e(189))/9)+-parseInt(e(192))/10+-parseInt(e(185))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x1843e4,Command as _0x17de77}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x11a248,isWidget as _0x244f14,toWidgetEditable as _0x53a52e,WidgetToolbarRepository as _0x46d4a8}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x296dd1,logWarning as _0x57c409,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x341553,ClickObserver as _0x416654}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x4a904e}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x40bf20,ButtonView as _0x3715c2,View as _0x2e5830,ViewCollection as _0x5e509e,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x367f43,BalloonPanelView as _0x56ce40,createDropdown as _0x2dc4db}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x536cee,IconListStyleDecimal as _0x59d4c5,IconListStyleDecimalLeadingZero as _0x51c695,IconListStyleLowerRoman as _0x2ae7ff,IconListStyleUpperRoman as _0x43e876,IconListStyleLowerLatin as _0x283c97,IconListStyleUpperLatin as _0x3404fd}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x1b3c9a,_0x43863a){this['_model']=_0x1b3c9a,this['_elementName']=_0x43863a['elementName'],this['_getElementKey']=_0x43863a['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x553457){const _0xdab0a0=new Set(),_0x456868=new Map();for(const _0x47d1c4 of _0x553457){if('insert'===_0x47d1c4['type']&&'$text'!==_0x47d1c4['name']&&_0x47d1c4['position']['nodeAfter']){const _0x3adb5a=this['_model']['createRangeOn'](_0x47d1c4['position']['nodeAfter']);for(const _0x26bdd1 of _0x3adb5a['getItems']()){if(!_0x26bdd1['is']('element',this['_elementName']))continue;const _0x3abe98=this['_getElementKey'](_0x26bdd1);_0x456868['has'](_0x3abe98)||_0x456868['set'](_0x3abe98,[]),_0x456868['get'](_0x3abe98)['push'](_0x26bdd1);}}if('remove'===_0x47d1c4['type']&&_0x47d1c4['name']===this['_elementName']){const _0x58c67e=this['_getElementKey']({'getAttribute':_0x3d6f77=>_0x47d1c4['attributes']['get'](_0x3d6f77)});_0xdab0a0['add'](_0x58c67e);}}for(const [_0x26a72f,_0x2d9a16]of this['_trackedElements'])'$graveyard'===_0x2d9a16['root']['rootName']&&_0xdab0a0['add'](_0x26a72f);for(const _0x3900a0 of _0xdab0a0)this['_trackedElements']['delete'](_0x3900a0);for(const [_0x43a1fd,_0x6600a]of _0x456868)this['_trackedElements']['set'](_0x43a1fd,_0x6600a[_0x6600a['length']-0x1]);const _0x5668ce=new Set();for(const [_0x515fd0,_0x20dac9]of _0x456868)_0xdab0a0['has'](_0x515fd0)&&(_0x5668ce['add'](_0x20dac9[0x0]),_0x20dac9['length']>0x1?_0x456868['set'](_0x515fd0,_0x20dac9['slice'](0x1)):_0x456868['delete'](_0x515fd0),_0xdab0a0['delete'](_0x515fd0));return{'removed':Array['from'](_0xdab0a0),'inserted':Array['from'](_0x456868['values']())['flat'](),'moved':Array['from'](_0x5668ce)};}}class f extends _0x1843e4{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1cf028){super(_0x1cf028),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x2eefd8=>_0x2eefd8['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x481adf=>_0x481adf['getAttribute']('footnoteId')});}['init'](){const {editor:_0x442612}=this,{model:_0x2fd2f5,data:_0x563501}=_0x442612;_0x2fd2f5['document']['registerPostFixer'](_0xeb4755=>{const _0xba3e31=_0x2fd2f5['document']['differ']['getChanges']();let _0x44a092=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0xeb4755,_0xba3e31)&&(_0x44a092=!0x0),this['_handleFootnoteDefinitionsChanges'](_0xeb4755,_0xba3e31)&&(_0x44a092=!0x0),this['_handleFootnoteReferencesChanges'](_0xeb4755,_0xba3e31)&&(_0x44a092=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0xeb4755)&&(_0x44a092=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0xeb4755)&&(_0x44a092=!0x0),this['_sortFootnoteDefinitions'](_0xeb4755)&&(_0x44a092=!0x0),_0x44a092;}),this['listenTo'](_0x2fd2f5['document'],'change:data',()=>{_0x2fd2f5['enqueueChange']({'isUndoable':!0x1},_0x5988bc=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x5988bc);});},{'priority':'low'}),this['listenTo'](_0x563501,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x3108a8){return this['_footnotes']['find'](_0x3a3049=>_0x3a3049['id']===_0x3108a8)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x5cf457){this['_footnoteFormatter']=_0x5cf457;}['_updateFootnotesCounters'](_0x1d8953,_0x7dd6b6=0x0){let _0x31de04=!0x1;for(let _0x2a5dab=_0x7dd6b6;_0x2a5dab<this['_footnotes']['length'];_0x2a5dab++)this['_updateFootnoteRefCounter'](_0x1d8953,_0x2a5dab)&&(_0x31de04=!0x0);return _0x31de04;}['_insertEmptyFootnotesDefinitionsContainer'](_0x535cf9,_0x3bdaef){const _0x518456=_0x535cf9['createElement']('footnotesDefinitions',{});return _0x535cf9['append'](_0x518456,_0x3bdaef),this['_footnotesDefinitions']=_0x518456,_0x518456;}['_ensureFootnotesDefinitionsContainerExists'](_0x237f5a){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x2757a0=this['_footnotes'][0x0]['reference']['root'],_0x1a4357=this['_insertEmptyFootnotesDefinitionsContainer'](_0x237f5a,_0x2757a0);for(const _0x1acc52 of this['_footnotes'])_0x1acc52['definition']['parent']||_0x237f5a['insert'](_0x1acc52['definition'],_0x1a4357,'end');this['_updateFootnotesCounters'](_0x237f5a);}['_handleFootnotesDefinitionsObjectChanges'](_0x4a019b,_0x658443){let _0x1fc474=!0x1;const {inserted:_0x25deb6,removed:_0x4c70f6,moved:_0x1c65b0}=this['_footnoteDefsContainerTracker']['getChanges'](_0x658443);if(_0x1c65b0['length']&&(this['_footnotesDefinitions']=_0x1c65b0[0x0]),_0x25deb6['length']){if(_0x25deb6['length']>0x1||this['_footnotesDefinitions']&&_0x25deb6['some'](_0x432b3b=>_0x432b3b!==this['_footnotesDefinitions'])){const _0x4f362=_0x4a019b['createElement']('footnotesDefinitions',{}),_0x1ecd19=[];this['_footnotesDefinitions']&&_0x1ecd19['push'](this['_footnotesDefinitions']),_0x1ecd19['push'](..._0x25deb6),_0x4a019b['insert'](_0x4f362,_0x1ecd19[0x0],'before');for(const _0x12d8b3 of _0x1ecd19)_0x4a019b['move'](_0x4a019b['createRangeIn'](_0x12d8b3),_0x4a019b['createPositionAt'](_0x4f362,'end')),_0x4a019b['remove'](_0x12d8b3);this['_footnotesDefinitions']=_0x4f362,this['_updateFootnotesCounters'](_0x4a019b),_0x1fc474=!0x0;}else this['_footnotesDefinitions']=_0x25deb6[0x0];}if(_0x4c70f6['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x56bcc0 of this['_footnotes'])_0x4a019b['remove'](_0x56bcc0['reference']),_0x1fc474=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x1fc474;}['_handleFootnoteDefinitionsChanges'](_0x197c12,_0x32433a){let _0x7185c4=!0x1;const _0x54da0f=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x84c2e3,moved:_0x460d3a}=this['_footnoteDefsTracker']['getChanges'](_0x32433a);for(const _0x1e7fe8 of[..._0x460d3a,..._0x84c2e3]){const _0x36b398=_0x1e7fe8['getAttribute']('footnoteId'),_0x15458d=this['getFootnote'](_0x36b398);_0x15458d&&(_0x15458d['definition']=_0x1e7fe8),_(_0x197c12,_0x54da0f,_0x1e7fe8)&&(_0x7185c4=!0x0);}return _0x7185c4;}['_handleFootnoteReferencesChanges'](_0x4d3111,_0x4e2b2c){let _0x577c97=!0x1;const {removed:_0x1452b5,inserted:_0x2db42a,moved:_0x33bbe7}=this['_footnoteRefsTracker']['getChanges'](_0x4e2b2c);for(const _0x1e05d5 of _0x1452b5)this['_handleRemoveFootnoteReferenceById'](_0x4d3111,_0x1e05d5)&&(_0x577c97=!0x0);for(const _0x7bd90a of _0x2db42a)this['_handleInsertedFootnoteReference'](_0x4d3111,_0x7bd90a)&&(_0x577c97=!0x0);for(const _0x326fc8 of _0x33bbe7)this['_handleMovedFootnoteReference'](_0x4d3111,_0x326fc8)&&(_0x577c97=!0x0);return _0x577c97;}['_handleFootnotesDefinitionsObjectSync'](_0x2c3fb5){if(!this['_footnotesDefinitions'])return!0x1;let _0x27d22c=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x50f4df=[];for(const _0x1086c4 of this['_footnotesDefinitions']['getChildren']()){const _0x4e89ba=_0x1086c4['getAttribute']('footnoteId');this['getFootnote'](_0x4e89ba)||(_0x50f4df['unshift'](_0x1086c4),_0x27d22c=!0x0);}for(const _0x3384bb of _0x50f4df)_0x2c3fb5['remove'](_0x3384bb);}const _0x3c6f4f=new Set(),_0x59fd54=[];for(const _0x4261b8 of this['_footnotesDefinitions']['getChildren']()){const _0x43713=_0x4261b8['getAttribute']('footnoteId');_0x3c6f4f['has'](_0x43713)?(_0x59fd54['unshift'](_0x4261b8),_0x27d22c=!0x0):_0x3c6f4f['add'](_0x43713);}for(const _0x33efc5 of _0x59fd54)_0x2c3fb5['remove'](_0x33efc5);return this['_footnotesDefinitions']['childCount']||(_0x2c3fb5['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x27d22c=!0x0),_0x27d22c;}['_handleInsertedFootnoteReference'](_0x3b3fa3,_0x198fa0){if(this['_footnotes']['find'](_0x347b3c=>_0x347b3c['reference']===_0x198fa0))return!0x1;let _0x463d33=!0x1;const _0x2f7a60=_0x198fa0['getAttribute']('footnoteId'),_0x5aae25=this['_footnotes']['findIndex'](_0x4e9bc5=>_0x4e9bc5['id']===_0x2f7a60);-0x1!==_0x5aae25&&(_0x3b3fa3['remove'](this['_footnotes'][_0x5aae25]['reference']),this['_footnotes']['splice'](_0x5aae25,0x1),_0x463d33=!0x0);let _0x186b9b=this['_footnotesDefinitions']?function(_0x55b839,_0x5aff44){for(const _0x459ce6 of _0x55b839['getChildren']())if(_0x459ce6['getAttribute']('footnoteId')===_0x5aff44)return _0x459ce6;return null;}(this['_footnotesDefinitions'],_0x2f7a60):null;_0x186b9b||(_0x186b9b=_0x3b3fa3['createElement']('footnoteDefinition',{'footnoteId':_0x2f7a60}),this['_footnotesDefinitions']&&(_0x3b3fa3['insert'](_0x186b9b,this['_footnotesDefinitions'],'end'),_0x463d33=!0x0));const _0xabc7a6={'id':_0x2f7a60,'reference':_0x198fa0,'definition':_0x186b9b},_0x1054bf=I(this['editor']['model'],this['_footnotes'],_0x198fa0);this['_footnotes']['splice'](_0x1054bf,0x0,_0xabc7a6);let _0x44fcd5=_0x1054bf;return-0x1!==_0x5aae25&&(_0x44fcd5=Math['min'](_0x1054bf,_0x5aae25)),this['_updateFootnotesCounters'](_0x3b3fa3,_0x44fcd5)&&(_0x463d33=!0x0),_0x463d33;}['_handleRemoveFootnoteReferenceById'](_0x3e280f,_0x93ffe1){const _0x54c03f=this['_footnotes']['findIndex'](_0x46d4c7=>_0x46d4c7['id']===_0x93ffe1);if(-0x1===_0x54c03f)return!0x1;let _0x36669f=!0x1;const _0x18999b=this['_footnotes'][_0x54c03f];return'$graveyard'!==_0x18999b['definition']['root']['rootName']&&(_0x3e280f['remove'](_0x18999b['definition']),_0x36669f=!0x0),this['_footnotes']['splice'](_0x54c03f,0x1),this['_updateFootnotesCounters'](_0x3e280f,_0x54c03f)&&(_0x36669f=!0x0),_0x36669f;}['_handleMovedFootnoteReference'](_0x5cea78,_0x22bd28){const _0xd810b1=_0x22bd28['getAttribute']('footnoteId'),_0x5cba4d=this['_footnotes']['findIndex'](_0x2a95c2=>_0x2a95c2['id']===_0xd810b1),_0xf7af57=this['_footnotes'][_0x5cba4d];let _0x1a3345=!0x1;_0xf7af57['reference']=_0x22bd28,this['_footnotes']['splice'](_0x5cba4d,0x1);const _0x37a35f=I(this['editor']['model'],this['_footnotes'],_0x22bd28);return this['_footnotes']['splice'](_0x37a35f,0x0,_0xf7af57),this['_updateFootnotesCounters'](_0x5cea78,Math['min'](_0x5cba4d,_0x37a35f))&&(_0x1a3345=!0x0),_0x1a3345;}['_updateFootnoteRefCounter'](_0x50ce67,_0x186ed5){if(!this['_footnotesDefinitions'])return!0x1;const _0x1c899f=this['_footnotes'][_0x186ed5];let _0x440d9c;return _0x440d9c=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x1c899f,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x186ed5+0x1}):String(_0x186ed5+0x1),_0x1c899f['reference']['getAttribute']('footnoteCounter')!=_0x440d9c&&(_0x50ce67['setAttribute']('footnoteCounter',_0x440d9c,_0x1c899f['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x8d11fa){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0xd8134,_0x2faab7){if(_0xd8134['length']!==_0x2faab7['length'])return!0x1;for(let _0x46680e=0x0;_0x46680e<_0xd8134['length'];_0x46680e++)if(_0xd8134[_0x46680e]!==_0x2faab7[_0x46680e])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x26c637=>_0x26c637['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x35e480=>_0x35e480['getAttribute']('footnoteId'))))return!0x1;let _0xeae52=!0x1;for(let _0x44c8bf=0x0;_0x44c8bf<this['_footnotes']['length'];_0x44c8bf++){const _0x3be3eb=this['_footnotes'][_0x44c8bf],_0x52b0b9=_0x8d11fa['createPositionBefore'](_0x3be3eb['definition']),_0x4e0ac1=_0x8d11fa['createPositionAt'](this['_footnotesDefinitions'],_0x44c8bf);_0x52b0b9['isEqual'](_0x4e0ac1)||(_0x8d11fa['move'](_0x8d11fa['createRangeOn'](_0x3be3eb['definition']),_0x4e0ac1),_0xeae52=!0x0);}return _0xeae52;}['_ensureFootnotesReferencesHaveProperOrder'](_0x34dbc9){if(!this['_footnotes']['length'])return!0x1;const {model:_0x3a3d31}=this['editor'];let _0x247718=!0x1;for(let _0x190b89=0x0;_0x190b89<this['_footnotes']['length']-0x1;_0x190b89++){const _0xe488d0=this['_footnotes'][_0x190b89],_0x1b7593=this['_footnotes'][_0x190b89+0x1],_0x5b5d2c=_0x3a3d31['createPositionBefore'](_0xe488d0['reference']),_0x39ebea=_0x3a3d31['createPositionBefore'](_0x1b7593['reference']);'after'===_0x5b5d2c['compareWith'](_0x39ebea)&&(this['_handleMovedFootnoteReference'](_0x34dbc9,_0xe488d0['reference']),_0x190b89=-0x1,_0x247718=!0x0);}return _0x247718;}}function _(_0x22218d,_0x217637,_0x6e4fea){if(_0x6e4fea['childCount'])return!0x1;const _0xb0e462=_0x217637?'paragraph':'footnoteInlineContent';return _0x22218d['insert'](_0x22218d['createElement'](_0xb0e462),_0x6e4fea),!0x0;}function I(_0x5bb15e,_0x484b3a,_0x1ca662){if(0x0===_0x484b3a['length'])return 0x0;const _0x3e8f6f=_0x5bb15e['createPositionBefore'](_0x1ca662);for(let _0x541580=0x0;_0x541580<_0x484b3a['length'];_0x541580++){const _0x3fb73b=_0x484b3a[_0x541580],_0x248b6f=_0x5bb15e['createPositionBefore'](_0x3fb73b['reference']);if('before'===_0x3e8f6f['compareWith'](_0x248b6f))return _0x541580;}const _0x37cf6f=_0x1ca662['root'];let _0x6c8c4=-0x1;for(let _0x3d7af0=_0x484b3a['length']-0x1;_0x3d7af0>=0x0;_0x3d7af0--)if(_0x484b3a[_0x3d7af0]['reference']['root']===_0x37cf6f){_0x6c8c4=_0x3d7af0;break;}if(-0x1!==_0x6c8c4)return _0x6c8c4+0x1;const _0x122617=_0x5bb15e['document']['getRootNames'](),_0x553eb3=_0x122617['indexOf'](_0x37cf6f['rootName']),_0x42661c=_0x122617[_0x553eb3+0x1];if(_0x42661c){for(let _0x571ecc=0x0;_0x571ecc<_0x484b3a['length'];_0x571ecc++)if(_0x484b3a[_0x571ecc]['reference']['root']['rootName']===_0x42661c)return _0x571ecc;}return _0x484b3a['length'];}class h extends _0x17de77{['refresh'](){const _0x3547d5=this['editor']['model']['document']['selection'],_0x3c4a54=this['_getPositionToInsertFootnote'](_0x3547d5);this['isEnabled']=!!_0x3c4a54;}['execute'](_0x366f03){const {editor:_0x251b8c}=this,{model:_0xdc3796}=_0x251b8c,{selection:_0xb56bdf}=_0xdc3796['document'],_0x2ac3b5=this['_getPositionToInsertFootnote'](_0xb56bdf);if(!_0x2ac3b5)return;const _0x44dc72=_0x251b8c['plugins']['get']('FootnotesEditing'),_0x4b5bce=_0x366f03?.['footnoteId']??_0x296dd1();!function(_0x3c6db9){return'string'==typeof _0x3c6db9&&_0x3c6db9['length']>0x0&&!/\s/['test'](_0x3c6db9)&&!/^\d/['test'](_0x3c6db9);}(_0x4b5bce)?_0x57c409('insert-footnote-command-executed-with-invalid-id'):(_0xdc3796['change'](_0x32102d=>{const _0x175034=_0x32102d['createElement']('footnoteRef',{'footnoteId':_0x4b5bce});_0xdc3796['insertObject'](_0x175034,_0x2ac3b5,null);}),_0x44dc72['_moveSelectionToFootnoteDefinition'](_0x4b5bce));}['_getPositionToInsertFootnote'](_0x34d537){const {model:_0xad1cde}=this['editor'],{schema:_0x48c827}=_0xad1cde,_0x264c03=_0x34d537['getFirstRange']();for(const _0x2c22c0 of _0x264c03['getItems']())if(_0x48c827['isBlock'](_0x2c22c0)||_0x48c827['isObject'](_0x2c22c0))return null;const _0x10e50c=_0x264c03['end'];return _0x48c827['checkChild'](_0x10e50c,'footnoteRef')?_0x10e50c:null;}}class r extends _0x1843e4{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x12edac}=this;_0x12edac['config']['define']('footnotes.multiBlock',!0x0),_0x12edac['commands']['add']('insertFootnote',new h(_0x12edac)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x2c5c6d){const _0x4ebc90=_0x59234e([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]),_0x286a11=0x47a28506,_0x4b8592=0x47a5043e^_0x286a11,_0x5a1491=window[_0x59234e([0x44,0x61,0x74,0x65])][_0x59234e([0x6e,0x6f,0x77])](),_0x41cd56=_0x2c5c6d[_0x59234e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5399ab=new window[(_0x59234e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x92cc25=>{_0x41cd56[_0x59234e([0x6f,0x6e,0x63,0x65])](_0x59234e([0x72,0x65,0x61,0x64,0x79]),_0x92cc25);}),_0x371f6f={[_0x59234e([0x6b,0x74,0x79])]:_0x59234e([0x45,0x43]),[_0x59234e([0x75,0x73,0x65])]:_0x59234e([0x73,0x69,0x67]),[_0x59234e([0x63,0x72,0x76])]:_0x59234e([0x50,0x2d,0x32,0x35,0x36]),[_0x59234e([0x78])]:_0x59234e([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]),[_0x59234e([0x79])]:_0x59234e([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]),[_0x59234e([0x61,0x6c,0x67])]:_0x59234e([0x45,0x53,0x32,0x35,0x36])},_0x43dd51=_0x41cd56[_0x59234e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59234e([0x67,0x65,0x74])](_0x59234e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2368c2(){let _0x23227d,_0x441350=null,_0x4d6cc2=null;try{if(_0x43dd51==_0x59234e([0x47,0x50,0x4c]))return _0x59234e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x23227d=_0x1e0842(),!_0x23227d)return _0x59234e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x23227d[_0x59234e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d6cc2=_0x392c92(_0x23227d[_0x59234e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x23227d[_0x59234e([0x6a,0x74,0x69])])),await _0x584ede()?_0x49bb10()?_0x2aea8e()?_0x59234e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x98df1()?(_0x23227d[_0x59234e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59234e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x441350=_0x1c9f67(_0x59234e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x42452a()):_0x59234e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59234e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59234e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x59234e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2aea8e(){const _0x1e976b=[_0x59234e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59234e([0x74,0x72,0x69,0x61,0x6c])][_0x59234e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23227d[_0x59234e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5a1491/0x3e8:0xe10*_0x4b8592;return _0x23227d[_0x59234e([0x65,0x78,0x70])]<_0x1e976b;}function _0x49bb10(){const _0x231f9f=_0x23227d[_0x59234e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x231f9f&&(!!_0x231f9f[_0x59234e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59234e([0x2a]))||!!_0x231f9f[_0x59234e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59234e([0x46,0x4f,0x4f])));}function _0x98df1(){const _0x383baf=_0x23227d[_0x59234e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x383baf||0x0==_0x383baf[_0x59234e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4ad4cd}=new URL(window[_0x59234e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x383baf[_0x59234e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ad4cd))return!0x0;const _0x3b0330=_0x4ad4cd[_0x59234e([0x73,0x70,0x6c,0x69,0x74])](_0x59234e([0x2e]));return _0x383baf[_0x59234e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5cc290=>_0x5cc290[_0x59234e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59234e([0x2a])))[_0x59234e([0x6d,0x61,0x70])](_0x54b4c5=>_0x54b4c5[_0x59234e([0x73,0x70,0x6c,0x69,0x74])](_0x59234e([0x2e])))[_0x59234e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xbae65f=>_0xbae65f[_0x59234e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3b0330[_0x59234e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59234e([0x6d,0x61,0x70])](_0x4ea98c=>Array(_0x3b0330[_0x59234e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4ea98c[_0x59234e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59234e([0x66,0x69,0x6c,0x6c])](_0x4ea98c[0x0]===_0x59234e([0x2a])?_0x59234e([0x2a]):'')[_0x59234e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4ea98c))[_0x59234e([0x73,0x6f,0x6d,0x65])](_0x375763=>_0x3b0330[_0x59234e([0x65,0x76,0x65,0x72,0x79])]((_0x272af6,_0x52043a)=>_0x375763[_0x52043a]===_0x272af6||_0x375763[_0x52043a]===_0x59234e([0x2a])));}function _0x42452a(){return _0x441350&&_0x4d6cc2?new window[(_0x59234e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa93b33,_0x33826b)=>{_0x441350[_0x59234e([0x74,0x68,0x65,0x6e])](_0xa93b33,_0x33826b),_0x4d6cc2[_0x59234e([0x74,0x68,0x65,0x6e])](_0x234a7b=>{_0x234a7b!=_0x59234e([0x56,0x61,0x6c,0x69,0x64])&&_0xa93b33(_0x234a7b);},_0x33826b);}):_0x441350||_0x4d6cc2||_0x59234e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x392c92(_0x5750d2,_0x5b15f2){return new window[(_0x59234e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x452a76=>{if(_0xda3ac3())return _0x452a76(_0x59234e([0x56,0x61,0x6c,0x69,0x64]));_0x5b8ef7(),_0x41cd56[_0x59234e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59234e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x25e6ab=!0x1;const _0x3bb7cf=_0x296dd1();function _0x1967f2(_0x50c8db){return!!_0x50c8db&&(typeof _0x50c8db===_0x59234e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x50c8db===_0x59234e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x50c8db[_0x59234e([0x74,0x68,0x65,0x6e])]===_0x59234e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x50c8db[_0x59234e([0x63,0x61,0x74,0x63,0x68])]===_0x59234e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x588f62(_0x29fbfd){_0x269bc5(_0x29fbfd)[_0x59234e([0x74,0x68,0x65,0x6e])](_0xa1e624=>{if(!_0xa1e624||_0xa1e624[_0x59234e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59234e([0x6f,0x6b]))return _0x59234e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3754f5(_0x129bef(_0x3bb7cf+_0x5b15f2))!=_0xa1e624[_0x59234e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59234e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59234e([0x56,0x61,0x6c,0x69,0x64]);})[_0x59234e([0x74,0x68,0x65,0x6e])](_0x56af9e=>(_0x2ee4fa(),_0x56af9e),()=>{const _0x16ed71=_0x16817c();return null==_0x16ed71?(_0x2ee4fa(),_0x59234e([0x56,0x61,0x6c,0x69,0x64])):_0x59234e(_0x5a1491-_0x16ed71>(0x63ae0106^_0x286a11)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59234e([0x74,0x68,0x65,0x6e])](_0x452a76)[_0x59234e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x452a76(_0x59234e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x262c8c=0x47946b86^_0x286a11;function _0x2ee4fa(){const _0x3ecadd=_0x59234e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3754f5(_0x129bef(_0x5750d2)),_0x2721ae=_0x52490d(_0x3754f5(window[_0x59234e([0x4d,0x61,0x74,0x68])][_0x59234e([0x63,0x65,0x69,0x6c])](_0x5a1491/_0x262c8c)));window[_0x59234e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59234e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ecadd,_0x2721ae);}function _0x16817c(){const _0x108361=_0x59234e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3754f5(_0x129bef(_0x5750d2)),_0x491ff4=window[_0x59234e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59234e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x108361);return _0x491ff4?window[_0x59234e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52490d(_0x491ff4),0x10)*_0x262c8c:null;}function _0x269bc5(_0x2421ff){return new window[(_0x59234e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x288c7a,_0x7dd126)=>{_0x2421ff[_0x59234e([0x74,0x68,0x65,0x6e])](_0x288c7a,_0x7dd126),window[_0x59234e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x7dd126,0x47a351c6^_0x286a11);});}}_0x41cd56[_0x59234e([0x6f,0x6e])](_0x59234e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x17ca2a,_0x569e2e)=>{if(_0x569e2e[0x0]!=_0x5750d2)return _0x452a76(_0x59234e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x569e2e[0x1]={..._0x569e2e[0x1],[_0x59234e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3bb7cf};},{[_0x59234e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59234e([0x68,0x69,0x67,0x68])}),_0x41cd56[_0x59234e([0x6f,0x6e])](_0x59234e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4fd53a=>{_0x1967f2(_0x4fd53a[_0x59234e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x25e6ab=!0x0,_0x588f62(_0x4fd53a[_0x59234e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59234e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59234e([0x6c,0x6f,0x77])}),_0x5399ab[_0x59234e([0x74,0x68,0x65,0x6e])](()=>{_0x25e6ab||_0x452a76(_0x59234e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xda3ac3(){return _0x41cd56[_0x59234e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59234e([0x76,0x69,0x65,0x77])][_0x59234e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59234e([0x61,0x75,0x74,0x6f]);}function _0x5b8ef7(){_0x41cd56[_0x59234e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59234e([0x76,0x69,0x65,0x77])][_0x59234e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59234e([0x61,0x75,0x74,0x6f]);}}function _0x1c9f67(_0x3bd8d0){const _0x1553da=[new window[(_0x59234e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31d226=>setTimeout(_0x31d226,0x47abbbca^_0x286a11)),_0x5399ab[_0x59234e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59234e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b6720=>{let _0x17f0fd=0x0;_0x41cd56[_0x59234e([0x6d,0x6f,0x64,0x65,0x6c])][_0x59234e([0x6f,0x6e])](_0x59234e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4dfb73,_0x3b195f)=>{_0x3b195f[0x0][_0x59234e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x17f0fd++,_0x17f0fd==(0x47a280ee^_0x286a11)&&(_0x4b6720(),_0x4dfb73[_0x59234e([0x6f,0x66,0x66])]());});}))];return window[_0x59234e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59234e([0x72,0x61,0x63,0x65])](_0x1553da)[_0x59234e([0x74,0x68,0x65,0x6e])](()=>_0x3bd8d0);}async function _0x541dd2(){await _0x5399ab,_0x41cd56[_0x59234e([0x6d,0x6f,0x64,0x65,0x6c])][_0x59234e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x420b46,_0x41cd56[_0x59234e([0x6d,0x6f,0x64,0x65,0x6c])][_0x59234e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x420b46,_0x41cd56[_0x59234e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59234e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e88f6(_0x1c6e3e){const _0x13795a=_0x26e15b();_0x41cd56[_0x13795a]=_0x59234e([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c6e3e,_0x1c6e3e!=_0x59234e([0x56,0x61,0x6c,0x69,0x64])&&_0x541dd2();}function _0x26e15b(){const _0x3ed427=window[_0x59234e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59234e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59234e([0x6e,0x6f,0x77])]())[_0x59234e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59234e([0x2e]),'');let _0x2ceaa6=_0x59234e([0x75]);for(let _0x19bd94=0x0;_0x19bd94<_0x3ed427[_0x59234e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19bd94+=0x2){let _0x58fb67=window[_0x59234e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ed427[_0x59234e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19bd94,_0x19bd94+0x2));_0x58fb67>=_0x4ebc90[_0x59234e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x58fb67-=_0x4ebc90[_0x59234e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2ceaa6+=_0x4ebc90[_0x58fb67];}return _0x2ceaa6;}function _0x1e0842(){const _0x3fac4a=_0x43dd51[_0x59234e([0x73,0x70,0x6c,0x69,0x74])](_0x59234e([0x2e]));if(0x3!=_0x3fac4a[_0x59234e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2ae8cd(_0x3fac4a[0x1]);function _0x2ae8cd(_0x4250c6){const _0x21fe2d=_0x57e17c(_0x4250c6);return _0x21fe2d&&_0x37a008()?_0x21fe2d:null;function _0x37a008(){const _0x5802b5=_0x21fe2d[_0x59234e([0x6a,0x74,0x69])],_0x5c199a=window[_0x59234e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5802b5[_0x59234e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5802b5[_0x59234e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x12b550={..._0x21fe2d,[_0x59234e([0x6a,0x74,0x69])]:_0x5802b5[_0x59234e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5802b5[_0x59234e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x12b550[_0x59234e([0x76,0x63])],_0x129bef(_0x12b550)==_0x5c199a;}}}async function _0x584ede(){let _0x263a2a=!0x0;try{const _0x49a96c=_0x43dd51[_0x59234e([0x73,0x70,0x6c,0x69,0x74])](_0x59234e([0x2e])),[_0x2a96d9,_0x1f7c4d,_0x19b6fc]=_0x49a96c;return _0x1ad2fb(_0x2a96d9),await _0x218052(_0x2a96d9,_0x1f7c4d,_0x19b6fc),_0x263a2a;}catch{return!0x1;}function _0x1ad2fb(_0x79af62){const _0x18bdf0=_0x57e17c(_0x79af62);_0x18bdf0&&_0x18bdf0[_0x59234e([0x61,0x6c,0x67])]==_0x59234e([0x45,0x53,0x32,0x35,0x36])||(_0x263a2a=!0x1);}async function _0x218052(_0x540e78,_0x5acdcc,_0x296ec5){const _0x31173d=window[_0x59234e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59234e([0x66,0x72,0x6f,0x6d])](_0x56d5e9(_0x296ec5),_0x528c21=>_0x528c21[_0x59234e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5f0c5c=new window[(_0x59234e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59234e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x540e78+_0x59234e([0x2e])+_0x5acdcc),_0x30282a=window[_0x59234e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59234e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30282a)return;const _0x359bdd=await _0x30282a[_0x59234e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59234e([0x6a,0x77,0x6b]),_0x371f6f,{[_0x59234e([0x6e,0x61,0x6d,0x65])]:_0x59234e([0x45,0x43,0x44,0x53,0x41]),[_0x59234e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59234e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59234e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30282a[_0x59234e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59234e([0x6e,0x61,0x6d,0x65])]:_0x59234e([0x45,0x43,0x44,0x53,0x41]),[_0x59234e([0x68,0x61,0x73,0x68])]:{[_0x59234e([0x6e,0x61,0x6d,0x65])]:_0x59234e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x359bdd,_0x31173d,_0x5f0c5c)||(_0x263a2a=!0x1);}}function _0x57e17c(_0x5144ee){return _0x5144ee[_0x59234e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59234e([0x65,0x79]))?JSON[_0x59234e([0x70,0x61,0x72,0x73,0x65])](_0x56d5e9(_0x5144ee)):null;}function _0x56d5e9(_0x2e9c44){return window[_0x59234e([0x61,0x74,0x6f,0x62])](_0x2e9c44[_0x59234e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59234e([0x2b]))[_0x59234e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59234e([0x2f])));}function _0x129bef(_0x1f4240){let _0x5e5563=0x1505;function _0x1704dd(_0x314b54){for(let _0x5056b2=0x0;_0x5056b2<_0x314b54[_0x59234e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5056b2++){const _0x2d9511=_0x314b54[_0x59234e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5056b2);_0x5e5563=(_0x5e5563<<0x5)+_0x5e5563+_0x2d9511,_0x5e5563&=_0x5e5563;}}function _0x1dc850(_0x3ffdf8){Array[_0x59234e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3ffdf8)?_0x3ffdf8[_0x59234e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1dc850):_0x3ffdf8&&typeof _0x3ffdf8==_0x59234e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59234e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3ffdf8)[_0x59234e([0x73,0x6f,0x72,0x74])]()[_0x59234e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4f8059,_0x47faab])=>{_0x1704dd(_0x4f8059),_0x1dc850(_0x47faab);}):_0x1704dd(window[_0x59234e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3ffdf8));}return _0x1dc850(_0x1f4240),_0x5e5563>>>0x0;}function _0x3754f5(_0x1b2404){return _0x1b2404[_0x59234e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59234e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59234e([0x30]));}function _0x52490d(_0x56b63b){return _0x56b63b[_0x59234e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59234e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59234e([0x6a,0x6f,0x69,0x6e])]('');}function _0x420b46(){}function _0x59234e(_0x45f354){return _0x45f354['map'](_0x361bb1=>String['fromCharCode'](_0x361bb1))['join']('');}_0x4e88f6(await _0x2368c2());}(this);}['_moveSelectionToFootnoteDefinition'](_0x13d279){const {plugins:_0x437662,editing:_0x243c00,model:_0xd3b66b}=this['editor'],_0x5ec565=_0x437662['get'](f)['getFootnote'](_0x13d279);return!!_0x5ec565&&(_0xd3b66b['change'](_0x47f82f=>{_0x47f82f['setSelection'](_0x47f82f['createPositionAt'](_0x5ec565['definition'],'end'));}),_0x243c00['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3ccaf8){const {plugins:_0xcaba62,editing:_0x2e658b,model:_0x577c10}=this['editor'],_0x56696d=_0xcaba62['get'](f)['getFootnote'](_0x3ccaf8);return!!_0x56696d&&(_0x577c10['change'](_0x599f26=>{_0x599f26['setSelection'](_0x56696d['reference'],'on');}),_0x2e658b['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x56abf6}=this['editor']['model'],_0x288ed3=this['editor']['config']['get']('footnotes.multiBlock');_0x56abf6['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x56abf6['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x56abf6['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x288ed3?_0x56abf6['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x56abf6['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x56abf6['addChildCheck'](_0x27d3cb=>{for(const _0x1ae5bb of _0x27d3cb)if('footnoteDefinition'===_0x1ae5bb['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x210db6}=this,{conversion:_0x4d49dd,editing:_0x308dd1}=_0x210db6,{t:t}=_0x210db6['locale'];_0x4d49dd['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x22bf1e,{writer:_0x37ae00,consumable:_0x4f6439})=>{const _0x11b6c4=_0x22bf1e['getChild'](0x0);if(!_0x11b6c4||!_0x11b6c4['is']('element','a'))return null;const _0x6f0f83=_0x11b6c4['getAttribute']('href')||'';if(!_0x6f0f83['startsWith']('#'))return null;const _0x432a7f=_0x6f0f83['replace'](/^#/,'');if(!_0x432a7f)return null;_0x4f6439['consume'](_0x11b6c4,{'name':!0x0,'attributes':['href']});for(const {item:_0x34c74c}of _0x308dd1['view']['createRangeIn'](_0x11b6c4))_0x34c74c['is']('$textProxy')?_0x4f6439['consume'](_0x34c74c['textNode'],{'name':!0x0}):_0x34c74c['is']('element')&&_0x4f6439['consume'](_0x34c74c,{'name':!0x0});return _0x37ae00['createElement']('footnoteRef',{'footnoteId':_0x432a7f});}}),_0x4d49dd['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x427b8c,{writer:_0x4e11a7})=>b(_0x427b8c,_0x4e11a7)}),_0x4d49dd['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1fad77,{writer:_0x143acf})=>{const _0x2384db=_0x1fad77['getAttribute']('footnoteCounter');return _0x11a248(b(_0x1fad77,_0x143acf),_0x143acf,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2384db)});}});}['_defineDefinitionsConverters'](){const {editor:_0x15cdfc}=this,{t:t}=_0x15cdfc['locale'],{conversion:_0x3c3aac}=_0x15cdfc;_0x3c3aac['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3c3aac['for']('upcast')['add'](_0x53d829=>{_0x53d829['on']('element:ol',(_0x198b85,_0x442188,_0x5cc32e)=>{const _0x34d135=_0x442188['viewItem'];if(!_0x34d135['hasClass']('footnotes-list')||!_0x442188['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x5cc32e['consumable']['consume'](_0x34d135,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x43a6c0,modelCursor:_0x4b0744}=_0x5cc32e['convertChildren'](_0x442188['viewItem'],_0x442188['modelCursor']);_0x442188['modelRange']=_0x43a6c0,_0x442188['modelCursor']=_0x4b0744;}),_0x53d829['on']('element:hr',(_0x4ed0fc,_0x444752,_0x3d12ad)=>{const _0x6659c1=_0x444752['viewItem'];_0x6659c1['hasClass']('footnotes-divider')&&_0x444752['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3d12ad['consumable']['consume'](_0x6659c1,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3c3aac['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x53fb0a,{writer:_0x35117d})=>D(_0x35117d)}),_0x3c3aac['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x276edd,{writer:_0x2a1d32})=>{const _0x434c2a=D(_0x2a1d32,{'data-footnotes-list-label':t('Footnotes')}),_0x166955=_0x11a248(_0x434c2a,_0x2a1d32,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2a1d32['setCustomProperty']('footnotesDefinitions',!0x0,_0x166955),_0x166955;}});}['_defineDefinitionConverters'](){const {editor:_0x5907f8}=this,{conversion:_0x4b9b6c,locale:_0x5c0dc1}=_0x5907f8,_0xc37767=_0x5907f8['config']['get']('footnotes.multiBlock');_0x4b9b6c['for']('upcast')['add'](_0x531d36=>{_0x531d36['on']('element:li',(_0x199fcd,_0x1f4487,_0x373787)=>{const _0x21c11d=_0x1f4487['viewItem'];if(!_0x21c11d['hasClass']('footnote-definition')||!_0x21c11d['getAttribute']('id'))return;const _0x4f5b64=_0x21c11d['parent'];if(!_0x4f5b64['is']('element','ol')||!_0x4f5b64['hasClass']('footnotes-list'))return;if(!_0x373787['consumable']['test'](_0x21c11d,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1a8939=_0x373787['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x21c11d['getAttribute']('id')});if(!_0x373787['safeInsert'](_0x1a8939,_0x1f4487['modelCursor']))return;_0x373787['consumable']['consume'](_0x21c11d,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x12d4f6=Array['from'](_0x21c11d['getChildren']())['find'](_0x4cd393=>_0x4cd393['is']('element')&&_0x4cd393['hasClass']('footnote-content'));for(const _0x3fcbb8 of _0x21c11d['getChildren']())_0x3fcbb8['is']('element')&&(_0x373787['consumable']['consume'](_0x3fcbb8,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x373787['consumable']['consume'](_0x3fcbb8,{'name':!0x0,'classes':'footnote-content'}));if(_0x12d4f6){if(_0xc37767)_0x373787['convertChildren'](_0x12d4f6,_0x1a8939);else{const _0x1ee58f=_0x373787['writer']['createElement']('footnoteInlineContent');_0x373787['writer']['insert'](_0x1ee58f,_0x1a8939),_0x373787['convertChildren'](_0x12d4f6,_0x1ee58f);}}_0x373787['updateConversionResult'](_0x1a8939,_0x1f4487);});}),_0x4b9b6c['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x232ec4,{writer:_0x2e0490})=>y(_0x232ec4,_0x2e0490,_0x5c0dc1,{'dataPipeline':!0x0})}),_0x4b9b6c['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x504711,{writer:_0x1460ba})=>y(_0x504711,_0x1460ba,_0x5c0dc1)});}['_defineBogusParagraphConverters'](){const {editor:_0x5a4595}=this,{conversion:_0x117937}=_0x5a4595;_0x5a4595['config']['get']('footnotes.multiBlock')?(_0x117937['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x117937['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x5a4595['model']['document'],'change:data',()=>{!function(_0x418530,_0x5bdc8e){const _0x1dfb34=_0x418530['document']['differ'],_0x2b959e=new Set();for(const _0x21baaf of _0x1dfb34['getChanges']()){const _0x1e381c='attribute'==_0x21baaf['type']?_0x21baaf['range']['start']['parent']:_0x21baaf['position']['parent'];_0x1e381c['is']('element','footnoteDefinition')&&_0x2b959e['add'](_0x1e381c);}for(const _0x5a1609 of _0x2b959e['values']()){const _0x4542b0=Array['from'](_0x5a1609['getChildren']())['filter'](_0xa8c0b6=>v(_0xa8c0b6,_0x5bdc8e['mapper']));for(const _0x187109 of _0x4542b0)_0x5bdc8e['reconvertItem'](_0x187109);}}(_0x5a4595['model'],_0x5a4595['editing']);})):(_0x117937['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x117937['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x64d3fb,{writer:_0xc6ffe2})=>{const _0x56237a=_0xc6ffe2['createContainerElement']('span');return _0xc6ffe2['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x56237a),_0x56237a;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5246eb}=this,{editing:_0x5d63e5,t:t}=_0x5246eb,_0x3e54ae=_0x5246eb['model']['document']['selection'];_0x5246eb['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x5246eb['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x5d63e5['view']['document'],'enter',(_0x55c659,_0x58de04)=>{const _0x3c4c9f=function(_0x3bcfc1){const _0x24a886=_0x3bcfc1['getSelectedElement']();if(_0x24a886?.['is']('element','footnoteRef'))return _0x24a886;return null;}(_0x3e54ae);if(_0x3c4c9f){const _0x2d7d3b=_0x3c4c9f['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x2d7d3b),_0x58de04['preventDefault'](),_0x55c659['stop']();}},{'context':_0x244f14});}['_defineClickHandlers'](){const {editor:_0x5ab36e}=this,{editing:_0x467776}=_0x5ab36e;_0x5ab36e['editing']['view']['addObserver'](_0x341553),_0x5ab36e['editing']['view']['addObserver'](_0x416654);let _0x1d688a=!0x1;this['listenTo'](_0x467776['view']['document'],'pointerdown',(_0x2b48c4,_0xdced0f)=>{const {target:_0x11177e}=_0xdced0f,_0xc4ac10=_0x467776['view']['document']['selection'];_0x1d688a=!!(_0x11177e?.['is']('element','a')&&_0x11177e['parent']?.['is']('element','sup')&&_0x11177e['parent']['hasClass']('footnote'))&&_0xc4ac10['getSelectedElement']()===_0x11177e['parent'];},{'priority':'high'}),this['listenTo'](_0x467776['view']['document'],'click',(_0x20e8fa,_0x45cd4e)=>{const {target:_0x2e3ea9}=_0x45cd4e;if(!_0x2e3ea9?.['is']('element','a'))return;if(_0x2e3ea9['parent']?.['is']('element','sup')&&_0x2e3ea9['parent']['hasClass']('footnote')&&!_0x1d688a)return void _0x45cd4e['preventDefault']();let _0x35c16f=_0x2e3ea9['getAttribute']('href');if(!_0x35c16f?.['startsWith']('#'))return;_0x35c16f=_0x35c16f['slice'](0x1);let _0x217e7e=!0x1;(_0x35c16f['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x35c16f['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x35c16f))&&(_0x217e7e=!0x0),_0x217e7e&&(_0x45cd4e['preventDefault'](),_0x20e8fa['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0xd1b769}={}){return(_0x10f423,{writer:_0x59e51e})=>{if(!g(_0x10f423))return null;if(!_0xd1b769)return _0x59e51e['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0xeb6eb7=_0x59e51e['createContainerElement']('p');return _0x59e51e['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xeb6eb7),_0xeb6eb7;};}function g(_0x2257ff){const {parent:_0x174e42}=_0x2257ff;if(!_0x174e42?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x174e42['childCount'])return!0x1;for(const _0x51a844 of _0x2257ff['getAttributeKeys']())if(!_0x51a844['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x51a844)return!0x1;return!0x0;}function v(_0x4f43cc,_0x9e8c0f){if(!_0x4f43cc['is']('element','paragraph'))return!0x1;const _0x52c3e7=_0x9e8c0f['toViewElement'](_0x4f43cc);return!!_0x52c3e7&&g(_0x4f43cc)!==_0x52c3e7['is']('element','span');}function H(_0x389390){return _0x244f14(_0x389390)&&_0x389390['is']('containerElement')&&!!_0x389390['getCustomProperty']('footnotesDefinitions');}function D(_0x118723,_0x2033f6={}){const _0x1e9d7f=_0x118723['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x37a65c=_0x118723['createContainerElement']('ol',{'class':'footnotes-list'},_0x118723['createSlot']());return _0x118723['createContainerElement']('div',{'class':'footnotes',..._0x2033f6},[_0x1e9d7f,_0x37a65c]);}function b(_0x1cfdc2,_0xf6690b){const _0x28963e=_0x1cfdc2['getAttribute']('footnoteId'),_0xca5a54=_0x1cfdc2['getAttribute']('footnoteCounter'),_0x444b2d=_0xf6690b['createUIElement']('a',{'href':'#'+_0x28963e},function(_0x2601ea){const _0x14d503=this['toDomElement'](_0x2601ea);return _0x14d503['textContent']=_0xca5a54,_0x14d503;}),_0x2b6dee=_0xf6690b['createContainerElement']('sup',{'id':'ref-'+_0x28963e,'class':'footnote'},[_0x444b2d]);return _0x2b6dee['getFillerOffset']=()=>null,_0x2b6dee;}function y(_0x47470e,_0x5f5c41,_0x1311c4,{dataPipeline:_0x43035d}={}){const {t:t}=_0x1311c4,_0xbb98f=_0x47470e['getAttribute']('footnoteId'),_0x22d564=_0x5f5c41['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xbb98f},function(_0x4b3344){const _0xd25dfe=this['toDomElement'](_0x4b3344);return _0xd25dfe['innerText']='^',_0xd25dfe;}),_0x37cea3=_0x43035d?_0x5f5c41['createContainerElement']('div',{'class':'footnote-content'}):_0x53a52e(_0x5f5c41['createEditableElement']('div',{'class':'footnote-content'}),_0x5f5c41,{'label':t('Footnote\x20content.')});return _0x5f5c41['insert'](_0x5f5c41['createPositionAt'](_0x37cea3,0x0),_0x5f5c41['createSlot']()),_0x5f5c41['createContainerElement']('li',{'class':'footnote-definition','id':_0xbb98f},[_0x22d564,_0x37cea3]);}class e extends _0x1843e4{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x4a904e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x13975f}=this,{plugins:_0x5fc34a,model:_0xe4c2f0}=_0x13975f,_0x2e17b7=_0x5fc34a['get'](_0x4a904e),_0x593e65=_0x5fc34a['get'](f);this['listenTo'](_0x2e17b7,'outputTransformation',(_0xf051a9,_0x10cd21)=>{const _0x2e2a5f=l(_0xe4c2f0['createRangeIn'](_0x10cd21['content']));if(!_0x2e2a5f['length'])return;const _0x18c470=_0x593e65['getFootnotes'](),_0x41581e=_0x2e2a5f['reduce']((_0x9b7db8,_0x59a9d5)=>{const _0x4ddd3b=_0x18c470['find'](_0x51e936=>_0x51e936['id']===_0x59a9d5);if(_0x4ddd3b){const _0x12ea0b=_0x13975f['data']['toView'](_0x4ddd3b['definition'],{'isClipboardPipeline':!0x0}),_0x4d397f=_0x13975f['data']['htmlProcessor']['toData'](_0x12ea0b);_0x9b7db8[_0x4ddd3b['id']]=_0x4d397f;}return _0x9b7db8;},Object['create'](null));_0x10cd21['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x41581e));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x22c33e}=this,{model:_0x460ffa,plugins:_0x5ddc02}=_0x22c33e,{view:_0x279418}=_0x22c33e['editing'],_0x1a0ee3=_0x5ddc02['get'](_0x4a904e),_0x167187=_0x5ddc02['get'](f),_0x4705f0=_0x22c33e['config']['get']('footnotes.multiBlock');let _0x315b55=null;this['listenTo'](_0x279418['document'],'clipboardInput',(_0x3f2fe9,_0x368a6d)=>{const _0x1b7c97=_0x368a6d['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x315b55=_0x1b7c97?JSON['parse'](_0x1b7c97):null;}),this['listenTo'](_0x1a0ee3,'contentInsertion',(_0x5ab067,_0x5975a6)=>{const _0x1df654=_0x5975a6['sourceEditorId']===this['editor']['id'];_0x1df654&&'drop'===_0x5975a6['method']||_0x460ffa['change'](_0x234f19=>{let _0x3faf28=_0x167187['getFootnotesDefinitionsObjectElement']();const _0x50eb20=!!_0x3faf28&&Array['from'](_0x460ffa['document']['selection']['getSelectedBlocks']())['includes'](_0x3faf28);if(!_0x315b55&&function(_0xadcc23){for(const {item:_0x45bf31}of _0xadcc23)if(_0x45bf31['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x460ffa['createRangeIn'](_0x5975a6['content']))&&(_0x315b55=function(_0x53fdda,_0x516155){const _0x37cc81=c(_0x53fdda,_0x516155);if(!_0x37cc81)return null;const _0x5db246=Object['create'](null);for(const _0x14764f of _0x37cc81['getChildren']())_0x14764f['is']('element','footnoteDefinition')&&_0x14764f['hasAttribute']('footnoteId')&&(_0x5db246[_0x14764f['getAttribute']('footnoteId')]=_0x53fdda['cloneElement'](_0x14764f,!0x0));return Object['keys'](_0x5db246)['length']?_0x5db246:null;}(_0x234f19,_0x5975a6['content'])),(_0x3faf28&&!_0x50eb20||!_0x3faf28&&!_0x315b55)&&function(_0x2e5f8d,_0x3c8f1c){const _0x4ca53d=[];for(const {item:_0x4e552c}of _0x2e5f8d['createRangeIn'](_0x3c8f1c))_0x4e552c['is']('element','footnotesDefinitions')&&_0x4ca53d['push'](_0x4e552c);for(const _0xdcf842 of _0x4ca53d)_0x2e5f8d['remove'](_0xdcf842);}(_0x234f19,_0x5975a6['content']),!_0x315b55)return;const {selection:_0x258745}=_0x460ffa['document'],_0x45afe4=_0x258745['getFirstRange']()['root'];_0x3faf28&&!_0x50eb20||(_0x3faf28=c(_0x234f19,_0x5975a6['content']),_0x3faf28||=_0x167187['_insertEmptyFootnotesDefinitionsContainer'](_0x234f19,_0x45afe4));const _0x57dce4=Array['from'](_0x258745['getRanges']())['flatMap'](l),_0x1ea4db=function(_0x5c20cf,_0xa3301d,_0xde908b){const _0x38c42d=Object['create'](null);for(const {item:_0x2ef9d6}of _0x5c20cf['createRangeIn'](_0xa3301d))if(_0x2ef9d6['is']('element','footnoteRef')){const _0x312fa6=_0x2ef9d6['getAttribute']('footnoteId');if(!_0xde908b(_0x312fa6))continue;_0x38c42d[_0x312fa6]||(_0x38c42d[_0x312fa6]=_0x296dd1()),_0x5c20cf['setAttribute']('footnoteId',_0x38c42d[_0x312fa6],_0x2ef9d6);}return _0x38c42d;}(_0x234f19,_0x5975a6['content'],_0xf19d66=>{if(!_0x1df654)return!0x0;return!!_0x167187['getFootnote'](_0xf19d66)&&!_0x57dce4['includes'](_0xf19d66);});for(const [_0x1bac49,_0x539391]of Object['entries'](_0x315b55)){const _0x412d1c=_0x1ea4db[_0x1bac49]||_0x1bac49;let _0x112d9a;if('string'!=typeof _0x539391)_0x112d9a=_0x539391,_0x412d1c!==_0x1bac49&&_0x234f19['setAttribute']('footnoteId',_0x412d1c,_0x112d9a);else{_0x112d9a=_0x234f19['createElement']('footnoteDefinition',{'footnoteId':_0x412d1c});const _0x39c3b7=_0x22c33e['data']['htmlProcessor']['toView'](_0x539391);let _0x2ff56d;if(_0x4705f0)_0x2ff56d=_0x22c33e['data']['toModel'](_0x39c3b7,_0x112d9a);else{_0x2ff56d=_0x234f19['createElement']('footnoteInlineContent');const _0x4c6190=_0x22c33e['data']['toModel'](_0x39c3b7,_0x2ff56d);_0x234f19['insert'](_0x4c6190,_0x2ff56d);}_0x234f19['append'](_0x2ff56d,_0x112d9a);}_0x234f19['insert'](_0x112d9a,_0x3faf28,'end');}_0x315b55=null;});});}}function c(_0x4469ee,_0xfde946){for(const {item:_0x508eef}of _0x4469ee['createRangeIn'](_0xfde946))if(_0x508eef['is']('element','footnotesDefinitions'))return _0x508eef;return null;}function l(_0x42675d){const _0x4edd96=new Set();for(const {item:_0x1f60bc}of _0x42675d)_0x1f60bc['is']('element','footnoteRef')&&_0x4edd96['add'](_0x1f60bc['getAttribute']('footnoteId'));return Array['from'](_0x4edd96);}class i extends _0x1843e4{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3fa278}=this,{componentFactory:_0x123974}=_0x3fa278['ui'];_0x123974['add']('insertFootnote',E(_0x3fa278,_0x3715c2)),_0x123974['add']('menuBar:insertFootnote',E(_0x3fa278,_0x40bf20)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1afab4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xdda579;for(const _0x1f2f23 in _0x1afab4){const _0x313eef=_0x1f2f23,_0x1fe3bd=_0x1afab4[_0x313eef];if('footnotesLicenseKeyValid'==_0x1fe3bd||'footnotesLicenseKeyInvalid'==_0x1fe3bd||'footnotesLicenseKeyExpired'==_0x1fe3bd||'footnotesLicenseKeyDomainLimit'==_0x1fe3bd||'footnotesLicenseKeyNotAllowed'==_0x1fe3bd||'footnotesLicenseKeyEvaluationLimit'==_0x1fe3bd||'footnotesLicenseKeyUsageLimit'==_0x1fe3bd){delete _0x1afab4[_0x313eef],_0xdda579=_0x1fe3bd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0xdda579&&_0x1afab4['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0xdda579&&_0x1afab4['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0xdda579&&_0x1afab4['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0xdda579&&_0x1afab4['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0xdda579&&_0x1afab4['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0xdda579&&_0x1afab4['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x519f6c,_0x151c78){const _0xf49dd3=_0x519f6c['commands']['get']('insertFootnote');return _0x238a3f=>{const {t:t}=_0x238a3f,_0x9b7c5a=new _0x151c78(_0x238a3f),_0x7e41ed=_0x9b7c5a instanceof _0x40bf20;return _0x9b7c5a['bind']('isEnabled')['to'](_0xf49dd3,'isEnabled'),_0x9b7c5a['set']({'label':t(_0x7e41ed?'Footnote':'Insert\x20footnote'),'icon':_0x536cee,'tooltip':!0x0}),_0x9b7c5a['on']('execute',()=>{_0xf49dd3['execute'](),_0x519f6c['editing']['view']['focus']();}),_0x9b7c5a;};}class lt extends _0x1843e4{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const W=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x17de77{['refresh'](){const {editor:_0x393adb}=this,_0x209e03=_0x393adb['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x209e03,this['value']=_0x209e03?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x97ecf5}){const {editor:_0xfef34f}=this,_0x4ab230=_0xfef34f['plugins']['get'](f),_0x4f472e=_0x4ab230['getFootnotesDefinitionsObjectElement']();_0x4f472e&&W['includes'](_0x97ecf5)&&_0xfef34f['model']['change'](_0x44f9ca=>{_0x44f9ca['setAttribute']('footnotesListStyle',_0x97ecf5,_0x4f472e),_0x4ab230['_updateFootnotesCounters'](_0x44f9ca);});}}class C extends _0x17de77{['refresh'](){const {editor:_0x528d14}=this,_0x26fe65=_0x528d14['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x26fe65,this['value']=_0x26fe65?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x2c7463}){const {editor:_0x52e0e4}=this,_0x1bb632=_0x52e0e4['plugins']['get'](f),_0xc63c72=_0x1bb632['getFootnotesDefinitionsObjectElement']();_0xc63c72&&Number['isInteger'](_0x2c7463)&&_0x52e0e4['model']['change'](_0x448fef=>{_0x448fef['setAttribute']('footnotesListStart',_0x2c7463,_0xc63c72),_0x1bb632['_updateFootnotesCounters'](_0x448fef);});}}class P extends _0x1843e4{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2db165}=this;_0x2db165['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x2db165['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x2db165['commands']['add']('footnotesStyle',new S(_0x2db165)),_0x2db165['commands']['add']('footnotesStart',new C(_0x2db165)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x22d310}=this,{schema:_0x5bd471}=_0x22d310['model'];_0x5bd471['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x51343b}=this,{conversion:_0x4014b7,model:_0x5328c8}=_0x51343b,{schema:_0xe962ff}=_0x5328c8;_0x4014b7['for']('upcast')['add'](_0x39a1c8=>{_0x39a1c8['on']('element:ol',(_0x4d5e01,_0x1b4a1a,_0x47b6a2)=>{const _0x34274e=_0x1b4a1a['viewItem'],_0xd34a05=_0x1b4a1a['modelCursor']?.['parent'];_0x34274e['hasClass']('footnotes-list')&&_0xd34a05?.['is']('element','footnotesDefinitions')&&(function(_0x1eb269,_0x22cbde,_0x20409e,_0xded5da){if(!_0xded5da['checkAttribute'](_0x22cbde,'footnotesListStart'))return;let _0x347d1d=0x1;const _0x540ab4=_0x20409e['consumable']['consume'](_0x1eb269,{'attributes':'start'});if(_0x540ab4){const _0xc000d7=Number['parseInt'](_0x1eb269['getAttribute']('start'),0xa);Number['isNaN'](_0xc000d7)||(_0x347d1d=_0xc000d7);}!_0x540ab4&&_0x22cbde['hasAttribute']('footnotesListStart')||_0x20409e['writer']['setAttribute']('footnotesListStart',_0x347d1d,_0x22cbde);}(_0x34274e,_0xd34a05,_0x47b6a2,_0xe962ff),function(_0x47141b,_0x18de63,_0x43b25c,_0x224c47){if(!_0x224c47['checkAttribute'](_0x18de63,'footnotesListStyle'))return;let _0x30f187='decimal',_0x3a0a8=!0x1;if(_0x43b25c['consumable']['consume'](_0x47141b,{'attributes':'type'})){const _0x567d47={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x47141b['getAttribute']('type')];_0x567d47&&(_0x30f187=_0x567d47),_0x3a0a8=!0x0;}_0x43b25c['consumable']['consume'](_0x47141b,{'styles':'list-style-type'})&&(_0x30f187=function(_0x124ab2){switch(_0x124ab2){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x124ab2;}}(_0x47141b['getStyle']('list-style-type')),_0x3a0a8=!0x0),!_0x3a0a8&&_0x18de63['hasAttribute']('footnotesListStyle')||_0x43b25c['writer']['setAttribute']('footnotesListStyle',_0x30f187,_0x18de63);}(_0x34274e,_0xd34a05,_0x47b6a2,_0xe962ff));});}),_0x4014b7['for']('downcast')['add'](_0x303843=>{_0x303843['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x39b918,_0x5eb5b0,_0x2c99b8)=>{if(!_0x2c99b8['consumable']['consume'](_0x5eb5b0['item'],_0x39b918['name']))return;const _0x3f43eb=M(_0x5eb5b0['item'],_0x2c99b8['mapper']),{attributeNewValue:_0x3acbf1}=_0x5eb5b0;null==_0x3acbf1||0x1===_0x3acbf1?_0x2c99b8['writer']['removeAttribute']('start',_0x3f43eb):_0x2c99b8['writer']['setAttribute']('start',String(_0x3acbf1),_0x3f43eb);}),_0x303843['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x471b1c,_0x4d613a,_0x53d3b7)=>{if(!_0x53d3b7['consumable']['consume'](_0x4d613a['item'],_0x471b1c['name']))return;const _0x284087=M(_0x4d613a['item'],_0x53d3b7['mapper']),{attributeNewValue:_0x371bec}=_0x4d613a;_0x371bec&&'decimal'!==_0x371bec?_0x53d3b7['writer']['setStyle']('list-style-type',_0x371bec,_0x284087):_0x53d3b7['writer']['removeStyle']('list-style-type',_0x284087);});});}['_definePostfixer'](){const {editor:_0x417385}=this,{model:_0x938dff}=_0x417385,_0x1511ee=_0x417385['plugins']['get'](f),_0x17cfa0=this['_getDefaultListStyle'](),_0x41136e=this['_getDefaultStartIndex']();_0x938dff['document']['registerPostFixer'](_0x3090dc=>{const _0x292f5a=_0x938dff['document']['differ']['getChanges']();let _0x25bab0=!0x1;for(const _0x4fea03 of _0x292f5a){if('insert'!==_0x4fea03['type']||'$text'===_0x4fea03['name'])continue;const _0x2c19e5=_0x938dff['createRangeOn'](_0x4fea03['position']['nodeAfter']);for(const _0x2c73dc of _0x2c19e5['getItems']())_0x2c73dc['is']('element','footnotesDefinitions')&&(!_0x2c73dc['hasAttribute']('footnotesListStart')&&_0x938dff['schema']['checkAttribute'](_0x2c73dc,'footnotesListStart')&&(_0x3090dc['setAttribute']('footnotesListStart',_0x41136e,_0x2c73dc),_0x25bab0=!0x0),!_0x2c73dc['hasAttribute']('footnotesListStyle')&&_0x938dff['schema']['checkAttribute'](_0x2c73dc,'footnotesListStyle')&&(_0x3090dc['setAttribute']('footnotesListStyle',_0x17cfa0,_0x2c73dc),_0x25bab0=!0x0));}return _0x25bab0&&_0x1511ee['_updateFootnotesCounters'](_0x3090dc),_0x25bab0;});}['_defineFormatter'](){const {editor:_0x48c02d}=this;_0x48c02d['plugins']['get'](f)['setFootnoteFormatter'](_0x3c5f7c=>this['_formatFootnoteListValue'](_0x3c5f7c));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x5a793f,value:_0x501862,digits:_0x3819c0}){const _0x1e5c91=_0x5a793f['getAttribute']('footnotesListStyle'),_0x54d8f7=_0x5a793f['getAttribute']('footnotesListStart'),_0x6204df=Math['floor'](_0x501862)+(_0x54d8f7??0x1)-0x1;switch(_0x1e5c91){case'decimal-leading-zero':return function(_0x40095e,_0x22fb4){return String(_0x40095e)['padStart'](_0x22fb4,'0');}(_0x6204df,Math['max'](0x2,_0x3819c0));case'lower-alpha':case'lower-latin':return N(_0x6204df,!0x1);case'upper-alpha':case'upper-latin':return N(_0x6204df,!0x0);case'lower-roman':return X(_0x6204df,!0x1);case'upper-roman':return X(_0x6204df,!0x0);default:return String(_0x6204df);}}}function M(_0x3d5c1f,_0x3c27b4){const _0x133794=_0x3c27b4['toViewElement'](_0x3d5c1f);return Array['from'](_0x133794['getChildren']())['find'](_0x137f0c=>_0x137f0c['is']('element','ol')&&_0x137f0c['hasClass']('footnotes-list'));}function N(_0x3e6bd2,_0x5ca4ee){let _0x49a130='',_0x5c7dfa=_0x3e6bd2;for(;_0x5c7dfa>0x0;){const _0x3be2b9=(_0x5c7dfa-0x1)%0x1a;_0x49a130=String['fromCharCode'](0x61+_0x3be2b9)+_0x49a130,_0x5c7dfa=Math['floor']((_0x5c7dfa-0x1)/0x1a);}return _0x5ca4ee?_0x49a130['toUpperCase']():_0x49a130;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0x7fba4e,_0x3a4b36){let _0xc189ab='',_0x1c855e=_0x7fba4e;for(const {value:_0xab08a4,numeral:_0xc2d8c5}of V)for(;_0x1c855e>=_0xab08a4;)_0xc189ab+=_0xc2d8c5,_0x1c855e-=_0xab08a4;return _0x3a4b36?_0xc189ab:_0xc189ab['toLowerCase']();}class $ extends _0x2e5830{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x5e509e();['focusCycler'];constructor(_0x12030e,{styleButtonViews:_0x18dad1,styleGridAriaLabel:_0x166abc}){super(_0x12030e),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x18dad1,_0x166abc),[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 _0x260a93 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x260a93['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x18949e=_0x243e43=>_0x243e43['stopPropagation']();this['keystrokes']['set']('arrowright',_0x18949e),this['keystrokes']['set']('arrowleft',_0x18949e),this['keystrokes']['set']('arrowup',_0x18949e),this['keystrokes']['set']('arrowdown',_0x18949e);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x175420,_0x2998db){const _0x4690ee=new _0x2e5830(this['locale']);return _0x4690ee['children']=_0x4690ee['createCollection'](),_0x4690ee['children']['addMany'](_0x175420),_0x4690ee['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2998db,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x4690ee['children']}),_0x4690ee['children']['delegate']('execute')['to'](this),_0x4690ee['focus']=function(){for(const _0x4f341f of this['children'])if(_0x4f341f instanceof _0x3715c2&&_0x4f341f['isOn'])return void _0x4f341f['focus']();this['children']['first']['focus']();},_0x4690ee['focusTracker']=new rt(),_0x4690ee['keystrokes']=new nt(),_0x4690ee['render'](),_0x4690ee['keystrokes']['listenTo'](_0x4690ee['element']),this['children']['add'](_0x4690ee),_0x4690ee;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x5be723=this['_createStartIndexPropertyView'](),_0x2c8b69=[_0x5be723],_0x108eb2=new it(this['locale'],_0x2c8b69);return _0x108eb2['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x108eb2['buttonView']['bind']('isEnabled')['toMany'](_0x2c8b69,'isEnabled',(..._0x33c364)=>_0x33c364['some'](_0x57c730=>_0x57c730)),_0x108eb2['buttonView']['on']('change:isEnabled',(_0x39983c,_0x429333,_0x1ff9b9)=>{_0x1ff9b9||(_0x108eb2['isCollapsed']=!0x0);}),this['children']['add'](_0x108eb2),[_0x5be723,_0x108eb2];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x375850=new et(this['locale'],ot);return _0x375850['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x375850['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x375850['fieldView']['on']('input',()=>{const _0x3ae8c1=_0x375850['fieldView']['element'],_0x43cf17=_0x3ae8c1['valueAsNumber'];Number['isNaN'](_0x43cf17)?_0x375850['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x3ae8c1['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x43cf17}):_0x375850['errorText']=t(_0x43cf17<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x375850;}}class j extends _0x1843e4{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x367f43,_0x46d4a8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x39cb84}=this,{componentFactory:_0x21193b}=_0x39cb84['ui'];_0x39cb84['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x21193b['add']('footnotesStyle',function(_0x585013){return _0x56b324=>{const {t:t}=_0x56b324,_0x4237f3=_0x585013['commands']['get']('footnotesStyle'),_0xd7772c=_0x2dc4db(_0x56b324),{buttonView:_0x2328c3}=_0xd7772c;return _0xd7772c['class']='ck-footnotes-styles-dropdown',_0xd7772c['bind']('isEnabled')['to'](_0x4237f3,'isEnabled'),_0x2328c3['set']({'label':t('Footnotes\x20style'),'icon':_0x536cee,'tooltip':!0x0}),_0xd7772c['once']('change:isOpen',()=>{const _0x3a99fa=function({editor:_0x11bc9,dropdownView:_0x503bc7}){const {t:t}=_0x11bc9['locale'],_0x260e5b=t('Footnotes\x20definitions\x20styles'),_0x41eec0=function(_0x28fdca){const t=_0x28fdca['locale']['t'],_0x35bacc=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x59d4c5},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x51c695},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x2ae7ff},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x43e876},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x283c97},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x3404fd}];return _0x35bacc['map'](function(_0x3db9d7){const _0x2c3a6a=_0x3db9d7['locale'];return({label:_0x22de97,icon:_0x4d3ebc,tooltip:_0x148f7b,style:_0xf7b6df})=>{const _0x4872e5=_0x3db9d7['commands']['get']('footnotesStyle'),_0x1ada97=new _0x3715c2(_0x2c3a6a);return _0x1ada97['set']({'label':_0x22de97,'icon':_0x4d3ebc,'tooltip':_0x148f7b}),_0x1ada97['bind']('isOn')['to'](_0x4872e5,'value',_0x141d9e=>_0x141d9e===_0xf7b6df),_0x1ada97['bind']('isEnabled')['to'](_0x4872e5,'isEnabled'),_0x1ada97['on']('execute',()=>{_0x3db9d7['execute']('footnotesStyle',{'value':_0xf7b6df}),_0x3db9d7['editing']['view']['focus']();}),_0x1ada97;};}(_0x28fdca));}(_0x11bc9),_0x3e5163=new $(_0x11bc9['locale'],{'styleGridAriaLabel':_0x260e5b,'styleButtonViews':_0x41eec0}),_0x34cce9=_0x11bc9['commands']['get']('footnotesStart');return _0x3e5163['startIndexFieldView']['bind']('isEnabled')['to'](_0x34cce9),_0x3e5163['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x34cce9),_0x3e5163['on']('footnotesListStart',(_0x2b70ca,_0x23934d)=>{_0x11bc9['execute']('footnotesStart',{'value':_0x23934d['startIndex']});}),_0x3e5163['delegate']('execute')['to'](_0x503bc7),_0x3e5163;}({'editor':_0x585013,'dropdownView':_0xd7772c});_0xd7772c['panelView']['children']['add'](_0x3a99fa);}),_0xd7772c;};}(_0x39cb84));}['afterInit'](){const {editor:_0x5729be}=this,{t:t}=_0x5729be['locale'],_0x7e5d27=_0x5729be['plugins']['get'](_0x46d4a8),{defaultPositions:_0x57bd2b}=_0x56ce40;_0x7e5d27['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x5729be['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x16ca24=>{let _0x25a362=_0x16ca24['getFirstPosition']()?.['parent'];return _0x25a362?.['is']('$text')&&(_0x25a362=_0x25a362['parent']),_0x25a362?.['is']('element')?_0x25a362['findAncestor'](H):null;},'positions':[_0x57bd2b['southArrowNorth'],_0x57bd2b['southArrowNorthMiddleWest'],_0x57bd2b['southArrowNorthMiddleEast'],_0x57bd2b['southArrowNorthWest'],_0x57bd2b['southArrowNorthEast'],_0x57bd2b['northArrowSouth'],_0x57bd2b['northArrowSouthMiddleWest'],_0x57bd2b['northArrowSouthMiddleEast'],_0x57bd2b['northArrowSouthWest'],_0x57bd2b['northArrowSouthEast'],_0x57bd2b['viewportStickyNorth']]});}}class ft extends _0x1843e4{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,h as InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0x4b9cba,Command as _0x57d0f2}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x59b9e8,isWidget as _0x2be15b,toWidgetEditable as _0x23ba3e,WidgetToolbarRepository as _0x14865a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x294e74,logWarning as _0x4de24b,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x5a66b3,ClickObserver as _0x21efcf}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x435026}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x17d977,ButtonView as _0x1c6fe8,View as _0x266629,ViewCollection as _0x29b95f,FocusCycler as _0x5c0104,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x540f74,BalloonPanelView as _0x47ec6a,createDropdown as _0x3fe79f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x5a10da,IconListStyleDecimal as _0x2949f1,IconListStyleDecimalLeadingZero as _0x6bcecb,IconListStyleLowerRoman as _0x370818,IconListStyleUpperRoman as _0x3e5a08,IconListStyleLowerLatin as _0x4574c1,IconListStyleUpperLatin as _0x81a412}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x5e7529,_0x48b562){this['_model']=_0x5e7529,this['_elementName']=_0x48b562['elementName'],this['_getElementKey']=_0x48b562['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0xa06cea){const _0x26f036=new Set(),_0x36eee6=new Map();for(const _0x5c1e78 of _0xa06cea){if('insert'===_0x5c1e78['type']&&'$text'!==_0x5c1e78['name']&&_0x5c1e78['position']['nodeAfter']){const _0x7d3ac=this['_model']['createRangeOn'](_0x5c1e78['position']['nodeAfter']);for(const _0x1dcf2d of _0x7d3ac['getItems']()){if(!_0x1dcf2d['is']('element',this['_elementName']))continue;const _0x1eaf59=this['_getElementKey'](_0x1dcf2d);_0x36eee6['has'](_0x1eaf59)||_0x36eee6['set'](_0x1eaf59,[]),_0x36eee6['get'](_0x1eaf59)['push'](_0x1dcf2d);}}if('remove'===_0x5c1e78['type']&&_0x5c1e78['name']===this['_elementName']){const _0x517edb=this['_getElementKey']({'getAttribute':_0x41f456=>_0x5c1e78['attributes']['get'](_0x41f456)});_0x26f036['add'](_0x517edb);}}for(const [_0xeecd7a,_0x247674]of this['_trackedElements'])'$graveyard'===_0x247674['root']['rootName']&&_0x26f036['add'](_0xeecd7a);for(const _0x52db7f of _0x26f036)this['_trackedElements']['delete'](_0x52db7f);for(const [_0x43ce26,_0x4c5a03]of _0x36eee6)this['_trackedElements']['set'](_0x43ce26,_0x4c5a03[_0x4c5a03['length']-0x1]);const _0x3be6a8=new Set();for(const [_0x2c0eb9,_0x5acbf3]of _0x36eee6)_0x26f036['has'](_0x2c0eb9)&&(_0x3be6a8['add'](_0x5acbf3[0x0]),_0x5acbf3['length']>0x1?_0x36eee6['set'](_0x2c0eb9,_0x5acbf3['slice'](0x1)):_0x36eee6['delete'](_0x2c0eb9),_0x26f036['delete'](_0x2c0eb9));return{'removed':Array['from'](_0x26f036),'inserted':Array['from'](_0x36eee6['values']())['flat'](),'moved':Array['from'](_0x3be6a8)};}}class f extends _0x4b9cba{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42df73){super(_0x42df73),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x4b66ef=>_0x4b66ef['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x40e4b9=>_0x40e4b9['getAttribute']('footnoteId')});}['init'](){const {editor:_0x24f53f}=this,{model:_0x4b72d4,data:_0x4f41d7}=_0x24f53f;_0x4b72d4['document']['registerPostFixer'](_0x56073d=>{const _0x231af4=_0x4b72d4['document']['differ']['getChanges']();let _0x461eaf=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x56073d,_0x231af4)&&(_0x461eaf=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x56073d,_0x231af4)&&(_0x461eaf=!0x0),this['_handleFootnoteReferencesChanges'](_0x56073d,_0x231af4)&&(_0x461eaf=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x56073d)&&(_0x461eaf=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x56073d)&&(_0x461eaf=!0x0),this['_sortFootnoteDefinitions'](_0x56073d)&&(_0x461eaf=!0x0),_0x461eaf;}),this['listenTo'](_0x4b72d4['document'],'change:data',()=>{_0x4b72d4['enqueueChange']({'isUndoable':!0x1},_0x122189=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x122189);});},{'priority':'low'}),this['listenTo'](_0x4f41d7,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x3ce9f1){return this['_footnotes']['find'](_0x2afb28=>_0x2afb28['id']===_0x3ce9f1)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x10b202){this['_footnoteFormatter']=_0x10b202;}['_updateFootnotesCounters'](_0x19d194,_0x3e652e=0x0){let _0x19e86f=!0x1;for(let _0x5d1a72=_0x3e652e;_0x5d1a72<this['_footnotes']['length'];_0x5d1a72++)this['_updateFootnoteRefCounter'](_0x19d194,_0x5d1a72)&&(_0x19e86f=!0x0);return _0x19e86f;}['_insertEmptyFootnotesDefinitionsContainer'](_0x373725,_0x32ce0a){const _0x57151f=_0x373725['createElement']('footnotesDefinitions',{});return _0x373725['append'](_0x57151f,_0x32ce0a),this['_footnotesDefinitions']=_0x57151f,_0x57151f;}['_ensureFootnotesDefinitionsContainerExists'](_0x20c981){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x3d8585=this['_footnotes'][0x0]['reference']['root'],_0x4b346d=this['_insertEmptyFootnotesDefinitionsContainer'](_0x20c981,_0x3d8585);for(const _0xf51860 of this['_footnotes'])_0xf51860['definition']['parent']||_0x20c981['insert'](_0xf51860['definition'],_0x4b346d,'end');this['_updateFootnotesCounters'](_0x20c981);}['_handleFootnotesDefinitionsObjectChanges'](_0x3866b1,_0x27f295){let _0x7e723b=!0x1;const {inserted:_0x2add88,removed:_0x4aadd6,moved:_0x29449f}=this['_footnoteDefsContainerTracker']['getChanges'](_0x27f295);if(_0x29449f['length']&&(this['_footnotesDefinitions']=_0x29449f[0x0]),_0x2add88['length']){if(_0x2add88['length']>0x1||this['_footnotesDefinitions']&&_0x2add88['some'](_0x51b395=>_0x51b395!==this['_footnotesDefinitions'])){const _0x8f36db=_0x3866b1['createElement']('footnotesDefinitions',{}),_0x12f82a=[];this['_footnotesDefinitions']&&_0x12f82a['push'](this['_footnotesDefinitions']),_0x12f82a['push'](..._0x2add88),_0x3866b1['insert'](_0x8f36db,_0x12f82a[0x0],'before');for(const _0x5bb386 of _0x12f82a)_0x3866b1['move'](_0x3866b1['createRangeIn'](_0x5bb386),_0x3866b1['createPositionAt'](_0x8f36db,'end')),_0x3866b1['remove'](_0x5bb386);this['_footnotesDefinitions']=_0x8f36db,this['_updateFootnotesCounters'](_0x3866b1),_0x7e723b=!0x0;}else this['_footnotesDefinitions']=_0x2add88[0x0];}if(_0x4aadd6['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x2f15b2 of this['_footnotes'])_0x3866b1['remove'](_0x2f15b2['reference']),_0x7e723b=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x7e723b;}['_handleFootnoteDefinitionsChanges'](_0x2ab83a,_0x29f970){let _0x131766=!0x1;const _0x13982d=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x45fb04,moved:_0x32d5bd}=this['_footnoteDefsTracker']['getChanges'](_0x29f970);for(const _0x1bade3 of[..._0x32d5bd,..._0x45fb04]){const _0x24d58b=_0x1bade3['getAttribute']('footnoteId'),_0xd9d9ba=this['getFootnote'](_0x24d58b);_0xd9d9ba&&(_0xd9d9ba['definition']=_0x1bade3),_(_0x2ab83a,_0x13982d,_0x1bade3)&&(_0x131766=!0x0);}return _0x131766;}['_handleFootnoteReferencesChanges'](_0xfbccd0,_0x1506c7){let _0x153263=!0x1;const {removed:_0x5b44ab,inserted:_0x554787,moved:_0x469f0e}=this['_footnoteRefsTracker']['getChanges'](_0x1506c7);for(const _0x3ba8dc of _0x5b44ab)this['_handleRemoveFootnoteReferenceById'](_0xfbccd0,_0x3ba8dc)&&(_0x153263=!0x0);for(const _0x486100 of _0x554787)this['_handleInsertedFootnoteReference'](_0xfbccd0,_0x486100)&&(_0x153263=!0x0);for(const _0x3c1954 of _0x469f0e)this['_handleMovedFootnoteReference'](_0xfbccd0,_0x3c1954)&&(_0x153263=!0x0);return _0x153263;}['_handleFootnotesDefinitionsObjectSync'](_0x56f3bf){if(!this['_footnotesDefinitions'])return!0x1;let _0x3b185b=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0xea536c=[];for(const _0x59a0e8 of this['_footnotesDefinitions']['getChildren']()){const _0x54d26c=_0x59a0e8['getAttribute']('footnoteId');this['getFootnote'](_0x54d26c)||(_0xea536c['unshift'](_0x59a0e8),_0x3b185b=!0x0);}for(const _0x2615df of _0xea536c)_0x56f3bf['remove'](_0x2615df);}const _0x1dd232=new Set(),_0x28eed6=[];for(const _0x1d3e5e of this['_footnotesDefinitions']['getChildren']()){const _0x18008c=_0x1d3e5e['getAttribute']('footnoteId');_0x1dd232['has'](_0x18008c)?(_0x28eed6['unshift'](_0x1d3e5e),_0x3b185b=!0x0):_0x1dd232['add'](_0x18008c);}for(const _0x17655b of _0x28eed6)_0x56f3bf['remove'](_0x17655b);return this['_footnotesDefinitions']['childCount']||(_0x56f3bf['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x3b185b=!0x0),_0x3b185b;}['_handleInsertedFootnoteReference'](_0x1a29a6,_0x2c9e2b){if(this['_footnotes']['find'](_0x5b77c7=>_0x5b77c7['reference']===_0x2c9e2b))return!0x1;let _0x4f442c=!0x1;const _0x1f7c3d=_0x2c9e2b['getAttribute']('footnoteId'),_0xce8818=this['_footnotes']['findIndex'](_0x3f9c18=>_0x3f9c18['id']===_0x1f7c3d);-0x1!==_0xce8818&&(_0x1a29a6['remove'](this['_footnotes'][_0xce8818]['reference']),this['_footnotes']['splice'](_0xce8818,0x1),_0x4f442c=!0x0);let _0x3009f7=this['_footnotesDefinitions']?function(_0x376e85,_0x4dacaf){for(const _0xaabcdc of _0x376e85['getChildren']())if(_0xaabcdc['getAttribute']('footnoteId')===_0x4dacaf)return _0xaabcdc;return null;}(this['_footnotesDefinitions'],_0x1f7c3d):null;_0x3009f7||(_0x3009f7=_0x1a29a6['createElement']('footnoteDefinition',{'footnoteId':_0x1f7c3d}),this['_footnotesDefinitions']&&(_0x1a29a6['insert'](_0x3009f7,this['_footnotesDefinitions'],'end'),_0x4f442c=!0x0));const _0x25da31={'id':_0x1f7c3d,'reference':_0x2c9e2b,'definition':_0x3009f7},_0x43cf7c=I(this['editor']['model'],this['_footnotes'],_0x2c9e2b);this['_footnotes']['splice'](_0x43cf7c,0x0,_0x25da31);let _0x3c1e80=_0x43cf7c;return-0x1!==_0xce8818&&(_0x3c1e80=Math['min'](_0x43cf7c,_0xce8818)),this['_updateFootnotesCounters'](_0x1a29a6,_0x3c1e80)&&(_0x4f442c=!0x0),_0x4f442c;}['_handleRemoveFootnoteReferenceById'](_0x11ba4b,_0x59b2ee){const _0xd459d5=this['_footnotes']['findIndex'](_0x25cd63=>_0x25cd63['id']===_0x59b2ee);if(-0x1===_0xd459d5)return!0x1;let _0x4d0ec7=!0x1;const _0x2362bb=this['_footnotes'][_0xd459d5];return'$graveyard'!==_0x2362bb['definition']['root']['rootName']&&(_0x11ba4b['remove'](_0x2362bb['definition']),_0x4d0ec7=!0x0),this['_footnotes']['splice'](_0xd459d5,0x1),this['_updateFootnotesCounters'](_0x11ba4b,_0xd459d5)&&(_0x4d0ec7=!0x0),_0x4d0ec7;}['_handleMovedFootnoteReference'](_0x12d7b5,_0x4d015d){const _0x242a70=_0x4d015d['getAttribute']('footnoteId'),_0x18908d=this['_footnotes']['findIndex'](_0x325e93=>_0x325e93['id']===_0x242a70),_0x5e2a6b=this['_footnotes'][_0x18908d];let _0xae1a7a=!0x1;_0x5e2a6b['reference']=_0x4d015d,this['_footnotes']['splice'](_0x18908d,0x1);const _0x18f6f9=I(this['editor']['model'],this['_footnotes'],_0x4d015d);return this['_footnotes']['splice'](_0x18f6f9,0x0,_0x5e2a6b),this['_updateFootnotesCounters'](_0x12d7b5,Math['min'](_0x18908d,_0x18f6f9))&&(_0xae1a7a=!0x0),_0xae1a7a;}['_updateFootnoteRefCounter'](_0x2433e3,_0x11f6b0){if(!this['_footnotesDefinitions'])return!0x1;const _0x341d0f=this['_footnotes'][_0x11f6b0];let _0x5ba013;return _0x5ba013=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x341d0f,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x11f6b0+0x1}):String(_0x11f6b0+0x1),_0x341d0f['reference']['getAttribute']('footnoteCounter')!=_0x5ba013&&(_0x2433e3['setAttribute']('footnoteCounter',_0x5ba013,_0x341d0f['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x4d1515){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x1ad5e1,_0x36f689){if(_0x1ad5e1['length']!==_0x36f689['length'])return!0x1;for(let _0x3c9754=0x0;_0x3c9754<_0x1ad5e1['length'];_0x3c9754++)if(_0x1ad5e1[_0x3c9754]!==_0x36f689[_0x3c9754])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x423ad3=>_0x423ad3['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x5ef317=>_0x5ef317['getAttribute']('footnoteId'))))return!0x1;let _0x19f52c=!0x1;for(let _0x42ad76=0x0;_0x42ad76<this['_footnotes']['length'];_0x42ad76++){const _0xb051eb=this['_footnotes'][_0x42ad76],_0x55dcc8=_0x4d1515['createPositionBefore'](_0xb051eb['definition']),_0x4e51e4=_0x4d1515['createPositionAt'](this['_footnotesDefinitions'],_0x42ad76);_0x55dcc8['isEqual'](_0x4e51e4)||(_0x4d1515['move'](_0x4d1515['createRangeOn'](_0xb051eb['definition']),_0x4e51e4),_0x19f52c=!0x0);}return _0x19f52c;}['_ensureFootnotesReferencesHaveProperOrder'](_0x5d224c){if(!this['_footnotes']['length'])return!0x1;const {model:_0x1f985f}=this['editor'];let _0x1df309=!0x1;for(let _0x34fd79=0x0;_0x34fd79<this['_footnotes']['length']-0x1;_0x34fd79++){const _0x342925=this['_footnotes'][_0x34fd79],_0x51f891=this['_footnotes'][_0x34fd79+0x1],_0x4f3347=_0x1f985f['createPositionBefore'](_0x342925['reference']),_0x31f2d1=_0x1f985f['createPositionBefore'](_0x51f891['reference']);'after'===_0x4f3347['compareWith'](_0x31f2d1)&&(this['_handleMovedFootnoteReference'](_0x5d224c,_0x342925['reference']),_0x34fd79=-0x1,_0x1df309=!0x0);}return _0x1df309;}}function _(_0x2bcc6e,_0x2bef0e,_0x50b0a8){if(_0x50b0a8['childCount'])return!0x1;const _0x12db86=_0x2bef0e?'paragraph':'footnoteInlineContent';return _0x2bcc6e['insert'](_0x2bcc6e['createElement'](_0x12db86),_0x50b0a8),!0x0;}function I(_0x27a973,_0x47df7e,_0x4a46c1){if(0x0===_0x47df7e['length'])return 0x0;const _0x143380=_0x27a973['createPositionBefore'](_0x4a46c1);for(let _0x50fece=0x0;_0x50fece<_0x47df7e['length'];_0x50fece++){const _0x22aa1e=_0x47df7e[_0x50fece],_0x4edfc8=_0x27a973['createPositionBefore'](_0x22aa1e['reference']);if('before'===_0x143380['compareWith'](_0x4edfc8))return _0x50fece;}const _0x22bbb6=_0x4a46c1['root'];let _0x97b51b=-0x1;for(let _0x49cc27=_0x47df7e['length']-0x1;_0x49cc27>=0x0;_0x49cc27--)if(_0x47df7e[_0x49cc27]['reference']['root']===_0x22bbb6){_0x97b51b=_0x49cc27;break;}if(-0x1!==_0x97b51b)return _0x97b51b+0x1;const _0x55ab7f=_0x27a973['document']['getRootNames'](),_0x280e60=_0x55ab7f['indexOf'](_0x22bbb6['rootName']),_0x388a3b=_0x55ab7f[_0x280e60+0x1];if(_0x388a3b){for(let _0x5ce788=0x0;_0x5ce788<_0x47df7e['length'];_0x5ce788++)if(_0x47df7e[_0x5ce788]['reference']['root']['rootName']===_0x388a3b)return _0x5ce788;}return _0x47df7e['length'];}class h extends _0x57d0f2{['refresh'](){const _0xd46d5a=this['editor']['model']['document']['selection'],_0x91fe2=this['_getPositionToInsertFootnote'](_0xd46d5a);this['isEnabled']=!!_0x91fe2;}['execute'](_0xff26da){const {editor:_0x286457}=this,{model:_0x451013}=_0x286457,{selection:_0x599778}=_0x451013['document'],_0x5c88b0=this['_getPositionToInsertFootnote'](_0x599778);if(!_0x5c88b0)return;const _0x26290e=_0x286457['plugins']['get']('FootnotesEditing'),_0x1d6b16=_0xff26da?.['footnoteId']??_0x294e74();!function(_0x4b27a6){return'string'==typeof _0x4b27a6&&_0x4b27a6['length']>0x0&&!/\s/['test'](_0x4b27a6)&&!/^\d/['test'](_0x4b27a6);}(_0x1d6b16)?_0x4de24b('insert-footnote-command-executed-with-invalid-id'):(_0x451013['change'](_0x1fb291=>{const _0x145321=_0x1fb291['createElement']('footnoteRef',{'footnoteId':_0x1d6b16});_0x451013['insertObject'](_0x145321,_0x5c88b0,null);}),_0x26290e['_moveSelectionToFootnoteDefinition'](_0x1d6b16));}['_getPositionToInsertFootnote'](_0x381d31){const {model:_0x5355cb}=this['editor'],{schema:_0x49105}=_0x5355cb,_0x224a8e=_0x381d31['getFirstRange']();for(const _0x379733 of _0x224a8e['getItems']())if(_0x49105['isBlock'](_0x379733)||_0x49105['isObject'](_0x379733))return null;const _0x4201c2=_0x224a8e['end'];return _0x49105['checkChild'](_0x4201c2,'footnoteRef')?_0x4201c2:null;}}class r extends _0x4b9cba{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x33e958}=this;_0x33e958['config']['define']('footnotes.multiBlock',!0x0),_0x33e958['commands']['add']('insertFootnote',new h(_0x33e958)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x323e50){const _0x36452b=_0x5a5053([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]),_0x50fea9=0x47a28506,_0x464e94=0x47a50456^_0x50fea9,_0x1ad3b8=window[_0x5a5053([0x44,0x61,0x74,0x65])][_0x5a5053([0x6e,0x6f,0x77])](),_0x5995cd=_0x323e50[_0x5a5053([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x147ce7=new window[(_0x5a5053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30654b=>{_0x5995cd[_0x5a5053([0x6f,0x6e,0x63,0x65])](_0x5a5053([0x72,0x65,0x61,0x64,0x79]),_0x30654b);}),_0x22ccad={[_0x5a5053([0x6b,0x74,0x79])]:_0x5a5053([0x45,0x43]),[_0x5a5053([0x75,0x73,0x65])]:_0x5a5053([0x73,0x69,0x67]),[_0x5a5053([0x63,0x72,0x76])]:_0x5a5053([0x50,0x2d,0x32,0x35,0x36]),[_0x5a5053([0x78])]:_0x5a5053([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]),[_0x5a5053([0x79])]:_0x5a5053([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]),[_0x5a5053([0x61,0x6c,0x67])]:_0x5a5053([0x45,0x53,0x32,0x35,0x36])},_0x23d3a9=_0x5995cd[_0x5a5053([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a5053([0x67,0x65,0x74])](_0x5a5053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1006ee(){let _0x7aeec8,_0x54b783=null,_0x3d64f8=null;try{if(_0x23d3a9==_0x5a5053([0x47,0x50,0x4c]))return _0x5a5053([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x7aeec8=_0x332a8e(),!_0x7aeec8)return _0x5a5053([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x7aeec8[_0x5a5053([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d64f8=_0x467529(_0x7aeec8[_0x5a5053([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x7aeec8[_0x5a5053([0x6a,0x74,0x69])])),await _0x3ae5bd()?_0x1952bb()?_0x1e8e4b()?_0x5a5053([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3663af()?(_0x7aeec8[_0x5a5053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a5053([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x54b783=_0x4c24ad(_0x5a5053([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x564a1b()):_0x5a5053([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a5053([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a5053([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5a5053([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e8e4b(){const _0x22e5c3=[_0x5a5053([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a5053([0x74,0x72,0x69,0x61,0x6c])][_0x5a5053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7aeec8[_0x5a5053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1ad3b8/0x3e8:0xe10*_0x464e94;return _0x7aeec8[_0x5a5053([0x65,0x78,0x70])]<_0x22e5c3;}function _0x1952bb(){const _0x4e8be4=_0x7aeec8[_0x5a5053([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4e8be4&&(!!_0x4e8be4[_0x5a5053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a5053([0x2a]))||!!_0x4e8be4[_0x5a5053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a5053([0x46,0x4f,0x4f])));}function _0x3663af(){const _0x3ad29a=_0x7aeec8[_0x5a5053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3ad29a||0x0==_0x3ad29a[_0x5a5053([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xd150b9}=new URL(window[_0x5a5053([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3ad29a[_0x5a5053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd150b9))return!0x0;const _0x2cf3d2=_0xd150b9[_0x5a5053([0x73,0x70,0x6c,0x69,0x74])](_0x5a5053([0x2e]));return _0x3ad29a[_0x5a5053([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f98e8=>_0x1f98e8[_0x5a5053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a5053([0x2a])))[_0x5a5053([0x6d,0x61,0x70])](_0x23c8d9=>_0x23c8d9[_0x5a5053([0x73,0x70,0x6c,0x69,0x74])](_0x5a5053([0x2e])))[_0x5a5053([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x538a1d=>_0x538a1d[_0x5a5053([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2cf3d2[_0x5a5053([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5a5053([0x6d,0x61,0x70])](_0x321dbd=>Array(_0x2cf3d2[_0x5a5053([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x321dbd[_0x5a5053([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5a5053([0x66,0x69,0x6c,0x6c])](_0x321dbd[0x0]===_0x5a5053([0x2a])?_0x5a5053([0x2a]):'')[_0x5a5053([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x321dbd))[_0x5a5053([0x73,0x6f,0x6d,0x65])](_0x7bd86c=>_0x2cf3d2[_0x5a5053([0x65,0x76,0x65,0x72,0x79])]((_0x132cf6,_0x496678)=>_0x7bd86c[_0x496678]===_0x132cf6||_0x7bd86c[_0x496678]===_0x5a5053([0x2a])));}function _0x564a1b(){return _0x54b783&&_0x3d64f8?new window[(_0x5a5053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x101138,_0x408864)=>{_0x54b783[_0x5a5053([0x74,0x68,0x65,0x6e])](_0x101138,_0x408864),_0x3d64f8[_0x5a5053([0x74,0x68,0x65,0x6e])](_0x313a3c=>{_0x313a3c!=_0x5a5053([0x56,0x61,0x6c,0x69,0x64])&&_0x101138(_0x313a3c);},_0x408864);}):_0x54b783||_0x3d64f8||_0x5a5053([0x56,0x61,0x6c,0x69,0x64]);}}function _0x467529(_0x2a9e9c,_0x46c742){return new window[(_0x5a5053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b67fb=>{if(_0x808d03())return _0x2b67fb(_0x5a5053([0x56,0x61,0x6c,0x69,0x64]));_0x80373a(),_0x5995cd[_0x5a5053([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a5053([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1eae12=!0x1;const _0x26b07c=_0x294e74();function _0x394da4(_0x22dd7f){return!!_0x22dd7f&&(typeof _0x22dd7f===_0x5a5053([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x22dd7f===_0x5a5053([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x22dd7f[_0x5a5053([0x74,0x68,0x65,0x6e])]===_0x5a5053([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x22dd7f[_0x5a5053([0x63,0x61,0x74,0x63,0x68])]===_0x5a5053([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x34abc5(_0x1a41ec){_0x266364(_0x1a41ec)[_0x5a5053([0x74,0x68,0x65,0x6e])](_0x536523=>{if(!_0x536523||_0x536523[_0x5a5053([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a5053([0x6f,0x6b]))return _0x5a5053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x570973(_0x363bd4(_0x26b07c+_0x46c742))!=_0x536523[_0x5a5053([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a5053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a5053([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a5053([0x74,0x68,0x65,0x6e])](_0x2f7202=>(_0x2d1e4a(),_0x2f7202),()=>{const _0x3adf42=_0xf72a9f();return null==_0x3adf42?(_0x2d1e4a(),_0x5a5053([0x56,0x61,0x6c,0x69,0x64])):_0x5a5053(_0x1ad3b8-_0x3adf42>(0x63ae0106^_0x50fea9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a5053([0x74,0x68,0x65,0x6e])](_0x2b67fb)[_0x5a5053([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b67fb(_0x5a5053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x11cca5=0x47946b86^_0x50fea9;function _0x2d1e4a(){const _0x4aba68=_0x5a5053([0x6c,0x6c,0x63,0x74,0x2d])+_0x570973(_0x363bd4(_0x2a9e9c)),_0x25a182=_0x38ad2c(_0x570973(window[_0x5a5053([0x4d,0x61,0x74,0x68])][_0x5a5053([0x63,0x65,0x69,0x6c])](_0x1ad3b8/_0x11cca5)));window[_0x5a5053([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a5053([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4aba68,_0x25a182);}function _0xf72a9f(){const _0x36468a=_0x5a5053([0x6c,0x6c,0x63,0x74,0x2d])+_0x570973(_0x363bd4(_0x2a9e9c)),_0xe02bce=window[_0x5a5053([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a5053([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36468a);return _0xe02bce?window[_0x5a5053([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38ad2c(_0xe02bce),0x10)*_0x11cca5:null;}function _0x266364(_0x3a5395){return new window[(_0x5a5053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fdf99,_0x2d06e7)=>{_0x3a5395[_0x5a5053([0x74,0x68,0x65,0x6e])](_0x3fdf99,_0x2d06e7),window[_0x5a5053([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d06e7,0x47a351c6^_0x50fea9);});}}_0x5995cd[_0x5a5053([0x6f,0x6e])](_0x5a5053([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2f1198,_0x50a6d5)=>{if(_0x50a6d5[0x0]!=_0x2a9e9c)return _0x2b67fb(_0x5a5053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x50a6d5[0x1]={..._0x50a6d5[0x1],[_0x5a5053([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x26b07c};},{[_0x5a5053([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a5053([0x68,0x69,0x67,0x68])}),_0x5995cd[_0x5a5053([0x6f,0x6e])](_0x5a5053([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2595e6=>{_0x394da4(_0x2595e6[_0x5a5053([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1eae12=!0x0,_0x34abc5(_0x2595e6[_0x5a5053([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a5053([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a5053([0x6c,0x6f,0x77])}),_0x147ce7[_0x5a5053([0x74,0x68,0x65,0x6e])](()=>{_0x1eae12||_0x2b67fb(_0x5a5053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x808d03(){return _0x5995cd[_0x5a5053([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a5053([0x76,0x69,0x65,0x77])][_0x5a5053([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a5053([0x61,0x75,0x74,0x6f]);}function _0x80373a(){_0x5995cd[_0x5a5053([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a5053([0x76,0x69,0x65,0x77])][_0x5a5053([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a5053([0x61,0x75,0x74,0x6f]);}}function _0x4c24ad(_0x30fb65){const _0x18ed87=[new window[(_0x5a5053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54e14e=>setTimeout(_0x54e14e,0x47abbbca^_0x50fea9)),_0x147ce7[_0x5a5053([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a5053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x524ce6=>{let _0x260f81=0x0;_0x5995cd[_0x5a5053([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a5053([0x6f,0x6e])](_0x5a5053([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x147c9e,_0x2f1882)=>{_0x2f1882[0x0][_0x5a5053([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x260f81++,_0x260f81==(0x47a280ee^_0x50fea9)&&(_0x524ce6(),_0x147c9e[_0x5a5053([0x6f,0x66,0x66])]());});}))];return window[_0x5a5053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a5053([0x72,0x61,0x63,0x65])](_0x18ed87)[_0x5a5053([0x74,0x68,0x65,0x6e])](()=>_0x30fb65);}async function _0x46969b(){await _0x147ce7,_0x5995cd[_0x5a5053([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a5053([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x29d926,_0x5995cd[_0x5a5053([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a5053([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x29d926,_0x5995cd[_0x5a5053([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a5053([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3b5b00(_0x1b4e94){const _0x2bef3d=_0x42d15c();_0x5995cd[_0x2bef3d]=_0x5a5053([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1b4e94,_0x1b4e94!=_0x5a5053([0x56,0x61,0x6c,0x69,0x64])&&_0x46969b();}function _0x42d15c(){const _0x24385b=window[_0x5a5053([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a5053([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a5053([0x6e,0x6f,0x77])]())[_0x5a5053([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a5053([0x2e]),'');let _0x1f5371=_0x5a5053([0x75]);for(let _0x5c03a1=0x0;_0x5c03a1<_0x24385b[_0x5a5053([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c03a1+=0x2){let _0x45bdd1=window[_0x5a5053([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24385b[_0x5a5053([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c03a1,_0x5c03a1+0x2));_0x45bdd1>=_0x36452b[_0x5a5053([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45bdd1-=_0x36452b[_0x5a5053([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1f5371+=_0x36452b[_0x45bdd1];}return _0x1f5371;}function _0x332a8e(){const _0x5b75d3=_0x23d3a9[_0x5a5053([0x73,0x70,0x6c,0x69,0x74])](_0x5a5053([0x2e]));if(0x3!=_0x5b75d3[_0x5a5053([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x467cd9(_0x5b75d3[0x1]);function _0x467cd9(_0x2796a6){const _0x56a259=_0x1a59fd(_0x2796a6);return _0x56a259&&_0x53406e()?_0x56a259:null;function _0x53406e(){const _0x1d8c4d=_0x56a259[_0x5a5053([0x6a,0x74,0x69])],_0x5a4a59=window[_0x5a5053([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d8c4d[_0x5a5053([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d8c4d[_0x5a5053([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1cecd4={..._0x56a259,[_0x5a5053([0x6a,0x74,0x69])]:_0x1d8c4d[_0x5a5053([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1d8c4d[_0x5a5053([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1cecd4[_0x5a5053([0x76,0x63])],_0x363bd4(_0x1cecd4)==_0x5a4a59;}}}async function _0x3ae5bd(){let _0x49995e=!0x0;try{const _0xf14108=_0x23d3a9[_0x5a5053([0x73,0x70,0x6c,0x69,0x74])](_0x5a5053([0x2e])),[_0x2f1f1f,_0x5e5f58,_0xd3a0fb]=_0xf14108;return _0x771c4(_0x2f1f1f),await _0x56226d(_0x2f1f1f,_0x5e5f58,_0xd3a0fb),_0x49995e;}catch{return!0x1;}function _0x771c4(_0x2802eb){const _0x5b56e0=_0x1a59fd(_0x2802eb);_0x5b56e0&&_0x5b56e0[_0x5a5053([0x61,0x6c,0x67])]==_0x5a5053([0x45,0x53,0x32,0x35,0x36])||(_0x49995e=!0x1);}async function _0x56226d(_0x5e1225,_0x3e28e1,_0x4f2a06){const _0x4bcf3a=window[_0x5a5053([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a5053([0x66,0x72,0x6f,0x6d])](_0x1a97ed(_0x4f2a06),_0x59830a=>_0x59830a[_0x5a5053([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x45092b=new window[(_0x5a5053([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a5053([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5e1225+_0x5a5053([0x2e])+_0x3e28e1),_0x495ea3=window[_0x5a5053([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a5053([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x495ea3)return;const _0x5b4b2d=await _0x495ea3[_0x5a5053([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a5053([0x6a,0x77,0x6b]),_0x22ccad,{[_0x5a5053([0x6e,0x61,0x6d,0x65])]:_0x5a5053([0x45,0x43,0x44,0x53,0x41]),[_0x5a5053([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a5053([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a5053([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x495ea3[_0x5a5053([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a5053([0x6e,0x61,0x6d,0x65])]:_0x5a5053([0x45,0x43,0x44,0x53,0x41]),[_0x5a5053([0x68,0x61,0x73,0x68])]:{[_0x5a5053([0x6e,0x61,0x6d,0x65])]:_0x5a5053([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5b4b2d,_0x4bcf3a,_0x45092b)||(_0x49995e=!0x1);}}function _0x1a59fd(_0x431182){return _0x431182[_0x5a5053([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a5053([0x65,0x79]))?JSON[_0x5a5053([0x70,0x61,0x72,0x73,0x65])](_0x1a97ed(_0x431182)):null;}function _0x1a97ed(_0x40ce7d){return window[_0x5a5053([0x61,0x74,0x6f,0x62])](_0x40ce7d[_0x5a5053([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a5053([0x2b]))[_0x5a5053([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a5053([0x2f])));}function _0x363bd4(_0x445cc6){let _0x1eade6=0x1505;function _0x1e4a7a(_0x3b105b){for(let _0xf72eef=0x0;_0xf72eef<_0x3b105b[_0x5a5053([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf72eef++){const _0x2d922a=_0x3b105b[_0x5a5053([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xf72eef);_0x1eade6=(_0x1eade6<<0x5)+_0x1eade6+_0x2d922a,_0x1eade6&=_0x1eade6;}}function _0x201107(_0x5bc13f){Array[_0x5a5053([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5bc13f)?_0x5bc13f[_0x5a5053([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x201107):_0x5bc13f&&typeof _0x5bc13f==_0x5a5053([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a5053([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5bc13f)[_0x5a5053([0x73,0x6f,0x72,0x74])]()[_0x5a5053([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x319189,_0x31b662])=>{_0x1e4a7a(_0x319189),_0x201107(_0x31b662);}):_0x1e4a7a(window[_0x5a5053([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5bc13f));}return _0x201107(_0x445cc6),_0x1eade6>>>0x0;}function _0x570973(_0x3f81d5){return _0x3f81d5[_0x5a5053([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a5053([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a5053([0x30]));}function _0x38ad2c(_0x5f1416){return _0x5f1416[_0x5a5053([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a5053([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a5053([0x6a,0x6f,0x69,0x6e])]('');}function _0x29d926(){}function _0x5a5053(_0x36e453){return _0x36e453['map'](_0x4dfa41=>String['fromCharCode'](_0x4dfa41))['join']('');}_0x3b5b00(await _0x1006ee());}(this);}['_moveSelectionToFootnoteDefinition'](_0x521a5d){const {plugins:_0x2044cb,editing:_0x1a757b,model:_0x203155}=this['editor'],_0x5810b9=_0x2044cb['get'](f)['getFootnote'](_0x521a5d);return!!_0x5810b9&&(_0x203155['change'](_0x4f2755=>{_0x4f2755['setSelection'](_0x4f2755['createPositionAt'](_0x5810b9['definition'],'end'));}),_0x1a757b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x320324){const {plugins:_0x3718c4,editing:_0x2b060f,model:_0x97b5b8}=this['editor'],_0x4f96be=_0x3718c4['get'](f)['getFootnote'](_0x320324);return!!_0x4f96be&&(_0x97b5b8['change'](_0x94dc9f=>{_0x94dc9f['setSelection'](_0x4f96be['reference'],'on');}),_0x2b060f['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x1cb313}=this['editor']['model'],_0x33493a=this['editor']['config']['get']('footnotes.multiBlock');_0x1cb313['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x1cb313['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x1cb313['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x33493a?_0x1cb313['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x1cb313['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x1cb313['addChildCheck'](_0x37abc7=>{for(const _0x40b09b of _0x37abc7)if('footnoteDefinition'===_0x40b09b['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x3a64d8}=this,{conversion:_0xd38f22,editing:_0x5e5847}=_0x3a64d8,{t:t}=_0x3a64d8['locale'];_0xd38f22['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x1ecf64,{writer:_0x23e3ab,consumable:_0x105285})=>{const _0x40ce0f=_0x1ecf64['getChild'](0x0);if(!_0x40ce0f||!_0x40ce0f['is']('element','a'))return null;const _0x42f134=_0x40ce0f['getAttribute']('href')||'';if(!_0x42f134['startsWith']('#'))return null;const _0x4bf5cc=_0x42f134['replace'](/^#/,'');if(!_0x4bf5cc)return null;_0x105285['consume'](_0x40ce0f,{'name':!0x0,'attributes':['href']});for(const {item:_0x3fd15c}of _0x5e5847['view']['createRangeIn'](_0x40ce0f))_0x3fd15c['is']('$textProxy')?_0x105285['consume'](_0x3fd15c['textNode'],{'name':!0x0}):_0x3fd15c['is']('element')&&_0x105285['consume'](_0x3fd15c,{'name':!0x0});return _0x23e3ab['createElement']('footnoteRef',{'footnoteId':_0x4bf5cc});}}),_0xd38f22['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x31d46c,{writer:_0x37181d})=>b(_0x31d46c,_0x37181d)}),_0xd38f22['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4c38f8,{writer:_0x4ccadc})=>{const _0x3cf769=_0x4c38f8['getAttribute']('footnoteCounter');return _0x59b9e8(b(_0x4c38f8,_0x4ccadc),_0x4ccadc,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x3cf769)});}});}['_defineDefinitionsConverters'](){const {editor:_0xa983f5}=this,{t:t}=_0xa983f5['locale'],{conversion:_0x30c659}=_0xa983f5;_0x30c659['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x30c659['for']('upcast')['add'](_0x42c22a=>{_0x42c22a['on']('element:ol',(_0xb8ce7a,_0x12481c,_0x175b29)=>{const _0x2bcdc9=_0x12481c['viewItem'];if(!_0x2bcdc9['hasClass']('footnotes-list')||!_0x12481c['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x175b29['consumable']['consume'](_0x2bcdc9,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x58f912,modelCursor:_0x131701}=_0x175b29['convertChildren'](_0x12481c['viewItem'],_0x12481c['modelCursor']);_0x12481c['modelRange']=_0x58f912,_0x12481c['modelCursor']=_0x131701;}),_0x42c22a['on']('element:hr',(_0x4b3c25,_0x5870c2,_0x116fe2)=>{const _0x2b1d28=_0x5870c2['viewItem'];_0x2b1d28['hasClass']('footnotes-divider')&&_0x5870c2['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x116fe2['consumable']['consume'](_0x2b1d28,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x30c659['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x15f386,{writer:_0x199bed})=>D(_0x199bed)}),_0x30c659['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xc000bd,{writer:_0x11b55b})=>{const _0x5a5db3=D(_0x11b55b,{'data-footnotes-list-label':t('Footnotes')}),_0x28db49=_0x59b9e8(_0x5a5db3,_0x11b55b,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x11b55b['setCustomProperty']('footnotesDefinitions',!0x0,_0x28db49),_0x28db49;}});}['_defineDefinitionConverters'](){const {editor:_0x4159b5}=this,{conversion:_0x2c9a56,locale:_0x311cc2}=_0x4159b5,_0x52a39a=_0x4159b5['config']['get']('footnotes.multiBlock');_0x2c9a56['for']('upcast')['add'](_0x36571a=>{_0x36571a['on']('element:li',(_0x80fc6d,_0x199b86,_0x755941)=>{const _0x546360=_0x199b86['viewItem'];if(!_0x546360['hasClass']('footnote-definition')||!_0x546360['getAttribute']('id'))return;const _0x16f9bf=_0x546360['parent'];if(!_0x16f9bf['is']('element','ol')||!_0x16f9bf['hasClass']('footnotes-list'))return;if(!_0x755941['consumable']['test'](_0x546360,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x315eca=_0x755941['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x546360['getAttribute']('id')});if(!_0x755941['safeInsert'](_0x315eca,_0x199b86['modelCursor']))return;_0x755941['consumable']['consume'](_0x546360,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2adc49=Array['from'](_0x546360['getChildren']())['find'](_0x17dbcd=>_0x17dbcd['is']('element')&&_0x17dbcd['hasClass']('footnote-content'));for(const _0x2c26b0 of _0x546360['getChildren']())_0x2c26b0['is']('element')&&(_0x755941['consumable']['consume'](_0x2c26b0,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x755941['consumable']['consume'](_0x2c26b0,{'name':!0x0,'classes':'footnote-content'}));if(_0x2adc49){if(_0x52a39a)_0x755941['convertChildren'](_0x2adc49,_0x315eca);else{const _0x47d2a0=_0x755941['writer']['createElement']('footnoteInlineContent');_0x755941['writer']['insert'](_0x47d2a0,_0x315eca),_0x755941['convertChildren'](_0x2adc49,_0x47d2a0);}}_0x755941['updateConversionResult'](_0x315eca,_0x199b86);});}),_0x2c9a56['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2c740f,{writer:_0x2ae8a1})=>y(_0x2c740f,_0x2ae8a1,_0x311cc2,{'dataPipeline':!0x0})}),_0x2c9a56['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x94a4a5,{writer:_0x268282})=>y(_0x94a4a5,_0x268282,_0x311cc2)});}['_defineBogusParagraphConverters'](){const {editor:_0x357ad7}=this,{conversion:_0x2d242e}=_0x357ad7;_0x357ad7['config']['get']('footnotes.multiBlock')?(_0x2d242e['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x2d242e['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x357ad7['model']['document'],'change:data',()=>{!function(_0x38602d,_0x1403dc){const _0x3ba2ab=_0x38602d['document']['differ'],_0x26cb4a=new Set();for(const _0x1edd8d of _0x3ba2ab['getChanges']()){const _0xdfca78='attribute'==_0x1edd8d['type']?_0x1edd8d['range']['start']['parent']:_0x1edd8d['position']['parent'];_0xdfca78['is']('element','footnoteDefinition')&&_0x26cb4a['add'](_0xdfca78);}for(const _0x446d4a of _0x26cb4a['values']()){const _0x58f48f=Array['from'](_0x446d4a['getChildren']())['filter'](_0x293d72=>v(_0x293d72,_0x1403dc['mapper']));for(const _0x42ed99 of _0x58f48f)_0x1403dc['reconvertItem'](_0x42ed99);}}(_0x357ad7['model'],_0x357ad7['editing']);})):(_0x2d242e['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x2d242e['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x407e3d,{writer:_0x3dac5c})=>{const _0x5e65e2=_0x3dac5c['createContainerElement']('span');return _0x3dac5c['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5e65e2),_0x5e65e2;}}));}['_defineKeyboardHandlers'](){const {editor:_0x17fb1f}=this,{editing:_0x2664c6,t:t}=_0x17fb1f,_0x98529c=_0x17fb1f['model']['document']['selection'];_0x17fb1f['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x17fb1f['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x2664c6['view']['document'],'enter',(_0x2bba15,_0x376936)=>{const _0x2e38ac=function(_0x4f0112){const _0x161c6d=_0x4f0112['getSelectedElement']();if(_0x161c6d?.['is']('element','footnoteRef'))return _0x161c6d;return null;}(_0x98529c);if(_0x2e38ac){const _0x4c147f=_0x2e38ac['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4c147f),_0x376936['preventDefault'](),_0x2bba15['stop']();}},{'context':_0x2be15b});}['_defineClickHandlers'](){const {editor:_0x1fc0ad}=this,{editing:_0x2fa5aa}=_0x1fc0ad;_0x1fc0ad['editing']['view']['addObserver'](_0x5a66b3),_0x1fc0ad['editing']['view']['addObserver'](_0x21efcf);let _0x49c6fd=!0x1;this['listenTo'](_0x2fa5aa['view']['document'],'pointerdown',(_0x3ffa6d,_0x557f30)=>{const {target:_0x218bc3}=_0x557f30,_0x2e593d=_0x2fa5aa['view']['document']['selection'];_0x49c6fd=!!(_0x218bc3?.['is']('element','a')&&_0x218bc3['parent']?.['is']('element','sup')&&_0x218bc3['parent']['hasClass']('footnote'))&&_0x2e593d['getSelectedElement']()===_0x218bc3['parent'];},{'priority':'high'}),this['listenTo'](_0x2fa5aa['view']['document'],'click',(_0x3cfda2,_0x281f73)=>{const {target:_0x187b9f}=_0x281f73;if(!_0x187b9f?.['is']('element','a'))return;if(_0x187b9f['parent']?.['is']('element','sup')&&_0x187b9f['parent']['hasClass']('footnote')&&!_0x49c6fd)return void _0x281f73['preventDefault']();let _0x426f8d=_0x187b9f['getAttribute']('href');if(!_0x426f8d?.['startsWith']('#'))return;_0x426f8d=_0x426f8d['slice'](0x1);let _0x51c4db=!0x1;(_0x426f8d['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x426f8d['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x426f8d))&&(_0x51c4db=!0x0),_0x51c4db&&(_0x281f73['preventDefault'](),_0x3cfda2['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x1e593e}={}){return(_0xe6b2c9,{writer:_0x5aa166})=>{if(!g(_0xe6b2c9))return null;if(!_0x1e593e)return _0x5aa166['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x47a937=_0x5aa166['createContainerElement']('p');return _0x5aa166['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x47a937),_0x47a937;};}function g(_0x43a8a3){const {parent:_0x357861}=_0x43a8a3;if(!_0x357861?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x357861['childCount'])return!0x1;for(const _0x48ff5c of _0x43a8a3['getAttributeKeys']())if(!_0x48ff5c['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x48ff5c)return!0x1;return!0x0;}function v(_0x3fa505,_0x5341fa){if(!_0x3fa505['is']('element','paragraph'))return!0x1;const _0x74fd26=_0x5341fa['toViewElement'](_0x3fa505);return!!_0x74fd26&&g(_0x3fa505)!==_0x74fd26['is']('element','span');}function Q(_0x14ac21){return _0x2be15b(_0x14ac21)&&_0x14ac21['is']('containerElement')&&!!_0x14ac21['getCustomProperty']('footnotesDefinitions');}function D(_0x37f86c,_0x28e651={}){const _0x34d44a=_0x37f86c['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0xc7112c=_0x37f86c['createContainerElement']('ol',{'class':'footnotes-list'},_0x37f86c['createSlot']());return _0x37f86c['createContainerElement']('div',{'class':'footnotes',..._0x28e651},[_0x34d44a,_0xc7112c]);}function b(_0x376ef3,_0x563a50){const _0x59a268=_0x376ef3['getAttribute']('footnoteId'),_0xc237a3=_0x376ef3['getAttribute']('footnoteCounter'),_0x285118=_0x563a50['createUIElement']('a',{'href':'#'+_0x59a268},function(_0x24655b){const _0x28bd98=this['toDomElement'](_0x24655b);return _0x28bd98['textContent']=_0xc237a3,_0x28bd98;}),_0x50e7a4=_0x563a50['createContainerElement']('sup',{'id':'ref-'+_0x59a268,'class':'footnote'},[_0x285118]);return _0x50e7a4['getFillerOffset']=()=>null,_0x50e7a4;}function y(_0x1f14a5,_0x3ed206,_0x2ad2c5,{dataPipeline:_0xa37969}={}){const {t:t}=_0x2ad2c5,_0x2d1b10=_0x1f14a5['getAttribute']('footnoteId'),_0x4c1852=_0x3ed206['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2d1b10},function(_0x5590b8){const _0x426465=this['toDomElement'](_0x5590b8);return _0x426465['innerText']='^',_0x426465;}),_0x198c05=_0xa37969?_0x3ed206['createContainerElement']('div',{'class':'footnote-content'}):_0x23ba3e(_0x3ed206['createEditableElement']('div',{'class':'footnote-content'}),_0x3ed206,{'label':t('Footnote\x20content.')});return _0x3ed206['insert'](_0x3ed206['createPositionAt'](_0x198c05,0x0),_0x3ed206['createSlot']()),_0x3ed206['createContainerElement']('li',{'class':'footnote-definition','id':_0x2d1b10},[_0x4c1852,_0x198c05]);}class e extends _0x4b9cba{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x435026];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x4aa699}=this,{plugins:_0x39ca2f,model:_0x29a8c7}=_0x4aa699,_0x9b9daa=_0x39ca2f['get'](_0x435026),_0x506813=_0x39ca2f['get'](f);this['listenTo'](_0x9b9daa,'outputTransformation',(_0x247061,_0x2d35c)=>{const _0x57aa08=l(_0x29a8c7['createRangeIn'](_0x2d35c['content']));if(!_0x57aa08['length'])return;const _0x251ee4=_0x506813['getFootnotes'](),_0x2e7df7=_0x57aa08['reduce']((_0xa4789f,_0x5a5cf7)=>{const _0x2765b7=_0x251ee4['find'](_0x346a6e=>_0x346a6e['id']===_0x5a5cf7);if(_0x2765b7){const _0x193c0d=_0x4aa699['data']['toView'](_0x2765b7['definition'],{'isClipboardPipeline':!0x0}),_0x174224=_0x4aa699['data']['htmlProcessor']['toData'](_0x193c0d);_0xa4789f[_0x2765b7['id']]=_0x174224;}return _0xa4789f;},Object['create'](null));_0x2d35c['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x2e7df7));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x6c850e}=this,{model:_0x5ceb8a,plugins:_0x655732}=_0x6c850e,{view:_0x2b4396}=_0x6c850e['editing'],_0x1a50f3=_0x655732['get'](_0x435026),_0x5d9bc5=_0x655732['get'](f),_0x1ba87d=_0x6c850e['config']['get']('footnotes.multiBlock');let _0x23fb02=null;this['listenTo'](_0x2b4396['document'],'clipboardInput',(_0x29d460,_0x64848f)=>{const _0x3c11b3=_0x64848f['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x23fb02=_0x3c11b3?JSON['parse'](_0x3c11b3):null;}),this['listenTo'](_0x1a50f3,'contentInsertion',(_0x54d907,_0x3bbd88)=>{const _0x18061f=_0x3bbd88['sourceEditorId']===this['editor']['id'];_0x18061f&&'drop'===_0x3bbd88['method']||_0x5ceb8a['change'](_0x4578f3=>{let _0x4ad23a=_0x5d9bc5['getFootnotesDefinitionsObjectElement']();const _0x4cdf83=!!_0x4ad23a&&Array['from'](_0x5ceb8a['document']['selection']['getSelectedBlocks']())['includes'](_0x4ad23a);if(!_0x23fb02&&function(_0x476ae6){for(const {item:_0x56b266}of _0x476ae6)if(_0x56b266['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x5ceb8a['createRangeIn'](_0x3bbd88['content']))&&(_0x23fb02=function(_0x362b63,_0x1a4b0d){const _0x5b8d8d=c(_0x362b63,_0x1a4b0d);if(!_0x5b8d8d)return null;const _0x45701e=Object['create'](null);for(const _0x1cf94e of _0x5b8d8d['getChildren']())_0x1cf94e['is']('element','footnoteDefinition')&&_0x1cf94e['hasAttribute']('footnoteId')&&(_0x45701e[_0x1cf94e['getAttribute']('footnoteId')]=_0x362b63['cloneElement'](_0x1cf94e,!0x0));return Object['keys'](_0x45701e)['length']?_0x45701e:null;}(_0x4578f3,_0x3bbd88['content'])),(_0x4ad23a&&!_0x4cdf83||!_0x4ad23a&&!_0x23fb02)&&function(_0x47c344,_0x350898){const _0x36fbf2=[];for(const {item:_0x166cdf}of _0x47c344['createRangeIn'](_0x350898))_0x166cdf['is']('element','footnotesDefinitions')&&_0x36fbf2['push'](_0x166cdf);for(const _0x321a3c of _0x36fbf2)_0x47c344['remove'](_0x321a3c);}(_0x4578f3,_0x3bbd88['content']),!_0x23fb02)return;const {selection:_0x256b15}=_0x5ceb8a['document'],_0x5c0804=_0x256b15['getFirstRange']()['root'];_0x4ad23a&&!_0x4cdf83||(_0x4ad23a=c(_0x4578f3,_0x3bbd88['content']),_0x4ad23a||=_0x5d9bc5['_insertEmptyFootnotesDefinitionsContainer'](_0x4578f3,_0x5c0804));const _0x4ffbb2=Array['from'](_0x256b15['getRanges']())['flatMap'](l),_0x47815c=function(_0x409c26,_0x5849cf,_0x26f69f){const _0x577fd4=Object['create'](null);for(const {item:_0x254ccc}of _0x409c26['createRangeIn'](_0x5849cf))if(_0x254ccc['is']('element','footnoteRef')){const _0xe4dfc7=_0x254ccc['getAttribute']('footnoteId');if(!_0x26f69f(_0xe4dfc7))continue;_0x577fd4[_0xe4dfc7]||(_0x577fd4[_0xe4dfc7]=_0x294e74()),_0x409c26['setAttribute']('footnoteId',_0x577fd4[_0xe4dfc7],_0x254ccc);}return _0x577fd4;}(_0x4578f3,_0x3bbd88['content'],_0x5e5af8=>{if(!_0x18061f)return!0x0;return!!_0x5d9bc5['getFootnote'](_0x5e5af8)&&!_0x4ffbb2['includes'](_0x5e5af8);});for(const [_0x52cdab,_0x339e64]of Object['entries'](_0x23fb02)){const _0x346279=_0x47815c[_0x52cdab]||_0x52cdab;let _0x265a1b;if('string'!=typeof _0x339e64)_0x265a1b=_0x339e64,_0x346279!==_0x52cdab&&_0x4578f3['setAttribute']('footnoteId',_0x346279,_0x265a1b);else{_0x265a1b=_0x4578f3['createElement']('footnoteDefinition',{'footnoteId':_0x346279});const _0x1f4ca2=_0x6c850e['data']['htmlProcessor']['toView'](_0x339e64);let _0xef08a2;if(_0x1ba87d)_0xef08a2=_0x6c850e['data']['toModel'](_0x1f4ca2,_0x265a1b);else{_0xef08a2=_0x4578f3['createElement']('footnoteInlineContent');const _0x258da1=_0x6c850e['data']['toModel'](_0x1f4ca2,_0xef08a2);_0x4578f3['insert'](_0x258da1,_0xef08a2);}_0x4578f3['append'](_0xef08a2,_0x265a1b);}_0x4578f3['insert'](_0x265a1b,_0x4ad23a,'end');}_0x23fb02=null;});});}}function c(_0x57cb16,_0x1b8538){for(const {item:_0x23de77}of _0x57cb16['createRangeIn'](_0x1b8538))if(_0x23de77['is']('element','footnotesDefinitions'))return _0x23de77;return null;}function l(_0x460c98){const _0x545cb2=new Set();for(const {item:_0x38e85c}of _0x460c98)_0x38e85c['is']('element','footnoteRef')&&_0x545cb2['add'](_0x38e85c['getAttribute']('footnoteId'));return Array['from'](_0x545cb2);}class i extends _0x4b9cba{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1a22ea}=this,{componentFactory:_0x57bc5f}=_0x1a22ea['ui'];_0x57bc5f['add']('insertFootnote',E(_0x1a22ea,_0x1c6fe8)),_0x57bc5f['add']('menuBar:insertFootnote',E(_0x1a22ea,_0x17d977)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2fed1a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1616f8;for(const _0x3632c3 in _0x2fed1a){const _0x2329b5=_0x3632c3,_0x3c5303=_0x2fed1a[_0x2329b5];if('footnotesLicenseKeyValid'==_0x3c5303||'footnotesLicenseKeyInvalid'==_0x3c5303||'footnotesLicenseKeyExpired'==_0x3c5303||'footnotesLicenseKeyDomainLimit'==_0x3c5303||'footnotesLicenseKeyNotAllowed'==_0x3c5303||'footnotesLicenseKeyEvaluationLimit'==_0x3c5303||'footnotesLicenseKeyUsageLimit'==_0x3c5303){delete _0x2fed1a[_0x2329b5],_0x1616f8=_0x3c5303,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x1616f8&&_0x2fed1a['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x1616f8&&_0x2fed1a['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x1616f8&&_0x2fed1a['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x1616f8&&_0x2fed1a['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x1616f8&&_0x2fed1a['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x1616f8&&_0x2fed1a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x5ebe06,_0x2af503){const _0x2b31a5=_0x5ebe06['commands']['get']('insertFootnote');return _0x461a0a=>{const {t:t}=_0x461a0a,_0x46374b=new _0x2af503(_0x461a0a),_0x37d662=_0x46374b instanceof _0x17d977;return _0x46374b['bind']('isEnabled')['to'](_0x2b31a5,'isEnabled'),_0x46374b['set']({'label':t(_0x37d662?'Footnote':'Insert\x20footnote'),'icon':_0x5a10da,'tooltip':!0x0}),_0x46374b['on']('execute',()=>{_0x2b31a5['execute'](),_0x5ebe06['editing']['view']['focus']();}),_0x46374b;};}class lt extends _0x4b9cba{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const ct=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x57d0f2{['refresh'](){const {editor:_0x3823f9}=this,_0x32b079=_0x3823f9['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x32b079,this['value']=_0x32b079?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x4c1339}){const {editor:_0x34ffc7}=this,_0x1b480c=_0x34ffc7['plugins']['get'](f),_0x5d689f=_0x1b480c['getFootnotesDefinitionsObjectElement']();_0x5d689f&&ct['includes'](_0x4c1339)&&_0x34ffc7['model']['change'](_0x2b902c=>{_0x2b902c['setAttribute']('footnotesListStyle',_0x4c1339,_0x5d689f),_0x1b480c['_updateFootnotesCounters'](_0x2b902c);});}}class C extends _0x57d0f2{['refresh'](){const {editor:_0x544c32}=this,_0x14a2b9=_0x544c32['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x14a2b9,this['value']=_0x14a2b9?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x115e69}){const {editor:_0x31f930}=this,_0x2246ef=_0x31f930['plugins']['get'](f),_0x24d6a1=_0x2246ef['getFootnotesDefinitionsObjectElement']();_0x24d6a1&&Number['isInteger'](_0x115e69)&&_0x31f930['model']['change'](_0x181f29=>{_0x181f29['setAttribute']('footnotesListStart',_0x115e69,_0x24d6a1),_0x2246ef['_updateFootnotesCounters'](_0x181f29);});}}class P extends _0x4b9cba{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x32a2bd}=this;_0x32a2bd['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x32a2bd['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x32a2bd['commands']['add']('footnotesStyle',new S(_0x32a2bd)),_0x32a2bd['commands']['add']('footnotesStart',new C(_0x32a2bd)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x4bcd46}=this,{schema:_0x34a51c}=_0x4bcd46['model'];_0x34a51c['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x4a9e9d}=this,{conversion:_0x1ee0fb,model:_0x4cd104}=_0x4a9e9d,{schema:_0x4b7582}=_0x4cd104;_0x1ee0fb['for']('upcast')['add'](_0x46b2ae=>{_0x46b2ae['on']('element:ol',(_0x1809d,_0x484ff0,_0x475b80)=>{const _0x3bc904=_0x484ff0['viewItem'],_0x3d11e3=_0x484ff0['modelCursor']?.['parent'];_0x3bc904['hasClass']('footnotes-list')&&_0x3d11e3?.['is']('element','footnotesDefinitions')&&(function(_0x10919a,_0x46bf51,_0x57207d,_0x4bdb88){if(!_0x4bdb88['checkAttribute'](_0x46bf51,'footnotesListStart'))return;let _0xd65f71=0x1;const _0x24fed2=_0x57207d['consumable']['consume'](_0x10919a,{'attributes':'start'});if(_0x24fed2){const _0x14f6d1=Number['parseInt'](_0x10919a['getAttribute']('start'),0xa);Number['isNaN'](_0x14f6d1)||(_0xd65f71=_0x14f6d1);}!_0x24fed2&&_0x46bf51['hasAttribute']('footnotesListStart')||_0x57207d['writer']['setAttribute']('footnotesListStart',_0xd65f71,_0x46bf51);}(_0x3bc904,_0x3d11e3,_0x475b80,_0x4b7582),function(_0x40040d,_0x2ada84,_0x1c75fd,_0x2fa44c){if(!_0x2fa44c['checkAttribute'](_0x2ada84,'footnotesListStyle'))return;let _0x17a146='decimal',_0xffcf2b=!0x1;if(_0x1c75fd['consumable']['consume'](_0x40040d,{'attributes':'type'})){const _0x1f5fe0={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x40040d['getAttribute']('type')];_0x1f5fe0&&(_0x17a146=_0x1f5fe0),_0xffcf2b=!0x0;}_0x1c75fd['consumable']['consume'](_0x40040d,{'styles':'list-style-type'})&&(_0x17a146=function(_0x28bba3){switch(_0x28bba3){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x28bba3;}}(_0x40040d['getStyle']('list-style-type')),_0xffcf2b=!0x0),!_0xffcf2b&&_0x2ada84['hasAttribute']('footnotesListStyle')||_0x1c75fd['writer']['setAttribute']('footnotesListStyle',_0x17a146,_0x2ada84);}(_0x3bc904,_0x3d11e3,_0x475b80,_0x4b7582));});}),_0x1ee0fb['for']('downcast')['add'](_0x1ae3e4=>{_0x1ae3e4['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x1f9607,_0x373078,_0x39f25e)=>{if(!_0x39f25e['consumable']['consume'](_0x373078['item'],_0x1f9607['name']))return;const _0x317f7e=M(_0x373078['item'],_0x39f25e['mapper']),{attributeNewValue:_0x2f5aac}=_0x373078;null==_0x2f5aac||0x1===_0x2f5aac?_0x39f25e['writer']['removeAttribute']('start',_0x317f7e):_0x39f25e['writer']['setAttribute']('start',String(_0x2f5aac),_0x317f7e);}),_0x1ae3e4['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x43ad40,_0x5b739e,_0x81f14f)=>{if(!_0x81f14f['consumable']['consume'](_0x5b739e['item'],_0x43ad40['name']))return;const _0x5a218a=M(_0x5b739e['item'],_0x81f14f['mapper']),{attributeNewValue:_0x47b6c2}=_0x5b739e;_0x47b6c2&&'decimal'!==_0x47b6c2?_0x81f14f['writer']['setStyle']('list-style-type',_0x47b6c2,_0x5a218a):_0x81f14f['writer']['removeStyle']('list-style-type',_0x5a218a);});});}['_definePostfixer'](){const {editor:_0x295a79}=this,{model:_0x5381ef}=_0x295a79,_0x1c514f=_0x295a79['plugins']['get'](f),_0x24e509=this['_getDefaultListStyle'](),_0x506677=this['_getDefaultStartIndex']();_0x5381ef['document']['registerPostFixer'](_0x1b2fd0=>{const _0x483a02=_0x5381ef['document']['differ']['getChanges']();let _0x447ff2=!0x1;for(const _0x2e7ad0 of _0x483a02){if('insert'!==_0x2e7ad0['type']||'$text'===_0x2e7ad0['name'])continue;const _0x4df639=_0x5381ef['createRangeOn'](_0x2e7ad0['position']['nodeAfter']);for(const _0x58939f of _0x4df639['getItems']())_0x58939f['is']('element','footnotesDefinitions')&&(!_0x58939f['hasAttribute']('footnotesListStart')&&_0x5381ef['schema']['checkAttribute'](_0x58939f,'footnotesListStart')&&(_0x1b2fd0['setAttribute']('footnotesListStart',_0x506677,_0x58939f),_0x447ff2=!0x0),!_0x58939f['hasAttribute']('footnotesListStyle')&&_0x5381ef['schema']['checkAttribute'](_0x58939f,'footnotesListStyle')&&(_0x1b2fd0['setAttribute']('footnotesListStyle',_0x24e509,_0x58939f),_0x447ff2=!0x0));}return _0x447ff2&&_0x1c514f['_updateFootnotesCounters'](_0x1b2fd0),_0x447ff2;});}['_defineFormatter'](){const {editor:_0x25c96a}=this;_0x25c96a['plugins']['get'](f)['setFootnoteFormatter'](_0x18dc77=>this['_formatFootnoteListValue'](_0x18dc77));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x427d17,value:_0xcc1cd,digits:_0x45c15d}){const _0x22a65f=_0x427d17['getAttribute']('footnotesListStyle'),_0x3f3b03=_0x427d17['getAttribute']('footnotesListStart'),_0x50e563=Math['floor'](_0xcc1cd)+(_0x3f3b03??0x1)-0x1;switch(_0x22a65f){case'decimal-leading-zero':return function(_0x53d083,_0x132700){return String(_0x53d083)['padStart'](_0x132700,'0');}(_0x50e563,Math['max'](0x2,_0x45c15d));case'lower-alpha':case'lower-latin':return N(_0x50e563,!0x1);case'upper-alpha':case'upper-latin':return N(_0x50e563,!0x0);case'lower-roman':return X(_0x50e563,!0x1);case'upper-roman':return X(_0x50e563,!0x0);default:return String(_0x50e563);}}}function M(_0x8a6781,_0x17eed6){const _0x39b114=_0x17eed6['toViewElement'](_0x8a6781);return Array['from'](_0x39b114['getChildren']())['find'](_0x2ff424=>_0x2ff424['is']('element','ol')&&_0x2ff424['hasClass']('footnotes-list'));}function N(_0x301798,_0x2fcaaa){let _0x146729='',_0x4df99e=_0x301798;for(;_0x4df99e>0x0;){const _0xe71ce=(_0x4df99e-0x1)%0x1a;_0x146729=String['fromCharCode'](0x61+_0xe71ce)+_0x146729,_0x4df99e=Math['floor']((_0x4df99e-0x1)/0x1a);}return _0x2fcaaa?_0x146729['toUpperCase']():_0x146729;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0x59f253,_0x283ce9){let _0x4e1ac5='',_0x103cb8=_0x59f253;for(const {value:_0x4b8be8,numeral:_0xac3252}of V)for(;_0x103cb8>=_0x4b8be8;)_0x4e1ac5+=_0xac3252,_0x103cb8-=_0x4b8be8;return _0x283ce9?_0x4e1ac5:_0x4e1ac5['toLowerCase']();}class J extends _0x266629{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x29b95f();['focusCycler'];constructor(_0x234716,{styleButtonViews:_0x542b54,styleGridAriaLabel:_0x477101}){super(_0x234716),(this['focusCycler']=new _0x5c0104({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x542b54,_0x477101),[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 _0x37950c of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x37950c['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['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 _0x1a7047=_0x27764f=>_0x27764f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1a7047),this['keystrokes']['set']('arrowleft',_0x1a7047),this['keystrokes']['set']('arrowup',_0x1a7047),this['keystrokes']['set']('arrowdown',_0x1a7047);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x541d03,_0x10992a){const _0x4f8cea=new _0x266629(this['locale']);return _0x4f8cea['children']=_0x4f8cea['createCollection'](),_0x4f8cea['children']['addMany'](_0x541d03),_0x4f8cea['setTemplate']({'tag':'div','attributes':{'aria-label':_0x10992a,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x4f8cea['children']}),_0x4f8cea['children']['delegate']('execute')['to'](this),_0x4f8cea['focus']=function(){for(const _0x7b62d of this['children'])if(_0x7b62d instanceof _0x1c6fe8&&_0x7b62d['isOn'])return void _0x7b62d['focus']();this['children']['first']['focus']();},_0x4f8cea['focusTracker']=new ot(),_0x4f8cea['keystrokes']=new rt(),_0x4f8cea['render'](),_0x4f8cea['keystrokes']['listenTo'](_0x4f8cea['element']),this['children']['add'](_0x4f8cea),_0x4f8cea;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x40c4fa=this['_createStartIndexPropertyView'](),_0x42e813=[_0x40c4fa],_0x7b7b1b=new st(this['locale'],_0x42e813);return _0x7b7b1b['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x7b7b1b['buttonView']['bind']('isEnabled')['toMany'](_0x42e813,'isEnabled',(..._0x35a063)=>_0x35a063['some'](_0x7239ef=>_0x7239ef)),_0x7b7b1b['buttonView']['on']('change:isEnabled',(_0xa934db,_0x54ae87,_0xdcc3a9)=>{_0xdcc3a9||(_0x7b7b1b['isCollapsed']=!0x0);}),this['children']['add'](_0x7b7b1b),[_0x40c4fa,_0x7b7b1b];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x8b0ea3=new it(this['locale'],et);return _0x8b0ea3['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x8b0ea3['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x8b0ea3['fieldView']['on']('input',()=>{const _0x33a741=_0x8b0ea3['fieldView']['element'],_0x12455e=_0x33a741['valueAsNumber'];Number['isNaN'](_0x12455e)?_0x8b0ea3['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x33a741['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x12455e}):_0x8b0ea3['errorText']=t(_0x12455e<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x8b0ea3;}}class j extends _0x4b9cba{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x540f74,_0x14865a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x403628}=this,{componentFactory:_0x536882}=_0x403628['ui'];_0x403628['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x536882['add']('footnotesStyle',function(_0x12a9f7){return _0x1ce74f=>{const {t:t}=_0x1ce74f,_0xf4e58b=_0x12a9f7['commands']['get']('footnotesStyle'),_0x2583d=_0x3fe79f(_0x1ce74f),{buttonView:_0x498731}=_0x2583d;return _0x2583d['class']='ck-footnotes-styles-dropdown',_0x2583d['bind']('isEnabled')['to'](_0xf4e58b,'isEnabled'),_0x498731['set']({'label':t('Footnotes\x20style'),'icon':_0x5a10da,'tooltip':!0x0}),_0x2583d['once']('change:isOpen',()=>{const _0x11306c=function({editor:_0x61acb0,dropdownView:_0x15d2ef}){const {t:t}=_0x61acb0['locale'],_0xea89b6=t('Footnotes\x20definitions\x20styles'),_0x17e32b=function(_0x5842aa){const t=_0x5842aa['locale']['t'],_0xdf216d=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x2949f1},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x6bcecb},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x370818},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x3e5a08},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x4574c1},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x81a412}];return _0xdf216d['map'](function(_0x283b9d){const _0x1bbafc=_0x283b9d['locale'];return({label:_0x5b3456,icon:_0x2cbfe7,tooltip:_0x4792e2,style:_0x5039f3})=>{const _0x1c2486=_0x283b9d['commands']['get']('footnotesStyle'),_0x4629d9=new _0x1c6fe8(_0x1bbafc);return _0x4629d9['set']({'label':_0x5b3456,'icon':_0x2cbfe7,'tooltip':_0x4792e2}),_0x4629d9['bind']('isOn')['to'](_0x1c2486,'value',_0x320fe4=>_0x320fe4===_0x5039f3),_0x4629d9['bind']('isEnabled')['to'](_0x1c2486,'isEnabled'),_0x4629d9['on']('execute',()=>{_0x283b9d['execute']('footnotesStyle',{'value':_0x5039f3}),_0x283b9d['editing']['view']['focus']();}),_0x4629d9;};}(_0x5842aa));}(_0x61acb0),_0x2aee57=new J(_0x61acb0['locale'],{'styleGridAriaLabel':_0xea89b6,'styleButtonViews':_0x17e32b}),_0x14827c=_0x61acb0['commands']['get']('footnotesStart');return _0x2aee57['startIndexFieldView']['bind']('isEnabled')['to'](_0x14827c),_0x2aee57['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x14827c),_0x2aee57['on']('footnotesListStart',(_0x1b5b6c,_0x4cec07)=>{_0x61acb0['execute']('footnotesStart',{'value':_0x4cec07['startIndex']});}),_0x2aee57['delegate']('execute')['to'](_0x15d2ef),_0x2aee57;}({'editor':_0x12a9f7,'dropdownView':_0x2583d});_0x2583d['panelView']['children']['add'](_0x11306c);}),_0x2583d;};}(_0x403628));}['afterInit'](){const {editor:_0x1abdab}=this,{t:t}=_0x1abdab['locale'],_0x3001c9=_0x1abdab['plugins']['get'](_0x14865a),{defaultPositions:_0x89705b}=_0x47ec6a;_0x3001c9['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x1abdab['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0xd9ebfa=>{let _0x49a509=_0xd9ebfa['getFirstPosition']()?.['parent'];return _0x49a509?.['is']('$text')&&(_0x49a509=_0x49a509['parent']),_0x49a509?.['is']('element')?_0x49a509['findAncestor'](Q):null;},'positions':[_0x89705b['southArrowNorth'],_0x89705b['southArrowNorthMiddleWest'],_0x89705b['southArrowNorthMiddleEast'],_0x89705b['southArrowNorthWest'],_0x89705b['southArrowNorthEast'],_0x89705b['northArrowSouth'],_0x89705b['northArrowSouthMiddleWest'],_0x89705b['northArrowSouthMiddleEast'],_0x89705b['northArrowSouthWest'],_0x89705b['northArrowSouthEast'],_0x89705b['viewportStickyNorth']]});}}class ft extends _0x4b9cba{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,h as InsertFootnoteCommand};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-footnotes",
|
|
3
|
-
"version": "47.5.0-alpha.
|
|
3
|
+
"version": "47.5.0-alpha.7",
|
|
4
4
|
"description": "The footnotes feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"type": "module",
|
|
24
24
|
"main": "src/index.js",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "47.5.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "47.5.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "47.5.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "47.5.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "47.5.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "47.5.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "47.5.0-alpha.
|
|
33
|
-
"ckeditor5": "47.5.0-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "47.5.0-alpha.7",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "47.5.0-alpha.7",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "47.5.0-alpha.7",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "47.5.0-alpha.7",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "47.5.0-alpha.7",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "47.5.0-alpha.7",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "47.5.0-alpha.7",
|
|
33
|
+
"ckeditor5": "47.5.0-alpha.7"
|
|
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
|
-
const
|
|
23
|
+
const _0x471353=_0x32c2;(function(_0x25c17c,_0x2f2e10){const _0x39133c=_0x32c2,_0x4e6297=_0x25c17c();while(!![]){try{const _0xcc7990=parseInt(_0x39133c(0x140))/0x1*(parseInt(_0x39133c(0x12f))/0x2)+-parseInt(_0x39133c(0x13a))/0x3+parseInt(_0x39133c(0x12c))/0x4+parseInt(_0x39133c(0x136))/0x5*(-parseInt(_0x39133c(0x137))/0x6)+parseInt(_0x39133c(0x12b))/0x7*(-parseInt(_0x39133c(0x133))/0x8)+parseInt(_0x39133c(0x12a))/0x9+parseInt(_0x39133c(0x131))/0xa;if(_0xcc7990===_0x2f2e10)break;else _0x4e6297['push'](_0x4e6297['shift']());}catch(_0x4d2370){_0x4e6297['push'](_0x4e6297['shift']());}}}(_0xcb2a,0xb75e0));function _0xcb2a(){const _0x22e1cc=['refresh','6220QqNnAH','4194UfiyxA','getFirstRange','selection','2397288khkBav','model','string','getItems','FootnotesEditing','test','49608BuPSaz','length','footnoteRef','isBlock','isObject','_moveSelectionToFootnoteDefinition','isEnabled','_getPositionToInsertFootnote','insert-footnote-command-executed-with-invalid-id','editor','get','checkChild','end','document','footnoteId','6786909JSScfF','7MOYzps','4426380zbRpYa','insertObject','change','60znDAtM','plugins','3143510uINPUb','createElement','9948504NHDJgI','execute'];_0xcb2a=function(){return _0x22e1cc;};return _0xcb2a();}import{logWarning as _0x1993b8,uid as _0x54c130}from'ckeditor5/src/utils.js';import{Command as _0x22ac67}from'ckeditor5/src/core.js';function _0x32c2(_0x427788,_0x240666){const _0xcb2aec=_0xcb2a();return _0x32c2=function(_0x32c2e8,_0x14458b){_0x32c2e8=_0x32c2e8-0x121;let _0x180db8=_0xcb2aec[_0x32c2e8];return _0x180db8;},_0x32c2(_0x427788,_0x240666);}export class InsertFootnoteCommand extends _0x22ac67{[_0x471353(0x135)](){const _0x1ad803=_0x471353,_0x28a569=this[_0x1ad803(0x124)][_0x1ad803(0x13b)][_0x1ad803(0x128)][_0x1ad803(0x139)],_0x448e4e=this[_0x1ad803(0x122)](_0x28a569);this[_0x1ad803(0x121)]=!!_0x448e4e;}[_0x471353(0x134)](_0x3a2acf){const _0x50d8bd=_0x471353,{editor:_0xc3a460}=this,{model:_0x57bd77}=_0xc3a460,{selection:_0x3ab47b}=_0x57bd77[_0x50d8bd(0x128)],_0x313ee9=this[_0x50d8bd(0x122)](_0x3ab47b);if(!_0x313ee9)return;const _0x11e6d1=_0xc3a460[_0x50d8bd(0x130)][_0x50d8bd(0x125)](_0x50d8bd(0x13e)),_0x37b563=_0x3a2acf?.[_0x50d8bd(0x129)]??_0x54c130();!function(_0xfe43dd){const _0x5c17d3=_0x50d8bd;return _0x5c17d3(0x13c)==typeof _0xfe43dd&&_0xfe43dd[_0x5c17d3(0x141)]>0x0&&!/\s/[_0x5c17d3(0x13f)](_0xfe43dd)&&!/^\d/[_0x5c17d3(0x13f)](_0xfe43dd);}(_0x37b563)?_0x1993b8(_0x50d8bd(0x123)):(_0x57bd77[_0x50d8bd(0x12e)](_0xa250a0=>{const _0x515ca5=_0x50d8bd,_0x5ead5d=_0xa250a0[_0x515ca5(0x132)](_0x515ca5(0x142),{'footnoteId':_0x37b563});_0x57bd77[_0x515ca5(0x12d)](_0x5ead5d,_0x313ee9,null);}),_0x11e6d1[_0x50d8bd(0x145)](_0x37b563));}[_0x471353(0x122)](_0x36871e){const _0x296c06=_0x471353,{model:_0xc53d9b}=this[_0x296c06(0x124)],{schema:_0x2709fa}=_0xc53d9b,_0x7d8f8f=_0x36871e[_0x296c06(0x138)]();for(const _0x3b5fed of _0x7d8f8f[_0x296c06(0x13d)]())if(_0x2709fa[_0x296c06(0x143)](_0x3b5fed)||_0x2709fa[_0x296c06(0x144)](_0x3b5fed))return null;const _0x486b1f=_0x7d8f8f[_0x296c06(0x127)];return _0x2709fa[_0x296c06(0x126)](_0x486b1f,_0x296c06(0x142))?_0x486b1f:null;}}
|
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x5e412}from'ckeditor5/src/core.js';import{isWidget as _0x4c44d1,toWidget as _0x54a6a1,toWidgetEditable as _0x2d194a}from'ckeditor5/src/widget.js';import{uid as _0x28c2d6}from'ckeditor5/src/utils.js';import{PointerObserver as _0x277f7a,ClickObserver as _0x45738c}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x26bfa6}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x20fca5}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x5e412{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x26bfa6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x141098}=this;_0x141098['config']['define']('footnotes.multiBlock',!0x0),_0x141098['commands']['add']('insertFootnote',new _0x20fca5(_0x141098)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x9ebd1c){const _0x25b922=_0x33fd39([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]),_0x41bc41=0x47a28506,_0x2d1378=0x47a5043e^_0x41bc41,_0x3c79fe=window[_0x33fd39([0x44,0x61,0x74,0x65])][_0x33fd39([0x6e,0x6f,0x77])](),_0x1829c0=_0x9ebd1c[_0x33fd39([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x10bb9e=new window[(_0x33fd39([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x133539=>{_0x1829c0[_0x33fd39([0x6f,0x6e,0x63,0x65])](_0x33fd39([0x72,0x65,0x61,0x64,0x79]),_0x133539);}),_0x2d6c3b={[_0x33fd39([0x6b,0x74,0x79])]:_0x33fd39([0x45,0x43]),[_0x33fd39([0x75,0x73,0x65])]:_0x33fd39([0x73,0x69,0x67]),[_0x33fd39([0x63,0x72,0x76])]:_0x33fd39([0x50,0x2d,0x32,0x35,0x36]),[_0x33fd39([0x78])]:_0x33fd39([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]),[_0x33fd39([0x79])]:_0x33fd39([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]),[_0x33fd39([0x61,0x6c,0x67])]:_0x33fd39([0x45,0x53,0x32,0x35,0x36])},_0x1dd515=_0x1829c0[_0x33fd39([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x33fd39([0x67,0x65,0x74])](_0x33fd39([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x527e10(){let _0x338c38,_0x31577c=null,_0x35adf1=null;try{if(_0x1dd515==_0x33fd39([0x47,0x50,0x4c]))return _0x33fd39([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x338c38=_0x277d0f(),!_0x338c38)return _0x33fd39([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x338c38[_0x33fd39([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x35adf1=_0x36422c(_0x338c38[_0x33fd39([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x338c38[_0x33fd39([0x6a,0x74,0x69])])),await _0x2e8cf0()?_0x172be6()?_0x1c01ca()?_0x33fd39([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x53fd45()?(_0x338c38[_0x33fd39([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x33fd39([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x31577c=_0x642759(_0x33fd39([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x581c48()):_0x33fd39([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x33fd39([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x33fd39([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x33fd39([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c01ca(){const _0x171dd9=[_0x33fd39([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x33fd39([0x74,0x72,0x69,0x61,0x6c])][_0x33fd39([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x338c38[_0x33fd39([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c79fe/0x3e8:0xe10*_0x2d1378;return _0x338c38[_0x33fd39([0x65,0x78,0x70])]<_0x171dd9;}function _0x172be6(){const _0x3056fc=_0x338c38[_0x33fd39([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3056fc&&(!!_0x3056fc[_0x33fd39([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33fd39([0x2a]))||!!_0x3056fc[_0x33fd39([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33fd39([0x46,0x4f,0x4f])));}function _0x53fd45(){const _0x51f95d=_0x338c38[_0x33fd39([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x51f95d||0x0==_0x51f95d[_0x33fd39([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x35b416}=new URL(window[_0x33fd39([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x51f95d[_0x33fd39([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35b416))return!0x0;const _0x5e3f39=_0x35b416[_0x33fd39([0x73,0x70,0x6c,0x69,0x74])](_0x33fd39([0x2e]));return _0x51f95d[_0x33fd39([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x226880=>_0x226880[_0x33fd39([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33fd39([0x2a])))[_0x33fd39([0x6d,0x61,0x70])](_0x27b1fe=>_0x27b1fe[_0x33fd39([0x73,0x70,0x6c,0x69,0x74])](_0x33fd39([0x2e])))[_0x33fd39([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6ea89d=>_0x6ea89d[_0x33fd39([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5e3f39[_0x33fd39([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x33fd39([0x6d,0x61,0x70])](_0x520d98=>Array(_0x5e3f39[_0x33fd39([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x520d98[_0x33fd39([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x33fd39([0x66,0x69,0x6c,0x6c])](_0x520d98[0x0]===_0x33fd39([0x2a])?_0x33fd39([0x2a]):'')[_0x33fd39([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x520d98))[_0x33fd39([0x73,0x6f,0x6d,0x65])](_0x4e1310=>_0x5e3f39[_0x33fd39([0x65,0x76,0x65,0x72,0x79])]((_0xd94146,_0x2df942)=>_0x4e1310[_0x2df942]===_0xd94146||_0x4e1310[_0x2df942]===_0x33fd39([0x2a])));}function _0x581c48(){return _0x31577c&&_0x35adf1?new window[(_0x33fd39([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e55e0,_0x4dbce2)=>{_0x31577c[_0x33fd39([0x74,0x68,0x65,0x6e])](_0x2e55e0,_0x4dbce2),_0x35adf1[_0x33fd39([0x74,0x68,0x65,0x6e])](_0x926230=>{_0x926230!=_0x33fd39([0x56,0x61,0x6c,0x69,0x64])&&_0x2e55e0(_0x926230);},_0x4dbce2);}):_0x31577c||_0x35adf1||_0x33fd39([0x56,0x61,0x6c,0x69,0x64]);}}function _0x36422c(_0x4b0443,_0x19bfc3){return new window[(_0x33fd39([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7beb81=>{if(_0x170e4a())return _0x7beb81(_0x33fd39([0x56,0x61,0x6c,0x69,0x64]));_0x2b223a(),_0x1829c0[_0x33fd39([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x33fd39([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1c8431=!0x1;const _0x21c2c7=_0x28c2d6();function _0x57e102(_0x34cb16){return!!_0x34cb16&&(typeof _0x34cb16===_0x33fd39([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x34cb16===_0x33fd39([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x34cb16[_0x33fd39([0x74,0x68,0x65,0x6e])]===_0x33fd39([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x34cb16[_0x33fd39([0x63,0x61,0x74,0x63,0x68])]===_0x33fd39([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x27aae3(_0x4ff1b2){_0x159b9d(_0x4ff1b2)[_0x33fd39([0x74,0x68,0x65,0x6e])](_0x1babb9=>{if(!_0x1babb9||_0x1babb9[_0x33fd39([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x33fd39([0x6f,0x6b]))return _0x33fd39([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x29b830(_0x40b252(_0x21c2c7+_0x19bfc3))!=_0x1babb9[_0x33fd39([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x33fd39([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x33fd39([0x56,0x61,0x6c,0x69,0x64]);})[_0x33fd39([0x74,0x68,0x65,0x6e])](_0x417bbe=>(_0x5ad0c5(),_0x417bbe),()=>{const _0x1ad3e3=_0x43c30b();return null==_0x1ad3e3?(_0x5ad0c5(),_0x33fd39([0x56,0x61,0x6c,0x69,0x64])):_0x33fd39(_0x3c79fe-_0x1ad3e3>(0x63ae0106^_0x41bc41)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x33fd39([0x74,0x68,0x65,0x6e])](_0x7beb81)[_0x33fd39([0x63,0x61,0x74,0x63,0x68])](()=>{_0x7beb81(_0x33fd39([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x28841f=0x47946b86^_0x41bc41;function _0x5ad0c5(){const _0x1e732a=_0x33fd39([0x6c,0x6c,0x63,0x74,0x2d])+_0x29b830(_0x40b252(_0x4b0443)),_0x433bb8=_0x2cb8f1(_0x29b830(window[_0x33fd39([0x4d,0x61,0x74,0x68])][_0x33fd39([0x63,0x65,0x69,0x6c])](_0x3c79fe/_0x28841f)));window[_0x33fd39([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x33fd39([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e732a,_0x433bb8);}function _0x43c30b(){const _0x1164b3=_0x33fd39([0x6c,0x6c,0x63,0x74,0x2d])+_0x29b830(_0x40b252(_0x4b0443)),_0x5ad922=window[_0x33fd39([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x33fd39([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1164b3);return _0x5ad922?window[_0x33fd39([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cb8f1(_0x5ad922),0x10)*_0x28841f:null;}function _0x159b9d(_0x3aa020){return new window[(_0x33fd39([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38c71c,_0x4e4d09)=>{_0x3aa020[_0x33fd39([0x74,0x68,0x65,0x6e])](_0x38c71c,_0x4e4d09),window[_0x33fd39([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e4d09,0x47a351c6^_0x41bc41);});}}_0x1829c0[_0x33fd39([0x6f,0x6e])](_0x33fd39([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1272b3,_0x377fd6)=>{if(_0x377fd6[0x0]!=_0x4b0443)return _0x7beb81(_0x33fd39([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x377fd6[0x1]={..._0x377fd6[0x1],[_0x33fd39([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x21c2c7};},{[_0x33fd39([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x33fd39([0x68,0x69,0x67,0x68])}),_0x1829c0[_0x33fd39([0x6f,0x6e])](_0x33fd39([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5da518=>{_0x57e102(_0x5da518[_0x33fd39([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1c8431=!0x0,_0x27aae3(_0x5da518[_0x33fd39([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x33fd39([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x33fd39([0x6c,0x6f,0x77])}),_0x10bb9e[_0x33fd39([0x74,0x68,0x65,0x6e])](()=>{_0x1c8431||_0x7beb81(_0x33fd39([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x170e4a(){return _0x1829c0[_0x33fd39([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x33fd39([0x76,0x69,0x65,0x77])][_0x33fd39([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x33fd39([0x61,0x75,0x74,0x6f]);}function _0x2b223a(){_0x1829c0[_0x33fd39([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x33fd39([0x76,0x69,0x65,0x77])][_0x33fd39([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x33fd39([0x61,0x75,0x74,0x6f]);}}function _0x642759(_0x2859e3){const _0x446f70=[new window[(_0x33fd39([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x202a7d=>setTimeout(_0x202a7d,0x47abbbca^_0x41bc41)),_0x10bb9e[_0x33fd39([0x74,0x68,0x65,0x6e])](()=>new window[(_0x33fd39([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5de764=>{let _0x254247=0x0;_0x1829c0[_0x33fd39([0x6d,0x6f,0x64,0x65,0x6c])][_0x33fd39([0x6f,0x6e])](_0x33fd39([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x24602a,_0x43c804)=>{_0x43c804[0x0][_0x33fd39([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x254247++,_0x254247==(0x47a280ee^_0x41bc41)&&(_0x5de764(),_0x24602a[_0x33fd39([0x6f,0x66,0x66])]());});}))];return window[_0x33fd39([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x33fd39([0x72,0x61,0x63,0x65])](_0x446f70)[_0x33fd39([0x74,0x68,0x65,0x6e])](()=>_0x2859e3);}async function _0x10d792(){await _0x10bb9e,_0x1829c0[_0x33fd39([0x6d,0x6f,0x64,0x65,0x6c])][_0x33fd39([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc62f41,_0x1829c0[_0x33fd39([0x6d,0x6f,0x64,0x65,0x6c])][_0x33fd39([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc62f41,_0x1829c0[_0x33fd39([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x33fd39([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x10679f(_0xf1d6fc){const _0x229cda=_0x29c6d9();_0x1829c0[_0x229cda]=_0x33fd39([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf1d6fc,_0xf1d6fc!=_0x33fd39([0x56,0x61,0x6c,0x69,0x64])&&_0x10d792();}function _0x29c6d9(){const _0x3fabe9=window[_0x33fd39([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x33fd39([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x33fd39([0x6e,0x6f,0x77])]())[_0x33fd39([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x33fd39([0x2e]),'');let _0x2a8144=_0x33fd39([0x75]);for(let _0x1f0701=0x0;_0x1f0701<_0x3fabe9[_0x33fd39([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f0701+=0x2){let _0x19bcd5=window[_0x33fd39([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fabe9[_0x33fd39([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f0701,_0x1f0701+0x2));_0x19bcd5>=_0x25b922[_0x33fd39([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x19bcd5-=_0x25b922[_0x33fd39([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2a8144+=_0x25b922[_0x19bcd5];}return _0x2a8144;}function _0x277d0f(){const _0x34e7ec=_0x1dd515[_0x33fd39([0x73,0x70,0x6c,0x69,0x74])](_0x33fd39([0x2e]));if(0x3!=_0x34e7ec[_0x33fd39([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x560d67(_0x34e7ec[0x1]);function _0x560d67(_0x28e400){const _0x30cb5d=_0x41e753(_0x28e400);return _0x30cb5d&&_0x15a646()?_0x30cb5d:null;function _0x15a646(){const _0x4e6b32=_0x30cb5d[_0x33fd39([0x6a,0x74,0x69])],_0x2ac871=window[_0x33fd39([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e6b32[_0x33fd39([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e6b32[_0x33fd39([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e9414={..._0x30cb5d,[_0x33fd39([0x6a,0x74,0x69])]:_0x4e6b32[_0x33fd39([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4e6b32[_0x33fd39([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e9414[_0x33fd39([0x76,0x63])],_0x40b252(_0x4e9414)==_0x2ac871;}}}async function _0x2e8cf0(){let _0x31138c=!0x0;try{const _0xd05ddf=_0x1dd515[_0x33fd39([0x73,0x70,0x6c,0x69,0x74])](_0x33fd39([0x2e])),[_0x4aea61,_0x49808a,_0x83cd8a]=_0xd05ddf;return _0x535774(_0x4aea61),await _0x7a6ca7(_0x4aea61,_0x49808a,_0x83cd8a),_0x31138c;}catch{return!0x1;}function _0x535774(_0x1d033f){const _0x5a8a2b=_0x41e753(_0x1d033f);_0x5a8a2b&&_0x5a8a2b[_0x33fd39([0x61,0x6c,0x67])]==_0x33fd39([0x45,0x53,0x32,0x35,0x36])||(_0x31138c=!0x1);}async function _0x7a6ca7(_0x4f229a,_0x48d1d4,_0x5aac76){const _0x4c581e=window[_0x33fd39([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x33fd39([0x66,0x72,0x6f,0x6d])](_0x4693fe(_0x5aac76),_0x23a4cf=>_0x23a4cf[_0x33fd39([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2018a7=new window[(_0x33fd39([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x33fd39([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f229a+_0x33fd39([0x2e])+_0x48d1d4),_0x131247=window[_0x33fd39([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x33fd39([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x131247)return;const _0x704553=await _0x131247[_0x33fd39([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x33fd39([0x6a,0x77,0x6b]),_0x2d6c3b,{[_0x33fd39([0x6e,0x61,0x6d,0x65])]:_0x33fd39([0x45,0x43,0x44,0x53,0x41]),[_0x33fd39([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x33fd39([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x33fd39([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x131247[_0x33fd39([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x33fd39([0x6e,0x61,0x6d,0x65])]:_0x33fd39([0x45,0x43,0x44,0x53,0x41]),[_0x33fd39([0x68,0x61,0x73,0x68])]:{[_0x33fd39([0x6e,0x61,0x6d,0x65])]:_0x33fd39([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x704553,_0x4c581e,_0x2018a7)||(_0x31138c=!0x1);}}function _0x41e753(_0x18d699){return _0x18d699[_0x33fd39([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x33fd39([0x65,0x79]))?JSON[_0x33fd39([0x70,0x61,0x72,0x73,0x65])](_0x4693fe(_0x18d699)):null;}function _0x4693fe(_0x5893af){return window[_0x33fd39([0x61,0x74,0x6f,0x62])](_0x5893af[_0x33fd39([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x33fd39([0x2b]))[_0x33fd39([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x33fd39([0x2f])));}function _0x40b252(_0x293b21){let _0x587861=0x1505;function _0xbf058b(_0x178519){for(let _0x7299e3=0x0;_0x7299e3<_0x178519[_0x33fd39([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7299e3++){const _0x25d9f9=_0x178519[_0x33fd39([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x7299e3);_0x587861=(_0x587861<<0x5)+_0x587861+_0x25d9f9,_0x587861&=_0x587861;}}function _0x25a5cb(_0x163f0a){Array[_0x33fd39([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x163f0a)?_0x163f0a[_0x33fd39([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x25a5cb):_0x163f0a&&typeof _0x163f0a==_0x33fd39([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x33fd39([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x163f0a)[_0x33fd39([0x73,0x6f,0x72,0x74])]()[_0x33fd39([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x58db53,_0x5822a0])=>{_0xbf058b(_0x58db53),_0x25a5cb(_0x5822a0);}):_0xbf058b(window[_0x33fd39([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x163f0a));}return _0x25a5cb(_0x293b21),_0x587861>>>0x0;}function _0x29b830(_0xf14f9c){return _0xf14f9c[_0x33fd39([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x33fd39([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x33fd39([0x30]));}function _0x2cb8f1(_0x550cfa){return _0x550cfa[_0x33fd39([0x73,0x70,0x6c,0x69,0x74])]('')[_0x33fd39([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x33fd39([0x6a,0x6f,0x69,0x6e])]('');}function _0xc62f41(){}function _0x33fd39(_0xf902c3){return _0xf902c3['map'](_0x31776e=>String['fromCharCode'](_0x31776e))['join']('');}_0x10679f(await _0x527e10());}(this);}['_moveSelectionToFootnoteDefinition'](_0x14909c){const {plugins:_0x2d25a7,editing:_0x3e78ed,model:_0x20000a}=this['editor'],_0x97a7e4=_0x2d25a7['get'](_0x26bfa6)['getFootnote'](_0x14909c);return!!_0x97a7e4&&(_0x20000a['change'](_0x5345f0=>{_0x5345f0['setSelection'](_0x5345f0['createPositionAt'](_0x97a7e4['definition'],'end'));}),_0x3e78ed['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x7c1e43){const {plugins:_0x13de86,editing:_0x2fc2d2,model:_0x16d714}=this['editor'],_0xa2b7b2=_0x13de86['get'](_0x26bfa6)['getFootnote'](_0x7c1e43);return!!_0xa2b7b2&&(_0x16d714['change'](_0x5ab0be=>{_0x5ab0be['setSelection'](_0xa2b7b2['reference'],'on');}),_0x2fc2d2['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x29afdc}=this['editor']['model'],_0x48a7ca=this['editor']['config']['get']('footnotes.multiBlock');_0x29afdc['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x29afdc['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x29afdc['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x48a7ca?_0x29afdc['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x29afdc['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x29afdc['addChildCheck'](_0x5e1836=>{for(const _0x2b2bc3 of _0x5e1836)if('footnoteDefinition'===_0x2b2bc3['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5f0156}=this,{conversion:_0x715085,editing:_0x284894}=_0x5f0156,{t:t}=_0x5f0156['locale'];_0x715085['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x52b157,{writer:_0x1a719c,consumable:_0x1d1c96})=>{const _0x3c8323=_0x52b157['getChild'](0x0);if(!_0x3c8323||!_0x3c8323['is']('element','a'))return null;const _0xbd32aa=_0x3c8323['getAttribute']('href')||'';if(!_0xbd32aa['startsWith']('#'))return null;const _0x5daf12=_0xbd32aa['replace'](/^#/,'');if(!_0x5daf12)return null;_0x1d1c96['consume'](_0x3c8323,{'name':!0x0,'attributes':['href']});for(const {item:_0x2be457}of _0x284894['view']['createRangeIn'](_0x3c8323))_0x2be457['is']('$textProxy')?_0x1d1c96['consume'](_0x2be457['textNode'],{'name':!0x0}):_0x2be457['is']('element')&&_0x1d1c96['consume'](_0x2be457,{'name':!0x0});return _0x1a719c['createElement']('footnoteRef',{'footnoteId':_0x5daf12});}}),_0x715085['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3e09a8,{writer:_0x3525f4})=>b(_0x3e09a8,_0x3525f4)}),_0x715085['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x33c1b1,{writer:_0x4173c9})=>{const _0x5f1fc4=_0x33c1b1['getAttribute']('footnoteCounter');return _0x54a6a1(b(_0x33c1b1,_0x4173c9),_0x4173c9,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x5f1fc4)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5c0dc8}=this,{t:t}=_0x5c0dc8['locale'],{conversion:_0x176378}=_0x5c0dc8;_0x176378['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x176378['for']('upcast')['add'](_0x5d64c1=>{_0x5d64c1['on']('element:ol',(_0x3e0e57,_0x3699d7,_0x49889e)=>{const _0x1bc611=_0x3699d7['viewItem'];if(!_0x1bc611['hasClass']('footnotes-list')||!_0x3699d7['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x49889e['consumable']['consume'](_0x1bc611,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x50c6ce,modelCursor:_0x5938a5}=_0x49889e['convertChildren'](_0x3699d7['viewItem'],_0x3699d7['modelCursor']);_0x3699d7['modelRange']=_0x50c6ce,_0x3699d7['modelCursor']=_0x5938a5;}),_0x5d64c1['on']('element:hr',(_0x3126f1,_0xbbefbe,_0x3cff3f)=>{const _0x2c2dce=_0xbbefbe['viewItem'];_0x2c2dce['hasClass']('footnotes-divider')&&_0xbbefbe['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3cff3f['consumable']['consume'](_0x2c2dce,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x176378['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4e08e7,{writer:_0x405c64})=>D(_0x405c64)}),_0x176378['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4fc4e5,{writer:_0x5b552e})=>{const _0x48b1b9=D(_0x5b552e,{'data-footnotes-list-label':t('Footnotes')}),_0x21457e=_0x54a6a1(_0x48b1b9,_0x5b552e,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x5b552e['setCustomProperty']('footnotesDefinitions',!0x0,_0x21457e),_0x21457e;}});}['_defineDefinitionConverters'](){const {editor:_0x3cc634}=this,{conversion:_0x506690,locale:_0x33f4ad}=_0x3cc634,_0xefef5c=_0x3cc634['config']['get']('footnotes.multiBlock');_0x506690['for']('upcast')['add'](_0x58e1d9=>{_0x58e1d9['on']('element:li',(_0x4bcdde,_0x4e7c6d,_0x185243)=>{const _0x5c1597=_0x4e7c6d['viewItem'];if(!_0x5c1597['hasClass']('footnote-definition')||!_0x5c1597['getAttribute']('id'))return;const _0x12b647=_0x5c1597['parent'];if(!_0x12b647['is']('element','ol')||!_0x12b647['hasClass']('footnotes-list'))return;if(!_0x185243['consumable']['test'](_0x5c1597,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1d7918=_0x185243['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5c1597['getAttribute']('id')});if(!_0x185243['safeInsert'](_0x1d7918,_0x4e7c6d['modelCursor']))return;_0x185243['consumable']['consume'](_0x5c1597,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4f84b2=Array['from'](_0x5c1597['getChildren']())['find'](_0x5c7294=>_0x5c7294['is']('element')&&_0x5c7294['hasClass']('footnote-content'));for(const _0x1a8b94 of _0x5c1597['getChildren']())_0x1a8b94['is']('element')&&(_0x185243['consumable']['consume'](_0x1a8b94,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x185243['consumable']['consume'](_0x1a8b94,{'name':!0x0,'classes':'footnote-content'}));if(_0x4f84b2){if(_0xefef5c)_0x185243['convertChildren'](_0x4f84b2,_0x1d7918);else{const _0x43a267=_0x185243['writer']['createElement']('footnoteInlineContent');_0x185243['writer']['insert'](_0x43a267,_0x1d7918),_0x185243['convertChildren'](_0x4f84b2,_0x43a267);}}_0x185243['updateConversionResult'](_0x1d7918,_0x4e7c6d);});}),_0x506690['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x17c8bb,{writer:_0x5c837d})=>y(_0x17c8bb,_0x5c837d,_0x33f4ad,{'dataPipeline':!0x0})}),_0x506690['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xe23bd2,{writer:_0xe2517b})=>y(_0xe23bd2,_0xe2517b,_0x33f4ad)});}['_defineBogusParagraphConverters'](){const {editor:_0x42bbd4}=this,{conversion:_0x14d495}=_0x42bbd4;_0x42bbd4['config']['get']('footnotes.multiBlock')?(_0x14d495['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x14d495['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x42bbd4['model']['document'],'change:data',()=>{!function(_0x36e61d,_0x4895bf){const _0x426529=_0x36e61d['document']['differ'],_0x4da729=new Set();for(const _0x370937 of _0x426529['getChanges']()){const _0x39cca5='attribute'==_0x370937['type']?_0x370937['range']['start']['parent']:_0x370937['position']['parent'];_0x39cca5['is']('element','footnoteDefinition')&&_0x4da729['add'](_0x39cca5);}for(const _0x377819 of _0x4da729['values']()){const _0x2d8333=Array['from'](_0x377819['getChildren']())['filter'](_0x1b518e=>v(_0x1b518e,_0x4895bf['mapper']));for(const _0xe4e814 of _0x2d8333)_0x4895bf['reconvertItem'](_0xe4e814);}}(_0x42bbd4['model'],_0x42bbd4['editing']);})):(_0x14d495['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x14d495['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x22cc15,{writer:_0x48494b})=>{const _0x1234be=_0x48494b['createContainerElement']('span');return _0x48494b['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1234be),_0x1234be;}}));}['_defineKeyboardHandlers'](){const {editor:_0x28b8bf}=this,{editing:_0x38bbfe,t:t}=_0x28b8bf,_0x290117=_0x28b8bf['model']['document']['selection'];_0x28b8bf['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x28b8bf['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x38bbfe['view']['document'],'enter',(_0x20a764,_0x742d9b)=>{const _0x13d57a=function(_0x2695f5){const _0x18dfc1=_0x2695f5['getSelectedElement']();if(_0x18dfc1?.['is']('element','footnoteRef'))return _0x18dfc1;return null;}(_0x290117);if(_0x13d57a){const _0x198754=_0x13d57a['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x198754),_0x742d9b['preventDefault'](),_0x20a764['stop']();}},{'context':_0x4c44d1});}['_defineClickHandlers'](){const {editor:_0x1b74d6}=this,{editing:_0x3e3bb4}=_0x1b74d6;_0x1b74d6['editing']['view']['addObserver'](_0x277f7a),_0x1b74d6['editing']['view']['addObserver'](_0x45738c);let _0x1538ea=!0x1;this['listenTo'](_0x3e3bb4['view']['document'],'pointerdown',(_0x2f6112,_0x14e97e)=>{const {target:_0xcf4f02}=_0x14e97e,_0x44f7f4=_0x3e3bb4['view']['document']['selection'];_0x1538ea=!!(_0xcf4f02?.['is']('element','a')&&_0xcf4f02['parent']?.['is']('element','sup')&&_0xcf4f02['parent']['hasClass']('footnote'))&&_0x44f7f4['getSelectedElement']()===_0xcf4f02['parent'];},{'priority':'high'}),this['listenTo'](_0x3e3bb4['view']['document'],'click',(_0x48bab8,_0x4bbdd1)=>{const {target:_0x480895}=_0x4bbdd1;if(!_0x480895?.['is']('element','a'))return;if(_0x480895['parent']?.['is']('element','sup')&&_0x480895['parent']['hasClass']('footnote')&&!_0x1538ea)return void _0x4bbdd1['preventDefault']();let _0xcf55c1=_0x480895['getAttribute']('href');if(!_0xcf55c1?.['startsWith']('#'))return;_0xcf55c1=_0xcf55c1['slice'](0x1);let _0x219c89=!0x1;(_0xcf55c1['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0xcf55c1['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0xcf55c1))&&(_0x219c89=!0x0),_0x219c89&&(_0x4bbdd1['preventDefault'](),_0x48bab8['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x3ec0dc}={}){return(_0x12653c,{writer:_0x18c3a9})=>{if(!g(_0x12653c))return null;if(!_0x3ec0dc)return _0x18c3a9['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x180b95=_0x18c3a9['createContainerElement']('p');return _0x18c3a9['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x180b95),_0x180b95;};}function g(_0xda9c59){const {parent:_0x51f912}=_0xda9c59;if(!_0x51f912?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x51f912['childCount'])return!0x1;for(const _0x48bd1b of _0xda9c59['getAttributeKeys']())if(!_0x48bd1b['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x48bd1b)return!0x1;return!0x0;}function v(_0x36fb34,_0x5d356f){if(!_0x36fb34['is']('element','paragraph'))return!0x1;const _0x15e0c6=_0x5d356f['toViewElement'](_0x36fb34);return!!_0x15e0c6&&g(_0x36fb34)!==_0x15e0c6['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x400d9f){return _0x4c44d1(_0x400d9f)&&_0x400d9f['is']('containerElement')&&!!_0x400d9f['getCustomProperty']('footnotesDefinitions');}function D(_0x15d7e8,_0x2b514b={}){const _0x8f3086=_0x15d7e8['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x5948f6=_0x15d7e8['createContainerElement']('ol',{'class':'footnotes-list'},_0x15d7e8['createSlot']());return _0x15d7e8['createContainerElement']('div',{'class':'footnotes',..._0x2b514b},[_0x8f3086,_0x5948f6]);}function b(_0x1140f1,_0x4046d4){const _0x27e1b1=_0x1140f1['getAttribute']('footnoteId'),_0xf9277=_0x1140f1['getAttribute']('footnoteCounter'),_0x2905bd=_0x4046d4['createUIElement']('a',{'href':'#'+_0x27e1b1},function(_0xd18f75){const _0x2e83ce=this['toDomElement'](_0xd18f75);return _0x2e83ce['textContent']=_0xf9277,_0x2e83ce;}),_0x245b67=_0x4046d4['createContainerElement']('sup',{'id':'ref-'+_0x27e1b1,'class':'footnote'},[_0x2905bd]);return _0x245b67['getFillerOffset']=()=>null,_0x245b67;}function y(_0x1d646b,_0x2f60ba,_0x1c5fae,{dataPipeline:_0x276a43}={}){const {t:t}=_0x1c5fae,_0x2a6985=_0x1d646b['getAttribute']('footnoteId'),_0xca7a2a=_0x2f60ba['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2a6985},function(_0x1989fe){const _0x238229=this['toDomElement'](_0x1989fe);return _0x238229['innerText']='^',_0x238229;}),_0x1d7a11=_0x276a43?_0x2f60ba['createContainerElement']('div',{'class':'footnote-content'}):_0x2d194a(_0x2f60ba['createEditableElement']('div',{'class':'footnote-content'}),_0x2f60ba,{'label':t('Footnote\x20content.')});return _0x2f60ba['insert'](_0x2f60ba['createPositionAt'](_0x1d7a11,0x0),_0x2f60ba['createSlot']()),_0x2f60ba['createContainerElement']('li',{'class':'footnote-definition','id':_0x2a6985},[_0xca7a2a,_0x1d7a11]);}
|
|
23
|
+
import{Plugin as _0x2f3ea1}from'ckeditor5/src/core.js';import{isWidget as _0x4c1814,toWidget as _0x186798,toWidgetEditable as _0x19d61a}from'ckeditor5/src/widget.js';import{uid as _0xeae72b}from'ckeditor5/src/utils.js';import{PointerObserver as _0x3e0d45,ClickObserver as _0xb0f71b}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x191db6}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x189cfa}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x2f3ea1{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x191db6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x21b49f}=this;_0x21b49f['config']['define']('footnotes.multiBlock',!0x0),_0x21b49f['commands']['add']('insertFootnote',new _0x189cfa(_0x21b49f)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x10668f){const _0x93485=_0x4e2f18([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]),_0x1581de=0x47a28506,_0x5ca6ba=0x47a50456^_0x1581de,_0x17036e=window[_0x4e2f18([0x44,0x61,0x74,0x65])][_0x4e2f18([0x6e,0x6f,0x77])](),_0x41559c=_0x10668f[_0x4e2f18([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4e8e0f=new window[(_0x4e2f18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20f197=>{_0x41559c[_0x4e2f18([0x6f,0x6e,0x63,0x65])](_0x4e2f18([0x72,0x65,0x61,0x64,0x79]),_0x20f197);}),_0x24bb5f={[_0x4e2f18([0x6b,0x74,0x79])]:_0x4e2f18([0x45,0x43]),[_0x4e2f18([0x75,0x73,0x65])]:_0x4e2f18([0x73,0x69,0x67]),[_0x4e2f18([0x63,0x72,0x76])]:_0x4e2f18([0x50,0x2d,0x32,0x35,0x36]),[_0x4e2f18([0x78])]:_0x4e2f18([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]),[_0x4e2f18([0x79])]:_0x4e2f18([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]),[_0x4e2f18([0x61,0x6c,0x67])]:_0x4e2f18([0x45,0x53,0x32,0x35,0x36])},_0x41a95c=_0x41559c[_0x4e2f18([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4e2f18([0x67,0x65,0x74])](_0x4e2f18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4335d9(){let _0x51c421,_0xa49110=null,_0x4256fd=null;try{if(_0x41a95c==_0x4e2f18([0x47,0x50,0x4c]))return _0x4e2f18([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51c421=_0x577add(),!_0x51c421)return _0x4e2f18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51c421[_0x4e2f18([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4256fd=_0x26157d(_0x51c421[_0x4e2f18([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51c421[_0x4e2f18([0x6a,0x74,0x69])])),await _0x49fd18()?_0x5f36e2()?_0x533875()?_0x4e2f18([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c95dc()?(_0x51c421[_0x4e2f18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e2f18([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xa49110=_0x49d7d3(_0x4e2f18([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x14cc82()):_0x4e2f18([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4e2f18([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4e2f18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4e2f18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x533875(){const _0x235722=[_0x4e2f18([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4e2f18([0x74,0x72,0x69,0x61,0x6c])][_0x4e2f18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51c421[_0x4e2f18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x17036e/0x3e8:0xe10*_0x5ca6ba;return _0x51c421[_0x4e2f18([0x65,0x78,0x70])]<_0x235722;}function _0x5f36e2(){const _0x2a1ee8=_0x51c421[_0x4e2f18([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a1ee8&&(!!_0x2a1ee8[_0x4e2f18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e2f18([0x2a]))||!!_0x2a1ee8[_0x4e2f18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e2f18([0x46,0x4f,0x4f])));}function _0x2c95dc(){const _0x257a72=_0x51c421[_0x4e2f18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x257a72||0x0==_0x257a72[_0x4e2f18([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xbad1f5}=new URL(window[_0x4e2f18([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x257a72[_0x4e2f18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbad1f5))return!0x0;const _0x9a7622=_0xbad1f5[_0x4e2f18([0x73,0x70,0x6c,0x69,0x74])](_0x4e2f18([0x2e]));return _0x257a72[_0x4e2f18([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4bd1bc=>_0x4bd1bc[_0x4e2f18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e2f18([0x2a])))[_0x4e2f18([0x6d,0x61,0x70])](_0x567810=>_0x567810[_0x4e2f18([0x73,0x70,0x6c,0x69,0x74])](_0x4e2f18([0x2e])))[_0x4e2f18([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c0803=>_0x1c0803[_0x4e2f18([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x9a7622[_0x4e2f18([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e2f18([0x6d,0x61,0x70])](_0x22b2fd=>Array(_0x9a7622[_0x4e2f18([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x22b2fd[_0x4e2f18([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e2f18([0x66,0x69,0x6c,0x6c])](_0x22b2fd[0x0]===_0x4e2f18([0x2a])?_0x4e2f18([0x2a]):'')[_0x4e2f18([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x22b2fd))[_0x4e2f18([0x73,0x6f,0x6d,0x65])](_0xc10209=>_0x9a7622[_0x4e2f18([0x65,0x76,0x65,0x72,0x79])]((_0x9b58c1,_0x1310e0)=>_0xc10209[_0x1310e0]===_0x9b58c1||_0xc10209[_0x1310e0]===_0x4e2f18([0x2a])));}function _0x14cc82(){return _0xa49110&&_0x4256fd?new window[(_0x4e2f18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5cd083,_0x5a4b74)=>{_0xa49110[_0x4e2f18([0x74,0x68,0x65,0x6e])](_0x5cd083,_0x5a4b74),_0x4256fd[_0x4e2f18([0x74,0x68,0x65,0x6e])](_0x34db97=>{_0x34db97!=_0x4e2f18([0x56,0x61,0x6c,0x69,0x64])&&_0x5cd083(_0x34db97);},_0x5a4b74);}):_0xa49110||_0x4256fd||_0x4e2f18([0x56,0x61,0x6c,0x69,0x64]);}}function _0x26157d(_0x3cda12,_0x56a97d){return new window[(_0x4e2f18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d319c=>{if(_0x5b87db())return _0x1d319c(_0x4e2f18([0x56,0x61,0x6c,0x69,0x64]));_0x234ae0(),_0x41559c[_0x4e2f18([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4e2f18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x977193=!0x1;const _0x3d2ccf=_0xeae72b();function _0x3a1619(_0x2db46a){return!!_0x2db46a&&(typeof _0x2db46a===_0x4e2f18([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2db46a===_0x4e2f18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2db46a[_0x4e2f18([0x74,0x68,0x65,0x6e])]===_0x4e2f18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2db46a[_0x4e2f18([0x63,0x61,0x74,0x63,0x68])]===_0x4e2f18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2d9408(_0x15c829){_0x5d2b64(_0x15c829)[_0x4e2f18([0x74,0x68,0x65,0x6e])](_0x8a3700=>{if(!_0x8a3700||_0x8a3700[_0x4e2f18([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4e2f18([0x6f,0x6b]))return _0x4e2f18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x29c602(_0x292e9f(_0x3d2ccf+_0x56a97d))!=_0x8a3700[_0x4e2f18([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4e2f18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4e2f18([0x56,0x61,0x6c,0x69,0x64]);})[_0x4e2f18([0x74,0x68,0x65,0x6e])](_0x4adca2=>(_0x3c7bbb(),_0x4adca2),()=>{const _0x4bdd4b=_0x29f0ae();return null==_0x4bdd4b?(_0x3c7bbb(),_0x4e2f18([0x56,0x61,0x6c,0x69,0x64])):_0x4e2f18(_0x17036e-_0x4bdd4b>(0x63ae0106^_0x1581de)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4e2f18([0x74,0x68,0x65,0x6e])](_0x1d319c)[_0x4e2f18([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d319c(_0x4e2f18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x31ceac=0x47946b86^_0x1581de;function _0x3c7bbb(){const _0x467e14=_0x4e2f18([0x6c,0x6c,0x63,0x74,0x2d])+_0x29c602(_0x292e9f(_0x3cda12)),_0x27f37e=_0x48c97c(_0x29c602(window[_0x4e2f18([0x4d,0x61,0x74,0x68])][_0x4e2f18([0x63,0x65,0x69,0x6c])](_0x17036e/_0x31ceac)));window[_0x4e2f18([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e2f18([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x467e14,_0x27f37e);}function _0x29f0ae(){const _0x1d976c=_0x4e2f18([0x6c,0x6c,0x63,0x74,0x2d])+_0x29c602(_0x292e9f(_0x3cda12)),_0x4bfa13=window[_0x4e2f18([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e2f18([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d976c);return _0x4bfa13?window[_0x4e2f18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48c97c(_0x4bfa13),0x10)*_0x31ceac:null;}function _0x5d2b64(_0x29b587){return new window[(_0x4e2f18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x247279,_0x1e6775)=>{_0x29b587[_0x4e2f18([0x74,0x68,0x65,0x6e])](_0x247279,_0x1e6775),window[_0x4e2f18([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e6775,0x47a351c6^_0x1581de);});}}_0x41559c[_0x4e2f18([0x6f,0x6e])](_0x4e2f18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x232afd,_0x1d454d)=>{if(_0x1d454d[0x0]!=_0x3cda12)return _0x1d319c(_0x4e2f18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1d454d[0x1]={..._0x1d454d[0x1],[_0x4e2f18([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3d2ccf};},{[_0x4e2f18([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e2f18([0x68,0x69,0x67,0x68])}),_0x41559c[_0x4e2f18([0x6f,0x6e])](_0x4e2f18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x119fb3=>{_0x3a1619(_0x119fb3[_0x4e2f18([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x977193=!0x0,_0x2d9408(_0x119fb3[_0x4e2f18([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4e2f18([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e2f18([0x6c,0x6f,0x77])}),_0x4e8e0f[_0x4e2f18([0x74,0x68,0x65,0x6e])](()=>{_0x977193||_0x1d319c(_0x4e2f18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b87db(){return _0x41559c[_0x4e2f18([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e2f18([0x76,0x69,0x65,0x77])][_0x4e2f18([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4e2f18([0x61,0x75,0x74,0x6f]);}function _0x234ae0(){_0x41559c[_0x4e2f18([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e2f18([0x76,0x69,0x65,0x77])][_0x4e2f18([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e2f18([0x61,0x75,0x74,0x6f]);}}function _0x49d7d3(_0x559133){const _0xc27602=[new window[(_0x4e2f18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e7191=>setTimeout(_0x2e7191,0x47abbbca^_0x1581de)),_0x4e8e0f[_0x4e2f18([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4e2f18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31280b=>{let _0x2ab46b=0x0;_0x41559c[_0x4e2f18([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e2f18([0x6f,0x6e])](_0x4e2f18([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d236e,_0x4607a8)=>{_0x4607a8[0x0][_0x4e2f18([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ab46b++,_0x2ab46b==(0x47a280ee^_0x1581de)&&(_0x31280b(),_0x5d236e[_0x4e2f18([0x6f,0x66,0x66])]());});}))];return window[_0x4e2f18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e2f18([0x72,0x61,0x63,0x65])](_0xc27602)[_0x4e2f18([0x74,0x68,0x65,0x6e])](()=>_0x559133);}async function _0x4b1837(){await _0x4e8e0f,_0x41559c[_0x4e2f18([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e2f18([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2033c0,_0x41559c[_0x4e2f18([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e2f18([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2033c0,_0x41559c[_0x4e2f18([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4e2f18([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x18a38b(_0x1e4369){const _0x21d562=_0x7ce550();_0x41559c[_0x21d562]=_0x4e2f18([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1e4369,_0x1e4369!=_0x4e2f18([0x56,0x61,0x6c,0x69,0x64])&&_0x4b1837();}function _0x7ce550(){const _0x4d9ac3=window[_0x4e2f18([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4e2f18([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4e2f18([0x6e,0x6f,0x77])]())[_0x4e2f18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4e2f18([0x2e]),'');let _0x49e369=_0x4e2f18([0x75]);for(let _0x5e18c=0x0;_0x5e18c<_0x4d9ac3[_0x4e2f18([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e18c+=0x2){let _0x3fcf95=window[_0x4e2f18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d9ac3[_0x4e2f18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e18c,_0x5e18c+0x2));_0x3fcf95>=_0x93485[_0x4e2f18([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3fcf95-=_0x93485[_0x4e2f18([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x49e369+=_0x93485[_0x3fcf95];}return _0x49e369;}function _0x577add(){const _0x1c9a51=_0x41a95c[_0x4e2f18([0x73,0x70,0x6c,0x69,0x74])](_0x4e2f18([0x2e]));if(0x3!=_0x1c9a51[_0x4e2f18([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a9eec(_0x1c9a51[0x1]);function _0x1a9eec(_0x25791b){const _0x2cb905=_0x4ad367(_0x25791b);return _0x2cb905&&_0x5a0300()?_0x2cb905:null;function _0x5a0300(){const _0x204cb5=_0x2cb905[_0x4e2f18([0x6a,0x74,0x69])],_0x6c2949=window[_0x4e2f18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x204cb5[_0x4e2f18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x204cb5[_0x4e2f18([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x37d85c={..._0x2cb905,[_0x4e2f18([0x6a,0x74,0x69])]:_0x204cb5[_0x4e2f18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x204cb5[_0x4e2f18([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x37d85c[_0x4e2f18([0x76,0x63])],_0x292e9f(_0x37d85c)==_0x6c2949;}}}async function _0x49fd18(){let _0xdb0cc2=!0x0;try{const _0x57bd21=_0x41a95c[_0x4e2f18([0x73,0x70,0x6c,0x69,0x74])](_0x4e2f18([0x2e])),[_0x32d916,_0xb0e3c3,_0x40e0c6]=_0x57bd21;return _0x256482(_0x32d916),await _0x55d197(_0x32d916,_0xb0e3c3,_0x40e0c6),_0xdb0cc2;}catch{return!0x1;}function _0x256482(_0x2c87f7){const _0x6d81c2=_0x4ad367(_0x2c87f7);_0x6d81c2&&_0x6d81c2[_0x4e2f18([0x61,0x6c,0x67])]==_0x4e2f18([0x45,0x53,0x32,0x35,0x36])||(_0xdb0cc2=!0x1);}async function _0x55d197(_0x1b643b,_0xb6939,_0x1d7d00){const _0x458e5f=window[_0x4e2f18([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4e2f18([0x66,0x72,0x6f,0x6d])](_0x3999d7(_0x1d7d00),_0x259e81=>_0x259e81[_0x4e2f18([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x256b7d=new window[(_0x4e2f18([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4e2f18([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1b643b+_0x4e2f18([0x2e])+_0xb6939),_0x183811=window[_0x4e2f18([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4e2f18([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x183811)return;const _0x142c35=await _0x183811[_0x4e2f18([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4e2f18([0x6a,0x77,0x6b]),_0x24bb5f,{[_0x4e2f18([0x6e,0x61,0x6d,0x65])]:_0x4e2f18([0x45,0x43,0x44,0x53,0x41]),[_0x4e2f18([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4e2f18([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4e2f18([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x183811[_0x4e2f18([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4e2f18([0x6e,0x61,0x6d,0x65])]:_0x4e2f18([0x45,0x43,0x44,0x53,0x41]),[_0x4e2f18([0x68,0x61,0x73,0x68])]:{[_0x4e2f18([0x6e,0x61,0x6d,0x65])]:_0x4e2f18([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x142c35,_0x458e5f,_0x256b7d)||(_0xdb0cc2=!0x1);}}function _0x4ad367(_0x1c58d2){return _0x1c58d2[_0x4e2f18([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4e2f18([0x65,0x79]))?JSON[_0x4e2f18([0x70,0x61,0x72,0x73,0x65])](_0x3999d7(_0x1c58d2)):null;}function _0x3999d7(_0x441c60){return window[_0x4e2f18([0x61,0x74,0x6f,0x62])](_0x441c60[_0x4e2f18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4e2f18([0x2b]))[_0x4e2f18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4e2f18([0x2f])));}function _0x292e9f(_0x5a125f){let _0x169b5e=0x1505;function _0x2a03da(_0x3316e3){for(let _0x191f21=0x0;_0x191f21<_0x3316e3[_0x4e2f18([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x191f21++){const _0x3a0760=_0x3316e3[_0x4e2f18([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x191f21);_0x169b5e=(_0x169b5e<<0x5)+_0x169b5e+_0x3a0760,_0x169b5e&=_0x169b5e;}}function _0x2bbbe7(_0x30be06){Array[_0x4e2f18([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x30be06)?_0x30be06[_0x4e2f18([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2bbbe7):_0x30be06&&typeof _0x30be06==_0x4e2f18([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4e2f18([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x30be06)[_0x4e2f18([0x73,0x6f,0x72,0x74])]()[_0x4e2f18([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x79fc67,_0x3de1be])=>{_0x2a03da(_0x79fc67),_0x2bbbe7(_0x3de1be);}):_0x2a03da(window[_0x4e2f18([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x30be06));}return _0x2bbbe7(_0x5a125f),_0x169b5e>>>0x0;}function _0x29c602(_0x258dda){return _0x258dda[_0x4e2f18([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4e2f18([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4e2f18([0x30]));}function _0x48c97c(_0x2a1760){return _0x2a1760[_0x4e2f18([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4e2f18([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4e2f18([0x6a,0x6f,0x69,0x6e])]('');}function _0x2033c0(){}function _0x4e2f18(_0x2320f1){return _0x2320f1['map'](_0x394c78=>String['fromCharCode'](_0x394c78))['join']('');}_0x18a38b(await _0x4335d9());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4398db){const {plugins:_0x465d94,editing:_0xea788c,model:_0x44dd5c}=this['editor'],_0x13bc50=_0x465d94['get'](_0x191db6)['getFootnote'](_0x4398db);return!!_0x13bc50&&(_0x44dd5c['change'](_0x32e357=>{_0x32e357['setSelection'](_0x32e357['createPositionAt'](_0x13bc50['definition'],'end'));}),_0xea788c['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2afc9b){const {plugins:_0x4d583c,editing:_0x556da8,model:_0x52d343}=this['editor'],_0x538f28=_0x4d583c['get'](_0x191db6)['getFootnote'](_0x2afc9b);return!!_0x538f28&&(_0x52d343['change'](_0x7b7f1c=>{_0x7b7f1c['setSelection'](_0x538f28['reference'],'on');}),_0x556da8['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x5be8f1}=this['editor']['model'],_0x40e78e=this['editor']['config']['get']('footnotes.multiBlock');_0x5be8f1['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x5be8f1['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x5be8f1['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x40e78e?_0x5be8f1['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x5be8f1['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x5be8f1['addChildCheck'](_0x3a79de=>{for(const _0x24328f of _0x3a79de)if('footnoteDefinition'===_0x24328f['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x352bce}=this,{conversion:_0x2573e1,editing:_0x2f94a6}=_0x352bce,{t:t}=_0x352bce['locale'];_0x2573e1['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x57ff93,{writer:_0x1f921b,consumable:_0x268eac})=>{const _0x448bcc=_0x57ff93['getChild'](0x0);if(!_0x448bcc||!_0x448bcc['is']('element','a'))return null;const _0x573702=_0x448bcc['getAttribute']('href')||'';if(!_0x573702['startsWith']('#'))return null;const _0x80fd7a=_0x573702['replace'](/^#/,'');if(!_0x80fd7a)return null;_0x268eac['consume'](_0x448bcc,{'name':!0x0,'attributes':['href']});for(const {item:_0x56331f}of _0x2f94a6['view']['createRangeIn'](_0x448bcc))_0x56331f['is']('$textProxy')?_0x268eac['consume'](_0x56331f['textNode'],{'name':!0x0}):_0x56331f['is']('element')&&_0x268eac['consume'](_0x56331f,{'name':!0x0});return _0x1f921b['createElement']('footnoteRef',{'footnoteId':_0x80fd7a});}}),_0x2573e1['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x17e31b,{writer:_0x320380})=>b(_0x17e31b,_0x320380)}),_0x2573e1['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x20cecc,{writer:_0x2a852f})=>{const _0x5147cc=_0x20cecc['getAttribute']('footnoteCounter');return _0x186798(b(_0x20cecc,_0x2a852f),_0x2a852f,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x5147cc)});}});}['_defineDefinitionsConverters'](){const {editor:_0xdd6b56}=this,{t:t}=_0xdd6b56['locale'],{conversion:_0x35f3d0}=_0xdd6b56;_0x35f3d0['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x35f3d0['for']('upcast')['add'](_0x151cbb=>{_0x151cbb['on']('element:ol',(_0x175d24,_0x3cfc9e,_0xf23908)=>{const _0x26e521=_0x3cfc9e['viewItem'];if(!_0x26e521['hasClass']('footnotes-list')||!_0x3cfc9e['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0xf23908['consumable']['consume'](_0x26e521,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x3a405f,modelCursor:_0x346d1a}=_0xf23908['convertChildren'](_0x3cfc9e['viewItem'],_0x3cfc9e['modelCursor']);_0x3cfc9e['modelRange']=_0x3a405f,_0x3cfc9e['modelCursor']=_0x346d1a;}),_0x151cbb['on']('element:hr',(_0x173f3c,_0x47b685,_0x330064)=>{const _0x3b0188=_0x47b685['viewItem'];_0x3b0188['hasClass']('footnotes-divider')&&_0x47b685['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x330064['consumable']['consume'](_0x3b0188,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x35f3d0['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x107e07,{writer:_0x183770})=>D(_0x183770)}),_0x35f3d0['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x96bc7b,{writer:_0x4f320e})=>{const _0x5394a4=D(_0x4f320e,{'data-footnotes-list-label':t('Footnotes')}),_0x16ce84=_0x186798(_0x5394a4,_0x4f320e,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4f320e['setCustomProperty']('footnotesDefinitions',!0x0,_0x16ce84),_0x16ce84;}});}['_defineDefinitionConverters'](){const {editor:_0x132809}=this,{conversion:_0x2d5e00,locale:_0x2e6ce0}=_0x132809,_0x2cd521=_0x132809['config']['get']('footnotes.multiBlock');_0x2d5e00['for']('upcast')['add'](_0x49d229=>{_0x49d229['on']('element:li',(_0x2bbc2a,_0x21a08e,_0xc86fdd)=>{const _0x265272=_0x21a08e['viewItem'];if(!_0x265272['hasClass']('footnote-definition')||!_0x265272['getAttribute']('id'))return;const _0x1ba604=_0x265272['parent'];if(!_0x1ba604['is']('element','ol')||!_0x1ba604['hasClass']('footnotes-list'))return;if(!_0xc86fdd['consumable']['test'](_0x265272,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3bd146=_0xc86fdd['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x265272['getAttribute']('id')});if(!_0xc86fdd['safeInsert'](_0x3bd146,_0x21a08e['modelCursor']))return;_0xc86fdd['consumable']['consume'](_0x265272,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4fdf48=Array['from'](_0x265272['getChildren']())['find'](_0x1abd09=>_0x1abd09['is']('element')&&_0x1abd09['hasClass']('footnote-content'));for(const _0x5b8852 of _0x265272['getChildren']())_0x5b8852['is']('element')&&(_0xc86fdd['consumable']['consume'](_0x5b8852,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0xc86fdd['consumable']['consume'](_0x5b8852,{'name':!0x0,'classes':'footnote-content'}));if(_0x4fdf48){if(_0x2cd521)_0xc86fdd['convertChildren'](_0x4fdf48,_0x3bd146);else{const _0xe0ad36=_0xc86fdd['writer']['createElement']('footnoteInlineContent');_0xc86fdd['writer']['insert'](_0xe0ad36,_0x3bd146),_0xc86fdd['convertChildren'](_0x4fdf48,_0xe0ad36);}}_0xc86fdd['updateConversionResult'](_0x3bd146,_0x21a08e);});}),_0x2d5e00['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5a5dcb,{writer:_0x3825ad})=>y(_0x5a5dcb,_0x3825ad,_0x2e6ce0,{'dataPipeline':!0x0})}),_0x2d5e00['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x30cb17,{writer:_0x1be082})=>y(_0x30cb17,_0x1be082,_0x2e6ce0)});}['_defineBogusParagraphConverters'](){const {editor:_0x1f6dfd}=this,{conversion:_0x550817}=_0x1f6dfd;_0x1f6dfd['config']['get']('footnotes.multiBlock')?(_0x550817['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x550817['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x1f6dfd['model']['document'],'change:data',()=>{!function(_0x579100,_0x5254e0){const _0x293696=_0x579100['document']['differ'],_0x4d9356=new Set();for(const _0x48ff6d of _0x293696['getChanges']()){const _0x106324='attribute'==_0x48ff6d['type']?_0x48ff6d['range']['start']['parent']:_0x48ff6d['position']['parent'];_0x106324['is']('element','footnoteDefinition')&&_0x4d9356['add'](_0x106324);}for(const _0x53b9ce of _0x4d9356['values']()){const _0x4abc74=Array['from'](_0x53b9ce['getChildren']())['filter'](_0x5d6b9b=>v(_0x5d6b9b,_0x5254e0['mapper']));for(const _0x11592c of _0x4abc74)_0x5254e0['reconvertItem'](_0x11592c);}}(_0x1f6dfd['model'],_0x1f6dfd['editing']);})):(_0x550817['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x550817['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x52ba29,{writer:_0x5f35b6})=>{const _0xf598bb=_0x5f35b6['createContainerElement']('span');return _0x5f35b6['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xf598bb),_0xf598bb;}}));}['_defineKeyboardHandlers'](){const {editor:_0xd37874}=this,{editing:_0x59bdb1,t:t}=_0xd37874,_0x4bfb3c=_0xd37874['model']['document']['selection'];_0xd37874['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0xd37874['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x59bdb1['view']['document'],'enter',(_0x2f4742,_0x44e6ad)=>{const _0x5729ac=function(_0xa8390c){const _0xedd15c=_0xa8390c['getSelectedElement']();if(_0xedd15c?.['is']('element','footnoteRef'))return _0xedd15c;return null;}(_0x4bfb3c);if(_0x5729ac){const _0x1c5ce5=_0x5729ac['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1c5ce5),_0x44e6ad['preventDefault'](),_0x2f4742['stop']();}},{'context':_0x4c1814});}['_defineClickHandlers'](){const {editor:_0x39d140}=this,{editing:_0xa6a410}=_0x39d140;_0x39d140['editing']['view']['addObserver'](_0x3e0d45),_0x39d140['editing']['view']['addObserver'](_0xb0f71b);let _0x50bb56=!0x1;this['listenTo'](_0xa6a410['view']['document'],'pointerdown',(_0xf0bc81,_0x2725be)=>{const {target:_0x4b8e45}=_0x2725be,_0x453686=_0xa6a410['view']['document']['selection'];_0x50bb56=!!(_0x4b8e45?.['is']('element','a')&&_0x4b8e45['parent']?.['is']('element','sup')&&_0x4b8e45['parent']['hasClass']('footnote'))&&_0x453686['getSelectedElement']()===_0x4b8e45['parent'];},{'priority':'high'}),this['listenTo'](_0xa6a410['view']['document'],'click',(_0x2226b5,_0x1ff658)=>{const {target:_0x1cbbbc}=_0x1ff658;if(!_0x1cbbbc?.['is']('element','a'))return;if(_0x1cbbbc['parent']?.['is']('element','sup')&&_0x1cbbbc['parent']['hasClass']('footnote')&&!_0x50bb56)return void _0x1ff658['preventDefault']();let _0x512c8e=_0x1cbbbc['getAttribute']('href');if(!_0x512c8e?.['startsWith']('#'))return;_0x512c8e=_0x512c8e['slice'](0x1);let _0x322d74=!0x1;(_0x512c8e['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x512c8e['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x512c8e))&&(_0x322d74=!0x0),_0x322d74&&(_0x1ff658['preventDefault'](),_0x2226b5['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0xa4b438}={}){return(_0x382dd1,{writer:_0x528afd})=>{if(!g(_0x382dd1))return null;if(!_0xa4b438)return _0x528afd['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4b96a7=_0x528afd['createContainerElement']('p');return _0x528afd['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4b96a7),_0x4b96a7;};}function g(_0x59b22f){const {parent:_0x171455}=_0x59b22f;if(!_0x171455?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x171455['childCount'])return!0x1;for(const _0x132234 of _0x59b22f['getAttributeKeys']())if(!_0x132234['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x132234)return!0x1;return!0x0;}function v(_0x8574b0,_0x1434d2){if(!_0x8574b0['is']('element','paragraph'))return!0x1;const _0x22c23f=_0x1434d2['toViewElement'](_0x8574b0);return!!_0x22c23f&&g(_0x8574b0)!==_0x22c23f['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x227a2e){return _0x4c1814(_0x227a2e)&&_0x227a2e['is']('containerElement')&&!!_0x227a2e['getCustomProperty']('footnotesDefinitions');}function D(_0x22d039,_0x4b1e17={}){const _0xcbc5b=_0x22d039['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2f2b48=_0x22d039['createContainerElement']('ol',{'class':'footnotes-list'},_0x22d039['createSlot']());return _0x22d039['createContainerElement']('div',{'class':'footnotes',..._0x4b1e17},[_0xcbc5b,_0x2f2b48]);}function b(_0x5ab15a,_0x48ae3b){const _0x27d103=_0x5ab15a['getAttribute']('footnoteId'),_0xd501c4=_0x5ab15a['getAttribute']('footnoteCounter'),_0x54429d=_0x48ae3b['createUIElement']('a',{'href':'#'+_0x27d103},function(_0x593cf0){const _0x3c3928=this['toDomElement'](_0x593cf0);return _0x3c3928['textContent']=_0xd501c4,_0x3c3928;}),_0x3495d0=_0x48ae3b['createContainerElement']('sup',{'id':'ref-'+_0x27d103,'class':'footnote'},[_0x54429d]);return _0x3495d0['getFillerOffset']=()=>null,_0x3495d0;}function y(_0x486ec8,_0x412250,_0x4dba42,{dataPipeline:_0x1ec86a}={}){const {t:t}=_0x4dba42,_0x40cdf4=_0x486ec8['getAttribute']('footnoteId'),_0x28cedc=_0x412250['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x40cdf4},function(_0x875c00){const _0x26bc55=this['toDomElement'](_0x875c00);return _0x26bc55['innerText']='^',_0x26bc55;}),_0x225d11=_0x1ec86a?_0x412250['createContainerElement']('div',{'class':'footnote-content'}):_0x19d61a(_0x412250['createEditableElement']('div',{'class':'footnote-content'}),_0x412250,{'label':t('Footnote\x20content.')});return _0x412250['insert'](_0x412250['createPositionAt'](_0x225d11,0x0),_0x412250['createSlot']()),_0x412250['createContainerElement']('li',{'class':'footnote-definition','id':_0x40cdf4},[_0x28cedc,_0x225d11]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3fa9b6=_0x24e2;(function(_0x20702e,_0x52088e){const _0x14fbc4=_0x24e2,_0x351c60=_0x20702e();while(!![]){try{const _0x560852=-parseInt(_0x14fbc4(0x122))/0x1+-parseInt(_0x14fbc4(0x11d))/0x2+parseInt(_0x14fbc4(0x11a))/0x3*(parseInt(_0x14fbc4(0x11c))/0x4)+-parseInt(_0x14fbc4(0x126))/0x5*(parseInt(_0x14fbc4(0x125))/0x6)+parseInt(_0x14fbc4(0x119))/0x7*(-parseInt(_0x14fbc4(0x121))/0x8)+parseInt(_0x14fbc4(0x127))/0x9*(parseInt(_0x14fbc4(0x130))/0xa)+-parseInt(_0x14fbc4(0x11f))/0xb*(-parseInt(_0x14fbc4(0x120))/0xc);if(_0x560852===_0x52088e)break;else _0x351c60['push'](_0x351c60['shift']());}catch(_0xed58b5){_0x351c60['push'](_0x351c60['shift']());}}}(_0x2a0a,0xaef77));import{Command as _0x14d2c5}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x23a004}from'../../footnotestracker.js';function _0x24e2(_0x170b04,_0x3f5679){const _0x2a0a7e=_0x2a0a();return _0x24e2=function(_0x24e221,_0x140d33){_0x24e221=_0x24e221-0x118;let _0x46575f=_0x2a0a7e[_0x24e221];return _0x46575f;},_0x24e2(_0x170b04,_0x3f5679);}export class FootnotesStartCommand extends _0x14d2c5{[_0x3fa9b6(0x11e)](){const _0x11567d=_0x3fa9b6,{editor:_0x5802c2}=this,_0x7da7ed=_0x5802c2[_0x11567d(0x12a)][_0x11567d(0x129)](_0x23a004)[_0x11567d(0x124)]();this[_0x11567d(0x11b)]=!!_0x7da7ed,this[_0x11567d(0x12c)]=_0x7da7ed?.[_0x11567d(0x123)](_0x11567d(0x12e))??null;}[_0x3fa9b6(0x131)]({value:_0x259c3b}){const _0x1feb70=_0x3fa9b6,{editor:_0x32bf67}=this,_0x3a714f=_0x32bf67[_0x1feb70(0x12a)][_0x1feb70(0x129)](_0x23a004),_0xea9dad=_0x3a714f[_0x1feb70(0x124)]();_0xea9dad&&Number[_0x1feb70(0x12b)](_0x259c3b)&&_0x32bf67[_0x1feb70(0x118)][_0x1feb70(0x128)](_0x21e8f8=>{const _0x23b323=_0x1feb70;_0x21e8f8[_0x23b323(0x12d)](_0x23b323(0x12e),_0x259c3b,_0xea9dad),_0x3a714f[_0x23b323(0x12f)](_0x21e8f8);});}}function _0x2a0a(){const _0x40bea3=['_updateFootnotesCounters','11634430xaTqjT','execute','model','105TRZLtz','472089wHkbBV','isEnabled','4jGiFci','2186308uwXrkK','refresh','165OXXZxA','2788608VXkifC','449240YXsRWE','1049134oUXXnG','getAttribute','getFootnotesDefinitionsObjectElement','3315870yHHfig','10iZrVEh','9IhYroM','change','get','plugins','isInteger','value','setAttribute','footnotesListStart'];_0x2a0a=function(){return _0x40bea3;};return _0x2a0a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e2ec1=_0x5062;function _0x3c53(){const _0x17d222=['5CodELh','1180sGTFND','get','isEnabled','plugins','refresh','footnotesListStyle','1255362xSqwEX','setAttribute','2NvoKnz','model','value','66829xSTGwF','132473nCyvUE','1012644hlNOPI','392xVmANB','getAttribute','4533003mBIadx','_updateFootnotesCounters','55777gNWIYZ','change','includes','2923820PKpBNV','execute','getFootnotesDefinitionsObjectElement'];_0x3c53=function(){return _0x17d222;};return _0x3c53();}function _0x5062(_0x5cca6d,_0x5ab47e){const _0x3c5397=_0x3c53();return _0x5062=function(_0x506244,_0x1b14ec){_0x506244=_0x506244-0xfa;let _0x544c46=_0x3c5397[_0x506244];return _0x544c46;},_0x5062(_0x5cca6d,_0x5ab47e);}(function(_0x44de49,_0x5f488a){const _0x5f3921=_0x5062,_0x31582d=_0x44de49();while(!![]){try{const _0x658f67=parseInt(_0x5f3921(0x103))/0x1*(parseInt(_0x5f3921(0x112))/0x2)+-parseInt(_0x5f3921(0x110))/0x3+parseInt(_0x5f3921(0x106))/0x4*(-parseInt(_0x5f3921(0x109))/0x5)+parseInt(_0x5f3921(0xfe))/0x6+-parseInt(_0x5f3921(0xfc))/0x7*(-parseInt(_0x5f3921(0xff))/0x8)+-parseInt(_0x5f3921(0x101))/0x9+parseInt(_0x5f3921(0x10a))/0xa*(parseInt(_0x5f3921(0xfd))/0xb);if(_0x658f67===_0x5f488a)break;else _0x31582d['push'](_0x31582d['shift']());}catch(_0x16aad6){_0x31582d['push'](_0x31582d['shift']());}}}(_0x3c53,0x70640));import{Command as _0x2127b5}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x6ab976}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x8ba8f8}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x2127b5{[_0x3e2ec1(0x10e)](){const _0x47bf79=_0x3e2ec1,{editor:_0x556fc7}=this,_0x217d72=_0x556fc7[_0x47bf79(0x10d)][_0x47bf79(0x10b)](_0x8ba8f8)[_0x47bf79(0x108)]();this[_0x47bf79(0x10c)]=!!_0x217d72,this[_0x47bf79(0xfb)]=_0x217d72?.[_0x47bf79(0x100)](_0x47bf79(0x10f))??null;}[_0x3e2ec1(0x107)]({value:_0x3ef66c}){const _0x3e0fe6=_0x3e2ec1,{editor:_0x588125}=this,_0x8b1fa2=_0x588125[_0x3e0fe6(0x10d)][_0x3e0fe6(0x10b)](_0x8ba8f8),_0x51d274=_0x8b1fa2[_0x3e0fe6(0x108)]();_0x51d274&&_0x6ab976[_0x3e0fe6(0x105)](_0x3ef66c)&&_0x588125[_0x3e0fe6(0xfa)][_0x3e0fe6(0x104)](_0x219eff=>{const _0x1bbc9e=_0x3e0fe6;_0x219eff[_0x1bbc9e(0x111)](_0x1bbc9e(0x10f),_0x3ef66c,_0x51d274),_0x8b1fa2[_0x1bbc9e(0x102)](_0x219eff);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x480515,ButtonView as _0x3eeb3a,ContextualBalloon as _0x7b75ba,createDropdown as _0x2fc4ac}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x3c80ae}from'ckeditor5/src/widget.js';import{Plugin as _0x22cfa5}from'ckeditor5/src/core.js';import{IconFootnote as _0x3fbd28,IconListStyleDecimal as _0x1e2b1c,IconListStyleDecimalLeadingZero as _0x41e2b2,IconListStyleLowerLatin as _0x2385d1,IconListStyleLowerRoman as _0x4125cc,IconListStyleUpperLatin as _0x10dcb0,IconListStyleUpperRoman as _0x6afe10}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x3528cc}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0xdc7668}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x22cfa5{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x7b75ba,_0x3c80ae];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5ce682}=this,{componentFactory:_0x5d672b}=_0x5ce682['ui'];_0x5ce682['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x5d672b['add']('footnotesStyle',function(_0x1f3528){return _0x29c413=>{const {t:t}=_0x29c413,_0x468926=_0x1f3528['commands']['get']('footnotesStyle'),_0x2c18c9=_0x2fc4ac(_0x29c413),{buttonView:_0x2cfd43}=_0x2c18c9;return _0x2c18c9['class']='ck-footnotes-styles-dropdown',_0x2c18c9['bind']('isEnabled')['to'](_0x468926,'isEnabled'),_0x2cfd43['set']({'label':t('Footnotes\x20style'),'icon':_0x3fbd28,'tooltip':!0x0}),_0x2c18c9['once']('change:isOpen',()=>{const _0x2a2be7=function({editor:_0xa1feb8,dropdownView:_0x3b0c69}){const {t:t}=_0xa1feb8['locale'],_0x146aba=t('Footnotes\x20definitions\x20styles'),_0x227ae3=function(_0x2e4761){const t=_0x2e4761['locale']['t'],_0x2cc3ce=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x1e2b1c},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x41e2b2},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x4125cc},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x6afe10},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x2385d1},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x10dcb0}];return _0x2cc3ce['map'](function(_0x21124f){const _0x4f164a=_0x21124f['locale'];return({label:_0xb0a1a1,icon:_0x59198e,tooltip:_0x1d393d,style:_0x978d6b})=>{const _0x1f7628=_0x21124f['commands']['get']('footnotesStyle'),_0x408129=new _0x3eeb3a(_0x4f164a);return _0x408129['set']({'label':_0xb0a1a1,'icon':_0x59198e,'tooltip':_0x1d393d}),_0x408129['bind']('isOn')['to'](_0x1f7628,'value',_0x260993=>_0x260993===_0x978d6b),_0x408129['bind']('isEnabled')['to'](_0x1f7628,'isEnabled'),_0x408129['on']('execute',()=>{_0x21124f['execute']('footnotesStyle',{'value':_0x978d6b}),_0x21124f['editing']['view']['focus']();}),_0x408129;};}(_0x2e4761));}(_0xa1feb8),_0x420fbb=new _0x3528cc(_0xa1feb8['locale'],{'styleGridAriaLabel':_0x146aba,'styleButtonViews':_0x227ae3}),_0x270de4=_0xa1feb8['commands']['get']('footnotesStart');return _0x420fbb['startIndexFieldView']['bind']('isEnabled')['to'](_0x270de4),_0x420fbb['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x270de4),_0x420fbb['on']('footnotesListStart',(_0x315fab,_0xb1085b)=>{_0xa1feb8['execute']('footnotesStart',{'value':_0xb1085b['startIndex']});}),_0x420fbb['delegate']('execute')['to'](_0x3b0c69),_0x420fbb;}({'editor':_0x1f3528,'dropdownView':_0x2c18c9});_0x2c18c9['panelView']['children']['add'](_0x2a2be7);}),_0x2c18c9;};}(_0x5ce682));}['afterInit'](){const {editor:_0x1d3e8e}=this,{t:t}=_0x1d3e8e['locale'],_0x378e5f=_0x1d3e8e['plugins']['get'](_0x3c80ae),{defaultPositions:_0x1c2013}=_0x480515;_0x378e5f['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x1d3e8e['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x3a1b7f=>{let _0x281bdc=_0x3a1b7f['getFirstPosition']()?.['parent'];return _0x281bdc?.['is']('$text')&&(_0x281bdc=_0x281bdc['parent']),_0x281bdc?.['is']('element')?_0x281bdc['findAncestor'](_0xdc7668):null;},'positions':[_0x1c2013['southArrowNorth'],_0x1c2013['southArrowNorthMiddleWest'],_0x1c2013['southArrowNorthMiddleEast'],_0x1c2013['southArrowNorthWest'],_0x1c2013['southArrowNorthEast'],_0x1c2013['northArrowSouth'],_0x1c2013['northArrowSouthMiddleWest'],_0x1c2013['northArrowSouthMiddleEast'],_0x1c2013['northArrowSouthWest'],_0x1c2013['northArrowSouthEast'],_0x1c2013['viewportStickyNorth']]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x3fc189,View as _0x5dd4ee,ViewCollection as _0x12a9c6,FocusCycler as _0x6f64b1,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et}from'ckeditor5/src/ui.js';import{FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x5dd4ee{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x12a9c6();['focusCycler'];constructor(_0x14ec96,{styleButtonViews:_0x46a0b9,styleGridAriaLabel:_0x59bc4a}){super(_0x14ec96),(this['focusCycler']=new _0x6f64b1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x46a0b9,_0x59bc4a),[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 _0x265638 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x265638['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['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 _0x36407d=_0x49fc6c=>_0x49fc6c['stopPropagation']();this['keystrokes']['set']('arrowright',_0x36407d),this['keystrokes']['set']('arrowleft',_0x36407d),this['keystrokes']['set']('arrowup',_0x36407d),this['keystrokes']['set']('arrowdown',_0x36407d);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x8fc4f0,_0x53bb01){const _0x5a19f7=new _0x5dd4ee(this['locale']);return _0x5a19f7['children']=_0x5a19f7['createCollection'](),_0x5a19f7['children']['addMany'](_0x8fc4f0),_0x5a19f7['setTemplate']({'tag':'div','attributes':{'aria-label':_0x53bb01,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x5a19f7['children']}),_0x5a19f7['children']['delegate']('execute')['to'](this),_0x5a19f7['focus']=function(){for(const _0x4be9aa of this['children'])if(_0x4be9aa instanceof _0x3fc189&&_0x4be9aa['isOn'])return void _0x4be9aa['focus']();this['children']['first']['focus']();},_0x5a19f7['focusTracker']=new ot(),_0x5a19f7['keystrokes']=new rt(),_0x5a19f7['render'](),_0x5a19f7['keystrokes']['listenTo'](_0x5a19f7['element']),this['children']['add'](_0x5a19f7),_0x5a19f7;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x539529=this['_createStartIndexPropertyView'](),_0x365040=[_0x539529],_0x5b6cfc=new st(this['locale'],_0x365040);return _0x5b6cfc['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x5b6cfc['buttonView']['bind']('isEnabled')['toMany'](_0x365040,'isEnabled',(..._0x53ef59)=>_0x53ef59['some'](_0x1b9177=>_0x1b9177)),_0x5b6cfc['buttonView']['on']('change:isEnabled',(_0x39d920,_0x3b2cbf,_0x17a81c)=>{_0x17a81c||(_0x5b6cfc['isCollapsed']=!0x0);}),this['children']['add'](_0x5b6cfc),[_0x539529,_0x5b6cfc];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x82c934=new it(this['locale'],et);return _0x82c934['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x82c934['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x82c934['fieldView']['on']('input',()=>{const _0x9a30cb=_0x82c934['fieldView']['element'],_0x551f3e=_0x9a30cb['valueAsNumber'];Number['isNaN'](_0x551f3e)?_0x82c934['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x9a30cb['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x551f3e}):_0x82c934['errorText']=t(_0x551f3e<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x82c934;}}
|