@ckeditor/ckeditor5-footnotes 47.7.0-alpha.0 → 47.7.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/footnotes.js
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 f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},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],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:p,references:1})}r.push(u)}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 f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,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:()=>At,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>G,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["660EOwqen","has","delete","getChanges","5QZwPLf","4515016ddKEwl","_trackedElements","elementName","getItems","root","attributes","push","7yDsuVO","2929008kzklIC","add","getElementKey","name","get","_model","type","insert","clear","element","flat","_elementName","$graveyard","1281104EOPAOI","createRangeOn","30MSKgtB","$text","5685054noDsdK","5958924mNiRnJ","set","_getElementKey","reset","2goBNMm","733205kKpBZx","slice","from","4478346nbyYZE","rootName","values","remove","position","nodeAfter","length"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=274]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(761876===-parseInt(e(302))/1+-parseInt(e(311))/2*(-parseInt(e(289))/3)+-parseInt(e(307))/4+-parseInt(e(280))/5*(-parseInt(e(306))/6)+-parseInt(e(288))/7*(parseInt(e(281))/8)+-parseInt(e(315))/9*(parseInt(e(304))/10)+-parseInt(e(312))/11*(-parseInt(e(276))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(294)];[r(300)];[r(309)];[r(282)]=new Map;constructor(t,e){const o=r;this[o(294)]=t,this[o(300)]=e[o(283)],this[o(309)]=e[o(291)]}[r(310)](){const t=r;this[t(282)][t(297)]()}[r(279)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(296)===i[e(295)]&&e(305)!==i[e(292)]&&i[e(319)][e(274)]){const t=this[e(294)][e(303)](i[e(319)][e(274)]);for(const o of t[e(284)]()){if(!o.is(e(298),this[e(300)]))continue;const t=this[e(309)](o);n[e(277)](t)||n[e(308)](t,[]),n[e(293)](t)[e(287)](o)}}if(e(318)===i[e(295)]&&i[e(292)]===this[e(300)]){const t=this[e(309)]({getAttribute:t=>i[e(286)][e(293)](t)});o[e(290)](t)}}for(const[t,n]of this[e(282)])e(301)===n[e(285)][e(316)]&&o[e(290)](t);for(const t of o)this[e(282)][e(278)](t);for(const[t,o]of n)this[e(282)][e(308)](t,o[o[e(275)]-1]);const i=new Set;for(const[t,s]of n)o[e(277)](t)&&(i[e(290)](s[0]),s[e(275)]>1?n[e(308)](t,s[e(313)](1)):n[e(278)](t),o[e(278)](t));return{removed:Array[e(314)](o),inserted:Array[e(314)](n[e(317)]())[e(299)](),moved:Array[e(314)](i)}}}const f=p;function u(){const t=["push","map","indexOf","length","remove","createRangeOn","footnoteCounter","min","registerPostFixer","3399312jeRWQi","_handleMovedFootnoteReference","end","createPositionBefore","footnoteId","5477612CvDSdg","_handleFootnotesDefinitionsObjectChanges","paragraph","_footnoteRefsTracker","_footnotesDefinitions","findIndex","has","change:data","compareWith","rootName","1579581xHfkrf","append","_ensureFootnotesReferencesHaveProperOrder","isPremiumPlugin","_updateFootnoteRefCounter","setFootnoteFormatter","get","getChanges","_footnoteDefsTracker","splice","getChildren","4kzbGxF","from","_footnotes","parent","footnotesDefinitions","footnoteInlineContent","getFootnotesFormatter","FootnotesTracker","definition","2cRcqOL","editor","140728SfzaZb","before","root","footnoteRef","find","childCount","createPositionAt","476710fMUVzo","singleton","init","model","getAttribute","some","reset","getRootNames","857525IoHtTn","30LyEAdw","footnoteDefinition","pluginName","document","_footnoteDefsContainerTracker","_footnoteFormatter","low","isEqual","656499SuARdI","_handleFootnoteReferencesChanges","$graveyard","footnotes.multiBlock","move","createRangeIn","setAttribute","listenTo","_sortFootnoteDefinitions","getFootnotes","differ","getFootnote","_updateFootnotesCounters","high","enqueueChange","_handleInsertedFootnoteReference","after","set","_handleRemoveFootnoteReferenceById","config","isOfficialPlugin","createElement","_handleFootnotesDefinitionsObjectSync","unshift","getFootnotesDefinitionsObjectElement","_ensureFootnotesDefinitionsContainerExists","_handleFootnoteDefinitionsChanges","add","insert","_insertEmptyFootnotesDefinitionsContainer","reference"];return(u=function(){return t})()}!function(t){const e=p,o=t();for(;;)try{if(486286===-parseInt(e(461))/1*(-parseInt(e(459))/2)+parseInt(e(485))/3*(parseInt(e(450))/4)+-parseInt(e(476))/5*(parseInt(e(477))/6)+parseInt(e(530))/7+parseInt(e(525))/8+-parseInt(e(439))/9+-parseInt(e(468))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(u);class d extends t.Plugin{[f(452)]=[];[f(534)]=null;[f(482)]=null;[f(481)];[f(533)];[f(447)];static get[f(479)](){return f(457)}static get[f(505)](){return!0}static get[f(442)](){return!0}constructor(t){const e=f;super(t),this[e(481)]=new l(this[e(460)][e(471)],{elementName:e(454),getElementKey:()=>e(469)}),this[e(533)]=new l(this[e(460)][e(471)],{elementName:e(464),getElementKey:t=>t[e(472)](e(529))}),this[e(447)]=new l(this[e(460)][e(471)],{elementName:e(478),getElementKey:t=>t[e(472)](e(529))})}[f(470)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(480)][t(524)](e=>{const n=t,i=o[n(480)][n(495)][n(446)]();let s=!1;return this[n(531)](e,i)&&(s=!0),this[n(511)](e,i)&&(s=!0),this[n(486)](e,i)&&(s=!0),this[n(441)](e)&&(s=!0),this[n(507)](e)&&(s=!0),this[n(493)](e)&&(s=!0),s}),this[t(492)](o[t(480)],t(436),()=>{const e=t;o[e(499)]({isUndoable:!1},t=>{this[e(510)](t)})},{priority:t(483)}),this[t(492)](n,t(502),()=>{const e=t;this[e(452)]=[],this[e(481)][e(474)](),this[e(533)][e(474)](),this[e(447)][e(474)]()},{priority:t(498)})}[f(509)](){return this[f(534)]}[f(496)](t){const e=f;return this[e(452)][e(465)](e=>e.id===t)||null}[f(494)](){const t=f;return Array[t(451)](this[t(452)])}[f(456)](){return this[f(482)]}[f(444)](t){this[f(482)]=t}[f(497)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(452)][o(519)];i++)this[o(443)](t,i)&&(n=!0);return n}[f(514)](t,e){const o=f,n=t[o(506)](o(454),{});return t[o(440)](n,e),this[o(534)]=n,n}[f(510)](t){const e=f;if(!this[e(452)][e(519)]||this[e(534)])return;const o=this[e(452)][0][e(515)][e(463)],n=this[e(514)](t,o);for(const o of this[e(452)])o[e(458)][e(453)]||t[e(513)](o[e(458)],n,e(527));this[e(497)](t)}[f(531)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(481)][o(446)](e);if(r[o(519)]&&(this[o(534)]=r[0]),i[o(519)])if(i[o(519)]>1||this[o(534)]&&i[o(473)](t=>t!==this[o(534)])){const e=t[o(506)](o(454),{}),s=[];this[o(534)]&&s[o(516)](this[o(534)]),s[o(516)](...i),t[o(513)](e,s[0],o(462));for(const n of s)t[o(489)](t[o(490)](n),t[o(467)](e,o(527))),t[o(520)](n);this[o(534)]=e,this[o(497)](t),n=!0}else this[o(534)]=i[0];if(s[o(519)]&&o(487)===this[o(534)]?.[o(463)][o(438)]){for(const e of this[o(452)])t[o(520)](e[o(515)]),n=!0;this[o(452)]=[],this[o(534)]=null}return n}[f(511)](t,e){const o=f;let n=!1;const i=this[o(460)][o(504)][o(445)](o(488)),{inserted:s,moved:r}=this[o(447)][o(446)](e);for(const e of[...r,...s]){const s=e[o(472)](o(529)),r=this[o(496)](s);r&&(r[o(458)]=e),h(t,i,e)&&(n=!0)}return n}[f(486)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(533)][o(446)](e);for(const e of i)this[o(503)](t,e)&&(n=!0);for(const e of s)this[o(500)](t,e)&&(n=!0);for(const e of r)this[o(526)](t,e)&&(n=!0);return n}[f(507)](t){const e=f;if(!this[e(534)])return!1;let o=!1;if(this[e(534)][e(466)]!==this[e(452)][e(519)]){const n=[];for(const t of this[e(534)][e(449)]()){const i=t[e(472)](e(529));this[e(496)](i)||(n[e(508)](t),o=!0)}for(const o of n)t[e(520)](o)}const n=new Set,i=[];for(const t of this[e(534)][e(449)]()){const s=t[e(472)](e(529));n[e(435)](s)?(i[e(508)](t),o=!0):n[e(512)](s)}for(const o of i)t[e(520)](o);return this[e(534)][e(466)]||(t[e(520)](this[e(534)]),this[e(534)]=null,o=!0),o}[f(500)](t,e){const o=f;if(this[o(452)][o(465)](t=>t[o(515)]===e))return!1;let n=!1;const i=e[o(472)](o(529)),s=this[o(452)][o(535)](t=>t.id===i);-1!==s&&(t[o(520)](this[o(452)][s][o(515)]),this[o(452)][o(448)](s,1),n=!0);let r=this[o(534)]?function(t,e){const n=o;for(const o of t[n(449)]())if(o[n(472)](n(529))===e)return o;return null}(this[o(534)],i):null;r||(r=t[o(506)](o(478),{footnoteId:i}),this[o(534)]&&(t[o(513)](r,this[o(534)],o(527)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(460)][o(471)],this[o(452)],e);this[o(452)][o(448)](c,0,a);let l=c;return-1!==s&&(l=Math[o(523)](c,s)),this[o(497)](t,l)&&(n=!0),n}[f(503)](t,e){const o=f,n=this[o(452)][o(535)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(452)][n];return o(487)!==s[o(458)][o(463)][o(438)]&&(t[o(520)](s[o(458)]),i=!0),this[o(452)][o(448)](n,1),this[o(497)](t,n)&&(i=!0),i}[f(526)](t,e){const o=f,n=e[o(472)](o(529)),i=this[o(452)][o(535)](t=>t.id===n),s=this[o(452)][i];let r=!1;s[o(515)]=e,this[o(452)][o(448)](i,1);const a=m(this[o(460)][o(471)],this[o(452)],e);return this[o(452)][o(448)](a,0,s),this[o(497)](t,Math[o(523)](i,a))&&(r=!0),r}[f(443)](t,e){const o=f;if(!this[o(534)])return!1;const n=this[o(452)][e];let i;return i=this[o(482)]?this[o(482)]({footnote:n,container:this[o(534)],digits:String(this[o(452)][o(519)])[o(519)],value:e+1}):String(e+1),n[o(515)][o(472)](o(522))!=i&&(t[o(491)](o(522),i,n[o(515)]),!0)}[f(493)](t){const e=f;if(!this[e(534)]||this[e(452)][e(519)]<2)return!1;if(function(t,o){const n=e;if(t[n(519)]!==o[n(519)])return!1;for(let e=0;e<t[n(519)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(452)][e(517)](t=>t.id),Array[e(451)](this[e(534)][e(449)]())[e(517)](t=>t[e(472)](e(529)))))return!1;let o=!1;for(let n=0;n<this[e(452)][e(519)];n++){const i=this[e(452)][n],s=t[e(528)](i[e(458)]),r=t[e(467)](this[e(534)],n);s[e(484)](r)||(t[e(489)](t[e(521)](i[e(458)]),r),o=!0)}return o}[f(441)](t){const e=f;if(!this[e(452)][e(519)])return!1;const{model:o}=this[e(460)];let n=!1;for(let i=0;i<this[e(452)][e(519)]-1;i++){const s=this[e(452)][i],r=this[e(452)][i+1],a=o[e(528)](s[e(515)]),c=o[e(528)](r[e(515)]);e(501)===a[e(437)](c)&&(this[e(526)](t,s[e(515)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=f;if(o[n(466)])return!1;const i=n(e?532:455);return t[n(513)](t[n(506)](i),o),!0}function p(t,e){const o=u();return(p=function(t,e){return o[t-=435]})(t,e)}function m(t,e,o){const n=f;if(0===e[n(519)])return 0;const i=t[n(528)](o);for(let o=0;o<e[n(519)];o++){const s=e[o],r=t[n(528)](s[n(515)]);if(n(462)===i[n(437)](r))return o}const s=o[n(463)];let r=-1;for(let t=e[n(519)]-1;t>=0;t--)if(e[t][n(515)][n(463)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(480)][n(475)](),c=a[n(518)](s[n(438)]),l=a[c+1];if(l)for(let t=0;t<e[n(519)];t++)if(e[t][n(515)][n(463)][n(438)]===l)return t;return e[n(519)]}function g(t,e){const o=y();return(g=function(t,e){return o[t-=159]})(t,e)}const w=g;function y(){const t=["change","getFirstRange","27217048nQNXxx","test","getItems","refresh","editor","3tVVEVA","footnoteId","footnoteRef","document","model","isObject","5052720xqzlDx","execute","string","3507060RwcrWl","createElement","2045002HetWFS","2613168Uyhjgr","plugins","selection","checkChild","_getPositionToInsertFootnote","length","insertObject","isBlock","3140662HkorCl","_moveSelectionToFootnoteDefinition","isEnabled","441283muQuRT","insert-footnote-command-executed-with-invalid-id","get","end","FootnotesEditing"];return(y=function(){return t})()}!function(t){const e=g,o=t();for(;;)try{if(547919===-parseInt(e(191))/1+parseInt(e(179))/2*(-parseInt(e(168))/3)+parseInt(e(180))/4+-parseInt(e(174))/5+-parseInt(e(177))/6+-parseInt(e(188))/7+parseInt(e(163))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[w(166)](){const t=w,e=this[t(167)][t(172)][t(171)][t(182)],o=this[t(184)](e);this[t(190)]=!!o}[w(175)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(171)],r=this[e(184)](s);if(!r)return;const a=o[e(181)][e(193)](e(160)),c=t?.[e(169)]??(0,i.uid)();!function(t){const o=e;return o(176)==typeof t&&t[o(185)]>0&&!/\s/[o(164)](t)&&!/^\d/[o(164)](t)}(c)?(0,i.logWarning)(e(192)):(n[e(161)](t=>{const o=e,i=t[o(178)](o(170),{footnoteId:c});n[o(186)](i,r,null)}),a[e(189)](c))}[w(184)](t){const e=w,{model:o}=this[e(167)],{schema:n}=o,i=t[e(162)]();for(const t of i[e(165)]())if(n[e(187)](t)||n[e(173)](t))return null;const s=i[e(159)];return n[e(183)](s,e(170))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=p([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[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([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]),[p([121])]:p([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]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function u(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([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[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],f(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?u(f(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+u(f(t)),n=d(u(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+u(f(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([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(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([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[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1775606400;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view: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 A=o(331);const T=P;function D(){const t=["selection","create","outputTransformation","createRangeIn","getFootnote","footnoteDefinition","getFirstRange","push","hasAttribute","toView","2223970aYUatB","definition","end","append","188930fVobiw","_handlePasteFootnotesDefinitions","drop","add","isOfficialPlugin","element","30RhUxRC","1110360GBVhyJ","pluginName","getFootnotes","find","editor","from","toData","createElement","getData","isPremiumPlugin","editing","getChildren","get","footnoteRef","reduce","cloneElement","4876196OgaNUi","keys","FootnotesClipboard","stringify","footnoteInlineContent","getSelectedBlocks","content","footnotesDefinitions","2493066SVTicO","requires","config","method","change","toModel","contentInsertion","init","length","_insertEmptyFootnotesDefinitionsContainer","entries","126666fAOSWI","getAttribute","includes","getRanges","dataTransfer","string","application/ckeditor5-footnotes","data","footnoteId","parse","document","setData","htmlProcessor","getFootnotesDefinitionsObjectElement","_defineClipboardIntegration","16EGWeJZ","19999920FDvhdM","insert","clipboardInput","sourceEditorId","footnotes.multiBlock","root","flatMap","5MAlVph","_handleCopyFootnotesDefinitions","setAttribute","listenTo","remove"];return(D=function(){return t})()}function P(t,e){const o=D();return(P=function(t,e){return o[t-=184]})(t,e)}!function(t){const e=P,o=t();for(;;)try{if(877518===-parseInt(e(242))/1*(parseInt(e(261))/2)+-parseInt(e(208))/3+-parseInt(e(200))/4+parseInt(e(267))/5*(parseInt(e(184))/6)+parseInt(e(257))/7+parseInt(e(234))/8*(-parseInt(e(219))/9)+parseInt(e(235))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[T(185)](){return T(202)}static get[T(209)](){return[I,A.ClipboardPipeline]}static get[T(265)](){return!0}static get[T(193)](){return!0}[T(215)](){this[T(233)]()}[T(233)](){const t=T;this[t(243)](),this[t(262)]()}[T(243)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(196)](A.ClipboardPipeline),s=o[t(196)](d);this[t(245)](i,t(249),(o,i)=>{const r=t,a=V(n[r(250)](i[r(206)]));if(!a[r(216)])return;const c=s[r(186)](),l=a[r(198)]((t,o)=>{const n=r,i=c[n(187)](t=>t.id===o);if(i){const o=e[n(226)][n(256)](i[n(258)],{isClipboardPipeline:!0}),s=e[n(226)][n(231)][n(190)](o);t[i.id]=s}return t},Object[r(248)](null));i[r(223)][r(230)](r(225),JSON[r(203)](l))})}[T(262)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(194)],r=n[t(196)](A.ClipboardPipeline),a=n[t(196)](d),c=e[t(210)][t(196)](t(239));let l=null;this[t(245)](s[t(229)],t(237),(e,o)=>{const n=t,i=o[n(223)][n(192)](n(225));l=i?JSON[n(228)](i):null}),this[t(245)](r,t(214),(n,s)=>{const r=t,f=s[r(238)]===this[r(188)].id;f&&r(263)===s[r(211)]||o[r(212)](t=>{const n=r;let u=a[n(232)]();const d=!!u&&Array[n(189)](o[n(229)][n(247)][n(205)]())[n(221)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(266),e(197)))return!0;return!1}(o[n(250)](s[n(206)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(248)](null);for(const e of i[o(195)]())e.is(o(266),o(252))&&e[o(255)](o(227))&&(s[e[o(220)](o(227))]=t[o(199)](e,!0));return Object[o(201)](s)[o(216)]?s:null}(t,s[n(206)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(250)](e))n.is(o(266),o(207))&&i[o(254)](n);for(const e of i)t[o(246)](e)}(t,s[n(206)]),!l)return;const{selection:h}=o[n(229)],p=h[n(253)]()[n(240)];u&&!d||(u=L(t,s[n(206)]),u||=a[n(217)](t,p));const m=Array[n(189)](h[n(222)]())[n(241)](V),g=function(t,e,o){const s=n,r=Object[s(248)](null);for(const{item:n}of t[s(250)](e))if(n.is(s(266),s(197))){const e=n[s(220)](s(227));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(244)](s(227),r[e],n)}return r}(t,s[n(206)],t=>{const e=n;return!f||!!a[e(251)](t)&&!m[e(221)](t)});for(const[o,i]of Object[n(218)](l)){const s=g[o]||o;let r;if(n(224)!=typeof i)r=i,s!==o&&t[n(244)](n(227),s,r);else{r=t[n(191)](n(252),{footnoteId:s});const o=e[n(226)][n(231)][n(256)](i);let a;if(c)a=e[n(226)][n(213)](o,r);else{a=t[n(191)](n(204));const i=e[n(226)][n(213)](o,a);t[n(236)](i,a)}t[n(260)](a,r)}t[n(236)](r,u,n(259))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(250)](e))if(n.is(o(266),o(207)))return n;return null}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(266),e(197))&&o[e(264)](n[e(220)](e(227)));return Array[e(189)](o)}var O=o(311),R=o(355),N=o(929),K=o.n(N),M=o(297),B=o.n(M),j=o(102),W=o.n(j),z=o(123),U=o.n(z),H=o(741),q=o.n(H),Z=o(728),Q={attributes:{"data-cke":!0}};Q.setAttributes=U(),Q.insert=W().bind(null,"head"),Q.domAPI=B(),Q.insertStyleElement=q();K()(Z.A,Q);Z.A&&Z.A.locals&&Z.A.locals;class G extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",J(t,O.ButtonView)),e.add("menuBar:insertFootnote",J(t,O.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 J(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var X=$;function Y(){var t=["isPremiumPlugin","340780WJdnVB","45BJSkgT","pluginName","14425764GHiMzR","9321907WAFvtW","Footnotes","184hpzjfT","55ebWung","209256pQzHDN","75699lVopQN","926070AswZoW","2921BCRFyx","requires","772TUSHEx","isOfficialPlugin","88wVSXka"];return(Y=function(){return t})()}function $(t,e){var o=Y();return($=function(t,e){return o[t-=405]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(679090===-parseInt(e(405))/1*(parseInt(e(407))/2)+-parseInt(e(412))/3*(parseInt(e(411))/4)+parseInt(e(418))/5*(-parseInt(e(419))/6)+parseInt(e(415))/7+parseInt(e(417))/8*(parseInt(e(420))/9)+-parseInt(e(421))/10*(-parseInt(e(409))/11)+parseInt(e(414))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class tt extends t.Plugin{static get[X(413)](){return X(416)}static get[X(406)](){return[I,_,G]}static get[X(408)](){return!0}static get[X(410)](){return!0}}function et(t,e){const o=it();return(et=function(t,e){return o[t-=368]})(t,e)}const ot=et;!function(t){const e=et,o=t();for(;;)try{if(147553===parseInt(e(380))/1+-parseInt(e(384))/2*(parseInt(e(379))/3)+parseInt(e(370))/4*(parseInt(e(386))/5)+parseInt(e(383))/6+-parseInt(e(373))/7+-parseInt(e(368))/8*(parseInt(e(369))/9)+-parseInt(e(382))/10*(parseInt(e(372))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);const nt=[ot(374),ot(378),ot(377),ot(385),ot(371),ot(376),ot(381),ot(375)];function it(){const t=["upper-latin","1215275hBdTEf","2024GEdLcW","4869zKYMbX","4DBAmeL","lower-alpha","11afDMSy","323652hbtOAg","decimal","upper-roman","upper-alpha","lower-latin","decimal-leading-zero","3120WqcrWq","195612kTlMUd","lower-roman","1111050XJwCFC","99720rhdHSW","26eVKqsK"];return(it=function(){return t})()}function st(){const t=["getAttribute","get","refresh","includes","2716DZBqxd","2648DUyQbk","267eAfPqz","1773Csprtz","36MeWNnQ","_updateFootnotesCounters","2235408RMYSgW","setAttribute","2690taHECr","plugins","model","250255hgxpdP","change","value","3630904JAaLCm","isEnabled","2109855ZYqmnl","footnotesListStyle","getFootnotesDefinitionsObjectElement","execute","14646mfGZed"];return(st=function(){return t})()}const rt=at;function at(t,e){const o=st();return(at=function(t,e){return o[t-=231]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(507988===-parseInt(e(249))/1*(parseInt(e(248))/2)+-parseInt(e(253))/3+-parseInt(e(251))/4*(-parseInt(e(233))/5)+-parseInt(e(242))/6*(-parseInt(e(247))/7)+parseInt(e(236))/8+-parseInt(e(250))/9*(parseInt(e(255))/10)+-parseInt(e(238))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class ct extends t.Command{[rt(245)](){const t=rt,{editor:e}=this,o=e[t(231)][t(244)](d)[t(240)]();this[t(237)]=!!o,this[t(235)]=o?.[t(243)](t(239))??null}[rt(241)]({value:t}){const e=rt,{editor:o}=this,n=o[e(231)][e(244)](d),i=n[e(240)]();i&&nt[e(246)](t)&&o[e(232)][e(234)](o=>{const s=e;o[s(254)](s(239),t,i),n[s(252)](o)})}}const lt=ft;function ft(t,e){const o=ut();return(ft=function(t,e){return o[t-=412]})(t,e)}function ut(){const t=["223116VjhCBz","110709fqjyyC","value","get","_updateFootnotesCounters","isInteger","execute","13rZJZSl","isEnabled","8450XvIlTl","change","2494865dwXTRM","4zJYEWW","11094dkEbTb","refresh","getFootnotesDefinitionsObjectElement","getAttribute","setAttribute","351929XoqXcX","88rSiMIc","1460aLHcDM","model","4938dYGZaX","plugins","footnotesListStart","7469UbrrEz","11081fcYRtl"];return(ut=function(){return t})()}!function(t){const e=ft,o=t();for(;;)try{if(942319===-parseInt(e(425))/1*(-parseInt(e(419))/2)+-parseInt(e(420))/3*(-parseInt(e(427))/4)+-parseInt(e(418))/5+parseInt(e(429))/6*(-parseInt(e(433))/7)+parseInt(e(426))/8*(parseInt(e(435))/9)+-parseInt(e(416))/10*(-parseInt(e(432))/11)+-parseInt(e(434))/12*(parseInt(e(414))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class dt extends t.Command{[lt(421)](){const t=lt,{editor:e}=this,o=e[t(430)][t(437)](d)[t(422)]();this[t(415)]=!!o,this[t(436)]=o?.[t(423)](t(431))??null}[lt(413)]({value:t}){const e=lt,{editor:o}=this,n=o[e(430)][e(437)](d),i=n[e(422)]();i&&Number[e(412)](t)&&o[e(428)][e(417)](o=>{const s=e;o[s(424)](s(431),t,i),n[s(438)](o)})}}const ht=mt;function pt(){const t=["init","decimal-leading-zero","checkAttribute","floor","name","footnotesListStart","getChildren","padStart","937000UbueuR","upcast","type","footnotesStart","upper-roman","max","document","writer","lower-latin","_updateFootnotesCounters","registerPostFixer","upper-alpha","_formatFootnoteListValue","footnotesListStyle","footnotesStyle","187zKYOnF","get","find","2325696oxYkKM","item","toViewElement","parent","position","mapper","plugins","hasAttribute","consume","FootnotesPropertiesEditing","90140BzAyGn","footnotes-list","model","decimal","isNaN","removeAttribute","viewItem","attribute:footnotesListStyle:footnotesDefinitions","element","downcast","getChanges","657979BVRLzc","_getDefaultListStyle","define","footnotes.footnotesProperties.defaultListStyle","35196ZOQrEQ","upper-latin","2EIKzxQ","4588854dfzMJE","consumable","insert","isOfficialPlugin","add","for","1843860KssBgt","setAttribute","getItems","fromCharCode","_defineConverters","hasClass","footnotesDefinitions","requires","27RqvVSU","schema","_definePostfixer","removeStyle","footnotes.footnotesProperties.defaultStartIndex","lower-alpha","editor","start","getStyle","list-style-type","parseInt","isPremiumPlugin","7uEqxvB","lower-roman","15WrdoCA","pluginName","config","setFootnoteFormatter","setStyle","extend","_defineFormatter","differ","attribute:footnotesListStart:footnotesDefinitions","$text","commands","from","createRangeOn","toLowerCase","nodeAfter","_getDefaultStartIndex","getAttribute","_defineSchema","toUpperCase","element:ol","modelCursor"];return(pt=function(){return t})()}function mt(t,e){const o=pt();return(mt=function(t,e){return o[t-=347]})(t,e)}!function(t){const e=mt,o=t();for(;;)try{if(652770===parseInt(e(413))/1*(parseInt(e(419))/2)+-parseInt(e(448))/3*(-parseInt(e(402))/4)+-parseInt(e(426))/5+-parseInt(e(420))/6*(parseInt(e(446))/7)+parseInt(e(392))/8*(parseInt(e(434))/9)+parseInt(e(374))/10+-parseInt(e(389))/11*(-parseInt(e(417))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class gt extends t.Plugin{static get[ht(449)](){return ht(401)}static get[ht(433)](){return[I,d]}static get[ht(423)](){return!0}static get[ht(445)](){return!0}[ht(366)](){const t=ht,{editor:e}=this;e[t(347)][t(415)](t(416),t(405)),e[t(347)][t(415)](t(438),1),e[t(355)][t(424)](t(388),new ct(e)),e[t(355)][t(424)](t(377),new dt(e)),this[t(362)](),this[t(430)](),this[t(351)](),this[t(436)]()}[ht(362)](){const t=ht,{editor:e}=this,{schema:o}=e[t(404)];o[t(350)](t(432),{allowAttributes:[t(387),t(371)]})}[ht(430)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(425)](t(375))[t(424)](e=>{const o=t;e.on(o(364),(t,e,n)=>{const s=o,r=e[s(408)],a=e[s(365)]?.[s(395)];r[s(431)](s(403))&&a?.is(s(410),s(432))&&(function(t,e,o,n){const i=s;if(!n[i(368)](e,i(371)))return;let r=1;const a=o[i(421)][i(400)](t,{attributes:i(441)});if(a){const e=Number[i(444)](t[i(361)](i(441)),10);Number[i(406)](e)||(r=e)}!a&&e[i(399)](i(371))||o[i(381)][i(427)](i(371),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(368)](e,i(387)))return;let r=i(405),a=!1;if(o[i(421)][i(400)](t,{attributes:i(376)})){const e={1:i(405),a:i(439),A:i(385),i:i(447),I:i(378)}[t[i(361)](i(376))];e&&(r=e),a=!0}o[i(421)][i(400)](t,{styles:i(443)})&&(r=function(t){const e=i;switch(t){case e(439):return e(382);case e(385):return e(418);default:return t}}(t[i(442)](i(443))),a=!0),!a&&e[i(399)](i(387))||o[i(381)][i(427)](i(387),r,e)}(r,a,n,i))})}),o[t(425)](t(411))[t(424)](e=>{const o=t;e.on(o(353),(t,e,n)=>{const i=o;if(!n[i(421)][i(400)](e[i(393)],t[i(370)]))return;const s=wt(e[i(393)],n[i(397)]),{attributeNewValue:r}=e;null==r||1===r?n[i(381)][i(407)](i(441),s):n[i(381)][i(427)](i(441),String(r),s)}),e.on(o(409),(t,e,n)=>{const i=o;if(!n[i(421)][i(400)](e[i(393)],t[i(370)]))return;const s=wt(e[i(393)],n[i(397)]),{attributeNewValue:r}=e;r&&i(405)!==r?n[i(381)][i(349)](i(443),r,s):n[i(381)][i(437)](i(443),s)})})}[ht(436)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(398)][t(390)](d),i=this[t(414)](),s=this[t(360)]();o[t(380)][t(384)](e=>{const r=t,a=o[r(380)][r(352)][r(412)]();let c=!1;for(const t of a){if(r(422)!==t[r(376)]||r(354)===t[r(370)])continue;const n=o[r(357)](t[r(396)][r(359)]);for(const t of n[r(428)]())t.is(r(410),r(432))&&(!t[r(399)](r(371))&&o[r(435)][r(368)](t,r(371))&&(e[r(427)](r(371),s,t),c=!0),!t[r(399)](r(387))&&o[r(435)][r(368)](t,r(387))&&(e[r(427)](r(387),i,t),c=!0))}return c&&n[r(383)](e),c})}[ht(351)](){const t=ht,{editor:e}=this;e[t(398)][t(390)](d)[t(348)](e=>this[t(386)](e))}[ht(414)](){const t=ht;return this[t(440)][t(347)][t(390)](t(416))}[ht(360)](){const t=ht;return this[t(440)][t(347)][t(390)](t(438))}[ht(386)]({container:t,value:e,digits:o}){const n=ht,i=t[n(361)](n(387)),s=t[n(361)](n(371)),r=Math[n(369)](e)+(s??1)-1;switch(i){case n(367):return function(t,e){const o=n;return String(t)[o(373)](e,"0")}(r,Math[n(379)](2,o));case n(439):case n(382):return yt(r,!1);case n(385):case n(418):return yt(r,!0);case n(447):return It(r,!1);case n(378):return It(r,!0);default:return String(r)}}}function wt(t,e){const o=ht,n=e[o(394)](t);return Array[o(356)](n[o(372)]())[o(391)](t=>t.is(o(410),"ol")&&t[o(431)](o(403)))}function yt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(429)](97+t)+n,i=Math[o(369)]((i-1)/26)}return e?n[o(363)]():n}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function It(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(358)]()}class vt extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.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,O.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 O.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 O.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 O.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 O.LabeledFieldView(this.locale,O.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=U(),Ct.insert=W().bind(null,"head"),Ct.domAPI=B(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[O.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,O.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:R.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:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.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 O.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}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=418]})(t,e)}function St(){var t=["isPremiumPlugin","2378905rACMwy","requires","9712197yWQHeM","8146350hqblxa","pluginName","7UyFgNQ","10181904wnlGZQ","462766Zygeid","68QZWOiw","4032992vLKakb","95583BlKQDT","isOfficialPlugin","FootnotesProperties"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(679527===-parseInt(e(418))/1+-parseInt(e(419))/2*(parseInt(e(421))/3)+-parseInt(e(420))/4+-parseInt(e(425))/5+-parseInt(e(428))/6*(-parseInt(e(430))/7)+parseInt(e(431))/8+parseInt(e(427))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class At extends t.Plugin{static get[xt(429)](){return xt(423)}static get[xt(426)](){return[gt,Ft]}static get[xt(422)](){return!0}static get[xt(424)](){return!0}}function Tt(t,e){var o=Dt();return(Tt=function(t,e){return o[t-=109]})(t,e)}function Dt(){var t=["1170326yDlcao","3230000FcBjGt","3fICqZT","3337910fFkEue","474cKpOUY","1692245UJHFrb","59157dCPVjh","3637616EroADx","115225rjgxtI","9pPmGLs"];return(Dt=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(708003===parseInt(e(116))/1+-parseInt(e(118))/2*(parseInt(e(110))/3)+parseInt(e(115))/4+parseInt(e(113))/5+-parseInt(e(112))/6*(-parseInt(e(114))/7)+-parseInt(e(109))/8+parseInt(e(117))/9*(-parseInt(e(111))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Dt)})(),(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 f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},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],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:p,references:1})}r.push(u)}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 f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,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:()=>At,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["660EOwqen","has","delete","getChanges","5QZwPLf","4515016ddKEwl","_trackedElements","elementName","getItems","root","attributes","push","7yDsuVO","2929008kzklIC","add","getElementKey","name","get","_model","type","insert","clear","element","flat","_elementName","$graveyard","1281104EOPAOI","createRangeOn","30MSKgtB","$text","5685054noDsdK","5958924mNiRnJ","set","_getElementKey","reset","2goBNMm","733205kKpBZx","slice","from","4478346nbyYZE","rootName","values","remove","position","nodeAfter","length"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=274]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(761876===-parseInt(e(302))/1+-parseInt(e(311))/2*(-parseInt(e(289))/3)+-parseInt(e(307))/4+-parseInt(e(280))/5*(-parseInt(e(306))/6)+-parseInt(e(288))/7*(parseInt(e(281))/8)+-parseInt(e(315))/9*(parseInt(e(304))/10)+-parseInt(e(312))/11*(-parseInt(e(276))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(294)];[r(300)];[r(309)];[r(282)]=new Map;constructor(t,e){const o=r;this[o(294)]=t,this[o(300)]=e[o(283)],this[o(309)]=e[o(291)]}[r(310)](){const t=r;this[t(282)][t(297)]()}[r(279)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(296)===i[e(295)]&&e(305)!==i[e(292)]&&i[e(319)][e(274)]){const t=this[e(294)][e(303)](i[e(319)][e(274)]);for(const o of t[e(284)]()){if(!o.is(e(298),this[e(300)]))continue;const t=this[e(309)](o);n[e(277)](t)||n[e(308)](t,[]),n[e(293)](t)[e(287)](o)}}if(e(318)===i[e(295)]&&i[e(292)]===this[e(300)]){const t=this[e(309)]({getAttribute:t=>i[e(286)][e(293)](t)});o[e(290)](t)}}for(const[t,n]of this[e(282)])e(301)===n[e(285)][e(316)]&&o[e(290)](t);for(const t of o)this[e(282)][e(278)](t);for(const[t,o]of n)this[e(282)][e(308)](t,o[o[e(275)]-1]);const i=new Set;for(const[t,s]of n)o[e(277)](t)&&(i[e(290)](s[0]),s[e(275)]>1?n[e(308)](t,s[e(313)](1)):n[e(278)](t),o[e(278)](t));return{removed:Array[e(314)](o),inserted:Array[e(314)](n[e(317)]())[e(299)](),moved:Array[e(314)](i)}}}const f=p;function u(){const t=["push","map","indexOf","length","remove","createRangeOn","footnoteCounter","min","registerPostFixer","3399312jeRWQi","_handleMovedFootnoteReference","end","createPositionBefore","footnoteId","5477612CvDSdg","_handleFootnotesDefinitionsObjectChanges","paragraph","_footnoteRefsTracker","_footnotesDefinitions","findIndex","has","change:data","compareWith","rootName","1579581xHfkrf","append","_ensureFootnotesReferencesHaveProperOrder","isPremiumPlugin","_updateFootnoteRefCounter","setFootnoteFormatter","get","getChanges","_footnoteDefsTracker","splice","getChildren","4kzbGxF","from","_footnotes","parent","footnotesDefinitions","footnoteInlineContent","getFootnotesFormatter","FootnotesTracker","definition","2cRcqOL","editor","140728SfzaZb","before","root","footnoteRef","find","childCount","createPositionAt","476710fMUVzo","singleton","init","model","getAttribute","some","reset","getRootNames","857525IoHtTn","30LyEAdw","footnoteDefinition","pluginName","document","_footnoteDefsContainerTracker","_footnoteFormatter","low","isEqual","656499SuARdI","_handleFootnoteReferencesChanges","$graveyard","footnotes.multiBlock","move","createRangeIn","setAttribute","listenTo","_sortFootnoteDefinitions","getFootnotes","differ","getFootnote","_updateFootnotesCounters","high","enqueueChange","_handleInsertedFootnoteReference","after","set","_handleRemoveFootnoteReferenceById","config","isOfficialPlugin","createElement","_handleFootnotesDefinitionsObjectSync","unshift","getFootnotesDefinitionsObjectElement","_ensureFootnotesDefinitionsContainerExists","_handleFootnoteDefinitionsChanges","add","insert","_insertEmptyFootnotesDefinitionsContainer","reference"];return(u=function(){return t})()}!function(t){const e=p,o=t();for(;;)try{if(486286===-parseInt(e(461))/1*(-parseInt(e(459))/2)+parseInt(e(485))/3*(parseInt(e(450))/4)+-parseInt(e(476))/5*(parseInt(e(477))/6)+parseInt(e(530))/7+parseInt(e(525))/8+-parseInt(e(439))/9+-parseInt(e(468))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(u);class d extends t.Plugin{[f(452)]=[];[f(534)]=null;[f(482)]=null;[f(481)];[f(533)];[f(447)];static get[f(479)](){return f(457)}static get[f(505)](){return!0}static get[f(442)](){return!0}constructor(t){const e=f;super(t),this[e(481)]=new l(this[e(460)][e(471)],{elementName:e(454),getElementKey:()=>e(469)}),this[e(533)]=new l(this[e(460)][e(471)],{elementName:e(464),getElementKey:t=>t[e(472)](e(529))}),this[e(447)]=new l(this[e(460)][e(471)],{elementName:e(478),getElementKey:t=>t[e(472)](e(529))})}[f(470)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(480)][t(524)](e=>{const n=t,i=o[n(480)][n(495)][n(446)]();let s=!1;return this[n(531)](e,i)&&(s=!0),this[n(511)](e,i)&&(s=!0),this[n(486)](e,i)&&(s=!0),this[n(441)](e)&&(s=!0),this[n(507)](e)&&(s=!0),this[n(493)](e)&&(s=!0),s}),this[t(492)](o[t(480)],t(436),()=>{const e=t;o[e(499)]({isUndoable:!1},t=>{this[e(510)](t)})},{priority:t(483)}),this[t(492)](n,t(502),()=>{const e=t;this[e(452)]=[],this[e(481)][e(474)](),this[e(533)][e(474)](),this[e(447)][e(474)]()},{priority:t(498)})}[f(509)](){return this[f(534)]}[f(496)](t){const e=f;return this[e(452)][e(465)](e=>e.id===t)||null}[f(494)](){const t=f;return Array[t(451)](this[t(452)])}[f(456)](){return this[f(482)]}[f(444)](t){this[f(482)]=t}[f(497)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(452)][o(519)];i++)this[o(443)](t,i)&&(n=!0);return n}[f(514)](t,e){const o=f,n=t[o(506)](o(454),{});return t[o(440)](n,e),this[o(534)]=n,n}[f(510)](t){const e=f;if(!this[e(452)][e(519)]||this[e(534)])return;const o=this[e(452)][0][e(515)][e(463)],n=this[e(514)](t,o);for(const o of this[e(452)])o[e(458)][e(453)]||t[e(513)](o[e(458)],n,e(527));this[e(497)](t)}[f(531)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(481)][o(446)](e);if(r[o(519)]&&(this[o(534)]=r[0]),i[o(519)])if(i[o(519)]>1||this[o(534)]&&i[o(473)](t=>t!==this[o(534)])){const e=t[o(506)](o(454),{}),s=[];this[o(534)]&&s[o(516)](this[o(534)]),s[o(516)](...i),t[o(513)](e,s[0],o(462));for(const n of s)t[o(489)](t[o(490)](n),t[o(467)](e,o(527))),t[o(520)](n);this[o(534)]=e,this[o(497)](t),n=!0}else this[o(534)]=i[0];if(s[o(519)]&&o(487)===this[o(534)]?.[o(463)][o(438)]){for(const e of this[o(452)])t[o(520)](e[o(515)]),n=!0;this[o(452)]=[],this[o(534)]=null}return n}[f(511)](t,e){const o=f;let n=!1;const i=this[o(460)][o(504)][o(445)](o(488)),{inserted:s,moved:r}=this[o(447)][o(446)](e);for(const e of[...r,...s]){const s=e[o(472)](o(529)),r=this[o(496)](s);r&&(r[o(458)]=e),h(t,i,e)&&(n=!0)}return n}[f(486)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(533)][o(446)](e);for(const e of i)this[o(503)](t,e)&&(n=!0);for(const e of s)this[o(500)](t,e)&&(n=!0);for(const e of r)this[o(526)](t,e)&&(n=!0);return n}[f(507)](t){const e=f;if(!this[e(534)])return!1;let o=!1;if(this[e(534)][e(466)]!==this[e(452)][e(519)]){const n=[];for(const t of this[e(534)][e(449)]()){const i=t[e(472)](e(529));this[e(496)](i)||(n[e(508)](t),o=!0)}for(const o of n)t[e(520)](o)}const n=new Set,i=[];for(const t of this[e(534)][e(449)]()){const s=t[e(472)](e(529));n[e(435)](s)?(i[e(508)](t),o=!0):n[e(512)](s)}for(const o of i)t[e(520)](o);return this[e(534)][e(466)]||(t[e(520)](this[e(534)]),this[e(534)]=null,o=!0),o}[f(500)](t,e){const o=f;if(this[o(452)][o(465)](t=>t[o(515)]===e))return!1;let n=!1;const i=e[o(472)](o(529)),s=this[o(452)][o(535)](t=>t.id===i);-1!==s&&(t[o(520)](this[o(452)][s][o(515)]),this[o(452)][o(448)](s,1),n=!0);let r=this[o(534)]?function(t,e){const n=o;for(const o of t[n(449)]())if(o[n(472)](n(529))===e)return o;return null}(this[o(534)],i):null;r||(r=t[o(506)](o(478),{footnoteId:i}),this[o(534)]&&(t[o(513)](r,this[o(534)],o(527)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(460)][o(471)],this[o(452)],e);this[o(452)][o(448)](c,0,a);let l=c;return-1!==s&&(l=Math[o(523)](c,s)),this[o(497)](t,l)&&(n=!0),n}[f(503)](t,e){const o=f,n=this[o(452)][o(535)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(452)][n];return o(487)!==s[o(458)][o(463)][o(438)]&&(t[o(520)](s[o(458)]),i=!0),this[o(452)][o(448)](n,1),this[o(497)](t,n)&&(i=!0),i}[f(526)](t,e){const o=f,n=e[o(472)](o(529)),i=this[o(452)][o(535)](t=>t.id===n),s=this[o(452)][i];let r=!1;s[o(515)]=e,this[o(452)][o(448)](i,1);const a=m(this[o(460)][o(471)],this[o(452)],e);return this[o(452)][o(448)](a,0,s),this[o(497)](t,Math[o(523)](i,a))&&(r=!0),r}[f(443)](t,e){const o=f;if(!this[o(534)])return!1;const n=this[o(452)][e];let i;return i=this[o(482)]?this[o(482)]({footnote:n,container:this[o(534)],digits:String(this[o(452)][o(519)])[o(519)],value:e+1}):String(e+1),n[o(515)][o(472)](o(522))!=i&&(t[o(491)](o(522),i,n[o(515)]),!0)}[f(493)](t){const e=f;if(!this[e(534)]||this[e(452)][e(519)]<2)return!1;if(function(t,o){const n=e;if(t[n(519)]!==o[n(519)])return!1;for(let e=0;e<t[n(519)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(452)][e(517)](t=>t.id),Array[e(451)](this[e(534)][e(449)]())[e(517)](t=>t[e(472)](e(529)))))return!1;let o=!1;for(let n=0;n<this[e(452)][e(519)];n++){const i=this[e(452)][n],s=t[e(528)](i[e(458)]),r=t[e(467)](this[e(534)],n);s[e(484)](r)||(t[e(489)](t[e(521)](i[e(458)]),r),o=!0)}return o}[f(441)](t){const e=f;if(!this[e(452)][e(519)])return!1;const{model:o}=this[e(460)];let n=!1;for(let i=0;i<this[e(452)][e(519)]-1;i++){const s=this[e(452)][i],r=this[e(452)][i+1],a=o[e(528)](s[e(515)]),c=o[e(528)](r[e(515)]);e(501)===a[e(437)](c)&&(this[e(526)](t,s[e(515)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=f;if(o[n(466)])return!1;const i=n(e?532:455);return t[n(513)](t[n(506)](i),o),!0}function p(t,e){const o=u();return(p=function(t,e){return o[t-=435]})(t,e)}function m(t,e,o){const n=f;if(0===e[n(519)])return 0;const i=t[n(528)](o);for(let o=0;o<e[n(519)];o++){const s=e[o],r=t[n(528)](s[n(515)]);if(n(462)===i[n(437)](r))return o}const s=o[n(463)];let r=-1;for(let t=e[n(519)]-1;t>=0;t--)if(e[t][n(515)][n(463)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(480)][n(475)](),c=a[n(518)](s[n(438)]),l=a[c+1];if(l)for(let t=0;t<e[n(519)];t++)if(e[t][n(515)][n(463)][n(438)]===l)return t;return e[n(519)]}function g(t,e){const o=y();return(g=function(t,e){return o[t-=159]})(t,e)}const w=g;function y(){const t=["change","getFirstRange","27217048nQNXxx","test","getItems","refresh","editor","3tVVEVA","footnoteId","footnoteRef","document","model","isObject","5052720xqzlDx","execute","string","3507060RwcrWl","createElement","2045002HetWFS","2613168Uyhjgr","plugins","selection","checkChild","_getPositionToInsertFootnote","length","insertObject","isBlock","3140662HkorCl","_moveSelectionToFootnoteDefinition","isEnabled","441283muQuRT","insert-footnote-command-executed-with-invalid-id","get","end","FootnotesEditing"];return(y=function(){return t})()}!function(t){const e=g,o=t();for(;;)try{if(547919===-parseInt(e(191))/1+parseInt(e(179))/2*(-parseInt(e(168))/3)+parseInt(e(180))/4+-parseInt(e(174))/5+-parseInt(e(177))/6+-parseInt(e(188))/7+parseInt(e(163))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[w(166)](){const t=w,e=this[t(167)][t(172)][t(171)][t(182)],o=this[t(184)](e);this[t(190)]=!!o}[w(175)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(171)],r=this[e(184)](s);if(!r)return;const a=o[e(181)][e(193)](e(160)),c=t?.[e(169)]??(0,i.uid)();!function(t){const o=e;return o(176)==typeof t&&t[o(185)]>0&&!/\s/[o(164)](t)&&!/^\d/[o(164)](t)}(c)?(0,i.logWarning)(e(192)):(n[e(161)](t=>{const o=e,i=t[o(178)](o(170),{footnoteId:c});n[o(186)](i,r,null)}),a[e(189)](c))}[w(184)](t){const e=w,{model:o}=this[e(167)],{schema:n}=o,i=t[e(162)]();for(const t of i[e(165)]())if(n[e(187)](t)||n[e(173)](t))return null;const s=i[e(159)];return n[e(183)](s,e(170))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=p([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[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([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]),[p([121])]:p([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]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function u(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([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[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],f(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?u(f(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+u(f(t)),n=d(u(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+u(f(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([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(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([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[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1776038400;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view: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 A=o(331);const T=P;function D(){const t=["selection","create","outputTransformation","createRangeIn","getFootnote","footnoteDefinition","getFirstRange","push","hasAttribute","toView","2223970aYUatB","definition","end","append","188930fVobiw","_handlePasteFootnotesDefinitions","drop","add","isOfficialPlugin","element","30RhUxRC","1110360GBVhyJ","pluginName","getFootnotes","find","editor","from","toData","createElement","getData","isPremiumPlugin","editing","getChildren","get","footnoteRef","reduce","cloneElement","4876196OgaNUi","keys","FootnotesClipboard","stringify","footnoteInlineContent","getSelectedBlocks","content","footnotesDefinitions","2493066SVTicO","requires","config","method","change","toModel","contentInsertion","init","length","_insertEmptyFootnotesDefinitionsContainer","entries","126666fAOSWI","getAttribute","includes","getRanges","dataTransfer","string","application/ckeditor5-footnotes","data","footnoteId","parse","document","setData","htmlProcessor","getFootnotesDefinitionsObjectElement","_defineClipboardIntegration","16EGWeJZ","19999920FDvhdM","insert","clipboardInput","sourceEditorId","footnotes.multiBlock","root","flatMap","5MAlVph","_handleCopyFootnotesDefinitions","setAttribute","listenTo","remove"];return(D=function(){return t})()}function P(t,e){const o=D();return(P=function(t,e){return o[t-=184]})(t,e)}!function(t){const e=P,o=t();for(;;)try{if(877518===-parseInt(e(242))/1*(parseInt(e(261))/2)+-parseInt(e(208))/3+-parseInt(e(200))/4+parseInt(e(267))/5*(parseInt(e(184))/6)+parseInt(e(257))/7+parseInt(e(234))/8*(-parseInt(e(219))/9)+parseInt(e(235))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[T(185)](){return T(202)}static get[T(209)](){return[I,A.ClipboardPipeline]}static get[T(265)](){return!0}static get[T(193)](){return!0}[T(215)](){this[T(233)]()}[T(233)](){const t=T;this[t(243)](),this[t(262)]()}[T(243)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(196)](A.ClipboardPipeline),s=o[t(196)](d);this[t(245)](i,t(249),(o,i)=>{const r=t,a=V(n[r(250)](i[r(206)]));if(!a[r(216)])return;const c=s[r(186)](),l=a[r(198)]((t,o)=>{const n=r,i=c[n(187)](t=>t.id===o);if(i){const o=e[n(226)][n(256)](i[n(258)],{isClipboardPipeline:!0}),s=e[n(226)][n(231)][n(190)](o);t[i.id]=s}return t},Object[r(248)](null));i[r(223)][r(230)](r(225),JSON[r(203)](l))})}[T(262)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(194)],r=n[t(196)](A.ClipboardPipeline),a=n[t(196)](d),c=e[t(210)][t(196)](t(239));let l=null;this[t(245)](s[t(229)],t(237),(e,o)=>{const n=t,i=o[n(223)][n(192)](n(225));l=i?JSON[n(228)](i):null}),this[t(245)](r,t(214),(n,s)=>{const r=t,f=s[r(238)]===this[r(188)].id;f&&r(263)===s[r(211)]||o[r(212)](t=>{const n=r;let u=a[n(232)]();const d=!!u&&Array[n(189)](o[n(229)][n(247)][n(205)]())[n(221)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(266),e(197)))return!0;return!1}(o[n(250)](s[n(206)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(248)](null);for(const e of i[o(195)]())e.is(o(266),o(252))&&e[o(255)](o(227))&&(s[e[o(220)](o(227))]=t[o(199)](e,!0));return Object[o(201)](s)[o(216)]?s:null}(t,s[n(206)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(250)](e))n.is(o(266),o(207))&&i[o(254)](n);for(const e of i)t[o(246)](e)}(t,s[n(206)]),!l)return;const{selection:h}=o[n(229)],p=h[n(253)]()[n(240)];u&&!d||(u=L(t,s[n(206)]),u||=a[n(217)](t,p));const m=Array[n(189)](h[n(222)]())[n(241)](V),g=function(t,e,o){const s=n,r=Object[s(248)](null);for(const{item:n}of t[s(250)](e))if(n.is(s(266),s(197))){const e=n[s(220)](s(227));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(244)](s(227),r[e],n)}return r}(t,s[n(206)],t=>{const e=n;return!f||!!a[e(251)](t)&&!m[e(221)](t)});for(const[o,i]of Object[n(218)](l)){const s=g[o]||o;let r;if(n(224)!=typeof i)r=i,s!==o&&t[n(244)](n(227),s,r);else{r=t[n(191)](n(252),{footnoteId:s});const o=e[n(226)][n(231)][n(256)](i);let a;if(c)a=e[n(226)][n(213)](o,r);else{a=t[n(191)](n(204));const i=e[n(226)][n(213)](o,a);t[n(236)](i,a)}t[n(260)](a,r)}t[n(236)](r,u,n(259))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(250)](e))if(n.is(o(266),o(207)))return n;return null}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(266),e(197))&&o[e(264)](n[e(220)](e(227)));return Array[e(189)](o)}var O=o(311),R=o(355),N=o(929),K=o.n(N),M=o(297),B=o.n(M),j=o(102),z=o.n(j),W=o(123),U=o.n(W),H=o(741),q=o.n(H),J=o(728),Z={attributes:{"data-cke":!0}};Z.setAttributes=U(),Z.insert=z().bind(null,"head"),Z.domAPI=B(),Z.insertStyleElement=q();K()(J.A,Z);J.A&&J.A.locals&&J.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",G(t,O.ButtonView)),e.add("menuBar:insertFootnote",G(t,O.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 G(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Q=$;function Y(){var t=["isPremiumPlugin","340780WJdnVB","45BJSkgT","pluginName","14425764GHiMzR","9321907WAFvtW","Footnotes","184hpzjfT","55ebWung","209256pQzHDN","75699lVopQN","926070AswZoW","2921BCRFyx","requires","772TUSHEx","isOfficialPlugin","88wVSXka"];return(Y=function(){return t})()}function $(t,e){var o=Y();return($=function(t,e){return o[t-=405]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(679090===-parseInt(e(405))/1*(parseInt(e(407))/2)+-parseInt(e(412))/3*(parseInt(e(411))/4)+parseInt(e(418))/5*(-parseInt(e(419))/6)+parseInt(e(415))/7+parseInt(e(417))/8*(parseInt(e(420))/9)+-parseInt(e(421))/10*(-parseInt(e(409))/11)+parseInt(e(414))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class tt extends t.Plugin{static get[Q(413)](){return Q(416)}static get[Q(406)](){return[I,_,X]}static get[Q(408)](){return!0}static get[Q(410)](){return!0}}function et(t,e){const o=it();return(et=function(t,e){return o[t-=368]})(t,e)}const ot=et;!function(t){const e=et,o=t();for(;;)try{if(147553===parseInt(e(380))/1+-parseInt(e(384))/2*(parseInt(e(379))/3)+parseInt(e(370))/4*(parseInt(e(386))/5)+parseInt(e(383))/6+-parseInt(e(373))/7+-parseInt(e(368))/8*(parseInt(e(369))/9)+-parseInt(e(382))/10*(parseInt(e(372))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);const nt=[ot(374),ot(378),ot(377),ot(385),ot(371),ot(376),ot(381),ot(375)];function it(){const t=["upper-latin","1215275hBdTEf","2024GEdLcW","4869zKYMbX","4DBAmeL","lower-alpha","11afDMSy","323652hbtOAg","decimal","upper-roman","upper-alpha","lower-latin","decimal-leading-zero","3120WqcrWq","195612kTlMUd","lower-roman","1111050XJwCFC","99720rhdHSW","26eVKqsK"];return(it=function(){return t})()}const st=rt;function rt(t,e){const o=at();return(rt=function(t,e){return o[t-=257]})(t,e)}function at(){const t=["1044842xYzhId","20wAGekK","11892KZiMfJ","get","includes","7893MNhSih","getAttribute","getFootnotesDefinitionsObjectElement","change","1234524zbVdhJ","_updateFootnotesCounters","6700266nKnucJ","execute","model","value","isEnabled","14gskuDE","56688xYXPJt","190NexUTo","plugins","12354376dJECks","footnotesListStyle","refresh","setAttribute"];return(at=function(){return t})()}!function(t){const e=rt,o=t();for(;;)try{if(822247===-parseInt(e(272))/1+parseInt(e(279))/2+parseInt(e(260))/3+-parseInt(e(257))/4*(parseInt(e(273))/5)+parseInt(e(264))/6*(parseInt(e(271))/7)+parseInt(e(275))/8+parseInt(e(266))/9*(-parseInt(e(280))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[st(277)](){const t=st,{editor:e}=this,o=e[t(274)][t(258)](d)[t(262)]();this[t(270)]=!!o,this[t(269)]=o?.[t(261)](t(276))??null}[st(267)]({value:t}){const e=st,{editor:o}=this,n=o[e(274)][e(258)](d),i=n[e(262)]();i&&nt[e(259)](t)&&o[e(268)][e(263)](o=>{const s=e;o[s(278)](s(276),t,i),n[s(265)](o)})}}const lt=ft;function ft(t,e){const o=ut();return(ft=function(t,e){return o[t-=412]})(t,e)}function ut(){const t=["223116VjhCBz","110709fqjyyC","value","get","_updateFootnotesCounters","isInteger","execute","13rZJZSl","isEnabled","8450XvIlTl","change","2494865dwXTRM","4zJYEWW","11094dkEbTb","refresh","getFootnotesDefinitionsObjectElement","getAttribute","setAttribute","351929XoqXcX","88rSiMIc","1460aLHcDM","model","4938dYGZaX","plugins","footnotesListStart","7469UbrrEz","11081fcYRtl"];return(ut=function(){return t})()}!function(t){const e=ft,o=t();for(;;)try{if(942319===-parseInt(e(425))/1*(-parseInt(e(419))/2)+-parseInt(e(420))/3*(-parseInt(e(427))/4)+-parseInt(e(418))/5+parseInt(e(429))/6*(-parseInt(e(433))/7)+parseInt(e(426))/8*(parseInt(e(435))/9)+-parseInt(e(416))/10*(-parseInt(e(432))/11)+-parseInt(e(434))/12*(parseInt(e(414))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class dt extends t.Command{[lt(421)](){const t=lt,{editor:e}=this,o=e[t(430)][t(437)](d)[t(422)]();this[t(415)]=!!o,this[t(436)]=o?.[t(423)](t(431))??null}[lt(413)]({value:t}){const e=lt,{editor:o}=this,n=o[e(430)][e(437)](d),i=n[e(422)]();i&&Number[e(412)](t)&&o[e(428)][e(417)](o=>{const s=e;o[s(424)](s(431),t,i),n[s(438)](o)})}}const ht=mt;function pt(){const t=["init","decimal-leading-zero","checkAttribute","floor","name","footnotesListStart","getChildren","padStart","937000UbueuR","upcast","type","footnotesStart","upper-roman","max","document","writer","lower-latin","_updateFootnotesCounters","registerPostFixer","upper-alpha","_formatFootnoteListValue","footnotesListStyle","footnotesStyle","187zKYOnF","get","find","2325696oxYkKM","item","toViewElement","parent","position","mapper","plugins","hasAttribute","consume","FootnotesPropertiesEditing","90140BzAyGn","footnotes-list","model","decimal","isNaN","removeAttribute","viewItem","attribute:footnotesListStyle:footnotesDefinitions","element","downcast","getChanges","657979BVRLzc","_getDefaultListStyle","define","footnotes.footnotesProperties.defaultListStyle","35196ZOQrEQ","upper-latin","2EIKzxQ","4588854dfzMJE","consumable","insert","isOfficialPlugin","add","for","1843860KssBgt","setAttribute","getItems","fromCharCode","_defineConverters","hasClass","footnotesDefinitions","requires","27RqvVSU","schema","_definePostfixer","removeStyle","footnotes.footnotesProperties.defaultStartIndex","lower-alpha","editor","start","getStyle","list-style-type","parseInt","isPremiumPlugin","7uEqxvB","lower-roman","15WrdoCA","pluginName","config","setFootnoteFormatter","setStyle","extend","_defineFormatter","differ","attribute:footnotesListStart:footnotesDefinitions","$text","commands","from","createRangeOn","toLowerCase","nodeAfter","_getDefaultStartIndex","getAttribute","_defineSchema","toUpperCase","element:ol","modelCursor"];return(pt=function(){return t})()}function mt(t,e){const o=pt();return(mt=function(t,e){return o[t-=347]})(t,e)}!function(t){const e=mt,o=t();for(;;)try{if(652770===parseInt(e(413))/1*(parseInt(e(419))/2)+-parseInt(e(448))/3*(-parseInt(e(402))/4)+-parseInt(e(426))/5+-parseInt(e(420))/6*(parseInt(e(446))/7)+parseInt(e(392))/8*(parseInt(e(434))/9)+parseInt(e(374))/10+-parseInt(e(389))/11*(-parseInt(e(417))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class gt extends t.Plugin{static get[ht(449)](){return ht(401)}static get[ht(433)](){return[I,d]}static get[ht(423)](){return!0}static get[ht(445)](){return!0}[ht(366)](){const t=ht,{editor:e}=this;e[t(347)][t(415)](t(416),t(405)),e[t(347)][t(415)](t(438),1),e[t(355)][t(424)](t(388),new ct(e)),e[t(355)][t(424)](t(377),new dt(e)),this[t(362)](),this[t(430)](),this[t(351)](),this[t(436)]()}[ht(362)](){const t=ht,{editor:e}=this,{schema:o}=e[t(404)];o[t(350)](t(432),{allowAttributes:[t(387),t(371)]})}[ht(430)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(425)](t(375))[t(424)](e=>{const o=t;e.on(o(364),(t,e,n)=>{const s=o,r=e[s(408)],a=e[s(365)]?.[s(395)];r[s(431)](s(403))&&a?.is(s(410),s(432))&&(function(t,e,o,n){const i=s;if(!n[i(368)](e,i(371)))return;let r=1;const a=o[i(421)][i(400)](t,{attributes:i(441)});if(a){const e=Number[i(444)](t[i(361)](i(441)),10);Number[i(406)](e)||(r=e)}!a&&e[i(399)](i(371))||o[i(381)][i(427)](i(371),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(368)](e,i(387)))return;let r=i(405),a=!1;if(o[i(421)][i(400)](t,{attributes:i(376)})){const e={1:i(405),a:i(439),A:i(385),i:i(447),I:i(378)}[t[i(361)](i(376))];e&&(r=e),a=!0}o[i(421)][i(400)](t,{styles:i(443)})&&(r=function(t){const e=i;switch(t){case e(439):return e(382);case e(385):return e(418);default:return t}}(t[i(442)](i(443))),a=!0),!a&&e[i(399)](i(387))||o[i(381)][i(427)](i(387),r,e)}(r,a,n,i))})}),o[t(425)](t(411))[t(424)](e=>{const o=t;e.on(o(353),(t,e,n)=>{const i=o;if(!n[i(421)][i(400)](e[i(393)],t[i(370)]))return;const s=wt(e[i(393)],n[i(397)]),{attributeNewValue:r}=e;null==r||1===r?n[i(381)][i(407)](i(441),s):n[i(381)][i(427)](i(441),String(r),s)}),e.on(o(409),(t,e,n)=>{const i=o;if(!n[i(421)][i(400)](e[i(393)],t[i(370)]))return;const s=wt(e[i(393)],n[i(397)]),{attributeNewValue:r}=e;r&&i(405)!==r?n[i(381)][i(349)](i(443),r,s):n[i(381)][i(437)](i(443),s)})})}[ht(436)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(398)][t(390)](d),i=this[t(414)](),s=this[t(360)]();o[t(380)][t(384)](e=>{const r=t,a=o[r(380)][r(352)][r(412)]();let c=!1;for(const t of a){if(r(422)!==t[r(376)]||r(354)===t[r(370)])continue;const n=o[r(357)](t[r(396)][r(359)]);for(const t of n[r(428)]())t.is(r(410),r(432))&&(!t[r(399)](r(371))&&o[r(435)][r(368)](t,r(371))&&(e[r(427)](r(371),s,t),c=!0),!t[r(399)](r(387))&&o[r(435)][r(368)](t,r(387))&&(e[r(427)](r(387),i,t),c=!0))}return c&&n[r(383)](e),c})}[ht(351)](){const t=ht,{editor:e}=this;e[t(398)][t(390)](d)[t(348)](e=>this[t(386)](e))}[ht(414)](){const t=ht;return this[t(440)][t(347)][t(390)](t(416))}[ht(360)](){const t=ht;return this[t(440)][t(347)][t(390)](t(438))}[ht(386)]({container:t,value:e,digits:o}){const n=ht,i=t[n(361)](n(387)),s=t[n(361)](n(371)),r=Math[n(369)](e)+(s??1)-1;switch(i){case n(367):return function(t,e){const o=n;return String(t)[o(373)](e,"0")}(r,Math[n(379)](2,o));case n(439):case n(382):return yt(r,!1);case n(385):case n(418):return yt(r,!0);case n(447):return It(r,!1);case n(378):return It(r,!0);default:return String(r)}}}function wt(t,e){const o=ht,n=e[o(394)](t);return Array[o(356)](n[o(372)]())[o(391)](t=>t.is(o(410),"ol")&&t[o(431)](o(403)))}function yt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(429)](97+t)+n,i=Math[o(369)]((i-1)/26)}return e?n[o(363)]():n}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function It(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(358)]()}class vt extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.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,O.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 O.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 O.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 O.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 O.LabeledFieldView(this.locale,O.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=U(),Ct.insert=z().bind(null,"head"),Ct.domAPI=B(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[O.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,O.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:R.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:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.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 O.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}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=418]})(t,e)}function St(){var t=["isPremiumPlugin","2378905rACMwy","requires","9712197yWQHeM","8146350hqblxa","pluginName","7UyFgNQ","10181904wnlGZQ","462766Zygeid","68QZWOiw","4032992vLKakb","95583BlKQDT","isOfficialPlugin","FootnotesProperties"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(679527===-parseInt(e(418))/1+-parseInt(e(419))/2*(parseInt(e(421))/3)+-parseInt(e(420))/4+-parseInt(e(425))/5+-parseInt(e(428))/6*(-parseInt(e(430))/7)+parseInt(e(431))/8+parseInt(e(427))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class At extends t.Plugin{static get[xt(429)](){return xt(423)}static get[xt(426)](){return[gt,Ft]}static get[xt(422)](){return!0}static get[xt(424)](){return!0}}function Tt(t,e){var o=Dt();return(Tt=function(t,e){return o[t-=109]})(t,e)}function Dt(){var t=["1170326yDlcao","3230000FcBjGt","3fICqZT","3337910fFkEue","474cKpOUY","1692245UJHFrb","59157dCPVjh","3637616EroADx","115225rjgxtI","9pPmGLs"];return(Dt=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(708003===parseInt(e(116))/1+-parseInt(e(118))/2*(parseInt(e(110))/3)+parseInt(e(115))/4+parseInt(e(113))/5+-parseInt(e(112))/6*(-parseInt(e(114))/7)+-parseInt(e(109))/8+parseInt(e(117))/9*(-parseInt(e(111))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Dt)})(),(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 _0x5009a4,Command as _0x377a0b}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x4ffacd,isWidget as _0x9676ee,toWidgetEditable as _0x4c2bbf,WidgetToolbarRepository as _0x2e8462}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x25549a,logWarning as _0x3b0750,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x3b2493,ClickObserver as _0x5dfef5}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0xf51cc5}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x1aa535,ButtonView as _0x563ea8,View as _0x1f1e08,ViewCollection as _0x30a9c6,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x5b18ee,BalloonPanelView as _0x17eed1,createDropdown as _0x57c530}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x3b8fba,IconListStyleDecimal as _0x502fc6,IconListStyleDecimalLeadingZero as _0x35e218,IconListStyleLowerRoman as _0x261eb7,IconListStyleUpperRoman as _0x3f68b7,IconListStyleLowerLatin as _0x5b5f11,IconListStyleUpperLatin as _0x4d576a}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x2d72b4,_0x5c9eb1){this['_model']=_0x2d72b4,this['_elementName']=_0x5c9eb1['elementName'],this['_getElementKey']=_0x5c9eb1['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x12f52b){const _0x589632=new Set(),_0x2e4c29=new Map();for(const _0x44fb6e of _0x12f52b){if('insert'===_0x44fb6e['type']&&'$text'!==_0x44fb6e['name']&&_0x44fb6e['position']['nodeAfter']){const _0x43c9bf=this['_model']['createRangeOn'](_0x44fb6e['position']['nodeAfter']);for(const _0x4a8acb of _0x43c9bf['getItems']()){if(!_0x4a8acb['is']('element',this['_elementName']))continue;const _0x288468=this['_getElementKey'](_0x4a8acb);_0x2e4c29['has'](_0x288468)||_0x2e4c29['set'](_0x288468,[]),_0x2e4c29['get'](_0x288468)['push'](_0x4a8acb);}}if('remove'===_0x44fb6e['type']&&_0x44fb6e['name']===this['_elementName']){const _0x53effd=this['_getElementKey']({'getAttribute':_0x5dfb36=>_0x44fb6e['attributes']['get'](_0x5dfb36)});_0x589632['add'](_0x53effd);}}for(const [_0x3abbc5,_0x4f2bfd]of this['_trackedElements'])'$graveyard'===_0x4f2bfd['root']['rootName']&&_0x589632['add'](_0x3abbc5);for(const _0x4d811b of _0x589632)this['_trackedElements']['delete'](_0x4d811b);for(const [_0x4dfd2c,_0x548fb1]of _0x2e4c29)this['_trackedElements']['set'](_0x4dfd2c,_0x548fb1[_0x548fb1['length']-0x1]);const _0x4bfb1d=new Set();for(const [_0x4d6251,_0x18882f]of _0x2e4c29)_0x589632['has'](_0x4d6251)&&(_0x4bfb1d['add'](_0x18882f[0x0]),_0x18882f['length']>0x1?_0x2e4c29['set'](_0x4d6251,_0x18882f['slice'](0x1)):_0x2e4c29['delete'](_0x4d6251),_0x589632['delete'](_0x4d6251));return{'removed':Array['from'](_0x589632),'inserted':Array['from'](_0x2e4c29['values']())['flat'](),'moved':Array['from'](_0x4bfb1d)};}}class f extends _0x5009a4{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5bae33){super(_0x5bae33),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x35b82f=>_0x35b82f['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x37d5ac=>_0x37d5ac['getAttribute']('footnoteId')});}['init'](){const {editor:_0x1c4712}=this,{model:_0x4e2f74,data:_0xef053a}=_0x1c4712;_0x4e2f74['document']['registerPostFixer'](_0x209a78=>{const _0x2837c2=_0x4e2f74['document']['differ']['getChanges']();let _0x724f54=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x209a78,_0x2837c2)&&(_0x724f54=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x209a78,_0x2837c2)&&(_0x724f54=!0x0),this['_handleFootnoteReferencesChanges'](_0x209a78,_0x2837c2)&&(_0x724f54=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x209a78)&&(_0x724f54=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x209a78)&&(_0x724f54=!0x0),this['_sortFootnoteDefinitions'](_0x209a78)&&(_0x724f54=!0x0),_0x724f54;}),this['listenTo'](_0x4e2f74['document'],'change:data',()=>{_0x4e2f74['enqueueChange']({'isUndoable':!0x1},_0x5b2223=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x5b2223);});},{'priority':'low'}),this['listenTo'](_0xef053a,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x4ce898){return this['_footnotes']['find'](_0x2eb8c5=>_0x2eb8c5['id']===_0x4ce898)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0xee1914){this['_footnoteFormatter']=_0xee1914;}['_updateFootnotesCounters'](_0x46f5bf,_0x3b791a=0x0){let _0x39a504=!0x1;for(let _0x3db82d=_0x3b791a;_0x3db82d<this['_footnotes']['length'];_0x3db82d++)this['_updateFootnoteRefCounter'](_0x46f5bf,_0x3db82d)&&(_0x39a504=!0x0);return _0x39a504;}['_insertEmptyFootnotesDefinitionsContainer'](_0xc49712,_0x2baed9){const _0x576716=_0xc49712['createElement']('footnotesDefinitions',{});return _0xc49712['append'](_0x576716,_0x2baed9),this['_footnotesDefinitions']=_0x576716,_0x576716;}['_ensureFootnotesDefinitionsContainerExists'](_0x6f107f){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x448c9f=this['_footnotes'][0x0]['reference']['root'],_0x799972=this['_insertEmptyFootnotesDefinitionsContainer'](_0x6f107f,_0x448c9f);for(const _0x2d6b0a of this['_footnotes'])_0x2d6b0a['definition']['parent']||_0x6f107f['insert'](_0x2d6b0a['definition'],_0x799972,'end');this['_updateFootnotesCounters'](_0x6f107f);}['_handleFootnotesDefinitionsObjectChanges'](_0x20b69d,_0x39cd5b){let _0x4dcf0c=!0x1;const {inserted:_0x1f9d25,removed:_0x256cbe,moved:_0x958432}=this['_footnoteDefsContainerTracker']['getChanges'](_0x39cd5b);if(_0x958432['length']&&(this['_footnotesDefinitions']=_0x958432[0x0]),_0x1f9d25['length']){if(_0x1f9d25['length']>0x1||this['_footnotesDefinitions']&&_0x1f9d25['some'](_0x4e82ec=>_0x4e82ec!==this['_footnotesDefinitions'])){const _0x561f3d=_0x20b69d['createElement']('footnotesDefinitions',{}),_0x2b5f3d=[];this['_footnotesDefinitions']&&_0x2b5f3d['push'](this['_footnotesDefinitions']),_0x2b5f3d['push'](..._0x1f9d25),_0x20b69d['insert'](_0x561f3d,_0x2b5f3d[0x0],'before');for(const _0xdc1d36 of _0x2b5f3d)_0x20b69d['move'](_0x20b69d['createRangeIn'](_0xdc1d36),_0x20b69d['createPositionAt'](_0x561f3d,'end')),_0x20b69d['remove'](_0xdc1d36);this['_footnotesDefinitions']=_0x561f3d,this['_updateFootnotesCounters'](_0x20b69d),_0x4dcf0c=!0x0;}else this['_footnotesDefinitions']=_0x1f9d25[0x0];}if(_0x256cbe['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x652a8d of this['_footnotes'])_0x20b69d['remove'](_0x652a8d['reference']),_0x4dcf0c=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x4dcf0c;}['_handleFootnoteDefinitionsChanges'](_0x1e020d,_0x30759a){let _0x3c3ddb=!0x1;const _0x5077ed=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x2a049c,moved:_0x25f27a}=this['_footnoteDefsTracker']['getChanges'](_0x30759a);for(const _0x56db67 of[..._0x25f27a,..._0x2a049c]){const _0x20728d=_0x56db67['getAttribute']('footnoteId'),_0x433a99=this['getFootnote'](_0x20728d);_0x433a99&&(_0x433a99['definition']=_0x56db67),_(_0x1e020d,_0x5077ed,_0x56db67)&&(_0x3c3ddb=!0x0);}return _0x3c3ddb;}['_handleFootnoteReferencesChanges'](_0x2abf18,_0x4d2111){let _0x65c00c=!0x1;const {removed:_0x31bd71,inserted:_0x473649,moved:_0x185534}=this['_footnoteRefsTracker']['getChanges'](_0x4d2111);for(const _0x3f7e3f of _0x31bd71)this['_handleRemoveFootnoteReferenceById'](_0x2abf18,_0x3f7e3f)&&(_0x65c00c=!0x0);for(const _0x55c888 of _0x473649)this['_handleInsertedFootnoteReference'](_0x2abf18,_0x55c888)&&(_0x65c00c=!0x0);for(const _0x4e35de of _0x185534)this['_handleMovedFootnoteReference'](_0x2abf18,_0x4e35de)&&(_0x65c00c=!0x0);return _0x65c00c;}['_handleFootnotesDefinitionsObjectSync'](_0x2fc852){if(!this['_footnotesDefinitions'])return!0x1;let _0x2111ac=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x97064d=[];for(const _0x3ab8f2 of this['_footnotesDefinitions']['getChildren']()){const _0x304864=_0x3ab8f2['getAttribute']('footnoteId');this['getFootnote'](_0x304864)||(_0x97064d['unshift'](_0x3ab8f2),_0x2111ac=!0x0);}for(const _0xc09a7d of _0x97064d)_0x2fc852['remove'](_0xc09a7d);}const _0x21b96f=new Set(),_0x3ac61a=[];for(const _0x4dd8a4 of this['_footnotesDefinitions']['getChildren']()){const _0x3708c7=_0x4dd8a4['getAttribute']('footnoteId');_0x21b96f['has'](_0x3708c7)?(_0x3ac61a['unshift'](_0x4dd8a4),_0x2111ac=!0x0):_0x21b96f['add'](_0x3708c7);}for(const _0x8bb61b of _0x3ac61a)_0x2fc852['remove'](_0x8bb61b);return this['_footnotesDefinitions']['childCount']||(_0x2fc852['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x2111ac=!0x0),_0x2111ac;}['_handleInsertedFootnoteReference'](_0x4bc749,_0x5dc7d9){if(this['_footnotes']['find'](_0x25b7b2=>_0x25b7b2['reference']===_0x5dc7d9))return!0x1;let _0x5d3684=!0x1;const _0x2b6297=_0x5dc7d9['getAttribute']('footnoteId'),_0x2fc329=this['_footnotes']['findIndex'](_0x58b9c8=>_0x58b9c8['id']===_0x2b6297);-0x1!==_0x2fc329&&(_0x4bc749['remove'](this['_footnotes'][_0x2fc329]['reference']),this['_footnotes']['splice'](_0x2fc329,0x1),_0x5d3684=!0x0);let _0x4e3345=this['_footnotesDefinitions']?function(_0x5b4574,_0x59743a){for(const _0x5cb4d3 of _0x5b4574['getChildren']())if(_0x5cb4d3['getAttribute']('footnoteId')===_0x59743a)return _0x5cb4d3;return null;}(this['_footnotesDefinitions'],_0x2b6297):null;_0x4e3345||(_0x4e3345=_0x4bc749['createElement']('footnoteDefinition',{'footnoteId':_0x2b6297}),this['_footnotesDefinitions']&&(_0x4bc749['insert'](_0x4e3345,this['_footnotesDefinitions'],'end'),_0x5d3684=!0x0));const _0x1c7933={'id':_0x2b6297,'reference':_0x5dc7d9,'definition':_0x4e3345},_0x2c67d3=I(this['editor']['model'],this['_footnotes'],_0x5dc7d9);this['_footnotes']['splice'](_0x2c67d3,0x0,_0x1c7933);let _0xd868bc=_0x2c67d3;return-0x1!==_0x2fc329&&(_0xd868bc=Math['min'](_0x2c67d3,_0x2fc329)),this['_updateFootnotesCounters'](_0x4bc749,_0xd868bc)&&(_0x5d3684=!0x0),_0x5d3684;}['_handleRemoveFootnoteReferenceById'](_0x13aaa4,_0x142a05){const _0x28b0e1=this['_footnotes']['findIndex'](_0x47c556=>_0x47c556['id']===_0x142a05);if(-0x1===_0x28b0e1)return!0x1;let _0x5d3328=!0x1;const _0x541a69=this['_footnotes'][_0x28b0e1];return'$graveyard'!==_0x541a69['definition']['root']['rootName']&&(_0x13aaa4['remove'](_0x541a69['definition']),_0x5d3328=!0x0),this['_footnotes']['splice'](_0x28b0e1,0x1),this['_updateFootnotesCounters'](_0x13aaa4,_0x28b0e1)&&(_0x5d3328=!0x0),_0x5d3328;}['_handleMovedFootnoteReference'](_0x4e1679,_0x17e48c){const _0x4fe1c9=_0x17e48c['getAttribute']('footnoteId'),_0x61228e=this['_footnotes']['findIndex'](_0x3bd45e=>_0x3bd45e['id']===_0x4fe1c9),_0x272794=this['_footnotes'][_0x61228e];let _0x1c2684=!0x1;_0x272794['reference']=_0x17e48c,this['_footnotes']['splice'](_0x61228e,0x1);const _0x2ba420=I(this['editor']['model'],this['_footnotes'],_0x17e48c);return this['_footnotes']['splice'](_0x2ba420,0x0,_0x272794),this['_updateFootnotesCounters'](_0x4e1679,Math['min'](_0x61228e,_0x2ba420))&&(_0x1c2684=!0x0),_0x1c2684;}['_updateFootnoteRefCounter'](_0x3443f1,_0x299307){if(!this['_footnotesDefinitions'])return!0x1;const _0x53c550=this['_footnotes'][_0x299307];let _0x21242a;return _0x21242a=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x53c550,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x299307+0x1}):String(_0x299307+0x1),_0x53c550['reference']['getAttribute']('footnoteCounter')!=_0x21242a&&(_0x3443f1['setAttribute']('footnoteCounter',_0x21242a,_0x53c550['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x53a011){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x2e2596,_0x16772b){if(_0x2e2596['length']!==_0x16772b['length'])return!0x1;for(let _0x5e4a53=0x0;_0x5e4a53<_0x2e2596['length'];_0x5e4a53++)if(_0x2e2596[_0x5e4a53]!==_0x16772b[_0x5e4a53])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x55524b=>_0x55524b['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x576e5e=>_0x576e5e['getAttribute']('footnoteId'))))return!0x1;let _0x3ec4ee=!0x1;for(let _0x44b8c2=0x0;_0x44b8c2<this['_footnotes']['length'];_0x44b8c2++){const _0x50c5e5=this['_footnotes'][_0x44b8c2],_0x4ab388=_0x53a011['createPositionBefore'](_0x50c5e5['definition']),_0x3b5396=_0x53a011['createPositionAt'](this['_footnotesDefinitions'],_0x44b8c2);_0x4ab388['isEqual'](_0x3b5396)||(_0x53a011['move'](_0x53a011['createRangeOn'](_0x50c5e5['definition']),_0x3b5396),_0x3ec4ee=!0x0);}return _0x3ec4ee;}['_ensureFootnotesReferencesHaveProperOrder'](_0x209c3){if(!this['_footnotes']['length'])return!0x1;const {model:_0x847f05}=this['editor'];let _0x420e25=!0x1;for(let _0xe47565=0x0;_0xe47565<this['_footnotes']['length']-0x1;_0xe47565++){const _0x1cc594=this['_footnotes'][_0xe47565],_0x36ba79=this['_footnotes'][_0xe47565+0x1],_0x29fdc7=_0x847f05['createPositionBefore'](_0x1cc594['reference']),_0x4fd3ee=_0x847f05['createPositionBefore'](_0x36ba79['reference']);'after'===_0x29fdc7['compareWith'](_0x4fd3ee)&&(this['_handleMovedFootnoteReference'](_0x209c3,_0x1cc594['reference']),_0xe47565=-0x1,_0x420e25=!0x0);}return _0x420e25;}}function _(_0x4796b9,_0x38576f,_0x21aacb){if(_0x21aacb['childCount'])return!0x1;const _0x23ac26=_0x38576f?'paragraph':'footnoteInlineContent';return _0x4796b9['insert'](_0x4796b9['createElement'](_0x23ac26),_0x21aacb),!0x0;}function I(_0x124270,_0x4085af,_0x2377a2){if(0x0===_0x4085af['length'])return 0x0;const _0x292440=_0x124270['createPositionBefore'](_0x2377a2);for(let _0xea3c48=0x0;_0xea3c48<_0x4085af['length'];_0xea3c48++){const _0x520124=_0x4085af[_0xea3c48],_0x23ac7e=_0x124270['createPositionBefore'](_0x520124['reference']);if('before'===_0x292440['compareWith'](_0x23ac7e))return _0xea3c48;}const _0x5cba71=_0x2377a2['root'];let _0x590755=-0x1;for(let _0x342ff5=_0x4085af['length']-0x1;_0x342ff5>=0x0;_0x342ff5--)if(_0x4085af[_0x342ff5]['reference']['root']===_0x5cba71){_0x590755=_0x342ff5;break;}if(-0x1!==_0x590755)return _0x590755+0x1;const _0x1d6546=_0x124270['document']['getRootNames'](),_0xe1397d=_0x1d6546['indexOf'](_0x5cba71['rootName']),_0x42635c=_0x1d6546[_0xe1397d+0x1];if(_0x42635c){for(let _0x135367=0x0;_0x135367<_0x4085af['length'];_0x135367++)if(_0x4085af[_0x135367]['reference']['root']['rootName']===_0x42635c)return _0x135367;}return _0x4085af['length'];}class h extends _0x377a0b{['refresh'](){const _0x15a77a=this['editor']['model']['document']['selection'],_0x123f2e=this['_getPositionToInsertFootnote'](_0x15a77a);this['isEnabled']=!!_0x123f2e;}['execute'](_0xc2dd44){const {editor:_0x57859e}=this,{model:_0x272edd}=_0x57859e,{selection:_0x16e9b2}=_0x272edd['document'],_0x27196e=this['_getPositionToInsertFootnote'](_0x16e9b2);if(!_0x27196e)return;const _0x7c62a3=_0x57859e['plugins']['get']('FootnotesEditing'),_0x2d3500=_0xc2dd44?.['footnoteId']??_0x25549a();!function(_0x337218){return'string'==typeof _0x337218&&_0x337218['length']>0x0&&!/\s/['test'](_0x337218)&&!/^\d/['test'](_0x337218);}(_0x2d3500)?_0x3b0750('insert-footnote-command-executed-with-invalid-id'):(_0x272edd['change'](_0x5cfe6f=>{const _0x178ef0=_0x5cfe6f['createElement']('footnoteRef',{'footnoteId':_0x2d3500});_0x272edd['insertObject'](_0x178ef0,_0x27196e,null);}),_0x7c62a3['_moveSelectionToFootnoteDefinition'](_0x2d3500));}['_getPositionToInsertFootnote'](_0x5530b5){const {model:_0x4db5b4}=this['editor'],{schema:_0x8075cc}=_0x4db5b4,_0x5d6701=_0x5530b5['getFirstRange']();for(const _0x3761a9 of _0x5d6701['getItems']())if(_0x8075cc['isBlock'](_0x3761a9)||_0x8075cc['isObject'](_0x3761a9))return null;const _0x8cefc6=_0x5d6701['end'];return _0x8075cc['checkChild'](_0x8cefc6,'footnoteRef')?_0x8cefc6:null;}}class r extends _0x5009a4{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4c4d93}=this;_0x4c4d93['config']['define']('footnotes.multiBlock',!0x0),_0x4c4d93['commands']['add']('insertFootnote',new h(_0x4c4d93)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x472b0b){const _0x239d66=_0x2b60f9([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]),_0x45d845=0x47a28506,_0x376293=0x47a503ae^_0x45d845,_0x2fdd6d=window[_0x2b60f9([0x44,0x61,0x74,0x65])][_0x2b60f9([0x6e,0x6f,0x77])](),_0xef8f5=_0x472b0b[_0x2b60f9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1406d6=new window[(_0x2b60f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ba860=>{_0xef8f5[_0x2b60f9([0x6f,0x6e,0x63,0x65])](_0x2b60f9([0x72,0x65,0x61,0x64,0x79]),_0x5ba860);}),_0x219a82={[_0x2b60f9([0x6b,0x74,0x79])]:_0x2b60f9([0x45,0x43]),[_0x2b60f9([0x75,0x73,0x65])]:_0x2b60f9([0x73,0x69,0x67]),[_0x2b60f9([0x63,0x72,0x76])]:_0x2b60f9([0x50,0x2d,0x32,0x35,0x36]),[_0x2b60f9([0x78])]:_0x2b60f9([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]),[_0x2b60f9([0x79])]:_0x2b60f9([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]),[_0x2b60f9([0x61,0x6c,0x67])]:_0x2b60f9([0x45,0x53,0x32,0x35,0x36])},_0x488199=_0xef8f5[_0x2b60f9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b60f9([0x67,0x65,0x74])](_0x2b60f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x194555(){let _0x216815,_0x26ed89=null,_0x218f10=null;try{if(_0x488199==_0x2b60f9([0x47,0x50,0x4c]))return _0x2b60f9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x216815=_0x223dc2(),!_0x216815)return _0x2b60f9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x216815[_0x2b60f9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x218f10=_0x4b9af0(_0x216815[_0x2b60f9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x216815[_0x2b60f9([0x6a,0x74,0x69])])),await _0x19f8da()?_0x961ae2()?_0x1424fc()?_0x2b60f9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2b7401()?(_0x216815[_0x2b60f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b60f9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x26ed89=_0xe8bb07(_0x2b60f9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xd63896()):_0x2b60f9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b60f9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b60f9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b60f9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1424fc(){const _0x4536f9=[_0x2b60f9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b60f9([0x74,0x72,0x69,0x61,0x6c])][_0x2b60f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x216815[_0x2b60f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2fdd6d/0x3e8:0xe10*_0x376293;return _0x216815[_0x2b60f9([0x65,0x78,0x70])]<_0x4536f9;}function _0x961ae2(){const _0x16b102=_0x216815[_0x2b60f9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x16b102&&(!!_0x16b102[_0x2b60f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b60f9([0x2a]))||!!_0x16b102[_0x2b60f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b60f9([0x46,0x4f,0x4f])));}function _0x2b7401(){const _0x388584=_0x216815[_0x2b60f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x388584||0x0==_0x388584[_0x2b60f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3db2cf}=new URL(window[_0x2b60f9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x388584[_0x2b60f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3db2cf))return!0x0;const _0x318387=_0x3db2cf[_0x2b60f9([0x73,0x70,0x6c,0x69,0x74])](_0x2b60f9([0x2e]));return _0x388584[_0x2b60f9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x481c57=>_0x481c57[_0x2b60f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b60f9([0x2a])))[_0x2b60f9([0x6d,0x61,0x70])](_0x4263e8=>_0x4263e8[_0x2b60f9([0x73,0x70,0x6c,0x69,0x74])](_0x2b60f9([0x2e])))[_0x2b60f9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2db4b1=>_0x2db4b1[_0x2b60f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x318387[_0x2b60f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b60f9([0x6d,0x61,0x70])](_0x4c9f39=>Array(_0x318387[_0x2b60f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4c9f39[_0x2b60f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b60f9([0x66,0x69,0x6c,0x6c])](_0x4c9f39[0x0]===_0x2b60f9([0x2a])?_0x2b60f9([0x2a]):'')[_0x2b60f9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4c9f39))[_0x2b60f9([0x73,0x6f,0x6d,0x65])](_0x27abf5=>_0x318387[_0x2b60f9([0x65,0x76,0x65,0x72,0x79])]((_0x2e79e4,_0xab11e5)=>_0x27abf5[_0xab11e5]===_0x2e79e4||_0x27abf5[_0xab11e5]===_0x2b60f9([0x2a])));}function _0xd63896(){return _0x26ed89&&_0x218f10?new window[(_0x2b60f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x594c26,_0x3fff6c)=>{_0x26ed89[_0x2b60f9([0x74,0x68,0x65,0x6e])](_0x594c26,_0x3fff6c),_0x218f10[_0x2b60f9([0x74,0x68,0x65,0x6e])](_0x2ad221=>{_0x2ad221!=_0x2b60f9([0x56,0x61,0x6c,0x69,0x64])&&_0x594c26(_0x2ad221);},_0x3fff6c);}):_0x26ed89||_0x218f10||_0x2b60f9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4b9af0(_0x7f0b34,_0xf68d4f){return new window[(_0x2b60f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13cc4f=>{if(_0x1443c8())return _0x13cc4f(_0x2b60f9([0x56,0x61,0x6c,0x69,0x64]));_0xa1f6e(),_0xef8f5[_0x2b60f9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b60f9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x291e2f=!0x1;const _0x5d3934=_0x25549a();function _0x340d04(_0x38ead){return!!_0x38ead&&(typeof _0x38ead===_0x2b60f9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38ead===_0x2b60f9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38ead[_0x2b60f9([0x74,0x68,0x65,0x6e])]===_0x2b60f9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38ead[_0x2b60f9([0x63,0x61,0x74,0x63,0x68])]===_0x2b60f9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x556742(_0x18cc82){_0x1a1551(_0x18cc82)[_0x2b60f9([0x74,0x68,0x65,0x6e])](_0x2a1d83=>{if(!_0x2a1d83||_0x2a1d83[_0x2b60f9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b60f9([0x6f,0x6b]))return _0x2b60f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5047f0(_0x24cdfb(_0x5d3934+_0xf68d4f))!=_0x2a1d83[_0x2b60f9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b60f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b60f9([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b60f9([0x74,0x68,0x65,0x6e])](_0x579b32=>(_0x3829bf(),_0x579b32),()=>{const _0x5a4732=_0x461177();return null==_0x5a4732?(_0x3829bf(),_0x2b60f9([0x56,0x61,0x6c,0x69,0x64])):_0x2b60f9(_0x2fdd6d-_0x5a4732>(0x63ae0106^_0x45d845)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b60f9([0x74,0x68,0x65,0x6e])](_0x13cc4f)[_0x2b60f9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x13cc4f(_0x2b60f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x42d8eb=0x47946b86^_0x45d845;function _0x3829bf(){const _0x488a2e=_0x2b60f9([0x6c,0x6c,0x63,0x74,0x2d])+_0x5047f0(_0x24cdfb(_0x7f0b34)),_0x35396f=_0xe8124f(_0x5047f0(window[_0x2b60f9([0x4d,0x61,0x74,0x68])][_0x2b60f9([0x63,0x65,0x69,0x6c])](_0x2fdd6d/_0x42d8eb)));window[_0x2b60f9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b60f9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x488a2e,_0x35396f);}function _0x461177(){const _0x3da137=_0x2b60f9([0x6c,0x6c,0x63,0x74,0x2d])+_0x5047f0(_0x24cdfb(_0x7f0b34)),_0x538fdf=window[_0x2b60f9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b60f9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3da137);return _0x538fdf?window[_0x2b60f9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe8124f(_0x538fdf),0x10)*_0x42d8eb:null;}function _0x1a1551(_0x2c1bef){return new window[(_0x2b60f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4716d1,_0x5712de)=>{_0x2c1bef[_0x2b60f9([0x74,0x68,0x65,0x6e])](_0x4716d1,_0x5712de),window[_0x2b60f9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5712de,0x47a351c6^_0x45d845);});}}_0xef8f5[_0x2b60f9([0x6f,0x6e])](_0x2b60f9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3cf911,_0x2a9fa7)=>{if(_0x2a9fa7[0x0]!=_0x7f0b34)return _0x13cc4f(_0x2b60f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2a9fa7[0x1]={..._0x2a9fa7[0x1],[_0x2b60f9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d3934};},{[_0x2b60f9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b60f9([0x68,0x69,0x67,0x68])}),_0xef8f5[_0x2b60f9([0x6f,0x6e])](_0x2b60f9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x57a781=>{_0x340d04(_0x57a781[_0x2b60f9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x291e2f=!0x0,_0x556742(_0x57a781[_0x2b60f9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b60f9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b60f9([0x6c,0x6f,0x77])}),_0x1406d6[_0x2b60f9([0x74,0x68,0x65,0x6e])](()=>{_0x291e2f||_0x13cc4f(_0x2b60f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1443c8(){return _0xef8f5[_0x2b60f9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b60f9([0x76,0x69,0x65,0x77])][_0x2b60f9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b60f9([0x61,0x75,0x74,0x6f]);}function _0xa1f6e(){_0xef8f5[_0x2b60f9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b60f9([0x76,0x69,0x65,0x77])][_0x2b60f9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b60f9([0x61,0x75,0x74,0x6f]);}}function _0xe8bb07(_0x413df9){const _0x549fba=[new window[(_0x2b60f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x178313=>setTimeout(_0x178313,0x47abbbca^_0x45d845)),_0x1406d6[_0x2b60f9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b60f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3539dc=>{let _0x3d10e5=0x0;_0xef8f5[_0x2b60f9([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b60f9([0x6f,0x6e])](_0x2b60f9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x7cb7d3,_0x269863)=>{_0x269863[0x0][_0x2b60f9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3d10e5++,_0x3d10e5==(0x47a280ee^_0x45d845)&&(_0x3539dc(),_0x7cb7d3[_0x2b60f9([0x6f,0x66,0x66])]());});}))];return window[_0x2b60f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b60f9([0x72,0x61,0x63,0x65])](_0x549fba)[_0x2b60f9([0x74,0x68,0x65,0x6e])](()=>_0x413df9);}async function _0x4563ab(){await _0x1406d6,_0xef8f5[_0x2b60f9([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b60f9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x38add8,_0xef8f5[_0x2b60f9([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b60f9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x38add8,_0xef8f5[_0x2b60f9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b60f9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xd1b3f1(_0x1c4d3d){const _0x3ace58=_0xb52dd4();_0xef8f5[_0x3ace58]=_0x2b60f9([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c4d3d,_0x1c4d3d!=_0x2b60f9([0x56,0x61,0x6c,0x69,0x64])&&_0x4563ab();}function _0xb52dd4(){const _0x353654=window[_0x2b60f9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b60f9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b60f9([0x6e,0x6f,0x77])]())[_0x2b60f9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b60f9([0x2e]),'');let _0x1eb920=_0x2b60f9([0x75]);for(let _0xfbf76b=0x0;_0xfbf76b<_0x353654[_0x2b60f9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xfbf76b+=0x2){let _0x14d280=window[_0x2b60f9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x353654[_0x2b60f9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xfbf76b,_0xfbf76b+0x2));_0x14d280>=_0x239d66[_0x2b60f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x14d280-=_0x239d66[_0x2b60f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1eb920+=_0x239d66[_0x14d280];}return _0x1eb920;}function _0x223dc2(){const _0x59d1de=_0x488199[_0x2b60f9([0x73,0x70,0x6c,0x69,0x74])](_0x2b60f9([0x2e]));if(0x3!=_0x59d1de[_0x2b60f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x276318(_0x59d1de[0x1]);function _0x276318(_0x38f229){const _0x474401=_0x20dd8d(_0x38f229);return _0x474401&&_0x453ac7()?_0x474401:null;function _0x453ac7(){const _0x8d55ed=_0x474401[_0x2b60f9([0x6a,0x74,0x69])],_0x55ce45=window[_0x2b60f9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8d55ed[_0x2b60f9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8d55ed[_0x2b60f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x466768={..._0x474401,[_0x2b60f9([0x6a,0x74,0x69])]:_0x8d55ed[_0x2b60f9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8d55ed[_0x2b60f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x466768[_0x2b60f9([0x76,0x63])],_0x24cdfb(_0x466768)==_0x55ce45;}}}async function _0x19f8da(){let _0x4c9478=!0x0;try{const _0x5336e1=_0x488199[_0x2b60f9([0x73,0x70,0x6c,0x69,0x74])](_0x2b60f9([0x2e])),[_0x3f09d5,_0x3d07d5,_0x5bd4d5]=_0x5336e1;return _0x4ba6b8(_0x3f09d5),await _0x27ef04(_0x3f09d5,_0x3d07d5,_0x5bd4d5),_0x4c9478;}catch{return!0x1;}function _0x4ba6b8(_0x471f3c){const _0x13c9f0=_0x20dd8d(_0x471f3c);_0x13c9f0&&_0x13c9f0[_0x2b60f9([0x61,0x6c,0x67])]==_0x2b60f9([0x45,0x53,0x32,0x35,0x36])||(_0x4c9478=!0x1);}async function _0x27ef04(_0xbfc9a7,_0x5a167e,_0x36b621){const _0xe73634=window[_0x2b60f9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b60f9([0x66,0x72,0x6f,0x6d])](_0x1a9d7e(_0x36b621),_0x3779c0=>_0x3779c0[_0x2b60f9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1753a2=new window[(_0x2b60f9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b60f9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xbfc9a7+_0x2b60f9([0x2e])+_0x5a167e),_0x5b114f=window[_0x2b60f9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b60f9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5b114f)return;const _0x15dcb1=await _0x5b114f[_0x2b60f9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b60f9([0x6a,0x77,0x6b]),_0x219a82,{[_0x2b60f9([0x6e,0x61,0x6d,0x65])]:_0x2b60f9([0x45,0x43,0x44,0x53,0x41]),[_0x2b60f9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b60f9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b60f9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5b114f[_0x2b60f9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b60f9([0x6e,0x61,0x6d,0x65])]:_0x2b60f9([0x45,0x43,0x44,0x53,0x41]),[_0x2b60f9([0x68,0x61,0x73,0x68])]:{[_0x2b60f9([0x6e,0x61,0x6d,0x65])]:_0x2b60f9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x15dcb1,_0xe73634,_0x1753a2)||(_0x4c9478=!0x1);}}function _0x20dd8d(_0x8b8859){return _0x8b8859[_0x2b60f9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b60f9([0x65,0x79]))?JSON[_0x2b60f9([0x70,0x61,0x72,0x73,0x65])](_0x1a9d7e(_0x8b8859)):null;}function _0x1a9d7e(_0x3baaae){return window[_0x2b60f9([0x61,0x74,0x6f,0x62])](_0x3baaae[_0x2b60f9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b60f9([0x2b]))[_0x2b60f9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b60f9([0x2f])));}function _0x24cdfb(_0x370e50){let _0x5764f2=0x1505;function _0x589463(_0x4dbb6a){for(let _0x575ade=0x0;_0x575ade<_0x4dbb6a[_0x2b60f9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x575ade++){const _0x242265=_0x4dbb6a[_0x2b60f9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x575ade);_0x5764f2=(_0x5764f2<<0x5)+_0x5764f2+_0x242265,_0x5764f2&=_0x5764f2;}}function _0x538575(_0x680a75){Array[_0x2b60f9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x680a75)?_0x680a75[_0x2b60f9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x538575):_0x680a75&&typeof _0x680a75==_0x2b60f9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b60f9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x680a75)[_0x2b60f9([0x73,0x6f,0x72,0x74])]()[_0x2b60f9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x37ec42,_0x55b4ea])=>{_0x589463(_0x37ec42),_0x538575(_0x55b4ea);}):_0x589463(window[_0x2b60f9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x680a75));}return _0x538575(_0x370e50),_0x5764f2>>>0x0;}function _0x5047f0(_0x1e1410){return _0x1e1410[_0x2b60f9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b60f9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b60f9([0x30]));}function _0xe8124f(_0x1fd7cc){return _0x1fd7cc[_0x2b60f9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b60f9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b60f9([0x6a,0x6f,0x69,0x6e])]('');}function _0x38add8(){}function _0x2b60f9(_0x545013){return _0x545013['map'](_0x22b596=>String['fromCharCode'](_0x22b596))['join']('');}_0xd1b3f1(await _0x194555());}(this);}['_moveSelectionToFootnoteDefinition'](_0x500331){const {plugins:_0xf00ab4,editing:_0x1618a4,model:_0x393c73}=this['editor'],_0x1da418=_0xf00ab4['get'](f)['getFootnote'](_0x500331);return!!_0x1da418&&(_0x393c73['change'](_0x2318b5=>{_0x2318b5['setSelection'](_0x2318b5['createPositionAt'](_0x1da418['definition'],'end'));}),_0x1618a4['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x24345f){const {plugins:_0xc6abd7,editing:_0x51f128,model:_0x98caad}=this['editor'],_0x109b93=_0xc6abd7['get'](f)['getFootnote'](_0x24345f);return!!_0x109b93&&(_0x98caad['change'](_0x1df81b=>{_0x1df81b['setSelection'](_0x109b93['reference'],'on');}),_0x51f128['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x266769}=this['editor']['model'],_0x5ee777=this['editor']['config']['get']('footnotes.multiBlock');_0x266769['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x266769['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x266769['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5ee777?_0x266769['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x266769['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x266769['addChildCheck'](_0x45fbd0=>{for(const _0x2cf175 of _0x45fbd0)if('footnoteDefinition'===_0x2cf175['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x4b6cb1}=this,{conversion:_0x495b70,editing:_0x392731}=_0x4b6cb1,{t:t}=_0x4b6cb1['locale'];_0x495b70['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x226c95,{writer:_0x32d7bf,consumable:_0x206913})=>{const _0x42d2ab=_0x226c95['getChild'](0x0);if(!_0x42d2ab||!_0x42d2ab['is']('element','a'))return null;const _0x32ad91=_0x42d2ab['getAttribute']('href')||'';if(!_0x32ad91['startsWith']('#'))return null;const _0x4a0da3=_0x32ad91['replace'](/^#/,'');if(!_0x4a0da3)return null;_0x206913['consume'](_0x42d2ab,{'name':!0x0,'attributes':['href']});for(const {item:_0x5b9c3d}of _0x392731['view']['createRangeIn'](_0x42d2ab))_0x5b9c3d['is']('$textProxy')?_0x206913['consume'](_0x5b9c3d['textNode'],{'name':!0x0}):_0x5b9c3d['is']('element')&&_0x206913['consume'](_0x5b9c3d,{'name':!0x0});return _0x32d7bf['createElement']('footnoteRef',{'footnoteId':_0x4a0da3});}}),_0x495b70['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x214d0e,{writer:_0x57a050})=>b(_0x214d0e,_0x57a050)}),_0x495b70['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x548ec7,{writer:_0x1a5df1})=>{const _0x40a422=_0x548ec7['getAttribute']('footnoteCounter');return _0x4ffacd(b(_0x548ec7,_0x1a5df1),_0x1a5df1,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x40a422)});}});}['_defineDefinitionsConverters'](){const {editor:_0x1fbbb8}=this,{t:t}=_0x1fbbb8['locale'],{conversion:_0x21be95}=_0x1fbbb8;_0x21be95['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x21be95['for']('upcast')['add'](_0x4c31d3=>{_0x4c31d3['on']('element:ol',(_0x78eee0,_0x2fd75c,_0x44f647)=>{const _0x9a97e4=_0x2fd75c['viewItem'];if(!_0x9a97e4['hasClass']('footnotes-list')||!_0x2fd75c['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x44f647['consumable']['consume'](_0x9a97e4,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x2a75ff,modelCursor:_0xcd81fe}=_0x44f647['convertChildren'](_0x2fd75c['viewItem'],_0x2fd75c['modelCursor']);_0x2fd75c['modelRange']=_0x2a75ff,_0x2fd75c['modelCursor']=_0xcd81fe;}),_0x4c31d3['on']('element:hr',(_0x5b1e37,_0x48e212,_0x784239)=>{const _0x52a9c6=_0x48e212['viewItem'];_0x52a9c6['hasClass']('footnotes-divider')&&_0x48e212['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x784239['consumable']['consume'](_0x52a9c6,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x21be95['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x50629c,{writer:_0x404b00})=>D(_0x404b00)}),_0x21be95['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xe61c61,{writer:_0xb063fd})=>{const _0x28b327=D(_0xb063fd,{'data-footnotes-list-label':t('Footnotes')}),_0x306754=_0x4ffacd(_0x28b327,_0xb063fd,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0xb063fd['setCustomProperty']('footnotesDefinitions',!0x0,_0x306754),_0x306754;}});}['_defineDefinitionConverters'](){const {editor:_0x4c349e}=this,{conversion:_0x1c791f,locale:_0x256958}=_0x4c349e,_0x29f305=_0x4c349e['config']['get']('footnotes.multiBlock');_0x1c791f['for']('upcast')['add'](_0x10866e=>{_0x10866e['on']('element:li',(_0x22f7e2,_0x267a91,_0x2ab09e)=>{const _0x7f081=_0x267a91['viewItem'];if(!_0x7f081['hasClass']('footnote-definition')||!_0x7f081['getAttribute']('id'))return;const _0xedf85d=_0x7f081['parent'];if(!_0xedf85d['is']('element','ol')||!_0xedf85d['hasClass']('footnotes-list'))return;if(!_0x2ab09e['consumable']['test'](_0x7f081,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x48c831=_0x2ab09e['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x7f081['getAttribute']('id')});if(!_0x2ab09e['safeInsert'](_0x48c831,_0x267a91['modelCursor']))return;_0x2ab09e['consumable']['consume'](_0x7f081,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x187213=Array['from'](_0x7f081['getChildren']())['find'](_0x2815d0=>_0x2815d0['is']('element')&&_0x2815d0['hasClass']('footnote-content'));for(const _0x4c5444 of _0x7f081['getChildren']())_0x4c5444['is']('element')&&(_0x2ab09e['consumable']['consume'](_0x4c5444,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2ab09e['consumable']['consume'](_0x4c5444,{'name':!0x0,'classes':'footnote-content'}));if(_0x187213){if(_0x29f305)_0x2ab09e['convertChildren'](_0x187213,_0x48c831);else{const _0x3a2c10=_0x2ab09e['writer']['createElement']('footnoteInlineContent');_0x2ab09e['writer']['insert'](_0x3a2c10,_0x48c831),_0x2ab09e['convertChildren'](_0x187213,_0x3a2c10);}}_0x2ab09e['updateConversionResult'](_0x48c831,_0x267a91);});}),_0x1c791f['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5aa0f6,{writer:_0x136495})=>y(_0x5aa0f6,_0x136495,_0x256958,{'dataPipeline':!0x0})}),_0x1c791f['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x221359,{writer:_0xa476b0})=>y(_0x221359,_0xa476b0,_0x256958)});}['_defineBogusParagraphConverters'](){const {editor:_0x3a0212}=this,{conversion:_0x5062ae}=_0x3a0212;_0x3a0212['config']['get']('footnotes.multiBlock')?(_0x5062ae['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x5062ae['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3a0212['model']['document'],'change:data',()=>{!function(_0x1fd3cd,_0x192ea5){const _0x202ded=_0x1fd3cd['document']['differ'],_0x1ece97=new Set();for(const _0x4b4fd1 of _0x202ded['getChanges']()){const _0x9d4032='attribute'==_0x4b4fd1['type']?_0x4b4fd1['range']['start']['parent']:_0x4b4fd1['position']['parent'];_0x9d4032['is']('element','footnoteDefinition')&&_0x1ece97['add'](_0x9d4032);}for(const _0x4de151 of _0x1ece97['values']()){const _0x436a60=Array['from'](_0x4de151['getChildren']())['filter'](_0x31eca0=>v(_0x31eca0,_0x192ea5['mapper']));for(const _0x4c5e26 of _0x436a60)_0x192ea5['reconvertItem'](_0x4c5e26);}}(_0x3a0212['model'],_0x3a0212['editing']);})):(_0x5062ae['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x5062ae['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5167c7,{writer:_0x2523ec})=>{const _0x239863=_0x2523ec['createContainerElement']('span');return _0x2523ec['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x239863),_0x239863;}}));}['_defineKeyboardHandlers'](){const {editor:_0x324376}=this,{editing:_0x22625f,t:t}=_0x324376,_0x26deda=_0x324376['model']['document']['selection'];_0x324376['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x324376['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x22625f['view']['document'],'enter',(_0x2f6820,_0x484b67)=>{const _0x9d7b1f=function(_0x39632c){const _0x47d6d8=_0x39632c['getSelectedElement']();if(_0x47d6d8?.['is']('element','footnoteRef'))return _0x47d6d8;return null;}(_0x26deda);if(_0x9d7b1f){const _0x42d6ce=_0x9d7b1f['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x42d6ce),_0x484b67['preventDefault'](),_0x2f6820['stop']();}},{'context':_0x9676ee});}['_defineClickHandlers'](){const {editor:_0x5d588b}=this,{editing:_0x1d1bde}=_0x5d588b;_0x5d588b['editing']['view']['addObserver'](_0x3b2493),_0x5d588b['editing']['view']['addObserver'](_0x5dfef5);let _0x3a6580=!0x1;this['listenTo'](_0x1d1bde['view']['document'],'pointerdown',(_0x2db07a,_0x51caa9)=>{const {target:_0x5b776b}=_0x51caa9,_0xeccf52=_0x1d1bde['view']['document']['selection'];_0x3a6580=!!(_0x5b776b?.['is']('element','a')&&_0x5b776b['parent']?.['is']('element','sup')&&_0x5b776b['parent']['hasClass']('footnote'))&&_0xeccf52['getSelectedElement']()===_0x5b776b['parent'];},{'priority':'high'}),this['listenTo'](_0x1d1bde['view']['document'],'click',(_0x406df4,_0xb72dcf)=>{const {target:_0x2a701b}=_0xb72dcf;if(!_0x2a701b?.['is']('element','a'))return;if(_0x2a701b['parent']?.['is']('element','sup')&&_0x2a701b['parent']['hasClass']('footnote')&&!_0x3a6580)return void _0xb72dcf['preventDefault']();let _0x364026=_0x2a701b['getAttribute']('href');if(!_0x364026?.['startsWith']('#'))return;_0x364026=_0x364026['slice'](0x1);let _0x53b7c4=!0x1;(_0x364026['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x364026['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x364026))&&(_0x53b7c4=!0x0),_0x53b7c4&&(_0xb72dcf['preventDefault'](),_0x406df4['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x48e0f7}={}){return(_0x23a240,{writer:_0x379a51})=>{if(!g(_0x23a240))return null;if(!_0x48e0f7)return _0x379a51['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4560e5=_0x379a51['createContainerElement']('p');return _0x379a51['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4560e5),_0x4560e5;};}function g(_0x461a9a){const {parent:_0x395bdf}=_0x461a9a;if(!_0x395bdf?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x395bdf['childCount'])return!0x1;for(const _0x85b152 of _0x461a9a['getAttributeKeys']())if(!_0x85b152['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x85b152)return!0x1;return!0x0;}function v(_0x370772,_0x4b102){if(!_0x370772['is']('element','paragraph'))return!0x1;const _0x568f04=_0x4b102['toViewElement'](_0x370772);return!!_0x568f04&&g(_0x370772)!==_0x568f04['is']('element','span');}function Q(_0x1e3bde){return _0x9676ee(_0x1e3bde)&&_0x1e3bde['is']('containerElement')&&!!_0x1e3bde['getCustomProperty']('footnotesDefinitions');}function D(_0x5b50ee,_0x557eed={}){const _0x27d6cf=_0x5b50ee['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x116240=_0x5b50ee['createContainerElement']('ol',{'class':'footnotes-list'},_0x5b50ee['createSlot']());return _0x5b50ee['createContainerElement']('div',{'class':'footnotes',..._0x557eed},[_0x27d6cf,_0x116240]);}function b(_0x5bb6c9,_0x26e3d9){const _0x423bfc=_0x5bb6c9['getAttribute']('footnoteId'),_0x496556=_0x5bb6c9['getAttribute']('footnoteCounter'),_0x26dc80=_0x26e3d9['createUIElement']('a',{'href':'#'+_0x423bfc},function(_0x50d594){const _0x3a5e0c=this['toDomElement'](_0x50d594);return _0x3a5e0c['textContent']=_0x496556,_0x3a5e0c;}),_0x22d25e=_0x26e3d9['createContainerElement']('sup',{'id':'ref-'+_0x423bfc,'class':'footnote'},[_0x26dc80]);return _0x22d25e['getFillerOffset']=()=>null,_0x22d25e;}function y(_0x11afb0,_0x5b1f44,_0x12e81f,{dataPipeline:_0x1c9666}={}){const {t:t}=_0x12e81f,_0x383195=_0x11afb0['getAttribute']('footnoteId'),_0xba20ab=_0x5b1f44['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x383195},function(_0x277b7f){const _0x5072ef=this['toDomElement'](_0x277b7f);return _0x5072ef['innerText']='^',_0x5072ef;}),_0x44e6f2=_0x1c9666?_0x5b1f44['createContainerElement']('div',{'class':'footnote-content'}):_0x4c2bbf(_0x5b1f44['createEditableElement']('div',{'class':'footnote-content'}),_0x5b1f44,{'label':t('Footnote\x20content.')});return _0x5b1f44['insert'](_0x5b1f44['createPositionAt'](_0x44e6f2,0x0),_0x5b1f44['createSlot']()),_0x5b1f44['createContainerElement']('li',{'class':'footnote-definition','id':_0x383195},[_0xba20ab,_0x44e6f2]);}class e extends _0x5009a4{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0xf51cc5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x2b585d}=this,{plugins:_0xc35dce,model:_0x495205}=_0x2b585d,_0x5a2b9e=_0xc35dce['get'](_0xf51cc5),_0x13c19a=_0xc35dce['get'](f);this['listenTo'](_0x5a2b9e,'outputTransformation',(_0x1e01c5,_0x339bb2)=>{const _0x21cbb8=l(_0x495205['createRangeIn'](_0x339bb2['content']));if(!_0x21cbb8['length'])return;const _0x4e8c60=_0x13c19a['getFootnotes'](),_0x146614=_0x21cbb8['reduce']((_0x3eaaf7,_0x275b3f)=>{const _0x8874b4=_0x4e8c60['find'](_0x38e226=>_0x38e226['id']===_0x275b3f);if(_0x8874b4){const _0x13a4f3=_0x2b585d['data']['toView'](_0x8874b4['definition'],{'isClipboardPipeline':!0x0}),_0x5dd22d=_0x2b585d['data']['htmlProcessor']['toData'](_0x13a4f3);_0x3eaaf7[_0x8874b4['id']]=_0x5dd22d;}return _0x3eaaf7;},Object['create'](null));_0x339bb2['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x146614));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x451899}=this,{model:_0x2b7cd8,plugins:_0x335e50}=_0x451899,{view:_0x2d0bed}=_0x451899['editing'],_0xc7009=_0x335e50['get'](_0xf51cc5),_0x351d35=_0x335e50['get'](f),_0x5c758a=_0x451899['config']['get']('footnotes.multiBlock');let _0x24e240=null;this['listenTo'](_0x2d0bed['document'],'clipboardInput',(_0x1fa251,_0x24d69b)=>{const _0x5758fe=_0x24d69b['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x24e240=_0x5758fe?JSON['parse'](_0x5758fe):null;}),this['listenTo'](_0xc7009,'contentInsertion',(_0xc3cb55,_0x2b07ef)=>{const _0x381641=_0x2b07ef['sourceEditorId']===this['editor']['id'];_0x381641&&'drop'===_0x2b07ef['method']||_0x2b7cd8['change'](_0xb996cc=>{let _0xcb729a=_0x351d35['getFootnotesDefinitionsObjectElement']();const _0x1d5f9e=!!_0xcb729a&&Array['from'](_0x2b7cd8['document']['selection']['getSelectedBlocks']())['includes'](_0xcb729a);if(!_0x24e240&&function(_0x34374f){for(const {item:_0x43c039}of _0x34374f)if(_0x43c039['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x2b7cd8['createRangeIn'](_0x2b07ef['content']))&&(_0x24e240=function(_0x44c64e,_0x25cd8c){const _0x211bf7=c(_0x44c64e,_0x25cd8c);if(!_0x211bf7)return null;const _0x3ac473=Object['create'](null);for(const _0x1ae411 of _0x211bf7['getChildren']())_0x1ae411['is']('element','footnoteDefinition')&&_0x1ae411['hasAttribute']('footnoteId')&&(_0x3ac473[_0x1ae411['getAttribute']('footnoteId')]=_0x44c64e['cloneElement'](_0x1ae411,!0x0));return Object['keys'](_0x3ac473)['length']?_0x3ac473:null;}(_0xb996cc,_0x2b07ef['content'])),(_0xcb729a&&!_0x1d5f9e||!_0xcb729a&&!_0x24e240)&&function(_0x55d1e4,_0x4ee411){const _0xdf0c7=[];for(const {item:_0x15b1fe}of _0x55d1e4['createRangeIn'](_0x4ee411))_0x15b1fe['is']('element','footnotesDefinitions')&&_0xdf0c7['push'](_0x15b1fe);for(const _0x25892a of _0xdf0c7)_0x55d1e4['remove'](_0x25892a);}(_0xb996cc,_0x2b07ef['content']),!_0x24e240)return;const {selection:_0x26adfd}=_0x2b7cd8['document'],_0x34c9b0=_0x26adfd['getFirstRange']()['root'];_0xcb729a&&!_0x1d5f9e||(_0xcb729a=c(_0xb996cc,_0x2b07ef['content']),_0xcb729a||=_0x351d35['_insertEmptyFootnotesDefinitionsContainer'](_0xb996cc,_0x34c9b0));const _0x1fe5c2=Array['from'](_0x26adfd['getRanges']())['flatMap'](l),_0x22ddf0=function(_0x2760d0,_0xd096c2,_0x2cc447){const _0x4a660f=Object['create'](null);for(const {item:_0x3fd113}of _0x2760d0['createRangeIn'](_0xd096c2))if(_0x3fd113['is']('element','footnoteRef')){const _0x45ec62=_0x3fd113['getAttribute']('footnoteId');if(!_0x2cc447(_0x45ec62))continue;_0x4a660f[_0x45ec62]||(_0x4a660f[_0x45ec62]=_0x25549a()),_0x2760d0['setAttribute']('footnoteId',_0x4a660f[_0x45ec62],_0x3fd113);}return _0x4a660f;}(_0xb996cc,_0x2b07ef['content'],_0x1014cb=>{if(!_0x381641)return!0x0;return!!_0x351d35['getFootnote'](_0x1014cb)&&!_0x1fe5c2['includes'](_0x1014cb);});for(const [_0x73d6ba,_0x3cfaaf]of Object['entries'](_0x24e240)){const _0x5620ad=_0x22ddf0[_0x73d6ba]||_0x73d6ba;let _0xef5448;if('string'!=typeof _0x3cfaaf)_0xef5448=_0x3cfaaf,_0x5620ad!==_0x73d6ba&&_0xb996cc['setAttribute']('footnoteId',_0x5620ad,_0xef5448);else{_0xef5448=_0xb996cc['createElement']('footnoteDefinition',{'footnoteId':_0x5620ad});const _0x53c848=_0x451899['data']['htmlProcessor']['toView'](_0x3cfaaf);let _0xd651a6;if(_0x5c758a)_0xd651a6=_0x451899['data']['toModel'](_0x53c848,_0xef5448);else{_0xd651a6=_0xb996cc['createElement']('footnoteInlineContent');const _0x4b8419=_0x451899['data']['toModel'](_0x53c848,_0xd651a6);_0xb996cc['insert'](_0x4b8419,_0xd651a6);}_0xb996cc['append'](_0xd651a6,_0xef5448);}_0xb996cc['insert'](_0xef5448,_0xcb729a,'end');}_0x24e240=null;});});}}function c(_0x1abb8a,_0x30ca65){for(const {item:_0x30cbf3}of _0x1abb8a['createRangeIn'](_0x30ca65))if(_0x30cbf3['is']('element','footnotesDefinitions'))return _0x30cbf3;return null;}function l(_0x2f34c2){const _0x59cce2=new Set();for(const {item:_0x584e70}of _0x2f34c2)_0x584e70['is']('element','footnoteRef')&&_0x59cce2['add'](_0x584e70['getAttribute']('footnoteId'));return Array['from'](_0x59cce2);}class i extends _0x5009a4{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2af071}=this,{componentFactory:_0x4c4c95}=_0x2af071['ui'];_0x4c4c95['add']('insertFootnote',E(_0x2af071,_0x563ea8)),_0x4c4c95['add']('menuBar:insertFootnote',E(_0x2af071,_0x1aa535)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x484355=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x578fc0;for(const _0x3b47eb in _0x484355){const _0x133038=_0x3b47eb,_0x27bd9c=_0x484355[_0x133038];if('footnotesLicenseKeyValid'==_0x27bd9c||'footnotesLicenseKeyInvalid'==_0x27bd9c||'footnotesLicenseKeyExpired'==_0x27bd9c||'footnotesLicenseKeyDomainLimit'==_0x27bd9c||'footnotesLicenseKeyNotAllowed'==_0x27bd9c||'footnotesLicenseKeyEvaluationLimit'==_0x27bd9c||'footnotesLicenseKeyUsageLimit'==_0x27bd9c){delete _0x484355[_0x133038],_0x578fc0=_0x27bd9c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x578fc0&&_0x484355['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x578fc0&&_0x484355['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x578fc0&&_0x484355['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x578fc0&&_0x484355['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x578fc0&&_0x484355['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x578fc0&&_0x484355['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x2b7797,_0x84c2ee){const _0x3422b8=_0x2b7797['commands']['get']('insertFootnote');return _0x286b3b=>{const {t:t}=_0x286b3b,_0x31ea9f=new _0x84c2ee(_0x286b3b),_0x32b4f1=_0x31ea9f instanceof _0x1aa535;return _0x31ea9f['bind']('isEnabled')['to'](_0x3422b8,'isEnabled'),_0x31ea9f['set']({'label':t(_0x32b4f1?'Footnote':'Insert\x20footnote'),'icon':_0x3b8fba,'tooltip':!0x0}),_0x31ea9f['on']('execute',()=>{_0x3422b8['execute'](),_0x2b7797['editing']['view']['focus']();}),_0x31ea9f;};}class lt extends _0x5009a4{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 _0x377a0b{['refresh'](){const {editor:_0x52c641}=this,_0x5b7371=_0x52c641['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x5b7371,this['value']=_0x5b7371?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x422ee1}){const {editor:_0xf5a097}=this,_0x18a367=_0xf5a097['plugins']['get'](f),_0xcbc169=_0x18a367['getFootnotesDefinitionsObjectElement']();_0xcbc169&&W['includes'](_0x422ee1)&&_0xf5a097['model']['change'](_0x4c7ce5=>{_0x4c7ce5['setAttribute']('footnotesListStyle',_0x422ee1,_0xcbc169),_0x18a367['_updateFootnotesCounters'](_0x4c7ce5);});}}class C extends _0x377a0b{['refresh'](){const {editor:_0x4cc736}=this,_0x46f80b=_0x4cc736['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x46f80b,this['value']=_0x46f80b?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x270f19}){const {editor:_0x553c01}=this,_0x5d46f3=_0x553c01['plugins']['get'](f),_0x59755f=_0x5d46f3['getFootnotesDefinitionsObjectElement']();_0x59755f&&Number['isInteger'](_0x270f19)&&_0x553c01['model']['change'](_0x4d8693=>{_0x4d8693['setAttribute']('footnotesListStart',_0x270f19,_0x59755f),_0x5d46f3['_updateFootnotesCounters'](_0x4d8693);});}}class P extends _0x5009a4{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3f3c6b}=this;_0x3f3c6b['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x3f3c6b['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x3f3c6b['commands']['add']('footnotesStyle',new S(_0x3f3c6b)),_0x3f3c6b['commands']['add']('footnotesStart',new C(_0x3f3c6b)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x36e52e}=this,{schema:_0x5c18e3}=_0x36e52e['model'];_0x5c18e3['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x448afc}=this,{conversion:_0x3206d7,model:_0x506ead}=_0x448afc,{schema:_0x44b31c}=_0x506ead;_0x3206d7['for']('upcast')['add'](_0x4a2b86=>{_0x4a2b86['on']('element:ol',(_0x2e5f42,_0x2db37b,_0x3453e2)=>{const _0x265e81=_0x2db37b['viewItem'],_0x50f8e4=_0x2db37b['modelCursor']?.['parent'];_0x265e81['hasClass']('footnotes-list')&&_0x50f8e4?.['is']('element','footnotesDefinitions')&&(function(_0x3334a3,_0x5f2114,_0x47e629,_0x1145e5){if(!_0x1145e5['checkAttribute'](_0x5f2114,'footnotesListStart'))return;let _0x4ec192=0x1;const _0x499465=_0x47e629['consumable']['consume'](_0x3334a3,{'attributes':'start'});if(_0x499465){const _0x54ff56=Number['parseInt'](_0x3334a3['getAttribute']('start'),0xa);Number['isNaN'](_0x54ff56)||(_0x4ec192=_0x54ff56);}!_0x499465&&_0x5f2114['hasAttribute']('footnotesListStart')||_0x47e629['writer']['setAttribute']('footnotesListStart',_0x4ec192,_0x5f2114);}(_0x265e81,_0x50f8e4,_0x3453e2,_0x44b31c),function(_0x498d5e,_0xd356a9,_0x1bf938,_0xb271f9){if(!_0xb271f9['checkAttribute'](_0xd356a9,'footnotesListStyle'))return;let _0x467e87='decimal',_0x347ebc=!0x1;if(_0x1bf938['consumable']['consume'](_0x498d5e,{'attributes':'type'})){const _0xd4d7bb={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x498d5e['getAttribute']('type')];_0xd4d7bb&&(_0x467e87=_0xd4d7bb),_0x347ebc=!0x0;}_0x1bf938['consumable']['consume'](_0x498d5e,{'styles':'list-style-type'})&&(_0x467e87=function(_0x408b52){switch(_0x408b52){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x408b52;}}(_0x498d5e['getStyle']('list-style-type')),_0x347ebc=!0x0),!_0x347ebc&&_0xd356a9['hasAttribute']('footnotesListStyle')||_0x1bf938['writer']['setAttribute']('footnotesListStyle',_0x467e87,_0xd356a9);}(_0x265e81,_0x50f8e4,_0x3453e2,_0x44b31c));});}),_0x3206d7['for']('downcast')['add'](_0x2a24b3=>{_0x2a24b3['on']('attribute:footnotesListStart:footnotesDefinitions',(_0xced820,_0xd1ca3a,_0x132d6f)=>{if(!_0x132d6f['consumable']['consume'](_0xd1ca3a['item'],_0xced820['name']))return;const _0x142b9f=M(_0xd1ca3a['item'],_0x132d6f['mapper']),{attributeNewValue:_0x2f4edd}=_0xd1ca3a;null==_0x2f4edd||0x1===_0x2f4edd?_0x132d6f['writer']['removeAttribute']('start',_0x142b9f):_0x132d6f['writer']['setAttribute']('start',String(_0x2f4edd),_0x142b9f);}),_0x2a24b3['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x1a2960,_0x2989a6,_0x2a49f2)=>{if(!_0x2a49f2['consumable']['consume'](_0x2989a6['item'],_0x1a2960['name']))return;const _0x5a0771=M(_0x2989a6['item'],_0x2a49f2['mapper']),{attributeNewValue:_0x54a6a8}=_0x2989a6;_0x54a6a8&&'decimal'!==_0x54a6a8?_0x2a49f2['writer']['setStyle']('list-style-type',_0x54a6a8,_0x5a0771):_0x2a49f2['writer']['removeStyle']('list-style-type',_0x5a0771);});});}['_definePostfixer'](){const {editor:_0x203c06}=this,{model:_0x24a71d}=_0x203c06,_0x53dbb6=_0x203c06['plugins']['get'](f),_0x2396fd=this['_getDefaultListStyle'](),_0x459061=this['_getDefaultStartIndex']();_0x24a71d['document']['registerPostFixer'](_0x322907=>{const _0x396071=_0x24a71d['document']['differ']['getChanges']();let _0x538f74=!0x1;for(const _0x5ac4cd of _0x396071){if('insert'!==_0x5ac4cd['type']||'$text'===_0x5ac4cd['name'])continue;const _0x1f40a2=_0x24a71d['createRangeOn'](_0x5ac4cd['position']['nodeAfter']);for(const _0x135053 of _0x1f40a2['getItems']())_0x135053['is']('element','footnotesDefinitions')&&(!_0x135053['hasAttribute']('footnotesListStart')&&_0x24a71d['schema']['checkAttribute'](_0x135053,'footnotesListStart')&&(_0x322907['setAttribute']('footnotesListStart',_0x459061,_0x135053),_0x538f74=!0x0),!_0x135053['hasAttribute']('footnotesListStyle')&&_0x24a71d['schema']['checkAttribute'](_0x135053,'footnotesListStyle')&&(_0x322907['setAttribute']('footnotesListStyle',_0x2396fd,_0x135053),_0x538f74=!0x0));}return _0x538f74&&_0x53dbb6['_updateFootnotesCounters'](_0x322907),_0x538f74;});}['_defineFormatter'](){const {editor:_0x486e2d}=this;_0x486e2d['plugins']['get'](f)['setFootnoteFormatter'](_0x5aa04f=>this['_formatFootnoteListValue'](_0x5aa04f));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x41340f,value:_0x84efef,digits:_0x16f223}){const _0x5b9b0a=_0x41340f['getAttribute']('footnotesListStyle'),_0x5dd4f0=_0x41340f['getAttribute']('footnotesListStart'),_0x107d44=Math['floor'](_0x84efef)+(_0x5dd4f0??0x1)-0x1;switch(_0x5b9b0a){case'decimal-leading-zero':return function(_0x58cfe0,_0x4a1267){return String(_0x58cfe0)['padStart'](_0x4a1267,'0');}(_0x107d44,Math['max'](0x2,_0x16f223));case'lower-alpha':case'lower-latin':return N(_0x107d44,!0x1);case'upper-alpha':case'upper-latin':return N(_0x107d44,!0x0);case'lower-roman':return X(_0x107d44,!0x1);case'upper-roman':return X(_0x107d44,!0x0);default:return String(_0x107d44);}}}function M(_0x3f1841,_0x1aee69){const _0x2fcf38=_0x1aee69['toViewElement'](_0x3f1841);return Array['from'](_0x2fcf38['getChildren']())['find'](_0x2bf30c=>_0x2bf30c['is']('element','ol')&&_0x2bf30c['hasClass']('footnotes-list'));}function N(_0x1b5a1f,_0x497a84){let _0x2ca6ac='',_0x2b5c44=_0x1b5a1f;for(;_0x2b5c44>0x0;){const _0x3f7ff2=(_0x2b5c44-0x1)%0x1a;_0x2ca6ac=String['fromCharCode'](0x61+_0x3f7ff2)+_0x2ca6ac,_0x2b5c44=Math['floor']((_0x2b5c44-0x1)/0x1a);}return _0x497a84?_0x2ca6ac['toUpperCase']():_0x2ca6ac;}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(_0x3fb5a2,_0x2969c5){let _0x575a15='',_0x14920e=_0x3fb5a2;for(const {value:_0x5f13e6,numeral:_0x534964}of V)for(;_0x14920e>=_0x5f13e6;)_0x575a15+=_0x534964,_0x14920e-=_0x5f13e6;return _0x2969c5?_0x575a15:_0x575a15['toLowerCase']();}class J extends _0x1f1e08{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x30a9c6();['focusCycler'];constructor(_0x185b40,{styleButtonViews:_0x1f3da3,styleGridAriaLabel:_0x2900ce}){super(_0x185b40),(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'](_0x1f3da3,_0x2900ce),[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 _0x5787d6 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x5787d6['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 _0x192efb=_0x1081e0=>_0x1081e0['stopPropagation']();this['keystrokes']['set']('arrowright',_0x192efb),this['keystrokes']['set']('arrowleft',_0x192efb),this['keystrokes']['set']('arrowup',_0x192efb),this['keystrokes']['set']('arrowdown',_0x192efb);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x55822a,_0x55b135){const _0x104cda=new _0x1f1e08(this['locale']);return _0x104cda['children']=_0x104cda['createCollection'](),_0x104cda['children']['addMany'](_0x55822a),_0x104cda['setTemplate']({'tag':'div','attributes':{'aria-label':_0x55b135,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x104cda['children']}),_0x104cda['children']['delegate']('execute')['to'](this),_0x104cda['focus']=function(){for(const _0x1b02a1 of this['children'])if(_0x1b02a1 instanceof _0x563ea8&&_0x1b02a1['isOn'])return void _0x1b02a1['focus']();this['children']['first']['focus']();},_0x104cda['focusTracker']=new rt(),_0x104cda['keystrokes']=new nt(),_0x104cda['render'](),_0x104cda['keystrokes']['listenTo'](_0x104cda['element']),this['children']['add'](_0x104cda),_0x104cda;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x420409=this['_createStartIndexPropertyView'](),_0xd4d361=[_0x420409],_0x1986c8=new it(this['locale'],_0xd4d361);return _0x1986c8['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x1986c8['buttonView']['bind']('isEnabled')['toMany'](_0xd4d361,'isEnabled',(..._0x3eac0b)=>_0x3eac0b['some'](_0x5e5599=>_0x5e5599)),_0x1986c8['buttonView']['on']('change:isEnabled',(_0x3b334c,_0x1f0a37,_0x4a4dae)=>{_0x4a4dae||(_0x1986c8['isCollapsed']=!0x0);}),this['children']['add'](_0x1986c8),[_0x420409,_0x1986c8];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x5d20cb=new et(this['locale'],ot);return _0x5d20cb['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x5d20cb['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x5d20cb['fieldView']['on']('input',()=>{const _0x3d4b16=_0x5d20cb['fieldView']['element'],_0x507188=_0x3d4b16['valueAsNumber'];Number['isNaN'](_0x507188)?_0x5d20cb['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x3d4b16['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x507188}):_0x5d20cb['errorText']=t(_0x507188<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x5d20cb;}}class j extends _0x5009a4{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x5b18ee,_0x2e8462];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5a2bce}=this,{componentFactory:_0xddddd4}=_0x5a2bce['ui'];_0x5a2bce['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0xddddd4['add']('footnotesStyle',function(_0x56e62f){return _0x3bc8b1=>{const {t:t}=_0x3bc8b1,_0x30ee70=_0x56e62f['commands']['get']('footnotesStyle'),_0x4e4746=_0x57c530(_0x3bc8b1),{buttonView:_0x530418}=_0x4e4746;return _0x4e4746['class']='ck-footnotes-styles-dropdown',_0x4e4746['bind']('isEnabled')['to'](_0x30ee70,'isEnabled'),_0x530418['set']({'label':t('Footnotes\x20style'),'icon':_0x3b8fba,'tooltip':!0x0}),_0x4e4746['once']('change:isOpen',()=>{const _0x3221d7=function({editor:_0x518a08,dropdownView:_0x40b5b2}){const {t:t}=_0x518a08['locale'],_0x57601d=t('Footnotes\x20definitions\x20styles'),_0x1a21b3=function(_0x3f2525){const t=_0x3f2525['locale']['t'],_0x364da2=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x502fc6},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x35e218},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x261eb7},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x3f68b7},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x5b5f11},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x4d576a}];return _0x364da2['map'](function(_0xfb44f1){const _0xe17994=_0xfb44f1['locale'];return({label:_0x4633e1,icon:_0x56589e,tooltip:_0xd93b62,style:_0x4d9cb1})=>{const _0x1a788b=_0xfb44f1['commands']['get']('footnotesStyle'),_0x12b1f3=new _0x563ea8(_0xe17994);return _0x12b1f3['set']({'label':_0x4633e1,'icon':_0x56589e,'tooltip':_0xd93b62}),_0x12b1f3['bind']('isOn')['to'](_0x1a788b,'value',_0x2d7ce7=>_0x2d7ce7===_0x4d9cb1),_0x12b1f3['bind']('isEnabled')['to'](_0x1a788b,'isEnabled'),_0x12b1f3['on']('execute',()=>{_0xfb44f1['execute']('footnotesStyle',{'value':_0x4d9cb1}),_0xfb44f1['editing']['view']['focus']();}),_0x12b1f3;};}(_0x3f2525));}(_0x518a08),_0x37740e=new J(_0x518a08['locale'],{'styleGridAriaLabel':_0x57601d,'styleButtonViews':_0x1a21b3}),_0x60db67=_0x518a08['commands']['get']('footnotesStart');return _0x37740e['startIndexFieldView']['bind']('isEnabled')['to'](_0x60db67),_0x37740e['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x60db67),_0x37740e['on']('footnotesListStart',(_0x33c683,_0xd3bff4)=>{_0x518a08['execute']('footnotesStart',{'value':_0xd3bff4['startIndex']});}),_0x37740e['delegate']('execute')['to'](_0x40b5b2),_0x37740e;}({'editor':_0x56e62f,'dropdownView':_0x4e4746});_0x4e4746['panelView']['children']['add'](_0x3221d7);}),_0x4e4746;};}(_0x5a2bce));}['afterInit'](){const {editor:_0x1abe12}=this,{t:t}=_0x1abe12['locale'],_0x218d83=_0x1abe12['plugins']['get'](_0x2e8462),{defaultPositions:_0x4936d8}=_0x17eed1;_0x218d83['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x1abe12['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x12422c=>{let _0xc738ee=_0x12422c['getFirstPosition']()?.['parent'];return _0xc738ee?.['is']('$text')&&(_0xc738ee=_0xc738ee['parent']),_0xc738ee?.['is']('element')?_0xc738ee['findAncestor'](Q):null;},'positions':[_0x4936d8['southArrowNorth'],_0x4936d8['southArrowNorthMiddleWest'],_0x4936d8['southArrowNorthMiddleEast'],_0x4936d8['southArrowNorthWest'],_0x4936d8['southArrowNorthEast'],_0x4936d8['northArrowSouth'],_0x4936d8['northArrowSouthMiddleWest'],_0x4936d8['northArrowSouthMiddleEast'],_0x4936d8['northArrowSouthWest'],_0x4936d8['northArrowSouthEast'],_0x4936d8['viewportStickyNorth']]});}}class ft extends _0x5009a4{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 _0x25c422,Command as _0x463e8d}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x1c46e6,isWidget as _0x4ffe7e,toWidgetEditable as _0x350ef6,WidgetToolbarRepository as _0x32e20a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x116418,logWarning as _0x5accab,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x309d51,ClickObserver as _0x3ff2ff}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x11df15}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x30ee12,ButtonView as _0x1ada6b,View as _0x16393e,ViewCollection as _0x45189c,FocusCycler as _0xf78368,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x5dce42,BalloonPanelView as _0x172e76,createDropdown as _0x121468}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x3af843,IconListStyleDecimal as _0x5e3521,IconListStyleDecimalLeadingZero as _0x4bd19e,IconListStyleLowerRoman as _0x3e81bd,IconListStyleUpperRoman as _0x365514,IconListStyleLowerLatin as _0x4637bf,IconListStyleUpperLatin as _0x14a30e}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x42254e,_0x11d05f){this['_model']=_0x42254e,this['_elementName']=_0x11d05f['elementName'],this['_getElementKey']=_0x11d05f['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x3697fe){const _0x26304e=new Set(),_0x393c11=new Map();for(const _0x50c622 of _0x3697fe){if('insert'===_0x50c622['type']&&'$text'!==_0x50c622['name']&&_0x50c622['position']['nodeAfter']){const _0x3476d8=this['_model']['createRangeOn'](_0x50c622['position']['nodeAfter']);for(const _0x302abb of _0x3476d8['getItems']()){if(!_0x302abb['is']('element',this['_elementName']))continue;const _0x17bb3c=this['_getElementKey'](_0x302abb);_0x393c11['has'](_0x17bb3c)||_0x393c11['set'](_0x17bb3c,[]),_0x393c11['get'](_0x17bb3c)['push'](_0x302abb);}}if('remove'===_0x50c622['type']&&_0x50c622['name']===this['_elementName']){const _0x1bc652=this['_getElementKey']({'getAttribute':_0x5dcf34=>_0x50c622['attributes']['get'](_0x5dcf34)});_0x26304e['add'](_0x1bc652);}}for(const [_0x1658cd,_0x435c53]of this['_trackedElements'])'$graveyard'===_0x435c53['root']['rootName']&&_0x26304e['add'](_0x1658cd);for(const _0x88a46f of _0x26304e)this['_trackedElements']['delete'](_0x88a46f);for(const [_0x224b80,_0x44f2b5]of _0x393c11)this['_trackedElements']['set'](_0x224b80,_0x44f2b5[_0x44f2b5['length']-0x1]);const _0x210f2a=new Set();for(const [_0x4c766e,_0x15e593]of _0x393c11)_0x26304e['has'](_0x4c766e)&&(_0x210f2a['add'](_0x15e593[0x0]),_0x15e593['length']>0x1?_0x393c11['set'](_0x4c766e,_0x15e593['slice'](0x1)):_0x393c11['delete'](_0x4c766e),_0x26304e['delete'](_0x4c766e));return{'removed':Array['from'](_0x26304e),'inserted':Array['from'](_0x393c11['values']())['flat'](),'moved':Array['from'](_0x210f2a)};}}class f extends _0x25c422{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x547e94){super(_0x547e94),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x5bae91=>_0x5bae91['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x20901d=>_0x20901d['getAttribute']('footnoteId')});}['init'](){const {editor:_0x39243a}=this,{model:_0x3106ac,data:_0x4ca52d}=_0x39243a;_0x3106ac['document']['registerPostFixer'](_0x176593=>{const _0x5b5298=_0x3106ac['document']['differ']['getChanges']();let _0x32c94b=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x176593,_0x5b5298)&&(_0x32c94b=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x176593,_0x5b5298)&&(_0x32c94b=!0x0),this['_handleFootnoteReferencesChanges'](_0x176593,_0x5b5298)&&(_0x32c94b=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x176593)&&(_0x32c94b=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x176593)&&(_0x32c94b=!0x0),this['_sortFootnoteDefinitions'](_0x176593)&&(_0x32c94b=!0x0),_0x32c94b;}),this['listenTo'](_0x3106ac['document'],'change:data',()=>{_0x3106ac['enqueueChange']({'isUndoable':!0x1},_0x2ef923=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x2ef923);});},{'priority':'low'}),this['listenTo'](_0x4ca52d,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x1c7307){return this['_footnotes']['find'](_0x32f540=>_0x32f540['id']===_0x1c7307)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x19725f){this['_footnoteFormatter']=_0x19725f;}['_updateFootnotesCounters'](_0x20ec52,_0x49da16=0x0){let _0x300cac=!0x1;for(let _0x2d84ce=_0x49da16;_0x2d84ce<this['_footnotes']['length'];_0x2d84ce++)this['_updateFootnoteRefCounter'](_0x20ec52,_0x2d84ce)&&(_0x300cac=!0x0);return _0x300cac;}['_insertEmptyFootnotesDefinitionsContainer'](_0x2fa441,_0x10b498){const _0x61dba7=_0x2fa441['createElement']('footnotesDefinitions',{});return _0x2fa441['append'](_0x61dba7,_0x10b498),this['_footnotesDefinitions']=_0x61dba7,_0x61dba7;}['_ensureFootnotesDefinitionsContainerExists'](_0x99d0c0){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x9ffb37=this['_footnotes'][0x0]['reference']['root'],_0x4e1f4e=this['_insertEmptyFootnotesDefinitionsContainer'](_0x99d0c0,_0x9ffb37);for(const _0x5db004 of this['_footnotes'])_0x5db004['definition']['parent']||_0x99d0c0['insert'](_0x5db004['definition'],_0x4e1f4e,'end');this['_updateFootnotesCounters'](_0x99d0c0);}['_handleFootnotesDefinitionsObjectChanges'](_0x253d8a,_0x465870){let _0x4bec12=!0x1;const {inserted:_0x2d6213,removed:_0x49993c,moved:_0x9f21ef}=this['_footnoteDefsContainerTracker']['getChanges'](_0x465870);if(_0x9f21ef['length']&&(this['_footnotesDefinitions']=_0x9f21ef[0x0]),_0x2d6213['length']){if(_0x2d6213['length']>0x1||this['_footnotesDefinitions']&&_0x2d6213['some'](_0x1373e0=>_0x1373e0!==this['_footnotesDefinitions'])){const _0xca2566=_0x253d8a['createElement']('footnotesDefinitions',{}),_0x58ab2f=[];this['_footnotesDefinitions']&&_0x58ab2f['push'](this['_footnotesDefinitions']),_0x58ab2f['push'](..._0x2d6213),_0x253d8a['insert'](_0xca2566,_0x58ab2f[0x0],'before');for(const _0x17b58e of _0x58ab2f)_0x253d8a['move'](_0x253d8a['createRangeIn'](_0x17b58e),_0x253d8a['createPositionAt'](_0xca2566,'end')),_0x253d8a['remove'](_0x17b58e);this['_footnotesDefinitions']=_0xca2566,this['_updateFootnotesCounters'](_0x253d8a),_0x4bec12=!0x0;}else this['_footnotesDefinitions']=_0x2d6213[0x0];}if(_0x49993c['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x5ee1f7 of this['_footnotes'])_0x253d8a['remove'](_0x5ee1f7['reference']),_0x4bec12=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x4bec12;}['_handleFootnoteDefinitionsChanges'](_0x215099,_0x5b3622){let _0x2af737=!0x1;const _0x31053a=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0xf90042,moved:_0x2e3716}=this['_footnoteDefsTracker']['getChanges'](_0x5b3622);for(const _0x27fee1 of[..._0x2e3716,..._0xf90042]){const _0x5c81fc=_0x27fee1['getAttribute']('footnoteId'),_0x330c3f=this['getFootnote'](_0x5c81fc);_0x330c3f&&(_0x330c3f['definition']=_0x27fee1),_(_0x215099,_0x31053a,_0x27fee1)&&(_0x2af737=!0x0);}return _0x2af737;}['_handleFootnoteReferencesChanges'](_0x3f2460,_0x15eeb2){let _0x27d5fc=!0x1;const {removed:_0x456ffa,inserted:_0x3d0794,moved:_0x3dfae5}=this['_footnoteRefsTracker']['getChanges'](_0x15eeb2);for(const _0x172c60 of _0x456ffa)this['_handleRemoveFootnoteReferenceById'](_0x3f2460,_0x172c60)&&(_0x27d5fc=!0x0);for(const _0x3d5cc3 of _0x3d0794)this['_handleInsertedFootnoteReference'](_0x3f2460,_0x3d5cc3)&&(_0x27d5fc=!0x0);for(const _0x13e77d of _0x3dfae5)this['_handleMovedFootnoteReference'](_0x3f2460,_0x13e77d)&&(_0x27d5fc=!0x0);return _0x27d5fc;}['_handleFootnotesDefinitionsObjectSync'](_0x5c838c){if(!this['_footnotesDefinitions'])return!0x1;let _0x1a50d1=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x77a27e=[];for(const _0x1344f5 of this['_footnotesDefinitions']['getChildren']()){const _0x52220c=_0x1344f5['getAttribute']('footnoteId');this['getFootnote'](_0x52220c)||(_0x77a27e['unshift'](_0x1344f5),_0x1a50d1=!0x0);}for(const _0x4c151e of _0x77a27e)_0x5c838c['remove'](_0x4c151e);}const _0x1daefe=new Set(),_0x241ca5=[];for(const _0x485f69 of this['_footnotesDefinitions']['getChildren']()){const _0x594968=_0x485f69['getAttribute']('footnoteId');_0x1daefe['has'](_0x594968)?(_0x241ca5['unshift'](_0x485f69),_0x1a50d1=!0x0):_0x1daefe['add'](_0x594968);}for(const _0x4dbd47 of _0x241ca5)_0x5c838c['remove'](_0x4dbd47);return this['_footnotesDefinitions']['childCount']||(_0x5c838c['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x1a50d1=!0x0),_0x1a50d1;}['_handleInsertedFootnoteReference'](_0x5cea7d,_0x366307){if(this['_footnotes']['find'](_0x49f93b=>_0x49f93b['reference']===_0x366307))return!0x1;let _0x57d58c=!0x1;const _0x4b9c91=_0x366307['getAttribute']('footnoteId'),_0x37f3a6=this['_footnotes']['findIndex'](_0x4cf724=>_0x4cf724['id']===_0x4b9c91);-0x1!==_0x37f3a6&&(_0x5cea7d['remove'](this['_footnotes'][_0x37f3a6]['reference']),this['_footnotes']['splice'](_0x37f3a6,0x1),_0x57d58c=!0x0);let _0x10172b=this['_footnotesDefinitions']?function(_0xa72f91,_0x2dd9f3){for(const _0x3645c3 of _0xa72f91['getChildren']())if(_0x3645c3['getAttribute']('footnoteId')===_0x2dd9f3)return _0x3645c3;return null;}(this['_footnotesDefinitions'],_0x4b9c91):null;_0x10172b||(_0x10172b=_0x5cea7d['createElement']('footnoteDefinition',{'footnoteId':_0x4b9c91}),this['_footnotesDefinitions']&&(_0x5cea7d['insert'](_0x10172b,this['_footnotesDefinitions'],'end'),_0x57d58c=!0x0));const _0x105063={'id':_0x4b9c91,'reference':_0x366307,'definition':_0x10172b},_0x24e3a8=I(this['editor']['model'],this['_footnotes'],_0x366307);this['_footnotes']['splice'](_0x24e3a8,0x0,_0x105063);let _0x45b878=_0x24e3a8;return-0x1!==_0x37f3a6&&(_0x45b878=Math['min'](_0x24e3a8,_0x37f3a6)),this['_updateFootnotesCounters'](_0x5cea7d,_0x45b878)&&(_0x57d58c=!0x0),_0x57d58c;}['_handleRemoveFootnoteReferenceById'](_0x29a9e2,_0x11670d){const _0x4e286f=this['_footnotes']['findIndex'](_0x1e21da=>_0x1e21da['id']===_0x11670d);if(-0x1===_0x4e286f)return!0x1;let _0x50b6b6=!0x1;const _0x3e7160=this['_footnotes'][_0x4e286f];return'$graveyard'!==_0x3e7160['definition']['root']['rootName']&&(_0x29a9e2['remove'](_0x3e7160['definition']),_0x50b6b6=!0x0),this['_footnotes']['splice'](_0x4e286f,0x1),this['_updateFootnotesCounters'](_0x29a9e2,_0x4e286f)&&(_0x50b6b6=!0x0),_0x50b6b6;}['_handleMovedFootnoteReference'](_0x597c09,_0x31dee1){const _0x41b95d=_0x31dee1['getAttribute']('footnoteId'),_0x194dfa=this['_footnotes']['findIndex'](_0x3d4616=>_0x3d4616['id']===_0x41b95d),_0x365288=this['_footnotes'][_0x194dfa];let _0x3f4de6=!0x1;_0x365288['reference']=_0x31dee1,this['_footnotes']['splice'](_0x194dfa,0x1);const _0x324844=I(this['editor']['model'],this['_footnotes'],_0x31dee1);return this['_footnotes']['splice'](_0x324844,0x0,_0x365288),this['_updateFootnotesCounters'](_0x597c09,Math['min'](_0x194dfa,_0x324844))&&(_0x3f4de6=!0x0),_0x3f4de6;}['_updateFootnoteRefCounter'](_0x1d352c,_0x15e831){if(!this['_footnotesDefinitions'])return!0x1;const _0x5abd88=this['_footnotes'][_0x15e831];let _0xdcf69d;return _0xdcf69d=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x5abd88,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x15e831+0x1}):String(_0x15e831+0x1),_0x5abd88['reference']['getAttribute']('footnoteCounter')!=_0xdcf69d&&(_0x1d352c['setAttribute']('footnoteCounter',_0xdcf69d,_0x5abd88['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x28379f){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x253a5d,_0x4779c1){if(_0x253a5d['length']!==_0x4779c1['length'])return!0x1;for(let _0x25252a=0x0;_0x25252a<_0x253a5d['length'];_0x25252a++)if(_0x253a5d[_0x25252a]!==_0x4779c1[_0x25252a])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x4e42dc=>_0x4e42dc['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x37a5b1=>_0x37a5b1['getAttribute']('footnoteId'))))return!0x1;let _0x3ffd1d=!0x1;for(let _0x1047a2=0x0;_0x1047a2<this['_footnotes']['length'];_0x1047a2++){const _0x2d4bad=this['_footnotes'][_0x1047a2],_0x57968f=_0x28379f['createPositionBefore'](_0x2d4bad['definition']),_0x4d7190=_0x28379f['createPositionAt'](this['_footnotesDefinitions'],_0x1047a2);_0x57968f['isEqual'](_0x4d7190)||(_0x28379f['move'](_0x28379f['createRangeOn'](_0x2d4bad['definition']),_0x4d7190),_0x3ffd1d=!0x0);}return _0x3ffd1d;}['_ensureFootnotesReferencesHaveProperOrder'](_0x381e2a){if(!this['_footnotes']['length'])return!0x1;const {model:_0x3259c4}=this['editor'];let _0x27e502=!0x1;for(let _0x207de3=0x0;_0x207de3<this['_footnotes']['length']-0x1;_0x207de3++){const _0x5ef3f2=this['_footnotes'][_0x207de3],_0x4b9185=this['_footnotes'][_0x207de3+0x1],_0x316b0c=_0x3259c4['createPositionBefore'](_0x5ef3f2['reference']),_0x598b3b=_0x3259c4['createPositionBefore'](_0x4b9185['reference']);'after'===_0x316b0c['compareWith'](_0x598b3b)&&(this['_handleMovedFootnoteReference'](_0x381e2a,_0x5ef3f2['reference']),_0x207de3=-0x1,_0x27e502=!0x0);}return _0x27e502;}}function _(_0x4223b6,_0x39a4d2,_0x1621b2){if(_0x1621b2['childCount'])return!0x1;const _0x40e9a2=_0x39a4d2?'paragraph':'footnoteInlineContent';return _0x4223b6['insert'](_0x4223b6['createElement'](_0x40e9a2),_0x1621b2),!0x0;}function I(_0x1e1c84,_0xa0d10,_0x53f19f){if(0x0===_0xa0d10['length'])return 0x0;const _0x22f446=_0x1e1c84['createPositionBefore'](_0x53f19f);for(let _0x14a5fb=0x0;_0x14a5fb<_0xa0d10['length'];_0x14a5fb++){const _0x31ec2e=_0xa0d10[_0x14a5fb],_0x6b3b49=_0x1e1c84['createPositionBefore'](_0x31ec2e['reference']);if('before'===_0x22f446['compareWith'](_0x6b3b49))return _0x14a5fb;}const _0x1f83ad=_0x53f19f['root'];let _0x319110=-0x1;for(let _0x496d70=_0xa0d10['length']-0x1;_0x496d70>=0x0;_0x496d70--)if(_0xa0d10[_0x496d70]['reference']['root']===_0x1f83ad){_0x319110=_0x496d70;break;}if(-0x1!==_0x319110)return _0x319110+0x1;const _0x7cbe22=_0x1e1c84['document']['getRootNames'](),_0x41644d=_0x7cbe22['indexOf'](_0x1f83ad['rootName']),_0x46a342=_0x7cbe22[_0x41644d+0x1];if(_0x46a342){for(let _0x4c293b=0x0;_0x4c293b<_0xa0d10['length'];_0x4c293b++)if(_0xa0d10[_0x4c293b]['reference']['root']['rootName']===_0x46a342)return _0x4c293b;}return _0xa0d10['length'];}class h extends _0x463e8d{['refresh'](){const _0x437281=this['editor']['model']['document']['selection'],_0x1ea0e8=this['_getPositionToInsertFootnote'](_0x437281);this['isEnabled']=!!_0x1ea0e8;}['execute'](_0x3a07c7){const {editor:_0x3c3ed3}=this,{model:_0x387a9a}=_0x3c3ed3,{selection:_0x480380}=_0x387a9a['document'],_0x1cb919=this['_getPositionToInsertFootnote'](_0x480380);if(!_0x1cb919)return;const _0xcb7108=_0x3c3ed3['plugins']['get']('FootnotesEditing'),_0x20f636=_0x3a07c7?.['footnoteId']??_0x116418();!function(_0x248595){return'string'==typeof _0x248595&&_0x248595['length']>0x0&&!/\s/['test'](_0x248595)&&!/^\d/['test'](_0x248595);}(_0x20f636)?_0x5accab('insert-footnote-command-executed-with-invalid-id'):(_0x387a9a['change'](_0x359b01=>{const _0x467263=_0x359b01['createElement']('footnoteRef',{'footnoteId':_0x20f636});_0x387a9a['insertObject'](_0x467263,_0x1cb919,null);}),_0xcb7108['_moveSelectionToFootnoteDefinition'](_0x20f636));}['_getPositionToInsertFootnote'](_0xfa0490){const {model:_0x2f0f16}=this['editor'],{schema:_0x270b3e}=_0x2f0f16,_0x1f5f7e=_0xfa0490['getFirstRange']();for(const _0x5bb17c of _0x1f5f7e['getItems']())if(_0x270b3e['isBlock'](_0x5bb17c)||_0x270b3e['isObject'](_0x5bb17c))return null;const _0x54afbc=_0x1f5f7e['end'];return _0x270b3e['checkChild'](_0x54afbc,'footnoteRef')?_0x54afbc:null;}}class r extends _0x25c422{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2e3b48}=this;_0x2e3b48['config']['define']('footnotes.multiBlock',!0x0),_0x2e3b48['commands']['add']('insertFootnote',new h(_0x2e3b48)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4d12c0){const _0x2d84c3=_0x24c4fa([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]),_0x188e17=0x47a28506,_0x37276e=0x47a50226^_0x188e17,_0x42d7da=window[_0x24c4fa([0x44,0x61,0x74,0x65])][_0x24c4fa([0x6e,0x6f,0x77])](),_0xe8741e=_0x4d12c0[_0x24c4fa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b487e=new window[(_0x24c4fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2aad79=>{_0xe8741e[_0x24c4fa([0x6f,0x6e,0x63,0x65])](_0x24c4fa([0x72,0x65,0x61,0x64,0x79]),_0x2aad79);}),_0x56a206={[_0x24c4fa([0x6b,0x74,0x79])]:_0x24c4fa([0x45,0x43]),[_0x24c4fa([0x75,0x73,0x65])]:_0x24c4fa([0x73,0x69,0x67]),[_0x24c4fa([0x63,0x72,0x76])]:_0x24c4fa([0x50,0x2d,0x32,0x35,0x36]),[_0x24c4fa([0x78])]:_0x24c4fa([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]),[_0x24c4fa([0x79])]:_0x24c4fa([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]),[_0x24c4fa([0x61,0x6c,0x67])]:_0x24c4fa([0x45,0x53,0x32,0x35,0x36])},_0x4ab05e=_0xe8741e[_0x24c4fa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x24c4fa([0x67,0x65,0x74])](_0x24c4fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x50a57d(){let _0x36b38d,_0x3d25d4=null,_0x3fabb9=null;try{if(_0x4ab05e==_0x24c4fa([0x47,0x50,0x4c]))return _0x24c4fa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x36b38d=_0x3896b1(),!_0x36b38d)return _0x24c4fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x36b38d[_0x24c4fa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3fabb9=_0x2e934d(_0x36b38d[_0x24c4fa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x36b38d[_0x24c4fa([0x6a,0x74,0x69])])),await _0x4a16c3()?_0x261cd3()?_0x32b267()?_0x24c4fa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x373f94()?(_0x36b38d[_0x24c4fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24c4fa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3d25d4=_0x10adaf(_0x24c4fa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xa7f271()):_0x24c4fa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x24c4fa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x24c4fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x24c4fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x32b267(){const _0x5d72f7=[_0x24c4fa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x24c4fa([0x74,0x72,0x69,0x61,0x6c])][_0x24c4fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36b38d[_0x24c4fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x42d7da/0x3e8:0xe10*_0x37276e;return _0x36b38d[_0x24c4fa([0x65,0x78,0x70])]<_0x5d72f7;}function _0x261cd3(){const _0x18e002=_0x36b38d[_0x24c4fa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x18e002&&(!!_0x18e002[_0x24c4fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24c4fa([0x2a]))||!!_0x18e002[_0x24c4fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24c4fa([0x46,0x4f,0x4f])));}function _0x373f94(){const _0x2e796d=_0x36b38d[_0x24c4fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2e796d||0x0==_0x2e796d[_0x24c4fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5d7946}=new URL(window[_0x24c4fa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2e796d[_0x24c4fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d7946))return!0x0;const _0x1673dc=_0x5d7946[_0x24c4fa([0x73,0x70,0x6c,0x69,0x74])](_0x24c4fa([0x2e]));return _0x2e796d[_0x24c4fa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e3ba3=>_0x3e3ba3[_0x24c4fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24c4fa([0x2a])))[_0x24c4fa([0x6d,0x61,0x70])](_0x1ae27e=>_0x1ae27e[_0x24c4fa([0x73,0x70,0x6c,0x69,0x74])](_0x24c4fa([0x2e])))[_0x24c4fa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3729b5=>_0x3729b5[_0x24c4fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1673dc[_0x24c4fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24c4fa([0x6d,0x61,0x70])](_0x2e03de=>Array(_0x1673dc[_0x24c4fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2e03de[_0x24c4fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24c4fa([0x66,0x69,0x6c,0x6c])](_0x2e03de[0x0]===_0x24c4fa([0x2a])?_0x24c4fa([0x2a]):'')[_0x24c4fa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2e03de))[_0x24c4fa([0x73,0x6f,0x6d,0x65])](_0x3ee55a=>_0x1673dc[_0x24c4fa([0x65,0x76,0x65,0x72,0x79])]((_0x79341e,_0x2fcbf2)=>_0x3ee55a[_0x2fcbf2]===_0x79341e||_0x3ee55a[_0x2fcbf2]===_0x24c4fa([0x2a])));}function _0xa7f271(){return _0x3d25d4&&_0x3fabb9?new window[(_0x24c4fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b016f,_0x414928)=>{_0x3d25d4[_0x24c4fa([0x74,0x68,0x65,0x6e])](_0x4b016f,_0x414928),_0x3fabb9[_0x24c4fa([0x74,0x68,0x65,0x6e])](_0x5bfabc=>{_0x5bfabc!=_0x24c4fa([0x56,0x61,0x6c,0x69,0x64])&&_0x4b016f(_0x5bfabc);},_0x414928);}):_0x3d25d4||_0x3fabb9||_0x24c4fa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2e934d(_0x12c70b,_0x41e09e){return new window[(_0x24c4fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x918e24=>{if(_0x2fb4cc())return _0x918e24(_0x24c4fa([0x56,0x61,0x6c,0x69,0x64]));_0x42eb6b(),_0xe8741e[_0x24c4fa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x24c4fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3dfa3f=!0x1;const _0x17193d=_0x116418();function _0x5b62fd(_0x379b0a){return!!_0x379b0a&&(typeof _0x379b0a===_0x24c4fa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x379b0a===_0x24c4fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x379b0a[_0x24c4fa([0x74,0x68,0x65,0x6e])]===_0x24c4fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x379b0a[_0x24c4fa([0x63,0x61,0x74,0x63,0x68])]===_0x24c4fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x561147(_0x5d9403){_0x2665f3(_0x5d9403)[_0x24c4fa([0x74,0x68,0x65,0x6e])](_0x4c997d=>{if(!_0x4c997d||_0x4c997d[_0x24c4fa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x24c4fa([0x6f,0x6b]))return _0x24c4fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x136ac5(_0x1499ff(_0x17193d+_0x41e09e))!=_0x4c997d[_0x24c4fa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x24c4fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x24c4fa([0x56,0x61,0x6c,0x69,0x64]);})[_0x24c4fa([0x74,0x68,0x65,0x6e])](_0x466206=>(_0x3f8802(),_0x466206),()=>{const _0x1021a3=_0x12de69();return null==_0x1021a3?(_0x3f8802(),_0x24c4fa([0x56,0x61,0x6c,0x69,0x64])):_0x24c4fa(_0x42d7da-_0x1021a3>(0x63ae0106^_0x188e17)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x24c4fa([0x74,0x68,0x65,0x6e])](_0x918e24)[_0x24c4fa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x918e24(_0x24c4fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x135358=0x47946b86^_0x188e17;function _0x3f8802(){const _0x4f917c=_0x24c4fa([0x6c,0x6c,0x63,0x74,0x2d])+_0x136ac5(_0x1499ff(_0x12c70b)),_0x468f8d=_0x53cc25(_0x136ac5(window[_0x24c4fa([0x4d,0x61,0x74,0x68])][_0x24c4fa([0x63,0x65,0x69,0x6c])](_0x42d7da/_0x135358)));window[_0x24c4fa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24c4fa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f917c,_0x468f8d);}function _0x12de69(){const _0x8a1f9a=_0x24c4fa([0x6c,0x6c,0x63,0x74,0x2d])+_0x136ac5(_0x1499ff(_0x12c70b)),_0x444105=window[_0x24c4fa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24c4fa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8a1f9a);return _0x444105?window[_0x24c4fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53cc25(_0x444105),0x10)*_0x135358:null;}function _0x2665f3(_0x276809){return new window[(_0x24c4fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x402f5c,_0x5323a4)=>{_0x276809[_0x24c4fa([0x74,0x68,0x65,0x6e])](_0x402f5c,_0x5323a4),window[_0x24c4fa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5323a4,0x47a351c6^_0x188e17);});}}_0xe8741e[_0x24c4fa([0x6f,0x6e])](_0x24c4fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2e61f3,_0x18ed6a)=>{if(_0x18ed6a[0x0]!=_0x12c70b)return _0x918e24(_0x24c4fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x18ed6a[0x1]={..._0x18ed6a[0x1],[_0x24c4fa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x17193d};},{[_0x24c4fa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24c4fa([0x68,0x69,0x67,0x68])}),_0xe8741e[_0x24c4fa([0x6f,0x6e])](_0x24c4fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3d69b9=>{_0x5b62fd(_0x3d69b9[_0x24c4fa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3dfa3f=!0x0,_0x561147(_0x3d69b9[_0x24c4fa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x24c4fa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24c4fa([0x6c,0x6f,0x77])}),_0x5b487e[_0x24c4fa([0x74,0x68,0x65,0x6e])](()=>{_0x3dfa3f||_0x918e24(_0x24c4fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2fb4cc(){return _0xe8741e[_0x24c4fa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24c4fa([0x76,0x69,0x65,0x77])][_0x24c4fa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x24c4fa([0x61,0x75,0x74,0x6f]);}function _0x42eb6b(){_0xe8741e[_0x24c4fa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24c4fa([0x76,0x69,0x65,0x77])][_0x24c4fa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24c4fa([0x61,0x75,0x74,0x6f]);}}function _0x10adaf(_0x4a1de2){const _0x4cad84=[new window[(_0x24c4fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24a669=>setTimeout(_0x24a669,0x47abbbca^_0x188e17)),_0x5b487e[_0x24c4fa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x24c4fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20f1e8=>{let _0xdae4a0=0x0;_0xe8741e[_0x24c4fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x24c4fa([0x6f,0x6e])](_0x24c4fa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3d870a,_0x376652)=>{_0x376652[0x0][_0x24c4fa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xdae4a0++,_0xdae4a0==(0x47a280ee^_0x188e17)&&(_0x20f1e8(),_0x3d870a[_0x24c4fa([0x6f,0x66,0x66])]());});}))];return window[_0x24c4fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24c4fa([0x72,0x61,0x63,0x65])](_0x4cad84)[_0x24c4fa([0x74,0x68,0x65,0x6e])](()=>_0x4a1de2);}async function _0x517abb(){await _0x5b487e,_0xe8741e[_0x24c4fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x24c4fa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2300c2,_0xe8741e[_0x24c4fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x24c4fa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2300c2,_0xe8741e[_0x24c4fa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x24c4fa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5ee478(_0x3f0eeb){const _0x57fe69=_0x4e64b0();_0xe8741e[_0x57fe69]=_0x24c4fa([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3f0eeb,_0x3f0eeb!=_0x24c4fa([0x56,0x61,0x6c,0x69,0x64])&&_0x517abb();}function _0x4e64b0(){const _0x59bde3=window[_0x24c4fa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x24c4fa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x24c4fa([0x6e,0x6f,0x77])]())[_0x24c4fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x24c4fa([0x2e]),'');let _0x21c657=_0x24c4fa([0x75]);for(let _0x9641fd=0x0;_0x9641fd<_0x59bde3[_0x24c4fa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9641fd+=0x2){let _0x4c800b=window[_0x24c4fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59bde3[_0x24c4fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9641fd,_0x9641fd+0x2));_0x4c800b>=_0x2d84c3[_0x24c4fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c800b-=_0x2d84c3[_0x24c4fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x21c657+=_0x2d84c3[_0x4c800b];}return _0x21c657;}function _0x3896b1(){const _0x3c0df8=_0x4ab05e[_0x24c4fa([0x73,0x70,0x6c,0x69,0x74])](_0x24c4fa([0x2e]));if(0x3!=_0x3c0df8[_0x24c4fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x246549(_0x3c0df8[0x1]);function _0x246549(_0xa32e06){const _0x4f038a=_0x501500(_0xa32e06);return _0x4f038a&&_0x2a2e9a()?_0x4f038a:null;function _0x2a2e9a(){const _0x7e9b0c=_0x4f038a[_0x24c4fa([0x6a,0x74,0x69])],_0x5178f6=window[_0x24c4fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7e9b0c[_0x24c4fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7e9b0c[_0x24c4fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57d53f={..._0x4f038a,[_0x24c4fa([0x6a,0x74,0x69])]:_0x7e9b0c[_0x24c4fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x7e9b0c[_0x24c4fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57d53f[_0x24c4fa([0x76,0x63])],_0x1499ff(_0x57d53f)==_0x5178f6;}}}async function _0x4a16c3(){let _0x4a5035=!0x0;try{const _0x30d547=_0x4ab05e[_0x24c4fa([0x73,0x70,0x6c,0x69,0x74])](_0x24c4fa([0x2e])),[_0x40dafc,_0x35f73c,_0x36833b]=_0x30d547;return _0x70d367(_0x40dafc),await _0x159f5a(_0x40dafc,_0x35f73c,_0x36833b),_0x4a5035;}catch{return!0x1;}function _0x70d367(_0x3eefb2){const _0x95684=_0x501500(_0x3eefb2);_0x95684&&_0x95684[_0x24c4fa([0x61,0x6c,0x67])]==_0x24c4fa([0x45,0x53,0x32,0x35,0x36])||(_0x4a5035=!0x1);}async function _0x159f5a(_0x245602,_0x2d56e6,_0x30c0bb){const _0x2833a4=window[_0x24c4fa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x24c4fa([0x66,0x72,0x6f,0x6d])](_0x45e6a9(_0x30c0bb),_0x112b1f=>_0x112b1f[_0x24c4fa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x52c3d2=new window[(_0x24c4fa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x24c4fa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x245602+_0x24c4fa([0x2e])+_0x2d56e6),_0x4816c2=window[_0x24c4fa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x24c4fa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4816c2)return;const _0x50b721=await _0x4816c2[_0x24c4fa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x24c4fa([0x6a,0x77,0x6b]),_0x56a206,{[_0x24c4fa([0x6e,0x61,0x6d,0x65])]:_0x24c4fa([0x45,0x43,0x44,0x53,0x41]),[_0x24c4fa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x24c4fa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x24c4fa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4816c2[_0x24c4fa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x24c4fa([0x6e,0x61,0x6d,0x65])]:_0x24c4fa([0x45,0x43,0x44,0x53,0x41]),[_0x24c4fa([0x68,0x61,0x73,0x68])]:{[_0x24c4fa([0x6e,0x61,0x6d,0x65])]:_0x24c4fa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x50b721,_0x2833a4,_0x52c3d2)||(_0x4a5035=!0x1);}}function _0x501500(_0xcdb9ef){return _0xcdb9ef[_0x24c4fa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x24c4fa([0x65,0x79]))?JSON[_0x24c4fa([0x70,0x61,0x72,0x73,0x65])](_0x45e6a9(_0xcdb9ef)):null;}function _0x45e6a9(_0x529d96){return window[_0x24c4fa([0x61,0x74,0x6f,0x62])](_0x529d96[_0x24c4fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x24c4fa([0x2b]))[_0x24c4fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x24c4fa([0x2f])));}function _0x1499ff(_0x54677d){let _0x254cad=0x1505;function _0x28f19c(_0x497795){for(let _0x11f404=0x0;_0x11f404<_0x497795[_0x24c4fa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11f404++){const _0x253a2b=_0x497795[_0x24c4fa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x11f404);_0x254cad=(_0x254cad<<0x5)+_0x254cad+_0x253a2b,_0x254cad&=_0x254cad;}}function _0x26e145(_0x67b148){Array[_0x24c4fa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x67b148)?_0x67b148[_0x24c4fa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x26e145):_0x67b148&&typeof _0x67b148==_0x24c4fa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x24c4fa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x67b148)[_0x24c4fa([0x73,0x6f,0x72,0x74])]()[_0x24c4fa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4430ef,_0x18ad25])=>{_0x28f19c(_0x4430ef),_0x26e145(_0x18ad25);}):_0x28f19c(window[_0x24c4fa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x67b148));}return _0x26e145(_0x54677d),_0x254cad>>>0x0;}function _0x136ac5(_0x3ab503){return _0x3ab503[_0x24c4fa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x24c4fa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x24c4fa([0x30]));}function _0x53cc25(_0x407cb8){return _0x407cb8[_0x24c4fa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x24c4fa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x24c4fa([0x6a,0x6f,0x69,0x6e])]('');}function _0x2300c2(){}function _0x24c4fa(_0x2c077b){return _0x2c077b['map'](_0x5428a6=>String['fromCharCode'](_0x5428a6))['join']('');}_0x5ee478(await _0x50a57d());}(this);}['_moveSelectionToFootnoteDefinition'](_0x447e6a){const {plugins:_0x3e739b,editing:_0x58080d,model:_0xdcfa55}=this['editor'],_0x42cb14=_0x3e739b['get'](f)['getFootnote'](_0x447e6a);return!!_0x42cb14&&(_0xdcfa55['change'](_0x22e068=>{_0x22e068['setSelection'](_0x22e068['createPositionAt'](_0x42cb14['definition'],'end'));}),_0x58080d['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3f6deb){const {plugins:_0x87bfb,editing:_0x2b5c03,model:_0x422399}=this['editor'],_0x8268ca=_0x87bfb['get'](f)['getFootnote'](_0x3f6deb);return!!_0x8268ca&&(_0x422399['change'](_0x42c5f2=>{_0x42c5f2['setSelection'](_0x8268ca['reference'],'on');}),_0x2b5c03['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x33a129}=this['editor']['model'],_0xb9d90e=this['editor']['config']['get']('footnotes.multiBlock');_0x33a129['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x33a129['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x33a129['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0xb9d90e?_0x33a129['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x33a129['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x33a129['addChildCheck'](_0x406302=>{for(const _0x3438e5 of _0x406302)if('footnoteDefinition'===_0x3438e5['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5aa739}=this,{conversion:_0x579db4,editing:_0x1a4dd8}=_0x5aa739,{t:t}=_0x5aa739['locale'];_0x579db4['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x3b24f0,{writer:_0x4cd173,consumable:_0x55d2dc})=>{const _0x4776ab=_0x3b24f0['getChild'](0x0);if(!_0x4776ab||!_0x4776ab['is']('element','a'))return null;const _0x292ee6=_0x4776ab['getAttribute']('href')||'';if(!_0x292ee6['startsWith']('#'))return null;const _0x1d73b6=_0x292ee6['replace'](/^#/,'');if(!_0x1d73b6)return null;_0x55d2dc['consume'](_0x4776ab,{'name':!0x0,'attributes':['href']});for(const {item:_0x1c43c4}of _0x1a4dd8['view']['createRangeIn'](_0x4776ab))_0x1c43c4['is']('$textProxy')?_0x55d2dc['consume'](_0x1c43c4['textNode'],{'name':!0x0}):_0x1c43c4['is']('element')&&_0x55d2dc['consume'](_0x1c43c4,{'name':!0x0});return _0x4cd173['createElement']('footnoteRef',{'footnoteId':_0x1d73b6});}}),_0x579db4['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2bbf22,{writer:_0x139256})=>b(_0x2bbf22,_0x139256)}),_0x579db4['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xa69e40,{writer:_0x293243})=>{const _0x7fd372=_0xa69e40['getAttribute']('footnoteCounter');return _0x1c46e6(b(_0xa69e40,_0x293243),_0x293243,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x7fd372)});}});}['_defineDefinitionsConverters'](){const {editor:_0x1ee107}=this,{t:t}=_0x1ee107['locale'],{conversion:_0x8eefba}=_0x1ee107;_0x8eefba['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x8eefba['for']('upcast')['add'](_0x297139=>{_0x297139['on']('element:ol',(_0x2e6921,_0x4f44e9,_0xb6d340)=>{const _0x36f717=_0x4f44e9['viewItem'];if(!_0x36f717['hasClass']('footnotes-list')||!_0x4f44e9['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0xb6d340['consumable']['consume'](_0x36f717,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x3b8ab0,modelCursor:_0x2e7ee2}=_0xb6d340['convertChildren'](_0x4f44e9['viewItem'],_0x4f44e9['modelCursor']);_0x4f44e9['modelRange']=_0x3b8ab0,_0x4f44e9['modelCursor']=_0x2e7ee2;}),_0x297139['on']('element:hr',(_0x194b94,_0x9ead48,_0x4cbd0f)=>{const _0x12bb2e=_0x9ead48['viewItem'];_0x12bb2e['hasClass']('footnotes-divider')&&_0x9ead48['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4cbd0f['consumable']['consume'](_0x12bb2e,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x8eefba['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5682ca,{writer:_0x53fa2b})=>D(_0x53fa2b)}),_0x8eefba['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x261296,{writer:_0xb6b929})=>{const _0x55727b=D(_0xb6b929,{'data-footnotes-list-label':t('Footnotes')}),_0x1a291e=_0x1c46e6(_0x55727b,_0xb6b929,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0xb6b929['setCustomProperty']('footnotesDefinitions',!0x0,_0x1a291e),_0x1a291e;}});}['_defineDefinitionConverters'](){const {editor:_0x186464}=this,{conversion:_0x72c450,locale:_0x51661e}=_0x186464,_0x5c42d8=_0x186464['config']['get']('footnotes.multiBlock');_0x72c450['for']('upcast')['add'](_0x20776e=>{_0x20776e['on']('element:li',(_0x320539,_0x361129,_0x368e34)=>{const _0x306fc5=_0x361129['viewItem'];if(!_0x306fc5['hasClass']('footnote-definition')||!_0x306fc5['getAttribute']('id'))return;const _0xecd0c5=_0x306fc5['parent'];if(!_0xecd0c5['is']('element','ol')||!_0xecd0c5['hasClass']('footnotes-list'))return;if(!_0x368e34['consumable']['test'](_0x306fc5,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x50529c=_0x368e34['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x306fc5['getAttribute']('id')});if(!_0x368e34['safeInsert'](_0x50529c,_0x361129['modelCursor']))return;_0x368e34['consumable']['consume'](_0x306fc5,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x274e90=Array['from'](_0x306fc5['getChildren']())['find'](_0x553a68=>_0x553a68['is']('element')&&_0x553a68['hasClass']('footnote-content'));for(const _0x54784b of _0x306fc5['getChildren']())_0x54784b['is']('element')&&(_0x368e34['consumable']['consume'](_0x54784b,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x368e34['consumable']['consume'](_0x54784b,{'name':!0x0,'classes':'footnote-content'}));if(_0x274e90){if(_0x5c42d8)_0x368e34['convertChildren'](_0x274e90,_0x50529c);else{const _0x50c757=_0x368e34['writer']['createElement']('footnoteInlineContent');_0x368e34['writer']['insert'](_0x50c757,_0x50529c),_0x368e34['convertChildren'](_0x274e90,_0x50c757);}}_0x368e34['updateConversionResult'](_0x50529c,_0x361129);});}),_0x72c450['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x36d5c6,{writer:_0x2ad075})=>y(_0x36d5c6,_0x2ad075,_0x51661e,{'dataPipeline':!0x0})}),_0x72c450['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x417594,{writer:_0xfc785e})=>y(_0x417594,_0xfc785e,_0x51661e)});}['_defineBogusParagraphConverters'](){const {editor:_0x3e3f77}=this,{conversion:_0x3c69b6}=_0x3e3f77;_0x3e3f77['config']['get']('footnotes.multiBlock')?(_0x3c69b6['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x3c69b6['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3e3f77['model']['document'],'change:data',()=>{!function(_0xbb3f5b,_0x462fd6){const _0x4e801e=_0xbb3f5b['document']['differ'],_0x17a5c1=new Set();for(const _0x3fba7f of _0x4e801e['getChanges']()){const _0x1853f5='attribute'==_0x3fba7f['type']?_0x3fba7f['range']['start']['parent']:_0x3fba7f['position']['parent'];_0x1853f5['is']('element','footnoteDefinition')&&_0x17a5c1['add'](_0x1853f5);}for(const _0x41513f of _0x17a5c1['values']()){const _0x43bd75=Array['from'](_0x41513f['getChildren']())['filter'](_0x3d4f83=>v(_0x3d4f83,_0x462fd6['mapper']));for(const _0x652da1 of _0x43bd75)_0x462fd6['reconvertItem'](_0x652da1);}}(_0x3e3f77['model'],_0x3e3f77['editing']);})):(_0x3c69b6['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x3c69b6['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4f16e2,{writer:_0x4e8eb9})=>{const _0x33e87a=_0x4e8eb9['createContainerElement']('span');return _0x4e8eb9['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x33e87a),_0x33e87a;}}));}['_defineKeyboardHandlers'](){const {editor:_0x59e2a7}=this,{editing:_0x37030f,t:t}=_0x59e2a7,_0x4be7f9=_0x59e2a7['model']['document']['selection'];_0x59e2a7['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x59e2a7['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x37030f['view']['document'],'enter',(_0x1a5063,_0x1da307)=>{const _0x313653=function(_0x13f1c1){const _0x10ba6c=_0x13f1c1['getSelectedElement']();if(_0x10ba6c?.['is']('element','footnoteRef'))return _0x10ba6c;return null;}(_0x4be7f9);if(_0x313653){const _0x130672=_0x313653['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x130672),_0x1da307['preventDefault'](),_0x1a5063['stop']();}},{'context':_0x4ffe7e});}['_defineClickHandlers'](){const {editor:_0x3a029e}=this,{editing:_0x2bd9aa}=_0x3a029e;_0x3a029e['editing']['view']['addObserver'](_0x309d51),_0x3a029e['editing']['view']['addObserver'](_0x3ff2ff);let _0x3a2da5=!0x1;this['listenTo'](_0x2bd9aa['view']['document'],'pointerdown',(_0x32f053,_0x375ad8)=>{const {target:_0xb52ba8}=_0x375ad8,_0x2ec69d=_0x2bd9aa['view']['document']['selection'];_0x3a2da5=!!(_0xb52ba8?.['is']('element','a')&&_0xb52ba8['parent']?.['is']('element','sup')&&_0xb52ba8['parent']['hasClass']('footnote'))&&_0x2ec69d['getSelectedElement']()===_0xb52ba8['parent'];},{'priority':'high'}),this['listenTo'](_0x2bd9aa['view']['document'],'click',(_0x11e7fe,_0x28d75a)=>{const {target:_0x2c70d2}=_0x28d75a;if(!_0x2c70d2?.['is']('element','a'))return;if(_0x2c70d2['parent']?.['is']('element','sup')&&_0x2c70d2['parent']['hasClass']('footnote')&&!_0x3a2da5)return void _0x28d75a['preventDefault']();let _0x380b2f=_0x2c70d2['getAttribute']('href');if(!_0x380b2f?.['startsWith']('#'))return;_0x380b2f=_0x380b2f['slice'](0x1);let _0x485d59=!0x1;(_0x380b2f['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x380b2f['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x380b2f))&&(_0x485d59=!0x0),_0x485d59&&(_0x28d75a['preventDefault'](),_0x11e7fe['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x456ea8}={}){return(_0x34fdd6,{writer:_0x5960f5})=>{if(!g(_0x34fdd6))return null;if(!_0x456ea8)return _0x5960f5['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x584076=_0x5960f5['createContainerElement']('p');return _0x5960f5['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x584076),_0x584076;};}function g(_0x590193){const {parent:_0x37ff40}=_0x590193;if(!_0x37ff40?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x37ff40['childCount'])return!0x1;for(const _0x3f810f of _0x590193['getAttributeKeys']())if(!_0x3f810f['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3f810f)return!0x1;return!0x0;}function v(_0x5985bd,_0x47d743){if(!_0x5985bd['is']('element','paragraph'))return!0x1;const _0x33c0c4=_0x47d743['toViewElement'](_0x5985bd);return!!_0x33c0c4&&g(_0x5985bd)!==_0x33c0c4['is']('element','span');}function Q(_0x47cbd0){return _0x4ffe7e(_0x47cbd0)&&_0x47cbd0['is']('containerElement')&&!!_0x47cbd0['getCustomProperty']('footnotesDefinitions');}function D(_0x15c225,_0x1165d4={}){const _0x19164f=_0x15c225['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2a3514=_0x15c225['createContainerElement']('ol',{'class':'footnotes-list'},_0x15c225['createSlot']());return _0x15c225['createContainerElement']('div',{'class':'footnotes',..._0x1165d4},[_0x19164f,_0x2a3514]);}function b(_0x2a5b1c,_0x297faf){const _0x5f3e4d=_0x2a5b1c['getAttribute']('footnoteId'),_0x42dca6=_0x2a5b1c['getAttribute']('footnoteCounter'),_0xe5991b=_0x297faf['createUIElement']('a',{'href':'#'+_0x5f3e4d},function(_0x2d908f){const _0x4344cc=this['toDomElement'](_0x2d908f);return _0x4344cc['textContent']=_0x42dca6,_0x4344cc;}),_0x19ca31=_0x297faf['createContainerElement']('sup',{'id':'ref-'+_0x5f3e4d,'class':'footnote'},[_0xe5991b]);return _0x19ca31['getFillerOffset']=()=>null,_0x19ca31;}function y(_0x642b9a,_0x259b9f,_0x3641f3,{dataPipeline:_0x42bbdc}={}){const {t:t}=_0x3641f3,_0x5d8273=_0x642b9a['getAttribute']('footnoteId'),_0x15f25c=_0x259b9f['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5d8273},function(_0x4265cf){const _0x5119dc=this['toDomElement'](_0x4265cf);return _0x5119dc['innerText']='^',_0x5119dc;}),_0x4d8bc5=_0x42bbdc?_0x259b9f['createContainerElement']('div',{'class':'footnote-content'}):_0x350ef6(_0x259b9f['createEditableElement']('div',{'class':'footnote-content'}),_0x259b9f,{'label':t('Footnote\x20content.')});return _0x259b9f['insert'](_0x259b9f['createPositionAt'](_0x4d8bc5,0x0),_0x259b9f['createSlot']()),_0x259b9f['createContainerElement']('li',{'class':'footnote-definition','id':_0x5d8273},[_0x15f25c,_0x4d8bc5]);}class e extends _0x25c422{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x11df15];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x5c7444}=this,{plugins:_0x4f90bc,model:_0x4b3fd3}=_0x5c7444,_0x2e2f16=_0x4f90bc['get'](_0x11df15),_0x260bdd=_0x4f90bc['get'](f);this['listenTo'](_0x2e2f16,'outputTransformation',(_0x187595,_0x3e562e)=>{const _0x34b1e1=l(_0x4b3fd3['createRangeIn'](_0x3e562e['content']));if(!_0x34b1e1['length'])return;const _0x5e5876=_0x260bdd['getFootnotes'](),_0x8aeef7=_0x34b1e1['reduce']((_0xa6d34e,_0x30c7a7)=>{const _0x386eb8=_0x5e5876['find'](_0x27fb7a=>_0x27fb7a['id']===_0x30c7a7);if(_0x386eb8){const _0x3d89c7=_0x5c7444['data']['toView'](_0x386eb8['definition'],{'isClipboardPipeline':!0x0}),_0x4041f9=_0x5c7444['data']['htmlProcessor']['toData'](_0x3d89c7);_0xa6d34e[_0x386eb8['id']]=_0x4041f9;}return _0xa6d34e;},Object['create'](null));_0x3e562e['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x8aeef7));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x1cbadc}=this,{model:_0x2e2dcb,plugins:_0x380e74}=_0x1cbadc,{view:_0x2d6bed}=_0x1cbadc['editing'],_0x190d9e=_0x380e74['get'](_0x11df15),_0x2cd0a6=_0x380e74['get'](f),_0x6263c8=_0x1cbadc['config']['get']('footnotes.multiBlock');let _0x292705=null;this['listenTo'](_0x2d6bed['document'],'clipboardInput',(_0x27cec6,_0x2977c7)=>{const _0x4ffd2e=_0x2977c7['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x292705=_0x4ffd2e?JSON['parse'](_0x4ffd2e):null;}),this['listenTo'](_0x190d9e,'contentInsertion',(_0x1ca6cc,_0x222f56)=>{const _0x403856=_0x222f56['sourceEditorId']===this['editor']['id'];_0x403856&&'drop'===_0x222f56['method']||_0x2e2dcb['change'](_0xe36d1e=>{let _0x643eeb=_0x2cd0a6['getFootnotesDefinitionsObjectElement']();const _0x1dddbe=!!_0x643eeb&&Array['from'](_0x2e2dcb['document']['selection']['getSelectedBlocks']())['includes'](_0x643eeb);if(!_0x292705&&function(_0x4725dd){for(const {item:_0x213308}of _0x4725dd)if(_0x213308['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x2e2dcb['createRangeIn'](_0x222f56['content']))&&(_0x292705=function(_0x5cf819,_0x297553){const _0x3a398a=c(_0x5cf819,_0x297553);if(!_0x3a398a)return null;const _0x1e291c=Object['create'](null);for(const _0x2d6c52 of _0x3a398a['getChildren']())_0x2d6c52['is']('element','footnoteDefinition')&&_0x2d6c52['hasAttribute']('footnoteId')&&(_0x1e291c[_0x2d6c52['getAttribute']('footnoteId')]=_0x5cf819['cloneElement'](_0x2d6c52,!0x0));return Object['keys'](_0x1e291c)['length']?_0x1e291c:null;}(_0xe36d1e,_0x222f56['content'])),(_0x643eeb&&!_0x1dddbe||!_0x643eeb&&!_0x292705)&&function(_0x4e921c,_0x1fa3b6){const _0xf1e444=[];for(const {item:_0x55767a}of _0x4e921c['createRangeIn'](_0x1fa3b6))_0x55767a['is']('element','footnotesDefinitions')&&_0xf1e444['push'](_0x55767a);for(const _0x4cffb6 of _0xf1e444)_0x4e921c['remove'](_0x4cffb6);}(_0xe36d1e,_0x222f56['content']),!_0x292705)return;const {selection:_0x295152}=_0x2e2dcb['document'],_0x256ffa=_0x295152['getFirstRange']()['root'];_0x643eeb&&!_0x1dddbe||(_0x643eeb=c(_0xe36d1e,_0x222f56['content']),_0x643eeb||=_0x2cd0a6['_insertEmptyFootnotesDefinitionsContainer'](_0xe36d1e,_0x256ffa));const _0x34f492=Array['from'](_0x295152['getRanges']())['flatMap'](l),_0x3e74e1=function(_0x25ed04,_0x495764,_0x41c5d7){const _0x450106=Object['create'](null);for(const {item:_0x5c7257}of _0x25ed04['createRangeIn'](_0x495764))if(_0x5c7257['is']('element','footnoteRef')){const _0x480538=_0x5c7257['getAttribute']('footnoteId');if(!_0x41c5d7(_0x480538))continue;_0x450106[_0x480538]||(_0x450106[_0x480538]=_0x116418()),_0x25ed04['setAttribute']('footnoteId',_0x450106[_0x480538],_0x5c7257);}return _0x450106;}(_0xe36d1e,_0x222f56['content'],_0xd55225=>{if(!_0x403856)return!0x0;return!!_0x2cd0a6['getFootnote'](_0xd55225)&&!_0x34f492['includes'](_0xd55225);});for(const [_0x1549eb,_0x3d044a]of Object['entries'](_0x292705)){const _0x598bcc=_0x3e74e1[_0x1549eb]||_0x1549eb;let _0x7a9d18;if('string'!=typeof _0x3d044a)_0x7a9d18=_0x3d044a,_0x598bcc!==_0x1549eb&&_0xe36d1e['setAttribute']('footnoteId',_0x598bcc,_0x7a9d18);else{_0x7a9d18=_0xe36d1e['createElement']('footnoteDefinition',{'footnoteId':_0x598bcc});const _0x1a2321=_0x1cbadc['data']['htmlProcessor']['toView'](_0x3d044a);let _0x48a14a;if(_0x6263c8)_0x48a14a=_0x1cbadc['data']['toModel'](_0x1a2321,_0x7a9d18);else{_0x48a14a=_0xe36d1e['createElement']('footnoteInlineContent');const _0x960318=_0x1cbadc['data']['toModel'](_0x1a2321,_0x48a14a);_0xe36d1e['insert'](_0x960318,_0x48a14a);}_0xe36d1e['append'](_0x48a14a,_0x7a9d18);}_0xe36d1e['insert'](_0x7a9d18,_0x643eeb,'end');}_0x292705=null;});});}}function c(_0x5acace,_0x91e90c){for(const {item:_0x5e33b9}of _0x5acace['createRangeIn'](_0x91e90c))if(_0x5e33b9['is']('element','footnotesDefinitions'))return _0x5e33b9;return null;}function l(_0x30b88d){const _0x2c03e5=new Set();for(const {item:_0x336f87}of _0x30b88d)_0x336f87['is']('element','footnoteRef')&&_0x2c03e5['add'](_0x336f87['getAttribute']('footnoteId'));return Array['from'](_0x2c03e5);}class i extends _0x25c422{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x33f81e}=this,{componentFactory:_0x2e2a66}=_0x33f81e['ui'];_0x2e2a66['add']('insertFootnote',E(_0x33f81e,_0x1ada6b)),_0x2e2a66['add']('menuBar:insertFootnote',E(_0x33f81e,_0x30ee12)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2892fa=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x27491a;for(const _0x1ccd27 in _0x2892fa){const _0x4bf080=_0x1ccd27,_0x1de48=_0x2892fa[_0x4bf080];if('footnotesLicenseKeyValid'==_0x1de48||'footnotesLicenseKeyInvalid'==_0x1de48||'footnotesLicenseKeyExpired'==_0x1de48||'footnotesLicenseKeyDomainLimit'==_0x1de48||'footnotesLicenseKeyNotAllowed'==_0x1de48||'footnotesLicenseKeyEvaluationLimit'==_0x1de48||'footnotesLicenseKeyUsageLimit'==_0x1de48){delete _0x2892fa[_0x4bf080],_0x27491a=_0x1de48,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x27491a&&_0x2892fa['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x27491a&&_0x2892fa['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x27491a&&_0x2892fa['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x27491a&&_0x2892fa['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x27491a&&_0x2892fa['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x27491a&&_0x2892fa['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x4db1fd,_0x47abd4){const _0x4dad1e=_0x4db1fd['commands']['get']('insertFootnote');return _0x702aff=>{const {t:t}=_0x702aff,_0x4af943=new _0x47abd4(_0x702aff),_0x3d7718=_0x4af943 instanceof _0x30ee12;return _0x4af943['bind']('isEnabled')['to'](_0x4dad1e,'isEnabled'),_0x4af943['set']({'label':t(_0x3d7718?'Footnote':'Insert\x20footnote'),'icon':_0x3af843,'tooltip':!0x0}),_0x4af943['on']('execute',()=>{_0x4dad1e['execute'](),_0x4db1fd['editing']['view']['focus']();}),_0x4af943;};}class lt extends _0x25c422{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 _0x463e8d{['refresh'](){const {editor:_0x325240}=this,_0x5d1620=_0x325240['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x5d1620,this['value']=_0x5d1620?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x105802}){const {editor:_0x33e8de}=this,_0x134b93=_0x33e8de['plugins']['get'](f),_0x485701=_0x134b93['getFootnotesDefinitionsObjectElement']();_0x485701&&ct['includes'](_0x105802)&&_0x33e8de['model']['change'](_0xad984a=>{_0xad984a['setAttribute']('footnotesListStyle',_0x105802,_0x485701),_0x134b93['_updateFootnotesCounters'](_0xad984a);});}}class C extends _0x463e8d{['refresh'](){const {editor:_0x3d1edc}=this,_0x3bd336=_0x3d1edc['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3bd336,this['value']=_0x3bd336?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x3e79bf}){const {editor:_0x2c8767}=this,_0x1a6e76=_0x2c8767['plugins']['get'](f),_0x20afd8=_0x1a6e76['getFootnotesDefinitionsObjectElement']();_0x20afd8&&Number['isInteger'](_0x3e79bf)&&_0x2c8767['model']['change'](_0x31e553=>{_0x31e553['setAttribute']('footnotesListStart',_0x3e79bf,_0x20afd8),_0x1a6e76['_updateFootnotesCounters'](_0x31e553);});}}class P extends _0x25c422{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x16f3f1}=this;_0x16f3f1['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x16f3f1['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x16f3f1['commands']['add']('footnotesStyle',new S(_0x16f3f1)),_0x16f3f1['commands']['add']('footnotesStart',new C(_0x16f3f1)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x4076ce}=this,{schema:_0x5a1776}=_0x4076ce['model'];_0x5a1776['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x13ce89}=this,{conversion:_0x2abfbe,model:_0x16b937}=_0x13ce89,{schema:_0x462739}=_0x16b937;_0x2abfbe['for']('upcast')['add'](_0x329a0a=>{_0x329a0a['on']('element:ol',(_0x493f24,_0x26f8fd,_0x4f291b)=>{const _0xcc0667=_0x26f8fd['viewItem'],_0x442702=_0x26f8fd['modelCursor']?.['parent'];_0xcc0667['hasClass']('footnotes-list')&&_0x442702?.['is']('element','footnotesDefinitions')&&(function(_0x111484,_0x4f313b,_0x261ea6,_0x409f0b){if(!_0x409f0b['checkAttribute'](_0x4f313b,'footnotesListStart'))return;let _0x1205ac=0x1;const _0x3bf317=_0x261ea6['consumable']['consume'](_0x111484,{'attributes':'start'});if(_0x3bf317){const _0x250571=Number['parseInt'](_0x111484['getAttribute']('start'),0xa);Number['isNaN'](_0x250571)||(_0x1205ac=_0x250571);}!_0x3bf317&&_0x4f313b['hasAttribute']('footnotesListStart')||_0x261ea6['writer']['setAttribute']('footnotesListStart',_0x1205ac,_0x4f313b);}(_0xcc0667,_0x442702,_0x4f291b,_0x462739),function(_0x4d6af4,_0x7b9ebe,_0x5549e3,_0x3f057d){if(!_0x3f057d['checkAttribute'](_0x7b9ebe,'footnotesListStyle'))return;let _0x5b2e52='decimal',_0x18f0e9=!0x1;if(_0x5549e3['consumable']['consume'](_0x4d6af4,{'attributes':'type'})){const _0x1bb1d1={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x4d6af4['getAttribute']('type')];_0x1bb1d1&&(_0x5b2e52=_0x1bb1d1),_0x18f0e9=!0x0;}_0x5549e3['consumable']['consume'](_0x4d6af4,{'styles':'list-style-type'})&&(_0x5b2e52=function(_0x402de1){switch(_0x402de1){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x402de1;}}(_0x4d6af4['getStyle']('list-style-type')),_0x18f0e9=!0x0),!_0x18f0e9&&_0x7b9ebe['hasAttribute']('footnotesListStyle')||_0x5549e3['writer']['setAttribute']('footnotesListStyle',_0x5b2e52,_0x7b9ebe);}(_0xcc0667,_0x442702,_0x4f291b,_0x462739));});}),_0x2abfbe['for']('downcast')['add'](_0x1fc822=>{_0x1fc822['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x209adc,_0x10a5de,_0x1c75a3)=>{if(!_0x1c75a3['consumable']['consume'](_0x10a5de['item'],_0x209adc['name']))return;const _0x47451b=M(_0x10a5de['item'],_0x1c75a3['mapper']),{attributeNewValue:_0x3cc0f2}=_0x10a5de;null==_0x3cc0f2||0x1===_0x3cc0f2?_0x1c75a3['writer']['removeAttribute']('start',_0x47451b):_0x1c75a3['writer']['setAttribute']('start',String(_0x3cc0f2),_0x47451b);}),_0x1fc822['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x234abc,_0x5b82a6,_0x4515f2)=>{if(!_0x4515f2['consumable']['consume'](_0x5b82a6['item'],_0x234abc['name']))return;const _0x3d2aab=M(_0x5b82a6['item'],_0x4515f2['mapper']),{attributeNewValue:_0x2fd590}=_0x5b82a6;_0x2fd590&&'decimal'!==_0x2fd590?_0x4515f2['writer']['setStyle']('list-style-type',_0x2fd590,_0x3d2aab):_0x4515f2['writer']['removeStyle']('list-style-type',_0x3d2aab);});});}['_definePostfixer'](){const {editor:_0x2bcc72}=this,{model:_0x269407}=_0x2bcc72,_0x798815=_0x2bcc72['plugins']['get'](f),_0x1c026c=this['_getDefaultListStyle'](),_0x5f35ad=this['_getDefaultStartIndex']();_0x269407['document']['registerPostFixer'](_0x4c1b93=>{const _0x12ad43=_0x269407['document']['differ']['getChanges']();let _0x2cd7fa=!0x1;for(const _0x146074 of _0x12ad43){if('insert'!==_0x146074['type']||'$text'===_0x146074['name'])continue;const _0x3890c6=_0x269407['createRangeOn'](_0x146074['position']['nodeAfter']);for(const _0x381f63 of _0x3890c6['getItems']())_0x381f63['is']('element','footnotesDefinitions')&&(!_0x381f63['hasAttribute']('footnotesListStart')&&_0x269407['schema']['checkAttribute'](_0x381f63,'footnotesListStart')&&(_0x4c1b93['setAttribute']('footnotesListStart',_0x5f35ad,_0x381f63),_0x2cd7fa=!0x0),!_0x381f63['hasAttribute']('footnotesListStyle')&&_0x269407['schema']['checkAttribute'](_0x381f63,'footnotesListStyle')&&(_0x4c1b93['setAttribute']('footnotesListStyle',_0x1c026c,_0x381f63),_0x2cd7fa=!0x0));}return _0x2cd7fa&&_0x798815['_updateFootnotesCounters'](_0x4c1b93),_0x2cd7fa;});}['_defineFormatter'](){const {editor:_0x2e986f}=this;_0x2e986f['plugins']['get'](f)['setFootnoteFormatter'](_0x889f0f=>this['_formatFootnoteListValue'](_0x889f0f));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x2ef841,value:_0x558678,digits:_0x3dfbed}){const _0x36cc3f=_0x2ef841['getAttribute']('footnotesListStyle'),_0x3e9c15=_0x2ef841['getAttribute']('footnotesListStart'),_0x504e38=Math['floor'](_0x558678)+(_0x3e9c15??0x1)-0x1;switch(_0x36cc3f){case'decimal-leading-zero':return function(_0x5ebc43,_0x5e200b){return String(_0x5ebc43)['padStart'](_0x5e200b,'0');}(_0x504e38,Math['max'](0x2,_0x3dfbed));case'lower-alpha':case'lower-latin':return N(_0x504e38,!0x1);case'upper-alpha':case'upper-latin':return N(_0x504e38,!0x0);case'lower-roman':return X(_0x504e38,!0x1);case'upper-roman':return X(_0x504e38,!0x0);default:return String(_0x504e38);}}}function M(_0x134f03,_0x8d4cbe){const _0x412190=_0x8d4cbe['toViewElement'](_0x134f03);return Array['from'](_0x412190['getChildren']())['find'](_0x52b961=>_0x52b961['is']('element','ol')&&_0x52b961['hasClass']('footnotes-list'));}function N(_0x43dfa6,_0x192044){let _0x51e04b='',_0x113595=_0x43dfa6;for(;_0x113595>0x0;){const _0x391384=(_0x113595-0x1)%0x1a;_0x51e04b=String['fromCharCode'](0x61+_0x391384)+_0x51e04b,_0x113595=Math['floor']((_0x113595-0x1)/0x1a);}return _0x192044?_0x51e04b['toUpperCase']():_0x51e04b;}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(_0x777700,_0x463de0){let _0x58617b='',_0x7d521f=_0x777700;for(const {value:_0x33af50,numeral:_0x38b554}of V)for(;_0x7d521f>=_0x33af50;)_0x58617b+=_0x38b554,_0x7d521f-=_0x33af50;return _0x463de0?_0x58617b:_0x58617b['toLowerCase']();}class J extends _0x16393e{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x45189c();['focusCycler'];constructor(_0x257df4,{styleButtonViews:_0x5f2902,styleGridAriaLabel:_0x2bb6a3}){super(_0x257df4),(this['focusCycler']=new _0xf78368({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x5f2902,_0x2bb6a3),[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 _0x1ec5cd of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x1ec5cd['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 _0x15e35c=_0x3b3950=>_0x3b3950['stopPropagation']();this['keystrokes']['set']('arrowright',_0x15e35c),this['keystrokes']['set']('arrowleft',_0x15e35c),this['keystrokes']['set']('arrowup',_0x15e35c),this['keystrokes']['set']('arrowdown',_0x15e35c);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x19be1b,_0x137f36){const _0x1e7cba=new _0x16393e(this['locale']);return _0x1e7cba['children']=_0x1e7cba['createCollection'](),_0x1e7cba['children']['addMany'](_0x19be1b),_0x1e7cba['setTemplate']({'tag':'div','attributes':{'aria-label':_0x137f36,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x1e7cba['children']}),_0x1e7cba['children']['delegate']('execute')['to'](this),_0x1e7cba['focus']=function(){for(const _0x3d90b1 of this['children'])if(_0x3d90b1 instanceof _0x1ada6b&&_0x3d90b1['isOn'])return void _0x3d90b1['focus']();this['children']['first']['focus']();},_0x1e7cba['focusTracker']=new ot(),_0x1e7cba['keystrokes']=new rt(),_0x1e7cba['render'](),_0x1e7cba['keystrokes']['listenTo'](_0x1e7cba['element']),this['children']['add'](_0x1e7cba),_0x1e7cba;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x2b7787=this['_createStartIndexPropertyView'](),_0x436eb4=[_0x2b7787],_0x155a38=new st(this['locale'],_0x436eb4);return _0x155a38['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x155a38['buttonView']['bind']('isEnabled')['toMany'](_0x436eb4,'isEnabled',(..._0xf0a99a)=>_0xf0a99a['some'](_0x1bc3d3=>_0x1bc3d3)),_0x155a38['buttonView']['on']('change:isEnabled',(_0x49f3f7,_0x19a10f,_0x54f061)=>{_0x54f061||(_0x155a38['isCollapsed']=!0x0);}),this['children']['add'](_0x155a38),[_0x2b7787,_0x155a38];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x1e5b43=new it(this['locale'],et);return _0x1e5b43['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x1e5b43['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x1e5b43['fieldView']['on']('input',()=>{const _0x1200d3=_0x1e5b43['fieldView']['element'],_0x339179=_0x1200d3['valueAsNumber'];Number['isNaN'](_0x339179)?_0x1e5b43['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x1200d3['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x339179}):_0x1e5b43['errorText']=t(_0x339179<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x1e5b43;}}class j extends _0x25c422{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x5dce42,_0x32e20a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x547b67}=this,{componentFactory:_0x4c8929}=_0x547b67['ui'];_0x547b67['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x4c8929['add']('footnotesStyle',function(_0xb5931a){return _0x110224=>{const {t:t}=_0x110224,_0x39be13=_0xb5931a['commands']['get']('footnotesStyle'),_0x225b5a=_0x121468(_0x110224),{buttonView:_0x143733}=_0x225b5a;return _0x225b5a['class']='ck-footnotes-styles-dropdown',_0x225b5a['bind']('isEnabled')['to'](_0x39be13,'isEnabled'),_0x143733['set']({'label':t('Footnotes\x20style'),'icon':_0x3af843,'tooltip':!0x0}),_0x225b5a['once']('change:isOpen',()=>{const _0x1c3500=function({editor:_0x2f8988,dropdownView:_0x1a76fb}){const {t:t}=_0x2f8988['locale'],_0x203bcc=t('Footnotes\x20definitions\x20styles'),_0x5b53b7=function(_0x1c3803){const t=_0x1c3803['locale']['t'],_0x416a41=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x5e3521},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x4bd19e},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x3e81bd},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x365514},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x4637bf},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x14a30e}];return _0x416a41['map'](function(_0x25ddec){const _0x34ab34=_0x25ddec['locale'];return({label:_0x1d9332,icon:_0x45804a,tooltip:_0x215b04,style:_0x3db665})=>{const _0x1c216c=_0x25ddec['commands']['get']('footnotesStyle'),_0x2df7a9=new _0x1ada6b(_0x34ab34);return _0x2df7a9['set']({'label':_0x1d9332,'icon':_0x45804a,'tooltip':_0x215b04}),_0x2df7a9['bind']('isOn')['to'](_0x1c216c,'value',_0x44b622=>_0x44b622===_0x3db665),_0x2df7a9['bind']('isEnabled')['to'](_0x1c216c,'isEnabled'),_0x2df7a9['on']('execute',()=>{_0x25ddec['execute']('footnotesStyle',{'value':_0x3db665}),_0x25ddec['editing']['view']['focus']();}),_0x2df7a9;};}(_0x1c3803));}(_0x2f8988),_0x10b210=new J(_0x2f8988['locale'],{'styleGridAriaLabel':_0x203bcc,'styleButtonViews':_0x5b53b7}),_0x16dad1=_0x2f8988['commands']['get']('footnotesStart');return _0x10b210['startIndexFieldView']['bind']('isEnabled')['to'](_0x16dad1),_0x10b210['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x16dad1),_0x10b210['on']('footnotesListStart',(_0x486bdc,_0x4a58d1)=>{_0x2f8988['execute']('footnotesStart',{'value':_0x4a58d1['startIndex']});}),_0x10b210['delegate']('execute')['to'](_0x1a76fb),_0x10b210;}({'editor':_0xb5931a,'dropdownView':_0x225b5a});_0x225b5a['panelView']['children']['add'](_0x1c3500);}),_0x225b5a;};}(_0x547b67));}['afterInit'](){const {editor:_0x361369}=this,{t:t}=_0x361369['locale'],_0x58e2fb=_0x361369['plugins']['get'](_0x32e20a),{defaultPositions:_0xdf7c76}=_0x172e76;_0x58e2fb['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x361369['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x36f798=>{let _0x4afc81=_0x36f798['getFirstPosition']()?.['parent'];return _0x4afc81?.['is']('$text')&&(_0x4afc81=_0x4afc81['parent']),_0x4afc81?.['is']('element')?_0x4afc81['findAncestor'](Q):null;},'positions':[_0xdf7c76['southArrowNorth'],_0xdf7c76['southArrowNorthMiddleWest'],_0xdf7c76['southArrowNorthMiddleEast'],_0xdf7c76['southArrowNorthWest'],_0xdf7c76['southArrowNorthEast'],_0xdf7c76['northArrowSouth'],_0xdf7c76['northArrowSouthMiddleWest'],_0xdf7c76['northArrowSouthMiddleEast'],_0xdf7c76['northArrowSouthWest'],_0xdf7c76['northArrowSouthEast'],_0xdf7c76['viewportStickyNorth']]});}}class ft extends _0x25c422{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.7.0-alpha.
|
|
3
|
+
"version": "47.7.0-alpha.1",
|
|
4
4
|
"description": "The footnotes feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"type": "module",
|
|
24
24
|
"main": "src/index.js",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "47.7.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "47.7.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "47.7.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "47.7.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "47.7.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "47.7.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "47.7.0-alpha.
|
|
33
|
-
"ckeditor5": "47.7.0-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "47.7.0-alpha.1",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "47.7.0-alpha.1",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "47.7.0-alpha.1",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "47.7.0-alpha.1",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "47.7.0-alpha.1",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "47.7.0-alpha.1",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "47.7.0-alpha.1",
|
|
33
|
+
"ckeditor5": "47.7.0-alpha.1"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (http://cksource.com/)",
|
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x58aed0}from'ckeditor5/src/core.js';import{isWidget as _0x268d8b,toWidget as _0x58fb8e,toWidgetEditable as _0x9fe8a8}from'ckeditor5/src/widget.js';import{uid as _0x2057c1}from'ckeditor5/src/utils.js';import{PointerObserver as _0x958e2e,ClickObserver as _0x511a3d}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x59e7e6}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x7cd373}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x58aed0{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x59e7e6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1288ca}=this;_0x1288ca['config']['define']('footnotes.multiBlock',!0x0),_0x1288ca['commands']['add']('insertFootnote',new _0x7cd373(_0x1288ca)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x426466){const _0x40fda9=_0x292e6f([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]),_0xd8fbd8=0x47a28506,_0x2d9c41=0x47a503ae^_0xd8fbd8,_0x528399=window[_0x292e6f([0x44,0x61,0x74,0x65])][_0x292e6f([0x6e,0x6f,0x77])](),_0x48c746=_0x426466[_0x292e6f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e909a=new window[(_0x292e6f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1beac8=>{_0x48c746[_0x292e6f([0x6f,0x6e,0x63,0x65])](_0x292e6f([0x72,0x65,0x61,0x64,0x79]),_0x1beac8);}),_0xf49fc2={[_0x292e6f([0x6b,0x74,0x79])]:_0x292e6f([0x45,0x43]),[_0x292e6f([0x75,0x73,0x65])]:_0x292e6f([0x73,0x69,0x67]),[_0x292e6f([0x63,0x72,0x76])]:_0x292e6f([0x50,0x2d,0x32,0x35,0x36]),[_0x292e6f([0x78])]:_0x292e6f([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]),[_0x292e6f([0x79])]:_0x292e6f([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]),[_0x292e6f([0x61,0x6c,0x67])]:_0x292e6f([0x45,0x53,0x32,0x35,0x36])},_0x38c221=_0x48c746[_0x292e6f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x292e6f([0x67,0x65,0x74])](_0x292e6f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1f6431(){let _0x4925cd,_0x5e5a81=null,_0xeb4d8=null;try{if(_0x38c221==_0x292e6f([0x47,0x50,0x4c]))return _0x292e6f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4925cd=_0x6fbaae(),!_0x4925cd)return _0x292e6f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4925cd[_0x292e6f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xeb4d8=_0x531d9e(_0x4925cd[_0x292e6f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4925cd[_0x292e6f([0x6a,0x74,0x69])])),await _0x426711()?_0x3d87d6()?_0x3cd489()?_0x292e6f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e2ded()?(_0x4925cd[_0x292e6f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x292e6f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e5a81=_0x17f70b(_0x292e6f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2f8a4d()):_0x292e6f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x292e6f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x292e6f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x292e6f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3cd489(){const _0x46737b=[_0x292e6f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x292e6f([0x74,0x72,0x69,0x61,0x6c])][_0x292e6f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4925cd[_0x292e6f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x528399/0x3e8:0xe10*_0x2d9c41;return _0x4925cd[_0x292e6f([0x65,0x78,0x70])]<_0x46737b;}function _0x3d87d6(){const _0x14037f=_0x4925cd[_0x292e6f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x14037f&&(!!_0x14037f[_0x292e6f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x292e6f([0x2a]))||!!_0x14037f[_0x292e6f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x292e6f([0x46,0x4f,0x4f])));}function _0x3e2ded(){const _0x2d9c28=_0x4925cd[_0x292e6f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2d9c28||0x0==_0x2d9c28[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x45b140}=new URL(window[_0x292e6f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2d9c28[_0x292e6f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45b140))return!0x0;const _0x291b23=_0x45b140[_0x292e6f([0x73,0x70,0x6c,0x69,0x74])](_0x292e6f([0x2e]));return _0x2d9c28[_0x292e6f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x240ceb=>_0x240ceb[_0x292e6f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x292e6f([0x2a])))[_0x292e6f([0x6d,0x61,0x70])](_0x322fa9=>_0x322fa9[_0x292e6f([0x73,0x70,0x6c,0x69,0x74])](_0x292e6f([0x2e])))[_0x292e6f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5633af=>_0x5633af[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x291b23[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x292e6f([0x6d,0x61,0x70])](_0x3f2b99=>Array(_0x291b23[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3f2b99[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x292e6f([0x66,0x69,0x6c,0x6c])](_0x3f2b99[0x0]===_0x292e6f([0x2a])?_0x292e6f([0x2a]):'')[_0x292e6f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3f2b99))[_0x292e6f([0x73,0x6f,0x6d,0x65])](_0x40a49a=>_0x291b23[_0x292e6f([0x65,0x76,0x65,0x72,0x79])]((_0x150f0a,_0x565c74)=>_0x40a49a[_0x565c74]===_0x150f0a||_0x40a49a[_0x565c74]===_0x292e6f([0x2a])));}function _0x2f8a4d(){return _0x5e5a81&&_0xeb4d8?new window[(_0x292e6f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39fc5a,_0x881e5f)=>{_0x5e5a81[_0x292e6f([0x74,0x68,0x65,0x6e])](_0x39fc5a,_0x881e5f),_0xeb4d8[_0x292e6f([0x74,0x68,0x65,0x6e])](_0x594cbe=>{_0x594cbe!=_0x292e6f([0x56,0x61,0x6c,0x69,0x64])&&_0x39fc5a(_0x594cbe);},_0x881e5f);}):_0x5e5a81||_0xeb4d8||_0x292e6f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x531d9e(_0x4ecff0,_0x19e954){return new window[(_0x292e6f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4900f2=>{if(_0x3995f7())return _0x4900f2(_0x292e6f([0x56,0x61,0x6c,0x69,0x64]));_0x359380(),_0x48c746[_0x292e6f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x292e6f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ec04b=!0x1;const _0x4a2dcc=_0x2057c1();function _0x247635(_0x115670){return!!_0x115670&&(typeof _0x115670===_0x292e6f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x115670===_0x292e6f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x115670[_0x292e6f([0x74,0x68,0x65,0x6e])]===_0x292e6f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x115670[_0x292e6f([0x63,0x61,0x74,0x63,0x68])]===_0x292e6f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x31b993(_0x417002){_0x4b4127(_0x417002)[_0x292e6f([0x74,0x68,0x65,0x6e])](_0xdcf391=>{if(!_0xdcf391||_0xdcf391[_0x292e6f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x292e6f([0x6f,0x6b]))return _0x292e6f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b8ff1(_0x307144(_0x4a2dcc+_0x19e954))!=_0xdcf391[_0x292e6f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x292e6f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x292e6f([0x56,0x61,0x6c,0x69,0x64]);})[_0x292e6f([0x74,0x68,0x65,0x6e])](_0xc7fe03=>(_0x2f5a9e(),_0xc7fe03),()=>{const _0x2b8344=_0xdc162a();return null==_0x2b8344?(_0x2f5a9e(),_0x292e6f([0x56,0x61,0x6c,0x69,0x64])):_0x292e6f(_0x528399-_0x2b8344>(0x63ae0106^_0xd8fbd8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x292e6f([0x74,0x68,0x65,0x6e])](_0x4900f2)[_0x292e6f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4900f2(_0x292e6f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12cd42=0x47946b86^_0xd8fbd8;function _0x2f5a9e(){const _0x774e9=_0x292e6f([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b8ff1(_0x307144(_0x4ecff0)),_0x1151ef=_0x200514(_0x1b8ff1(window[_0x292e6f([0x4d,0x61,0x74,0x68])][_0x292e6f([0x63,0x65,0x69,0x6c])](_0x528399/_0x12cd42)));window[_0x292e6f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x292e6f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x774e9,_0x1151ef);}function _0xdc162a(){const _0x2c9688=_0x292e6f([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b8ff1(_0x307144(_0x4ecff0)),_0x1d2ff8=window[_0x292e6f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x292e6f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c9688);return _0x1d2ff8?window[_0x292e6f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x200514(_0x1d2ff8),0x10)*_0x12cd42:null;}function _0x4b4127(_0x45b7da){return new window[(_0x292e6f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43d92e,_0x2d416c)=>{_0x45b7da[_0x292e6f([0x74,0x68,0x65,0x6e])](_0x43d92e,_0x2d416c),window[_0x292e6f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d416c,0x47a351c6^_0xd8fbd8);});}}_0x48c746[_0x292e6f([0x6f,0x6e])](_0x292e6f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x18192d,_0x955d6b)=>{if(_0x955d6b[0x0]!=_0x4ecff0)return _0x4900f2(_0x292e6f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x955d6b[0x1]={..._0x955d6b[0x1],[_0x292e6f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4a2dcc};},{[_0x292e6f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x292e6f([0x68,0x69,0x67,0x68])}),_0x48c746[_0x292e6f([0x6f,0x6e])](_0x292e6f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x37414a=>{_0x247635(_0x37414a[_0x292e6f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ec04b=!0x0,_0x31b993(_0x37414a[_0x292e6f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x292e6f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x292e6f([0x6c,0x6f,0x77])}),_0x3e909a[_0x292e6f([0x74,0x68,0x65,0x6e])](()=>{_0x4ec04b||_0x4900f2(_0x292e6f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3995f7(){return _0x48c746[_0x292e6f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x292e6f([0x76,0x69,0x65,0x77])][_0x292e6f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x292e6f([0x61,0x75,0x74,0x6f]);}function _0x359380(){_0x48c746[_0x292e6f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x292e6f([0x76,0x69,0x65,0x77])][_0x292e6f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x292e6f([0x61,0x75,0x74,0x6f]);}}function _0x17f70b(_0x4e9d19){const _0x20724d=[new window[(_0x292e6f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cfe4a=>setTimeout(_0x2cfe4a,0x47abbbca^_0xd8fbd8)),_0x3e909a[_0x292e6f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x292e6f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58e744=>{let _0x42e681=0x0;_0x48c746[_0x292e6f([0x6d,0x6f,0x64,0x65,0x6c])][_0x292e6f([0x6f,0x6e])](_0x292e6f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x486d72,_0xd3cfc8)=>{_0xd3cfc8[0x0][_0x292e6f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x42e681++,_0x42e681==(0x47a280ee^_0xd8fbd8)&&(_0x58e744(),_0x486d72[_0x292e6f([0x6f,0x66,0x66])]());});}))];return window[_0x292e6f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x292e6f([0x72,0x61,0x63,0x65])](_0x20724d)[_0x292e6f([0x74,0x68,0x65,0x6e])](()=>_0x4e9d19);}async function _0x158d6f(){await _0x3e909a,_0x48c746[_0x292e6f([0x6d,0x6f,0x64,0x65,0x6c])][_0x292e6f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa0b747,_0x48c746[_0x292e6f([0x6d,0x6f,0x64,0x65,0x6c])][_0x292e6f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa0b747,_0x48c746[_0x292e6f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x292e6f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x14040c(_0x34033d){const _0x53aa93=_0x335eac();_0x48c746[_0x53aa93]=_0x292e6f([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x34033d,_0x34033d!=_0x292e6f([0x56,0x61,0x6c,0x69,0x64])&&_0x158d6f();}function _0x335eac(){const _0x59c2b8=window[_0x292e6f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x292e6f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x292e6f([0x6e,0x6f,0x77])]())[_0x292e6f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x292e6f([0x2e]),'');let _0x4fbd7e=_0x292e6f([0x75]);for(let _0x30ab7c=0x0;_0x30ab7c<_0x59c2b8[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30ab7c+=0x2){let _0x67eb57=window[_0x292e6f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59c2b8[_0x292e6f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30ab7c,_0x30ab7c+0x2));_0x67eb57>=_0x40fda9[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x67eb57-=_0x40fda9[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4fbd7e+=_0x40fda9[_0x67eb57];}return _0x4fbd7e;}function _0x6fbaae(){const _0x15275f=_0x38c221[_0x292e6f([0x73,0x70,0x6c,0x69,0x74])](_0x292e6f([0x2e]));if(0x3!=_0x15275f[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b2a8c(_0x15275f[0x1]);function _0x2b2a8c(_0x27204f){const _0x126f1a=_0x3aa979(_0x27204f);return _0x126f1a&&_0x4eb494()?_0x126f1a:null;function _0x4eb494(){const _0x37ad3d=_0x126f1a[_0x292e6f([0x6a,0x74,0x69])],_0x4111c2=window[_0x292e6f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37ad3d[_0x292e6f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37ad3d[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4513ef={..._0x126f1a,[_0x292e6f([0x6a,0x74,0x69])]:_0x37ad3d[_0x292e6f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x37ad3d[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4513ef[_0x292e6f([0x76,0x63])],_0x307144(_0x4513ef)==_0x4111c2;}}}async function _0x426711(){let _0x44670c=!0x0;try{const _0x4ce1c5=_0x38c221[_0x292e6f([0x73,0x70,0x6c,0x69,0x74])](_0x292e6f([0x2e])),[_0x18b16b,_0x393853,_0x3aff5d]=_0x4ce1c5;return _0x3d1717(_0x18b16b),await _0x4cb9a1(_0x18b16b,_0x393853,_0x3aff5d),_0x44670c;}catch{return!0x1;}function _0x3d1717(_0x42b7b9){const _0x2cc5fc=_0x3aa979(_0x42b7b9);_0x2cc5fc&&_0x2cc5fc[_0x292e6f([0x61,0x6c,0x67])]==_0x292e6f([0x45,0x53,0x32,0x35,0x36])||(_0x44670c=!0x1);}async function _0x4cb9a1(_0x2b9567,_0x36d087,_0x18b577){const _0x45dd81=window[_0x292e6f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x292e6f([0x66,0x72,0x6f,0x6d])](_0xd4832b(_0x18b577),_0x467ab4=>_0x467ab4[_0x292e6f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x159f9d=new window[(_0x292e6f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x292e6f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2b9567+_0x292e6f([0x2e])+_0x36d087),_0x37f5f3=window[_0x292e6f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x292e6f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x37f5f3)return;const _0x11219f=await _0x37f5f3[_0x292e6f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x292e6f([0x6a,0x77,0x6b]),_0xf49fc2,{[_0x292e6f([0x6e,0x61,0x6d,0x65])]:_0x292e6f([0x45,0x43,0x44,0x53,0x41]),[_0x292e6f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x292e6f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x292e6f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x37f5f3[_0x292e6f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x292e6f([0x6e,0x61,0x6d,0x65])]:_0x292e6f([0x45,0x43,0x44,0x53,0x41]),[_0x292e6f([0x68,0x61,0x73,0x68])]:{[_0x292e6f([0x6e,0x61,0x6d,0x65])]:_0x292e6f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x11219f,_0x45dd81,_0x159f9d)||(_0x44670c=!0x1);}}function _0x3aa979(_0x2a5c7d){return _0x2a5c7d[_0x292e6f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x292e6f([0x65,0x79]))?JSON[_0x292e6f([0x70,0x61,0x72,0x73,0x65])](_0xd4832b(_0x2a5c7d)):null;}function _0xd4832b(_0x31cfec){return window[_0x292e6f([0x61,0x74,0x6f,0x62])](_0x31cfec[_0x292e6f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x292e6f([0x2b]))[_0x292e6f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x292e6f([0x2f])));}function _0x307144(_0x4605b1){let _0x50422e=0x1505;function _0x32ea8e(_0x439ac5){for(let _0x9a3864=0x0;_0x9a3864<_0x439ac5[_0x292e6f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9a3864++){const _0x1cbea3=_0x439ac5[_0x292e6f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x9a3864);_0x50422e=(_0x50422e<<0x5)+_0x50422e+_0x1cbea3,_0x50422e&=_0x50422e;}}function _0x335af8(_0x4a4159){Array[_0x292e6f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a4159)?_0x4a4159[_0x292e6f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x335af8):_0x4a4159&&typeof _0x4a4159==_0x292e6f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x292e6f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a4159)[_0x292e6f([0x73,0x6f,0x72,0x74])]()[_0x292e6f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5c807e,_0x30f917])=>{_0x32ea8e(_0x5c807e),_0x335af8(_0x30f917);}):_0x32ea8e(window[_0x292e6f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a4159));}return _0x335af8(_0x4605b1),_0x50422e>>>0x0;}function _0x1b8ff1(_0x3dfd2b){return _0x3dfd2b[_0x292e6f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x292e6f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x292e6f([0x30]));}function _0x200514(_0x29e389){return _0x29e389[_0x292e6f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x292e6f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x292e6f([0x6a,0x6f,0x69,0x6e])]('');}function _0xa0b747(){}function _0x292e6f(_0x245d01){return _0x245d01['map'](_0x542a66=>String['fromCharCode'](_0x542a66))['join']('');}_0x14040c(await _0x1f6431());}(this);}['_moveSelectionToFootnoteDefinition'](_0x52dd99){const {plugins:_0x17e863,editing:_0x1a2f71,model:_0x1017a5}=this['editor'],_0x1bdb80=_0x17e863['get'](_0x59e7e6)['getFootnote'](_0x52dd99);return!!_0x1bdb80&&(_0x1017a5['change'](_0x2c1ea3=>{_0x2c1ea3['setSelection'](_0x2c1ea3['createPositionAt'](_0x1bdb80['definition'],'end'));}),_0x1a2f71['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x47582c){const {plugins:_0x2cea76,editing:_0x338b0a,model:_0x53f344}=this['editor'],_0x14eed9=_0x2cea76['get'](_0x59e7e6)['getFootnote'](_0x47582c);return!!_0x14eed9&&(_0x53f344['change'](_0x494d9c=>{_0x494d9c['setSelection'](_0x14eed9['reference'],'on');}),_0x338b0a['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x46927c}=this['editor']['model'],_0x29ed27=this['editor']['config']['get']('footnotes.multiBlock');_0x46927c['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x46927c['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x46927c['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x29ed27?_0x46927c['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x46927c['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x46927c['addChildCheck'](_0x354b17=>{for(const _0x1b2f53 of _0x354b17)if('footnoteDefinition'===_0x1b2f53['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x3ee123}=this,{conversion:_0x5bf3c5,editing:_0x36fd6b}=_0x3ee123,{t:t}=_0x3ee123['locale'];_0x5bf3c5['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x174e9b,{writer:_0x260a62,consumable:_0x75cd15})=>{const _0x8d2fe8=_0x174e9b['getChild'](0x0);if(!_0x8d2fe8||!_0x8d2fe8['is']('element','a'))return null;const _0x129dd1=_0x8d2fe8['getAttribute']('href')||'';if(!_0x129dd1['startsWith']('#'))return null;const _0x18c5e9=_0x129dd1['replace'](/^#/,'');if(!_0x18c5e9)return null;_0x75cd15['consume'](_0x8d2fe8,{'name':!0x0,'attributes':['href']});for(const {item:_0x5b0f16}of _0x36fd6b['view']['createRangeIn'](_0x8d2fe8))_0x5b0f16['is']('$textProxy')?_0x75cd15['consume'](_0x5b0f16['textNode'],{'name':!0x0}):_0x5b0f16['is']('element')&&_0x75cd15['consume'](_0x5b0f16,{'name':!0x0});return _0x260a62['createElement']('footnoteRef',{'footnoteId':_0x18c5e9});}}),_0x5bf3c5['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x48a5d5,{writer:_0x54c1b7})=>b(_0x48a5d5,_0x54c1b7)}),_0x5bf3c5['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3aafcb,{writer:_0x219ff8})=>{const _0x21524a=_0x3aafcb['getAttribute']('footnoteCounter');return _0x58fb8e(b(_0x3aafcb,_0x219ff8),_0x219ff8,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x21524a)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3293ab}=this,{t:t}=_0x3293ab['locale'],{conversion:_0x541b89}=_0x3293ab;_0x541b89['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x541b89['for']('upcast')['add'](_0x37be8b=>{_0x37be8b['on']('element:ol',(_0x279d42,_0x341a31,_0x5d42fd)=>{const _0x42d2b9=_0x341a31['viewItem'];if(!_0x42d2b9['hasClass']('footnotes-list')||!_0x341a31['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x5d42fd['consumable']['consume'](_0x42d2b9,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x4d8d,modelCursor:_0x5451ba}=_0x5d42fd['convertChildren'](_0x341a31['viewItem'],_0x341a31['modelCursor']);_0x341a31['modelRange']=_0x4d8d,_0x341a31['modelCursor']=_0x5451ba;}),_0x37be8b['on']('element:hr',(_0x564643,_0x18b837,_0x38453a)=>{const _0x48fb0e=_0x18b837['viewItem'];_0x48fb0e['hasClass']('footnotes-divider')&&_0x18b837['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x38453a['consumable']['consume'](_0x48fb0e,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x541b89['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xd7b664,{writer:_0x1d5aea})=>D(_0x1d5aea)}),_0x541b89['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5e23b2,{writer:_0x3d6371})=>{const _0x555415=D(_0x3d6371,{'data-footnotes-list-label':t('Footnotes')}),_0x5df604=_0x58fb8e(_0x555415,_0x3d6371,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3d6371['setCustomProperty']('footnotesDefinitions',!0x0,_0x5df604),_0x5df604;}});}['_defineDefinitionConverters'](){const {editor:_0x3032ed}=this,{conversion:_0x2dec7a,locale:_0x404e85}=_0x3032ed,_0x140af6=_0x3032ed['config']['get']('footnotes.multiBlock');_0x2dec7a['for']('upcast')['add'](_0xf35cd5=>{_0xf35cd5['on']('element:li',(_0x5f1021,_0x55b5b5,_0x3b8fcb)=>{const _0x47bbfa=_0x55b5b5['viewItem'];if(!_0x47bbfa['hasClass']('footnote-definition')||!_0x47bbfa['getAttribute']('id'))return;const _0x2a4cf5=_0x47bbfa['parent'];if(!_0x2a4cf5['is']('element','ol')||!_0x2a4cf5['hasClass']('footnotes-list'))return;if(!_0x3b8fcb['consumable']['test'](_0x47bbfa,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4237e4=_0x3b8fcb['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x47bbfa['getAttribute']('id')});if(!_0x3b8fcb['safeInsert'](_0x4237e4,_0x55b5b5['modelCursor']))return;_0x3b8fcb['consumable']['consume'](_0x47bbfa,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5a38ac=Array['from'](_0x47bbfa['getChildren']())['find'](_0x43a213=>_0x43a213['is']('element')&&_0x43a213['hasClass']('footnote-content'));for(const _0xc52553 of _0x47bbfa['getChildren']())_0xc52553['is']('element')&&(_0x3b8fcb['consumable']['consume'](_0xc52553,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x3b8fcb['consumable']['consume'](_0xc52553,{'name':!0x0,'classes':'footnote-content'}));if(_0x5a38ac){if(_0x140af6)_0x3b8fcb['convertChildren'](_0x5a38ac,_0x4237e4);else{const _0x3d35da=_0x3b8fcb['writer']['createElement']('footnoteInlineContent');_0x3b8fcb['writer']['insert'](_0x3d35da,_0x4237e4),_0x3b8fcb['convertChildren'](_0x5a38ac,_0x3d35da);}}_0x3b8fcb['updateConversionResult'](_0x4237e4,_0x55b5b5);});}),_0x2dec7a['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3484fe,{writer:_0x32ba79})=>y(_0x3484fe,_0x32ba79,_0x404e85,{'dataPipeline':!0x0})}),_0x2dec7a['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5bb070,{writer:_0xbf5bf0})=>y(_0x5bb070,_0xbf5bf0,_0x404e85)});}['_defineBogusParagraphConverters'](){const {editor:_0x4ee56e}=this,{conversion:_0x240c53}=_0x4ee56e;_0x4ee56e['config']['get']('footnotes.multiBlock')?(_0x240c53['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x240c53['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4ee56e['model']['document'],'change:data',()=>{!function(_0x4653f8,_0x57b992){const _0x1e91a3=_0x4653f8['document']['differ'],_0x1d1290=new Set();for(const _0x2e7b0d of _0x1e91a3['getChanges']()){const _0x5489c0='attribute'==_0x2e7b0d['type']?_0x2e7b0d['range']['start']['parent']:_0x2e7b0d['position']['parent'];_0x5489c0['is']('element','footnoteDefinition')&&_0x1d1290['add'](_0x5489c0);}for(const _0x349d9a of _0x1d1290['values']()){const _0x53fd9e=Array['from'](_0x349d9a['getChildren']())['filter'](_0x58685f=>v(_0x58685f,_0x57b992['mapper']));for(const _0x1cdda0 of _0x53fd9e)_0x57b992['reconvertItem'](_0x1cdda0);}}(_0x4ee56e['model'],_0x4ee56e['editing']);})):(_0x240c53['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x240c53['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x11f5bb,{writer:_0xfa2ccd})=>{const _0x2159d6=_0xfa2ccd['createContainerElement']('span');return _0xfa2ccd['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2159d6),_0x2159d6;}}));}['_defineKeyboardHandlers'](){const {editor:_0x2f50d7}=this,{editing:_0x2f4824,t:t}=_0x2f50d7,_0x4edc46=_0x2f50d7['model']['document']['selection'];_0x2f50d7['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x2f50d7['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x2f4824['view']['document'],'enter',(_0x2c57dc,_0x23bbad)=>{const _0x4af910=function(_0xfbf5c4){const _0x35a272=_0xfbf5c4['getSelectedElement']();if(_0x35a272?.['is']('element','footnoteRef'))return _0x35a272;return null;}(_0x4edc46);if(_0x4af910){const _0x4aca98=_0x4af910['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4aca98),_0x23bbad['preventDefault'](),_0x2c57dc['stop']();}},{'context':_0x268d8b});}['_defineClickHandlers'](){const {editor:_0x48c498}=this,{editing:_0xa78005}=_0x48c498;_0x48c498['editing']['view']['addObserver'](_0x958e2e),_0x48c498['editing']['view']['addObserver'](_0x511a3d);let _0x5de236=!0x1;this['listenTo'](_0xa78005['view']['document'],'pointerdown',(_0x1bdc4e,_0x7538fb)=>{const {target:_0x409e5c}=_0x7538fb,_0x137e2e=_0xa78005['view']['document']['selection'];_0x5de236=!!(_0x409e5c?.['is']('element','a')&&_0x409e5c['parent']?.['is']('element','sup')&&_0x409e5c['parent']['hasClass']('footnote'))&&_0x137e2e['getSelectedElement']()===_0x409e5c['parent'];},{'priority':'high'}),this['listenTo'](_0xa78005['view']['document'],'click',(_0x2dd2e6,_0x5c79a0)=>{const {target:_0x28750d}=_0x5c79a0;if(!_0x28750d?.['is']('element','a'))return;if(_0x28750d['parent']?.['is']('element','sup')&&_0x28750d['parent']['hasClass']('footnote')&&!_0x5de236)return void _0x5c79a0['preventDefault']();let _0x368249=_0x28750d['getAttribute']('href');if(!_0x368249?.['startsWith']('#'))return;_0x368249=_0x368249['slice'](0x1);let _0x1c6caa=!0x1;(_0x368249['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x368249['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x368249))&&(_0x1c6caa=!0x0),_0x1c6caa&&(_0x5c79a0['preventDefault'](),_0x2dd2e6['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x295009}={}){return(_0x147976,{writer:_0x27059f})=>{if(!g(_0x147976))return null;if(!_0x295009)return _0x27059f['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x362f51=_0x27059f['createContainerElement']('p');return _0x27059f['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x362f51),_0x362f51;};}function g(_0x2e5769){const {parent:_0x14d71f}=_0x2e5769;if(!_0x14d71f?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x14d71f['childCount'])return!0x1;for(const _0x3c1573 of _0x2e5769['getAttributeKeys']())if(!_0x3c1573['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3c1573)return!0x1;return!0x0;}function v(_0x2f8e12,_0x59935a){if(!_0x2f8e12['is']('element','paragraph'))return!0x1;const _0x48549b=_0x59935a['toViewElement'](_0x2f8e12);return!!_0x48549b&&g(_0x2f8e12)!==_0x48549b['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x463626){return _0x268d8b(_0x463626)&&_0x463626['is']('containerElement')&&!!_0x463626['getCustomProperty']('footnotesDefinitions');}function D(_0x36ea7b,_0x19744d={}){const _0x23cf52=_0x36ea7b['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x5d8fab=_0x36ea7b['createContainerElement']('ol',{'class':'footnotes-list'},_0x36ea7b['createSlot']());return _0x36ea7b['createContainerElement']('div',{'class':'footnotes',..._0x19744d},[_0x23cf52,_0x5d8fab]);}function b(_0x296034,_0x12e4d3){const _0x44dc57=_0x296034['getAttribute']('footnoteId'),_0x560365=_0x296034['getAttribute']('footnoteCounter'),_0x5c22bd=_0x12e4d3['createUIElement']('a',{'href':'#'+_0x44dc57},function(_0x1e8ec6){const _0x6d247c=this['toDomElement'](_0x1e8ec6);return _0x6d247c['textContent']=_0x560365,_0x6d247c;}),_0x28d3dc=_0x12e4d3['createContainerElement']('sup',{'id':'ref-'+_0x44dc57,'class':'footnote'},[_0x5c22bd]);return _0x28d3dc['getFillerOffset']=()=>null,_0x28d3dc;}function y(_0x29622b,_0x5218be,_0x427370,{dataPipeline:_0xb8ab05}={}){const {t:t}=_0x427370,_0x42e4a0=_0x29622b['getAttribute']('footnoteId'),_0xc72ff4=_0x5218be['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x42e4a0},function(_0x3a6070){const _0x2239b4=this['toDomElement'](_0x3a6070);return _0x2239b4['innerText']='^',_0x2239b4;}),_0x2b108a=_0xb8ab05?_0x5218be['createContainerElement']('div',{'class':'footnote-content'}):_0x9fe8a8(_0x5218be['createEditableElement']('div',{'class':'footnote-content'}),_0x5218be,{'label':t('Footnote\x20content.')});return _0x5218be['insert'](_0x5218be['createPositionAt'](_0x2b108a,0x0),_0x5218be['createSlot']()),_0x5218be['createContainerElement']('li',{'class':'footnote-definition','id':_0x42e4a0},[_0xc72ff4,_0x2b108a]);}
|
|
23
|
+
import{Plugin as _0x5b6852}from'ckeditor5/src/core.js';import{isWidget as _0x561c95,toWidget as _0x4d4b41,toWidgetEditable as _0xf07c40}from'ckeditor5/src/widget.js';import{uid as _0x55e9e4}from'ckeditor5/src/utils.js';import{PointerObserver as _0x54fede,ClickObserver as _0x2a7238}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x426dc2}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x2edf45}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x5b6852{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x426dc2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x15996f}=this;_0x15996f['config']['define']('footnotes.multiBlock',!0x0),_0x15996f['commands']['add']('insertFootnote',new _0x2edf45(_0x15996f)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x35317b){const _0xd3eb6b=_0x37a0ba([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]),_0x4e9e10=0x47a28506,_0x320e9f=0x47a50226^_0x4e9e10,_0x4063da=window[_0x37a0ba([0x44,0x61,0x74,0x65])][_0x37a0ba([0x6e,0x6f,0x77])](),_0x33bb16=_0x35317b[_0x37a0ba([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x32052d=new window[(_0x37a0ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33c6ce=>{_0x33bb16[_0x37a0ba([0x6f,0x6e,0x63,0x65])](_0x37a0ba([0x72,0x65,0x61,0x64,0x79]),_0x33c6ce);}),_0x24c199={[_0x37a0ba([0x6b,0x74,0x79])]:_0x37a0ba([0x45,0x43]),[_0x37a0ba([0x75,0x73,0x65])]:_0x37a0ba([0x73,0x69,0x67]),[_0x37a0ba([0x63,0x72,0x76])]:_0x37a0ba([0x50,0x2d,0x32,0x35,0x36]),[_0x37a0ba([0x78])]:_0x37a0ba([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]),[_0x37a0ba([0x79])]:_0x37a0ba([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]),[_0x37a0ba([0x61,0x6c,0x67])]:_0x37a0ba([0x45,0x53,0x32,0x35,0x36])},_0xd7e8af=_0x33bb16[_0x37a0ba([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x37a0ba([0x67,0x65,0x74])](_0x37a0ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4afa2e(){let _0x4b6169,_0x22fddd=null,_0x1bc7cb=null;try{if(_0xd7e8af==_0x37a0ba([0x47,0x50,0x4c]))return _0x37a0ba([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b6169=_0x4d3ea8(),!_0x4b6169)return _0x37a0ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b6169[_0x37a0ba([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1bc7cb=_0x180800(_0x4b6169[_0x37a0ba([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b6169[_0x37a0ba([0x6a,0x74,0x69])])),await _0x32c459()?_0x288871()?_0x22a24b()?_0x37a0ba([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x531251()?(_0x4b6169[_0x37a0ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37a0ba([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x22fddd=_0x1229fb(_0x37a0ba([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x246389()):_0x37a0ba([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x37a0ba([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x37a0ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x37a0ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x22a24b(){const _0x2d7db9=[_0x37a0ba([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x37a0ba([0x74,0x72,0x69,0x61,0x6c])][_0x37a0ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b6169[_0x37a0ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4063da/0x3e8:0xe10*_0x320e9f;return _0x4b6169[_0x37a0ba([0x65,0x78,0x70])]<_0x2d7db9;}function _0x288871(){const _0x429c33=_0x4b6169[_0x37a0ba([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x429c33&&(!!_0x429c33[_0x37a0ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37a0ba([0x2a]))||!!_0x429c33[_0x37a0ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37a0ba([0x46,0x4f,0x4f])));}function _0x531251(){const _0x480b53=_0x4b6169[_0x37a0ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x480b53||0x0==_0x480b53[_0x37a0ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3f4e2d}=new URL(window[_0x37a0ba([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x480b53[_0x37a0ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f4e2d))return!0x0;const _0x57d459=_0x3f4e2d[_0x37a0ba([0x73,0x70,0x6c,0x69,0x74])](_0x37a0ba([0x2e]));return _0x480b53[_0x37a0ba([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3337bb=>_0x3337bb[_0x37a0ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37a0ba([0x2a])))[_0x37a0ba([0x6d,0x61,0x70])](_0x473580=>_0x473580[_0x37a0ba([0x73,0x70,0x6c,0x69,0x74])](_0x37a0ba([0x2e])))[_0x37a0ba([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4fab3f=>_0x4fab3f[_0x37a0ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x57d459[_0x37a0ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x37a0ba([0x6d,0x61,0x70])](_0x2395e4=>Array(_0x57d459[_0x37a0ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2395e4[_0x37a0ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x37a0ba([0x66,0x69,0x6c,0x6c])](_0x2395e4[0x0]===_0x37a0ba([0x2a])?_0x37a0ba([0x2a]):'')[_0x37a0ba([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2395e4))[_0x37a0ba([0x73,0x6f,0x6d,0x65])](_0x3ef52e=>_0x57d459[_0x37a0ba([0x65,0x76,0x65,0x72,0x79])]((_0xcc67f7,_0x5ef839)=>_0x3ef52e[_0x5ef839]===_0xcc67f7||_0x3ef52e[_0x5ef839]===_0x37a0ba([0x2a])));}function _0x246389(){return _0x22fddd&&_0x1bc7cb?new window[(_0x37a0ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x320bca,_0xc8a214)=>{_0x22fddd[_0x37a0ba([0x74,0x68,0x65,0x6e])](_0x320bca,_0xc8a214),_0x1bc7cb[_0x37a0ba([0x74,0x68,0x65,0x6e])](_0x114731=>{_0x114731!=_0x37a0ba([0x56,0x61,0x6c,0x69,0x64])&&_0x320bca(_0x114731);},_0xc8a214);}):_0x22fddd||_0x1bc7cb||_0x37a0ba([0x56,0x61,0x6c,0x69,0x64]);}}function _0x180800(_0x52eea4,_0x3dea85){return new window[(_0x37a0ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x847eb2=>{if(_0x31fecf())return _0x847eb2(_0x37a0ba([0x56,0x61,0x6c,0x69,0x64]));_0x1e70cb(),_0x33bb16[_0x37a0ba([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x37a0ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1ff728=!0x1;const _0x4eb61f=_0x55e9e4();function _0x1ebe1a(_0x4ac615){return!!_0x4ac615&&(typeof _0x4ac615===_0x37a0ba([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4ac615===_0x37a0ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4ac615[_0x37a0ba([0x74,0x68,0x65,0x6e])]===_0x37a0ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4ac615[_0x37a0ba([0x63,0x61,0x74,0x63,0x68])]===_0x37a0ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x13e87d(_0x1f658c){_0x436ff9(_0x1f658c)[_0x37a0ba([0x74,0x68,0x65,0x6e])](_0x3546e6=>{if(!_0x3546e6||_0x3546e6[_0x37a0ba([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x37a0ba([0x6f,0x6b]))return _0x37a0ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3b31ed(_0x32de7c(_0x4eb61f+_0x3dea85))!=_0x3546e6[_0x37a0ba([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x37a0ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x37a0ba([0x56,0x61,0x6c,0x69,0x64]);})[_0x37a0ba([0x74,0x68,0x65,0x6e])](_0x1e6858=>(_0x2abac9(),_0x1e6858),()=>{const _0x455d69=_0x1a692c();return null==_0x455d69?(_0x2abac9(),_0x37a0ba([0x56,0x61,0x6c,0x69,0x64])):_0x37a0ba(_0x4063da-_0x455d69>(0x63ae0106^_0x4e9e10)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x37a0ba([0x74,0x68,0x65,0x6e])](_0x847eb2)[_0x37a0ba([0x63,0x61,0x74,0x63,0x68])](()=>{_0x847eb2(_0x37a0ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x293e85=0x47946b86^_0x4e9e10;function _0x2abac9(){const _0x4c76c2=_0x37a0ba([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b31ed(_0x32de7c(_0x52eea4)),_0x562d6e=_0x48efe(_0x3b31ed(window[_0x37a0ba([0x4d,0x61,0x74,0x68])][_0x37a0ba([0x63,0x65,0x69,0x6c])](_0x4063da/_0x293e85)));window[_0x37a0ba([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37a0ba([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c76c2,_0x562d6e);}function _0x1a692c(){const _0x208b4c=_0x37a0ba([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b31ed(_0x32de7c(_0x52eea4)),_0x28b5fd=window[_0x37a0ba([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37a0ba([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x208b4c);return _0x28b5fd?window[_0x37a0ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48efe(_0x28b5fd),0x10)*_0x293e85:null;}function _0x436ff9(_0x2b914e){return new window[(_0x37a0ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x525f47,_0x322758)=>{_0x2b914e[_0x37a0ba([0x74,0x68,0x65,0x6e])](_0x525f47,_0x322758),window[_0x37a0ba([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x322758,0x47a351c6^_0x4e9e10);});}}_0x33bb16[_0x37a0ba([0x6f,0x6e])](_0x37a0ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2fa5e6,_0xd3dd80)=>{if(_0xd3dd80[0x0]!=_0x52eea4)return _0x847eb2(_0x37a0ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd3dd80[0x1]={..._0xd3dd80[0x1],[_0x37a0ba([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4eb61f};},{[_0x37a0ba([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37a0ba([0x68,0x69,0x67,0x68])}),_0x33bb16[_0x37a0ba([0x6f,0x6e])](_0x37a0ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1145bb=>{_0x1ebe1a(_0x1145bb[_0x37a0ba([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1ff728=!0x0,_0x13e87d(_0x1145bb[_0x37a0ba([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x37a0ba([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37a0ba([0x6c,0x6f,0x77])}),_0x32052d[_0x37a0ba([0x74,0x68,0x65,0x6e])](()=>{_0x1ff728||_0x847eb2(_0x37a0ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x31fecf(){return _0x33bb16[_0x37a0ba([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37a0ba([0x76,0x69,0x65,0x77])][_0x37a0ba([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x37a0ba([0x61,0x75,0x74,0x6f]);}function _0x1e70cb(){_0x33bb16[_0x37a0ba([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37a0ba([0x76,0x69,0x65,0x77])][_0x37a0ba([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x37a0ba([0x61,0x75,0x74,0x6f]);}}function _0x1229fb(_0x58ca75){const _0x4a4f98=[new window[(_0x37a0ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12f598=>setTimeout(_0x12f598,0x47abbbca^_0x4e9e10)),_0x32052d[_0x37a0ba([0x74,0x68,0x65,0x6e])](()=>new window[(_0x37a0ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44acc3=>{let _0x203eea=0x0;_0x33bb16[_0x37a0ba([0x6d,0x6f,0x64,0x65,0x6c])][_0x37a0ba([0x6f,0x6e])](_0x37a0ba([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x26a5e5,_0x563936)=>{_0x563936[0x0][_0x37a0ba([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x203eea++,_0x203eea==(0x47a280ee^_0x4e9e10)&&(_0x44acc3(),_0x26a5e5[_0x37a0ba([0x6f,0x66,0x66])]());});}))];return window[_0x37a0ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x37a0ba([0x72,0x61,0x63,0x65])](_0x4a4f98)[_0x37a0ba([0x74,0x68,0x65,0x6e])](()=>_0x58ca75);}async function _0xfa21ec(){await _0x32052d,_0x33bb16[_0x37a0ba([0x6d,0x6f,0x64,0x65,0x6c])][_0x37a0ba([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x16f812,_0x33bb16[_0x37a0ba([0x6d,0x6f,0x64,0x65,0x6c])][_0x37a0ba([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x16f812,_0x33bb16[_0x37a0ba([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x37a0ba([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xeadcdf(_0x468141){const _0x23bb06=_0x463272();_0x33bb16[_0x23bb06]=_0x37a0ba([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x468141,_0x468141!=_0x37a0ba([0x56,0x61,0x6c,0x69,0x64])&&_0xfa21ec();}function _0x463272(){const _0xf8c613=window[_0x37a0ba([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x37a0ba([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x37a0ba([0x6e,0x6f,0x77])]())[_0x37a0ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x37a0ba([0x2e]),'');let _0x2495b9=_0x37a0ba([0x75]);for(let _0x133ede=0x0;_0x133ede<_0xf8c613[_0x37a0ba([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x133ede+=0x2){let _0x57df5a=window[_0x37a0ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf8c613[_0x37a0ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x133ede,_0x133ede+0x2));_0x57df5a>=_0xd3eb6b[_0x37a0ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x57df5a-=_0xd3eb6b[_0x37a0ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2495b9+=_0xd3eb6b[_0x57df5a];}return _0x2495b9;}function _0x4d3ea8(){const _0x8f62e2=_0xd7e8af[_0x37a0ba([0x73,0x70,0x6c,0x69,0x74])](_0x37a0ba([0x2e]));if(0x3!=_0x8f62e2[_0x37a0ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4ec0bf(_0x8f62e2[0x1]);function _0x4ec0bf(_0x597547){const _0x30f515=_0x3ea55a(_0x597547);return _0x30f515&&_0x5b217e()?_0x30f515:null;function _0x5b217e(){const _0x28a3bc=_0x30f515[_0x37a0ba([0x6a,0x74,0x69])],_0x336284=window[_0x37a0ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28a3bc[_0x37a0ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x28a3bc[_0x37a0ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x6621ff={..._0x30f515,[_0x37a0ba([0x6a,0x74,0x69])]:_0x28a3bc[_0x37a0ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x28a3bc[_0x37a0ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x6621ff[_0x37a0ba([0x76,0x63])],_0x32de7c(_0x6621ff)==_0x336284;}}}async function _0x32c459(){let _0x4fca66=!0x0;try{const _0x57d093=_0xd7e8af[_0x37a0ba([0x73,0x70,0x6c,0x69,0x74])](_0x37a0ba([0x2e])),[_0x460164,_0x4047ae,_0x1ecb83]=_0x57d093;return _0x2c5296(_0x460164),await _0x3a10ae(_0x460164,_0x4047ae,_0x1ecb83),_0x4fca66;}catch{return!0x1;}function _0x2c5296(_0x36d7c3){const _0x5a425f=_0x3ea55a(_0x36d7c3);_0x5a425f&&_0x5a425f[_0x37a0ba([0x61,0x6c,0x67])]==_0x37a0ba([0x45,0x53,0x32,0x35,0x36])||(_0x4fca66=!0x1);}async function _0x3a10ae(_0x1aef65,_0x27f598,_0x142f8e){const _0x1c9149=window[_0x37a0ba([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x37a0ba([0x66,0x72,0x6f,0x6d])](_0x2703b9(_0x142f8e),_0x2ef533=>_0x2ef533[_0x37a0ba([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x7a4680=new window[(_0x37a0ba([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x37a0ba([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1aef65+_0x37a0ba([0x2e])+_0x27f598),_0x59e500=window[_0x37a0ba([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x37a0ba([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x59e500)return;const _0x557377=await _0x59e500[_0x37a0ba([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x37a0ba([0x6a,0x77,0x6b]),_0x24c199,{[_0x37a0ba([0x6e,0x61,0x6d,0x65])]:_0x37a0ba([0x45,0x43,0x44,0x53,0x41]),[_0x37a0ba([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x37a0ba([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x37a0ba([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x59e500[_0x37a0ba([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x37a0ba([0x6e,0x61,0x6d,0x65])]:_0x37a0ba([0x45,0x43,0x44,0x53,0x41]),[_0x37a0ba([0x68,0x61,0x73,0x68])]:{[_0x37a0ba([0x6e,0x61,0x6d,0x65])]:_0x37a0ba([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x557377,_0x1c9149,_0x7a4680)||(_0x4fca66=!0x1);}}function _0x3ea55a(_0x1ec011){return _0x1ec011[_0x37a0ba([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x37a0ba([0x65,0x79]))?JSON[_0x37a0ba([0x70,0x61,0x72,0x73,0x65])](_0x2703b9(_0x1ec011)):null;}function _0x2703b9(_0x390f0e){return window[_0x37a0ba([0x61,0x74,0x6f,0x62])](_0x390f0e[_0x37a0ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x37a0ba([0x2b]))[_0x37a0ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x37a0ba([0x2f])));}function _0x32de7c(_0x12bbe5){let _0x3115e7=0x1505;function _0x2bc7e2(_0x4293ce){for(let _0x175e63=0x0;_0x175e63<_0x4293ce[_0x37a0ba([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x175e63++){const _0x4ea50e=_0x4293ce[_0x37a0ba([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x175e63);_0x3115e7=(_0x3115e7<<0x5)+_0x3115e7+_0x4ea50e,_0x3115e7&=_0x3115e7;}}function _0x91bbe8(_0x4e310e){Array[_0x37a0ba([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4e310e)?_0x4e310e[_0x37a0ba([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x91bbe8):_0x4e310e&&typeof _0x4e310e==_0x37a0ba([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x37a0ba([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4e310e)[_0x37a0ba([0x73,0x6f,0x72,0x74])]()[_0x37a0ba([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x37b971,_0x4a30c4])=>{_0x2bc7e2(_0x37b971),_0x91bbe8(_0x4a30c4);}):_0x2bc7e2(window[_0x37a0ba([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4e310e));}return _0x91bbe8(_0x12bbe5),_0x3115e7>>>0x0;}function _0x3b31ed(_0x37b15f){return _0x37b15f[_0x37a0ba([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x37a0ba([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x37a0ba([0x30]));}function _0x48efe(_0x29f0f9){return _0x29f0f9[_0x37a0ba([0x73,0x70,0x6c,0x69,0x74])]('')[_0x37a0ba([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x37a0ba([0x6a,0x6f,0x69,0x6e])]('');}function _0x16f812(){}function _0x37a0ba(_0x335f71){return _0x335f71['map'](_0x19974a=>String['fromCharCode'](_0x19974a))['join']('');}_0xeadcdf(await _0x4afa2e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x508717){const {plugins:_0x277c3a,editing:_0x3430ac,model:_0x1684b9}=this['editor'],_0x2a3f11=_0x277c3a['get'](_0x426dc2)['getFootnote'](_0x508717);return!!_0x2a3f11&&(_0x1684b9['change'](_0x2e8a0f=>{_0x2e8a0f['setSelection'](_0x2e8a0f['createPositionAt'](_0x2a3f11['definition'],'end'));}),_0x3430ac['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x279b35){const {plugins:_0x584fd4,editing:_0x487c2d,model:_0xaa867b}=this['editor'],_0x1d398=_0x584fd4['get'](_0x426dc2)['getFootnote'](_0x279b35);return!!_0x1d398&&(_0xaa867b['change'](_0x4814fb=>{_0x4814fb['setSelection'](_0x1d398['reference'],'on');}),_0x487c2d['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4e5bd0}=this['editor']['model'],_0x3163d7=this['editor']['config']['get']('footnotes.multiBlock');_0x4e5bd0['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4e5bd0['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4e5bd0['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3163d7?_0x4e5bd0['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4e5bd0['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4e5bd0['addChildCheck'](_0x5c9550=>{for(const _0x26f8e1 of _0x5c9550)if('footnoteDefinition'===_0x26f8e1['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1e3af5}=this,{conversion:_0x2aa4b1,editing:_0x3cddec}=_0x1e3af5,{t:t}=_0x1e3af5['locale'];_0x2aa4b1['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2fb0f2,{writer:_0x396605,consumable:_0x13bbb9})=>{const _0x2ed422=_0x2fb0f2['getChild'](0x0);if(!_0x2ed422||!_0x2ed422['is']('element','a'))return null;const _0x284199=_0x2ed422['getAttribute']('href')||'';if(!_0x284199['startsWith']('#'))return null;const _0x4d292b=_0x284199['replace'](/^#/,'');if(!_0x4d292b)return null;_0x13bbb9['consume'](_0x2ed422,{'name':!0x0,'attributes':['href']});for(const {item:_0x23970e}of _0x3cddec['view']['createRangeIn'](_0x2ed422))_0x23970e['is']('$textProxy')?_0x13bbb9['consume'](_0x23970e['textNode'],{'name':!0x0}):_0x23970e['is']('element')&&_0x13bbb9['consume'](_0x23970e,{'name':!0x0});return _0x396605['createElement']('footnoteRef',{'footnoteId':_0x4d292b});}}),_0x2aa4b1['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1b5988,{writer:_0x5567b2})=>b(_0x1b5988,_0x5567b2)}),_0x2aa4b1['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xa78e3e,{writer:_0x17bf07})=>{const _0x51a937=_0xa78e3e['getAttribute']('footnoteCounter');return _0x4d4b41(b(_0xa78e3e,_0x17bf07),_0x17bf07,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x51a937)});}});}['_defineDefinitionsConverters'](){const {editor:_0x38a6fe}=this,{t:t}=_0x38a6fe['locale'],{conversion:_0x1e63e7}=_0x38a6fe;_0x1e63e7['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x1e63e7['for']('upcast')['add'](_0xdb29e5=>{_0xdb29e5['on']('element:ol',(_0x55e39a,_0x4ebc1d,_0xd1ab97)=>{const _0xe6050d=_0x4ebc1d['viewItem'];if(!_0xe6050d['hasClass']('footnotes-list')||!_0x4ebc1d['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0xd1ab97['consumable']['consume'](_0xe6050d,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x357f2e,modelCursor:_0x1dd95c}=_0xd1ab97['convertChildren'](_0x4ebc1d['viewItem'],_0x4ebc1d['modelCursor']);_0x4ebc1d['modelRange']=_0x357f2e,_0x4ebc1d['modelCursor']=_0x1dd95c;}),_0xdb29e5['on']('element:hr',(_0x4ef132,_0x5f3aba,_0x1c91e7)=>{const _0x58b92c=_0x5f3aba['viewItem'];_0x58b92c['hasClass']('footnotes-divider')&&_0x5f3aba['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x1c91e7['consumable']['consume'](_0x58b92c,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x1e63e7['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x446a15,{writer:_0x423166})=>D(_0x423166)}),_0x1e63e7['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x34eb02,{writer:_0x5d3f67})=>{const _0x4d6afb=D(_0x5d3f67,{'data-footnotes-list-label':t('Footnotes')}),_0x249e73=_0x4d4b41(_0x4d6afb,_0x5d3f67,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x5d3f67['setCustomProperty']('footnotesDefinitions',!0x0,_0x249e73),_0x249e73;}});}['_defineDefinitionConverters'](){const {editor:_0x2f10b5}=this,{conversion:_0x5ce85e,locale:_0x3e560b}=_0x2f10b5,_0x43e2dc=_0x2f10b5['config']['get']('footnotes.multiBlock');_0x5ce85e['for']('upcast')['add'](_0xf44b8d=>{_0xf44b8d['on']('element:li',(_0x438a58,_0x222e99,_0x582b28)=>{const _0x229500=_0x222e99['viewItem'];if(!_0x229500['hasClass']('footnote-definition')||!_0x229500['getAttribute']('id'))return;const _0x130fab=_0x229500['parent'];if(!_0x130fab['is']('element','ol')||!_0x130fab['hasClass']('footnotes-list'))return;if(!_0x582b28['consumable']['test'](_0x229500,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x334ab2=_0x582b28['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x229500['getAttribute']('id')});if(!_0x582b28['safeInsert'](_0x334ab2,_0x222e99['modelCursor']))return;_0x582b28['consumable']['consume'](_0x229500,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x34d0ae=Array['from'](_0x229500['getChildren']())['find'](_0x4b556e=>_0x4b556e['is']('element')&&_0x4b556e['hasClass']('footnote-content'));for(const _0x47ccdf of _0x229500['getChildren']())_0x47ccdf['is']('element')&&(_0x582b28['consumable']['consume'](_0x47ccdf,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x582b28['consumable']['consume'](_0x47ccdf,{'name':!0x0,'classes':'footnote-content'}));if(_0x34d0ae){if(_0x43e2dc)_0x582b28['convertChildren'](_0x34d0ae,_0x334ab2);else{const _0x33c67f=_0x582b28['writer']['createElement']('footnoteInlineContent');_0x582b28['writer']['insert'](_0x33c67f,_0x334ab2),_0x582b28['convertChildren'](_0x34d0ae,_0x33c67f);}}_0x582b28['updateConversionResult'](_0x334ab2,_0x222e99);});}),_0x5ce85e['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3c92da,{writer:_0x2c5a7f})=>y(_0x3c92da,_0x2c5a7f,_0x3e560b,{'dataPipeline':!0x0})}),_0x5ce85e['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4a9712,{writer:_0x35472f})=>y(_0x4a9712,_0x35472f,_0x3e560b)});}['_defineBogusParagraphConverters'](){const {editor:_0x41dc30}=this,{conversion:_0x3a2e3d}=_0x41dc30;_0x41dc30['config']['get']('footnotes.multiBlock')?(_0x3a2e3d['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x3a2e3d['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x41dc30['model']['document'],'change:data',()=>{!function(_0x21e494,_0x4d9f3f){const _0x5423f2=_0x21e494['document']['differ'],_0x65a7d9=new Set();for(const _0x588add of _0x5423f2['getChanges']()){const _0x303b72='attribute'==_0x588add['type']?_0x588add['range']['start']['parent']:_0x588add['position']['parent'];_0x303b72['is']('element','footnoteDefinition')&&_0x65a7d9['add'](_0x303b72);}for(const _0x56b012 of _0x65a7d9['values']()){const _0x4a73e9=Array['from'](_0x56b012['getChildren']())['filter'](_0x1c4d55=>v(_0x1c4d55,_0x4d9f3f['mapper']));for(const _0x5ecae3 of _0x4a73e9)_0x4d9f3f['reconvertItem'](_0x5ecae3);}}(_0x41dc30['model'],_0x41dc30['editing']);})):(_0x3a2e3d['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x3a2e3d['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x23fa98,{writer:_0x1b1d82})=>{const _0x1381b0=_0x1b1d82['createContainerElement']('span');return _0x1b1d82['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1381b0),_0x1381b0;}}));}['_defineKeyboardHandlers'](){const {editor:_0x4ef225}=this,{editing:_0x8324c7,t:t}=_0x4ef225,_0x1e92d4=_0x4ef225['model']['document']['selection'];_0x4ef225['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x4ef225['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x8324c7['view']['document'],'enter',(_0x26d382,_0x1d7fc7)=>{const _0x42a196=function(_0x2ca918){const _0x2ef6d0=_0x2ca918['getSelectedElement']();if(_0x2ef6d0?.['is']('element','footnoteRef'))return _0x2ef6d0;return null;}(_0x1e92d4);if(_0x42a196){const _0x2f7ec9=_0x42a196['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x2f7ec9),_0x1d7fc7['preventDefault'](),_0x26d382['stop']();}},{'context':_0x561c95});}['_defineClickHandlers'](){const {editor:_0x1f5f68}=this,{editing:_0x12eaef}=_0x1f5f68;_0x1f5f68['editing']['view']['addObserver'](_0x54fede),_0x1f5f68['editing']['view']['addObserver'](_0x2a7238);let _0x59e87b=!0x1;this['listenTo'](_0x12eaef['view']['document'],'pointerdown',(_0x205093,_0x473656)=>{const {target:_0x92854f}=_0x473656,_0x281f40=_0x12eaef['view']['document']['selection'];_0x59e87b=!!(_0x92854f?.['is']('element','a')&&_0x92854f['parent']?.['is']('element','sup')&&_0x92854f['parent']['hasClass']('footnote'))&&_0x281f40['getSelectedElement']()===_0x92854f['parent'];},{'priority':'high'}),this['listenTo'](_0x12eaef['view']['document'],'click',(_0x3e5405,_0x13053e)=>{const {target:_0x2c7966}=_0x13053e;if(!_0x2c7966?.['is']('element','a'))return;if(_0x2c7966['parent']?.['is']('element','sup')&&_0x2c7966['parent']['hasClass']('footnote')&&!_0x59e87b)return void _0x13053e['preventDefault']();let _0x24211e=_0x2c7966['getAttribute']('href');if(!_0x24211e?.['startsWith']('#'))return;_0x24211e=_0x24211e['slice'](0x1);let _0x58b08d=!0x1;(_0x24211e['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x24211e['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x24211e))&&(_0x58b08d=!0x0),_0x58b08d&&(_0x13053e['preventDefault'](),_0x3e5405['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x5a897a}={}){return(_0xfb1bf9,{writer:_0x45bee4})=>{if(!g(_0xfb1bf9))return null;if(!_0x5a897a)return _0x45bee4['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x3521da=_0x45bee4['createContainerElement']('p');return _0x45bee4['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3521da),_0x3521da;};}function g(_0x3c6a37){const {parent:_0x70a38e}=_0x3c6a37;if(!_0x70a38e?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x70a38e['childCount'])return!0x1;for(const _0x5653e9 of _0x3c6a37['getAttributeKeys']())if(!_0x5653e9['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5653e9)return!0x1;return!0x0;}function v(_0xe1146f,_0x2f38ce){if(!_0xe1146f['is']('element','paragraph'))return!0x1;const _0x5dccaf=_0x2f38ce['toViewElement'](_0xe1146f);return!!_0x5dccaf&&g(_0xe1146f)!==_0x5dccaf['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x2a327d){return _0x561c95(_0x2a327d)&&_0x2a327d['is']('containerElement')&&!!_0x2a327d['getCustomProperty']('footnotesDefinitions');}function D(_0x1559da,_0x5d1784={}){const _0x20f888=_0x1559da['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x593ae0=_0x1559da['createContainerElement']('ol',{'class':'footnotes-list'},_0x1559da['createSlot']());return _0x1559da['createContainerElement']('div',{'class':'footnotes',..._0x5d1784},[_0x20f888,_0x593ae0]);}function b(_0x464976,_0x495cac){const _0x6459d2=_0x464976['getAttribute']('footnoteId'),_0x45cd7c=_0x464976['getAttribute']('footnoteCounter'),_0x429867=_0x495cac['createUIElement']('a',{'href':'#'+_0x6459d2},function(_0x1c81a4){const _0x20dab1=this['toDomElement'](_0x1c81a4);return _0x20dab1['textContent']=_0x45cd7c,_0x20dab1;}),_0x15166d=_0x495cac['createContainerElement']('sup',{'id':'ref-'+_0x6459d2,'class':'footnote'},[_0x429867]);return _0x15166d['getFillerOffset']=()=>null,_0x15166d;}function y(_0x4af727,_0x3ed974,_0xffce70,{dataPipeline:_0x48d2b1}={}){const {t:t}=_0xffce70,_0x5508df=_0x4af727['getAttribute']('footnoteId'),_0x3cc667=_0x3ed974['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5508df},function(_0x429215){const _0x214421=this['toDomElement'](_0x429215);return _0x214421['innerText']='^',_0x214421;}),_0x12e40a=_0x48d2b1?_0x3ed974['createContainerElement']('div',{'class':'footnote-content'}):_0xf07c40(_0x3ed974['createEditableElement']('div',{'class':'footnote-content'}),_0x3ed974,{'label':t('Footnote\x20content.')});return _0x3ed974['insert'](_0x3ed974['createPositionAt'](_0x12e40a,0x0),_0x3ed974['createSlot']()),_0x3ed974['createContainerElement']('li',{'class':'footnote-definition','id':_0x5508df},[_0x3cc667,_0x12e40a]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x16e7d4=_0x44cc;(function(_0xee8eca,_0x25f9af){const _0x34aaef=_0x44cc,_0x317985=_0xee8eca();while(!![]){try{const _0x1a050a=-parseInt(_0x34aaef(0x110))/0x1+parseInt(_0x34aaef(0x117))/0x2+parseInt(_0x34aaef(0x104))/0x3+-parseInt(_0x34aaef(0x101))/0x4*(parseInt(_0x34aaef(0x111))/0x5)+parseInt(_0x34aaef(0x108))/0x6*(parseInt(_0x34aaef(0x10f))/0x7)+parseInt(_0x34aaef(0x113))/0x8+parseInt(_0x34aaef(0x10a))/0x9*(-parseInt(_0x34aaef(0x118))/0xa);if(_0x1a050a===_0x25f9af)break;else _0x317985['push'](_0x317985['shift']());}catch(_0x3c79b3){_0x317985['push'](_0x317985['shift']());}}}(_0x1184,0xc8be7));function _0x44cc(_0x5102c2,_0x3c3958){const _0x1184d9=_0x1184();return _0x44cc=function(_0x44cc35,_0x3a3c1f){_0x44cc35=_0x44cc35-0x101;let _0x33c1fc=_0x1184d9[_0x44cc35];return _0x33c1fc;},_0x44cc(_0x5102c2,_0x3c3958);}import{Command as _0x547d01}from'ckeditor5/src/core.js';function _0x1184(){const _0x34e97e=['1044842xYzhId','20wAGekK','11892KZiMfJ','get','includes','7893MNhSih','getAttribute','getFootnotesDefinitionsObjectElement','change','1234524zbVdhJ','_updateFootnotesCounters','6700266nKnucJ','execute','model','value','isEnabled','14gskuDE','56688xYXPJt','190NexUTo','plugins','12354376dJECks','footnotesListStyle','refresh','setAttribute'];_0x1184=function(){return _0x34e97e;};return _0x1184();}import{FOOTNOTES_DEFINITIONS_STYLES as _0x435850}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0xa4a0e2}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x547d01{[_0x16e7d4(0x115)](){const _0x1fcf95=_0x16e7d4,{editor:_0x6fe11e}=this,_0x1845cd=_0x6fe11e[_0x1fcf95(0x112)][_0x1fcf95(0x102)](_0xa4a0e2)[_0x1fcf95(0x106)]();this[_0x1fcf95(0x10e)]=!!_0x1845cd,this[_0x1fcf95(0x10d)]=_0x1845cd?.[_0x1fcf95(0x105)](_0x1fcf95(0x114))??null;}[_0x16e7d4(0x10b)]({value:_0x1a7e6a}){const _0xc9e0c0=_0x16e7d4,{editor:_0xbea800}=this,_0x453a7e=_0xbea800[_0xc9e0c0(0x112)][_0xc9e0c0(0x102)](_0xa4a0e2),_0x1d99cd=_0x453a7e[_0xc9e0c0(0x106)]();_0x1d99cd&&_0x435850[_0xc9e0c0(0x103)](_0x1a7e6a)&&_0xbea800[_0xc9e0c0(0x10c)][_0xc9e0c0(0x107)](_0x2cfdd9=>{const _0x1533b3=_0xc9e0c0;_0x2cfdd9[_0x1533b3(0x116)](_0x1533b3(0x114),_0x1a7e6a,_0x1d99cd),_0x453a7e[_0x1533b3(0x109)](_0x2cfdd9);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x54d8c9,View as _0x513543,ViewCollection as _0x193e83,FocusCycler as _0x14a801,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 _0x513543{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x193e83();['focusCycler'];constructor(_0x520e5b,{styleButtonViews:_0x25e884,styleGridAriaLabel:_0x1fbd25}){super(_0x520e5b),(this['focusCycler']=new _0x14a801({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x25e884,_0x1fbd25),[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 _0x2a70b0 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x2a70b0['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 _0x5d7670=_0x55c2c8=>_0x55c2c8['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5d7670),this['keystrokes']['set']('arrowleft',_0x5d7670),this['keystrokes']['set']('arrowup',_0x5d7670),this['keystrokes']['set']('arrowdown',_0x5d7670);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5aa447,_0x1a80ba){const _0x3b41b5=new _0x513543(this['locale']);return _0x3b41b5['children']=_0x3b41b5['createCollection'](),_0x3b41b5['children']['addMany'](_0x5aa447),_0x3b41b5['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1a80ba,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x3b41b5['children']}),_0x3b41b5['children']['delegate']('execute')['to'](this),_0x3b41b5['focus']=function(){for(const _0x4aac50 of this['children'])if(_0x4aac50 instanceof _0x54d8c9&&_0x4aac50['isOn'])return void _0x4aac50['focus']();this['children']['first']['focus']();},_0x3b41b5['focusTracker']=new ot(),_0x3b41b5['keystrokes']=new rt(),_0x3b41b5['render'](),_0x3b41b5['keystrokes']['listenTo'](_0x3b41b5['element']),this['children']['add'](_0x3b41b5),_0x3b41b5;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x1b77a4=this['_createStartIndexPropertyView'](),_0x435e77=[_0x1b77a4],_0x56cd09=new st(this['locale'],_0x435e77);return _0x56cd09['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x56cd09['buttonView']['bind']('isEnabled')['toMany'](_0x435e77,'isEnabled',(..._0x2a9196)=>_0x2a9196['some'](_0x47e668=>_0x47e668)),_0x56cd09['buttonView']['on']('change:isEnabled',(_0x58dafd,_0x48c1f8,_0x54ef07)=>{_0x54ef07||(_0x56cd09['isCollapsed']=!0x0);}),this['children']['add'](_0x56cd09),[_0x1b77a4,_0x56cd09];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x136113=new it(this['locale'],et);return _0x136113['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x136113['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x136113['fieldView']['on']('input',()=>{const _0x3176e9=_0x136113['fieldView']['element'],_0x4db658=_0x3176e9['valueAsNumber'];Number['isNaN'](_0x4db658)?_0x136113['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x3176e9['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x4db658}):_0x136113['errorText']=t(_0x4db658<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x136113;}}
|