@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251220.0 → 0.0.0-nightly-20251221.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var 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),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,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:()=>D,FootnotesEditing:()=>I,FootnotesProperties:()=>At,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>p,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=472]})(t,e)}function c(){const t=["length","position","_elementName","_model","12qgtnFh","flat","3195756atQJob","3006bhNaxd","push","$graveyard","175360KujckF","add","9976884yuUozj","has","1544LuZtHA","74367QUcJLp","251DfUkJX","_getElementKey","nodeAfter","root","13gMdBIr","name","3786167jSFfwu","set","getChanges","from","reset","getElementKey","insert","element","elementName","type","createRangeOn","22iwdhnO","$text","_trackedElements","get","rootName","slice","2972xCCRMM","5baUqLC","remove","getItems","clear","delete","attributes","values"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(276265===parseInt(e(516))/1*(-parseInt(e(492))/2)+parseInt(e(515))/3*(-parseInt(e(504))/4)+-parseInt(e(493))/5*(-parseInt(e(506))/6)+-parseInt(e(475))/7+parseInt(e(514))/8*(-parseInt(e(507))/9)+parseInt(e(510))/10*(-parseInt(e(486))/11)+-parseInt(e(512))/12*(-parseInt(e(473))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(503)];[r(502)];[r(517)];[r(488)]=new Map;constructor(t,e){const o=r;this[o(503)]=t,this[o(502)]=e[o(483)],this[o(517)]=e[o(480)]}[r(479)](){const t=r;this[t(488)][t(496)]()}[r(477)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(481)===i[e(484)]&&e(487)!==i[e(474)]&&i[e(501)][e(518)]){const t=this[e(503)][e(485)](i[e(501)][e(518)]);for(const o of t[e(495)]()){if(!o.is(e(482),this[e(502)]))continue;const t=this[e(517)](o);n[e(513)](t)||n[e(476)](t,[]),n[e(489)](t)[e(508)](o)}}if(e(494)===i[e(484)]&&i[e(474)]===this[e(502)]){const t=this[e(517)]({getAttribute:t=>i[e(498)][e(489)](t)});o[e(511)](t)}}for(const[t,n]of this[e(488)])e(509)===n[e(472)][e(490)]&&o[e(511)](t);for(const t of o)this[e(488)][e(497)](t);for(const[t,o]of n)this[e(488)][e(476)](t,o[o[e(500)]-1]);const i=new Set;for(const[t,s]of n)o[e(513)](t)&&(i[e(511)](s[0]),s[e(500)]>1?n[e(476)](t,s[e(491)](1)):n[e(497)](t),o[e(497)](t));return{removed:Array[e(478)](o),inserted:Array[e(478)](n[e(499)]())[e(505)](),moved:Array[e(478)](i)}}}function f(){const t=["createRangeOn","low","_footnoteDefsContainerTracker","before","map","reference","1903592EkCGCB","setAttribute","footnoteId","init","config","isOfficialPlugin","has","get","_ensureFootnotesReferencesHaveProperOrder","_handleFootnoteDefinitionsChanges","createRangeIn","getFootnotesDefinitionsObjectElement","isEqual","7hqWtJw","getFootnotes","length","getChanges","isPremiumPlugin","getRootNames","getAttribute","getFootnote","childCount","root","_footnoteDefsTracker","createPositionAt","min","_handleRemoveFootnoteReferenceById","setFootnoteFormatter","parent","FootnotesTracker","footnoteInlineContent","footnotesDefinitions","footnoteRef","pluginName","enqueueChange","12fsXECj","findIndex","add","indexOf","model","remove","_updateFootnoteRefCounter","_ensureFootnotesDefinitionsContainerExists","_updateFootnotesCounters","_footnotes","_footnotesDefinitions","footnoteDefinition","getChildren","_handleInsertedFootnoteReference","85407mDFVnq","createPositionBefore","_footnoteRefsTracker","5072QvNVxr","splice","_footnoteFormatter","insert","_handleFootnotesDefinitionsObjectChanges","document","append","_sortFootnoteDefinitions","151314poXLel","footnoteCounter","getFootnotesFormatter","listenTo","push","_handleFootnoteReferencesChanges","change:data","30dNgOGp","footnotes.multiBlock","definition","1790074nnRUrz","end","paragraph","set","singleton","compareWith","from","151921JwpSXc","2959650QEZcwR","createElement","40srkllL","some","_handleMovedFootnoteReference","unshift","find","_insertEmptyFootnotesDefinitionsContainer","editor","reset","$graveyard","high","move","16fCcdaL","differ","_handleFootnotesDefinitionsObjectSync","rootName","after","registerPostFixer","15HnTYpI"];return(f=function(){return t})()}const u=d;function d(t,e){const o=f();return(d=function(t,e){return o[t-=363]})(t,e)}!function(t){const e=d,o=t();for(;;)try{if(181939===-parseInt(e(388))/1*(-parseInt(e(464))/2)+-parseInt(e(461))/3*(parseInt(e(399))/4)+-parseInt(e(405))/5*(parseInt(e(368))/6)+parseInt(e(425))/7*(-parseInt(e(412))/8)+parseInt(e(386))/9+parseInt(e(375))/10*(parseInt(e(385))/11)+parseInt(e(447))/12*(parseInt(e(378))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class p extends t.Plugin{[u(456)]=[];[u(457)]=null;[u(466)]=null;[u(408)];[u(463)];[u(435)];static get[u(445)](){return u(441)}static get[u(417)](){return!0}static get[u(429)](){return!0}constructor(t){const e=u;super(t),this[e(408)]=new l(this[e(394)][e(451)],{elementName:e(443),getElementKey:()=>e(382)}),this[e(463)]=new l(this[e(394)][e(451)],{elementName:e(444),getElementKey:t=>t[e(431)](e(414))}),this[e(435)]=new l(this[e(394)][e(451)],{elementName:e(458),getElementKey:t=>t[e(431)](e(414))})}[u(415)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(365)][t(404)](e=>{const n=t,i=o[n(365)][n(400)][n(428)]();let s=!1;return this[n(364)](e,i)&&(s=!0),this[n(421)](e,i)&&(s=!0),this[n(373)](e,i)&&(s=!0),this[n(420)](e)&&(s=!0),this[n(401)](e)&&(s=!0),this[n(367)](e)&&(s=!0),s}),this[t(371)](o[t(365)],t(374),()=>{const e=t;o[e(446)]({isUndoable:!1},t=>{this[e(454)](t)})},{priority:t(407)}),this[t(371)](n,t(381),()=>{const e=t;this[e(456)]=[],this[e(408)][e(395)](),this[e(463)][e(395)](),this[e(435)][e(395)]()},{priority:t(397)})}[u(423)](){return this[u(457)]}[u(432)](t){const e=u;return this[e(456)][e(392)](e=>e.id===t)||null}[u(426)](){const t=u;return Array[t(384)](this[t(456)])}[u(370)](){return this[u(466)]}[u(439)](t){this[u(466)]=t}[u(455)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(456)][o(427)];i++)this[o(453)](t,i)&&(n=!0);return n}[u(393)](t,e){const o=u,n=t[o(387)](o(443),{});return t[o(366)](n,e),this[o(457)]=n,n}[u(454)](t){const e=u;if(!this[e(456)][e(427)]||this[e(457)])return;const o=this[e(456)][0][e(411)][e(434)],n=this[e(393)](t,o);for(const o of this[e(456)])o[e(377)][e(440)]||t[e(363)](o[e(377)],n,e(379));this[e(455)](t)}[u(364)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(408)][o(428)](e);if(r[o(427)]&&(this[o(457)]=r[0]),i[o(427)])if(i[o(427)]>1||this[o(457)]&&i[o(389)](t=>t!==this[o(457)])){const e=t[o(387)](o(443),{}),s=[];this[o(457)]&&s[o(372)](this[o(457)]),s[o(372)](...i),t[o(363)](e,s[0],o(409));for(const n of s)t[o(398)](t[o(422)](n),t[o(436)](e,o(379))),t[o(452)](n);this[o(457)]=e,this[o(455)](t),n=!0}else this[o(457)]=i[0];if(s[o(427)]&&o(396)===this[o(457)]?.[o(434)][o(402)]){for(const e of this[o(456)])t[o(452)](e[o(411)]),n=!0;this[o(456)]=[],this[o(457)]=null}return n}[u(421)](t,e){const o=u;let n=!1;const i=this[o(394)][o(416)][o(419)](o(376)),{inserted:s,moved:r}=this[o(435)][o(428)](e);for(const e of[...r,...s]){const s=e[o(431)](o(414)),r=this[o(432)](s);r&&(r[o(377)]=e),h(t,i,e)&&(n=!0)}return n}[u(373)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(463)][o(428)](e);for(const e of i)this[o(438)](t,e)&&(n=!0);for(const e of s)this[o(460)](t,e)&&(n=!0);for(const e of r)this[o(390)](t,e)&&(n=!0);return n}[u(401)](t){const e=u;if(!this[e(457)])return!1;let o=!1;if(this[e(457)][e(433)]!==this[e(456)][e(427)]){const n=[];for(const t of this[e(457)][e(459)]()){const i=t[e(431)](e(414));this[e(432)](i)||(n[e(391)](t),o=!0)}for(const o of n)t[e(452)](o)}const n=new Set,i=[];for(const t of this[e(457)][e(459)]()){const s=t[e(431)](e(414));n[e(418)](s)?(i[e(391)](t),o=!0):n[e(449)](s)}for(const o of i)t[e(452)](o);return this[e(457)][e(433)]||(t[e(452)](this[e(457)]),this[e(457)]=null,o=!0),o}[u(460)](t,e){const o=u;if(this[o(456)][o(392)](t=>t[o(411)]===e))return!1;let n=!1;const i=e[o(431)](o(414)),s=this[o(456)][o(448)](t=>t.id===i);-1!==s&&(t[o(452)](this[o(456)][s][o(411)]),this[o(456)][o(465)](s,1),n=!0);let r=this[o(457)]?function(t,e){const n=o;for(const o of t[n(459)]())if(o[n(431)](n(414))===e)return o;return null}(this[o(457)],i):null;r||(r=t[o(387)](o(458),{footnoteId:i}),this[o(457)]&&(t[o(363)](r,this[o(457)],o(379)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(394)][o(451)],this[o(456)],e);this[o(456)][o(465)](c,0,a);let l=c;return-1!==s&&(l=Math[o(437)](c,s)),this[o(455)](t,l)&&(n=!0),n}[u(438)](t,e){const o=u,n=this[o(456)][o(448)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(456)][n];return o(396)!==s[o(377)][o(434)][o(402)]&&(t[o(452)](s[o(377)]),i=!0),this[o(456)][o(465)](n,1),this[o(455)](t,n)&&(i=!0),i}[u(390)](t,e){const o=u,n=e[o(431)](o(414)),i=this[o(456)][o(448)](t=>t.id===n),s=this[o(456)][i];let r=!1;s[o(411)]=e,this[o(456)][o(465)](i,1);const a=m(this[o(394)][o(451)],this[o(456)],e);return this[o(456)][o(465)](a,0,s),this[o(455)](t,Math[o(437)](i,a))&&(r=!0),r}[u(453)](t,e){const o=u;if(!this[o(457)])return!1;const n=this[o(456)][e];let i;return i=this[o(466)]?this[o(466)]({footnote:n,container:this[o(457)],digits:String(this[o(456)][o(427)])[o(427)],value:e+1}):String(e+1),n[o(411)][o(431)](o(369))!=i&&(t[o(413)](o(369),i,n[o(411)]),!0)}[u(367)](t){const e=u;if(!this[e(457)]||this[e(456)][e(427)]<2)return!1;if(function(t,o){const n=e;if(t[n(427)]!==o[n(427)])return!1;for(let e=0;e<t[n(427)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(456)][e(410)](t=>t.id),Array[e(384)](this[e(457)][e(459)]())[e(410)](t=>t[e(431)](e(414)))))return!1;let o=!1;for(let n=0;n<this[e(456)][e(427)];n++){const i=this[e(456)][n],s=t[e(462)](i[e(377)]),r=t[e(436)](this[e(457)],n);s[e(424)](r)||(t[e(398)](t[e(406)](i[e(377)]),r),o=!0)}return o}[u(420)](t){const e=u;if(!this[e(456)][e(427)])return!1;const{model:o}=this[e(394)];let n=!1;for(let i=0;i<this[e(456)][e(427)]-1;i++){const s=this[e(456)][i],r=this[e(456)][i+1],a=o[e(462)](s[e(411)]),c=o[e(462)](r[e(411)]);e(403)===a[e(383)](c)&&(this[e(390)](t,s[e(411)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=u;if(o[n(433)])return!1;const i=n(e?380:442);return t[n(363)](t[n(387)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(427)])return 0;const i=t[n(462)](o);for(let o=0;o<e[n(427)];o++){const s=e[o],r=t[n(462)](s[n(411)]);if(n(409)===i[n(383)](r))return o}const s=o[n(434)];let r=-1;for(let t=e[n(427)]-1;t>=0;t--)if(e[t][n(411)][n(434)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(365)][n(430)](),c=a[n(450)](s[n(402)]),l=a[c+1];if(l)for(let t=0;t<e[n(427)];t++)if(e[t][n(411)][n(434)][n(402)]===l)return t;return e[n(427)]}const g=y;function w(){const t=["change","7263585ObxJRR","2871PxVvSC","getItems","footnoteId","_getPositionToInsertFootnote","selection","editor","createElement","1119522TatFJt","FootnotesEditing","execute","length","isObject","2762469VhMoFE","getFirstRange","checkChild","refresh","insert-footnote-command-executed-with-invalid-id","insertObject","plugins","end","footnoteRef","116140buYLxW","_moveSelectionToFootnoteDefinition","754383FjRfDd","8WtcfgK","isEnabled","isBlock","773417eaktsg","test","2665260YjOJGr","2SolYlr","get","model","8EIpCSr","document","string"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=271]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(962224===-parseInt(e(302))/1*(-parseInt(e(305))/2)+-parseInt(e(282))/3*(parseInt(e(308))/4)+-parseInt(e(274))/5+-parseInt(e(304))/6+parseInt(e(298))/7+parseInt(e(299))/8*(-parseInt(e(287))/9)+parseInt(e(296))/10*(parseInt(e(275))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(290)](){const t=g,e=this[t(280)][t(307)][t(271)][t(279)],o=this[t(278)](e);this[t(300)]=!!o}[g(284)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(271)],r=this[e(278)](s);if(!r)return;const a=o[e(293)][e(306)](e(283)),c=t?.[e(277)]??(0,i.uid)();!function(t){const o=e;return o(272)==typeof t&&t[o(285)]>0&&!/\s/[o(303)](t)&&!/^\d/[o(303)](t)}(c)?(0,i.logWarning)(e(291)):(n[e(273)](t=>{const o=e,i=t[o(281)](o(295),{footnoteId:c});n[o(292)](i,r,null)}),a[e(297)](c))}[g(278)](t){const e=g,{model:o}=this[e(280)],{schema:n}=o,i=t[e(288)]();for(const t of i[e(276)]())if(n[e(301)](t)||n[e(286)](t))return null;const s=i[e(294)];return n[e(289)](s,e(295))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[p]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1766188800;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>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 P=_;function T(){const t=["_handlePasteFootnotesDefinitions","insert","getFirstRange","end","1236676uRBdMv","createElement","23736ECozZR","cloneElement","getRanges","contentInsertion","root","pluginName","append","element","88660PWReUg","toView","string","definition","1140732yzOwlN","clipboardInput","dataTransfer","footnotes.multiBlock","init","footnoteDefinition","method","_insertEmptyFootnotesDefinitionsContainer","_defineClipboardIntegration","18Xspmkh","push","application/ckeditor5-footnotes","isOfficialPlugin","get","340368DPiDqE","448wlJqpm","stringify","toModel","footnoteId","getFootnotesDefinitionsObjectElement","731042ucGlON","requires","data","find","_handleCopyFootnotesDefinitions","setAttribute","sourceEditorId","getFootnote","getChildren","includes","document","entries","FootnotesClipboard","getFootnotes","getSelectedBlocks","add","getData","listenTo","outputTransformation","from","selection","drop","config","toData","editing","footnotesDefinitions","content","createRangeIn","hasAttribute","change","create","remove","parse","length","keys","footnoteRef","isPremiumPlugin","htmlProcessor","flatMap","868100VNKdaX","1JWIVQY","footnoteInlineContent","setData","reduce","editor","getAttribute"];return(T=function(){return t})()}function _(t,e){const o=T();return(_=function(t,e){return o[t-=437]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(281226===parseInt(e(454))/1*(-parseInt(e(498))/2)+parseInt(e(492))/3+parseInt(e(464))/4+parseInt(e(474))/5+parseInt(e(478))/6+-parseInt(e(493))/7*(-parseInt(e(466))/8)+parseInt(e(487))/9*(-parseInt(e(453))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class D extends t.Plugin{static get[P(471)](){return P(510)}static get[P(499)](){return[I,A.ClipboardPipeline]}static get[P(490)](){return!0}static get[P(450)](){return!0}[P(482)](){this[P(486)]()}[P(486)](){const t=P;this[t(502)](),this[t(460)]()}[P(502)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(491)](A.ClipboardPipeline),s=o[t(491)](p);this[t(515)](i,t(516),(o,i)=>{const r=t,a=V(n[r(441)](i[r(440)]));if(!a[r(447)])return;const c=s[r(511)](),l=a[r(457)]((t,o)=>{const n=r,i=c[n(501)](t=>t.id===o);if(i){const o=e[n(500)][n(475)](i[n(477)],{isClipboardPipeline:!0}),s=e[n(500)][n(451)][n(437)](o);t[i.id]=s}return t},Object[r(444)](null));i[r(480)][r(456)](r(489),JSON[r(494)](l))})}[P(460)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(438)],r=n[t(491)](A.ClipboardPipeline),a=n[t(491)](p),c=e[t(520)][t(491)](t(481));let l=null;this[t(515)](s[t(508)],t(479),(e,o)=>{const n=t,i=o[n(480)][n(514)](n(489));l=i?JSON[n(446)](i):null}),this[t(515)](r,t(469),(n,s)=>{const r=t,f=s[r(504)]===this[r(458)].id;f&&r(519)===s[r(484)]||o[r(443)](t=>{const n=r;let u=a[n(497)]();const d=!!u&&Array[n(517)](o[n(508)][n(518)][n(512)]())[n(507)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(473),e(449)))return!0;return!1}(o[n(441)](s[n(440)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(444)](null);for(const e of i[o(506)]())e.is(o(473),o(483))&&e[o(442)](o(496))&&(s[e[o(459)](o(496))]=t[o(467)](e,!0));return Object[o(448)](s)[o(447)]?s:null}(t,s[n(440)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(441)](e))n.is(o(473),o(439))&&i[o(488)](n);for(const e of i)t[o(445)](e)}(t,s[n(440)]),!l)return;const{selection:p}=o[n(508)],h=p[n(462)]()[n(470)];u&&!d||(u=L(t,s[n(440)]),u||=a[n(485)](t,h));const m=Array[n(517)](p[n(468)]())[n(452)](V),g=function(t,e,o){const s=n,r=Object[s(444)](null);for(const{item:n}of t[s(441)](e))if(n.is(s(473),s(449))){const e=n[s(459)](s(496));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(503)](s(496),r[e],n)}return r}(t,s[n(440)],t=>{const e=n;return!f||!!a[e(505)](t)&&!m[e(507)](t)});for(const[o,i]of Object[n(509)](l)){const s=g[o]||o;let r;if(n(476)!=typeof i)r=i,s!==o&&t[n(503)](n(496),s,r);else{r=t[n(465)](n(483),{footnoteId:s});const o=e[n(500)][n(451)][n(475)](i);let a;if(c)a=e[n(500)][n(495)](o,r);else{a=t[n(465)](n(455));const i=e[n(500)][n(495)](o,a);t[n(461)](i,a)}t[n(472)](a,r)}t[n(461)](r,u,n(463))}l=null})})}}function L(t,e){const o=P;for(const{item:n}of t[o(441)](e))if(n.is(o(473),o(439)))return n;return null}function V(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(473),e(449))&&o[e(513)](n[e(459)](e(496)));return Array[e(517)](o)}var O=o(311),N=o(355),R=o(929),K=o.n(R),M=o(297),j=o.n(M),B=o(102),U=o.n(B),W=o(123),z=o.n(W),H=o(741),q=o.n(H),G=o(728),J={attributes:{"data-cke":!0}};J.setAttributes=z(),J.insert=U().bind(null,"head"),J.domAPI=j(),J.insertStyleElement=q();K()(G.A,J);G.A&&G.A.locals&&G.A.locals;class X extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Y(t,O.ButtonView)),e.add("menuBar:insertFootnote",Y(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||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Y(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function $(){var t=["282372XufIGR","671fSxGIJ","requires","Footnotes","pluginName","81VVCDwO","452470knqbKb","44zYbxzg","isPremiumPlugin","isOfficialPlugin","892984QWuAHm","348787KNAfpK","2281600TPselH","47595GwbOkO","3921470XxtCGy","85SMhref"];return($=function(){return t})()}var Q=Z;function Z(t,e){var o=$();return(Z=function(t,e){return o[t-=234]})(t,e)}!function(t){for(var e=Z,o=t();;)try{if(571332===-parseInt(e(243))/1+parseInt(e(244))/2+parseInt(e(245))/3*(parseInt(e(239))/4)+parseInt(e(247))/5*(parseInt(e(248))/6)+parseInt(e(246))/7+-parseInt(e(242))/8*(-parseInt(e(237))/9)+parseInt(e(238))/10*(-parseInt(e(249))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[Q(236)](){return Q(235)}static get[Q(234)](){return[I,D,X]}static get[Q(241)](){return!0}static get[Q(240)](){return!0}}const et=ot;function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=355]})(t,e)}function nt(){const t=["lower-alpha","upper-roman","9121VowbAS","1395392iWOISb","decimal-leading-zero","lower-latin","2898ngPbSZ","decimal","326294sCONfs","40615FaRYdj","47786DkIrSM","upper-alpha","2612592zCKCzz","100ZUObXG","upper-latin","1614CVZMaA","lower-roman"];return(nt=function(){return t})()}!function(t){const e=ot,o=t();for(;;)try{if(298837===parseInt(e(363))/1+parseInt(e(361))/2+-parseInt(e(359))/3+parseInt(e(366))/4*(parseInt(e(362))/5)+parseInt(e(368))/6*(parseInt(e(355))/7)+-parseInt(e(356))/8+-parseInt(e(365))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[et(360),et(357),et(358),et(367),et(370),et(364),et(369),et(371)];function st(t,e){const o=at();return(st=function(t,e){return o[t-=299]})(t,e)}const rt=st;function at(){const t=["852BwPqxp","value","6093610pGqnxb","_updateFootnotesCounters","1862552CsVHsh","change","5095Bquacf","execute","getAttribute","getFootnotesDefinitionsObjectElement","1454776jrPtuC","model","isEnabled","1754081fysBAx","plugins","164EWIqxQ","get","footnotesListStyle","8655VmNBhf","606024bmWMFZ","18rYCtRM","setAttribute","refresh","includes"];return(at=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(395437===parseInt(e(308))/1+parseInt(e(299))/2+parseInt(e(307))/3*(parseInt(e(304))/4)+-parseInt(e(319))/5*(-parseInt(e(313))/6)+parseInt(e(302))/7+-parseInt(e(317))/8+parseInt(e(309))/9*(-parseInt(e(315))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[rt(311)](){const t=rt,{editor:e}=this,o=e[t(303)][t(305)](p)[t(322)]();this[t(301)]=!!o,this[t(314)]=o?.[t(321)](t(306))??null}[rt(320)]({value:t}){const e=rt,{editor:o}=this,n=o[e(303)][e(305)](p),i=n[e(322)]();i&&it[e(312)](t)&&o[e(300)][e(318)](o=>{const s=e;o[s(310)](s(306),t,i),n[s(316)](o)})}}function lt(t,e){const o=ut();return(lt=function(t,e){return o[t-=372]})(t,e)}const ft=lt;function ut(){const t=["5677392boHozO","execute","get","2YRiipF","plugins","isEnabled","_updateFootnotesCounters","getFootnotesDefinitionsObjectElement","149916aikipf","1883175nonmMy","20gknsfi","getAttribute","change","4296924MLUjJJ","isInteger","model","23242690ucYAiL","value","setAttribute","refresh","1289750UfVLsg","28UCKuWh","footnotesListStart","1212184pCXCBA"];return(ut=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(806618===parseInt(e(380))/1*(-parseInt(e(385))/2)+-parseInt(e(386))/3+-parseInt(e(387))/4*(-parseInt(e(373))/5)+-parseInt(e(377))/6+parseInt(e(374))/7*(-parseInt(e(376))/8)+-parseInt(e(390))/9+parseInt(e(393))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class dt extends t.Command{[ft(372)](){const t=ft,{editor:e}=this,o=e[t(381)][t(379)](p)[t(384)]();this[t(382)]=!!o,this[t(394)]=o?.[t(388)](t(375))??null}[ft(378)]({value:t}){const e=ft,{editor:o}=this,n=o[e(381)][e(379)](p),i=n[e(384)]();i&&Number[e(391)](t)&&o[e(392)][e(389)](o=>{const s=e;o[s(395)](s(375),t,i),n[s(383)](o)})}}const pt=ht;function ht(t,e){const o=bt();return(ht=function(t,e){return o[t-=162]})(t,e)}!function(t){const e=ht,o=t();for(;;)try{if(410913===parseInt(e(225))/1*(-parseInt(e(173))/2)+-parseInt(e(177))/3*(-parseInt(e(171))/4)+-parseInt(e(223))/5*(parseInt(e(256))/6)+-parseInt(e(183))/7+parseInt(e(213))/8+-parseInt(e(240))/9+parseInt(e(230))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(bt);class mt extends t.Plugin{static get[pt(187)](){return pt(237)}static get[pt(182)](){return[I,p]}static get[pt(248)](){return!0}static get[pt(217)](){return!0}[pt(172)](){const t=pt,{editor:e}=this;e[t(221)][t(246)](t(262),t(203)),e[t(221)][t(246)](t(186),1),e[t(176)][t(205)](t(180),new ct(e)),e[t(176)][t(205)](t(179),new dt(e)),this[t(231)](),this[t(207)](),this[t(245)](),this[t(234)]()}[pt(231)](){const t=pt,{editor:e}=this,{schema:o}=e[t(197)];o[t(257)](t(189),{allowAttributes:[t(178),t(253)]})}[pt(207)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(218)](t(192))[t(205)](e=>{const o=t;e.on(o(202),(t,e,n)=>{const s=o,r=e[s(181)],a=e[s(214)]?.[s(251)];r[s(242)](s(229))&&a?.is(s(162),s(189))&&(function(t,e,o,n){const i=s;if(!n[i(167)](e,i(253)))return;let r=1;const a=o[i(215)][i(236)](t,{attributes:i(260)});if(a){const e=Number[i(204)](t[i(209)](i(260)),10);Number[i(201)](e)||(r=e)}!a&&e[i(198)](i(253))||o[i(259)][i(216)](i(253),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(167)](e,i(178)))return;let r=i(203),a=!1;if(o[i(215)][i(236)](t,{attributes:i(222)})){const e={1:i(203),a:i(191),A:i(261),i:i(224),I:i(200)}[t[i(209)](i(222))];e&&(r=e),a=!0}o[i(215)][i(236)](t,{styles:i(199)})&&(r=function(t){const e=i;switch(t){case e(191):return e(188);case e(261):return e(164);default:return t}}(t[i(190)](i(199))),a=!0),!a&&e[i(198)](i(178))||o[i(259)][i(216)](i(178),r,e)}(r,a,n,i))})}),o[t(218)](t(249))[t(205)](e=>{const o=t;e.on(o(184),(t,e,n)=>{const i=o;if(!n[i(215)][i(236)](e[i(228)],t[i(226)]))return;const s=gt(e[i(228)],n[i(175)]),{attributeNewValue:r}=e;null==r||1===r?n[i(259)][i(169)](i(260),s):n[i(259)][i(216)](i(260),String(r),s)}),e.on(o(208),(t,e,n)=>{const i=o;if(!n[i(215)][i(236)](e[i(228)],t[i(226)]))return;const s=gt(e[i(228)],n[i(175)]),{attributeNewValue:r}=e;r&&i(203)!==r?n[i(259)][i(254)](i(199),r,s):n[i(259)][i(232)](i(199),s)})})}[pt(234)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(196)][t(163)](p),i=this[t(239)](),s=this[t(193)]();o[t(185)][t(174)](e=>{const r=t,a=o[r(185)][r(244)][r(241)]();let c=!1;for(const t of a){if(r(243)!==t[r(222)]||r(258)===t[r(226)])continue;const n=o[r(250)](t[r(227)][r(219)]);for(const t of n[r(170)]())t.is(r(162),r(189))&&(!t[r(198)](r(253))&&o[r(206)][r(167)](t,r(253))&&(e[r(216)](r(253),s,t),c=!0),!t[r(198)](r(178))&&o[r(206)][r(167)](t,r(178))&&(e[r(216)](r(178),i,t),c=!0))}return c&&n[r(235)](e),c})}[pt(245)](){const t=pt,{editor:e}=this;e[t(196)][t(163)](p)[t(165)](e=>this[t(195)](e))}[pt(239)](){const t=pt;return this[t(255)][t(221)][t(163)](t(262))}[pt(193)](){const t=pt;return this[t(255)][t(221)][t(163)](t(186))}[pt(195)]({container:t,value:e,digits:o}){const n=pt,i=t[n(209)](n(178)),s=t[n(209)](n(253)),r=Math[n(168)](e)+(s??1)-1;switch(i){case n(233):return function(t,e){const o=n;return String(t)[o(212)](e,"0")}(r,Math[n(194)](2,o));case n(191):case n(188):return wt(r,!1);case n(261):case n(164):return wt(r,!0);case n(224):return It(r,!1);case n(200):return It(r,!0);default:return String(r)}}}function gt(t,e){const o=pt,n=e[o(211)](t);return Array[o(252)](n[o(210)]())[o(166)](t=>t.is(o(162),"ol")&&t[o(242)](o(229)))}function wt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(247)](97+t)+n,i=Math[o(168)]((i-1)/26)}return e?n[o(220)]():n}const yt=[{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 bt(){const t=["getChildren","toViewElement","padStart","6345040kMvlTk","modelCursor","consumable","setAttribute","isPremiumPlugin","for","nodeAfter","toUpperCase","config","type","25XKxJpn","lower-roman","1fGATxK","name","position","item","footnotes-list","12534680BWcERA","_defineSchema","removeStyle","decimal-leading-zero","_definePostfixer","_updateFootnotesCounters","consume","FootnotesPropertiesEditing","toLowerCase","_getDefaultListStyle","5324355eChYIt","getChanges","hasClass","insert","differ","_defineFormatter","define","fromCharCode","isOfficialPlugin","downcast","createRangeOn","parent","from","footnotesListStart","setStyle","editor","715806FDETvs","extend","$text","writer","start","upper-alpha","footnotes.footnotesProperties.defaultListStyle","element","get","upper-latin","setFootnoteFormatter","find","checkAttribute","floor","removeAttribute","getItems","848228kDfmkC","init","1138226LGxxWb","registerPostFixer","mapper","commands","3VdeYoD","footnotesListStyle","footnotesStart","footnotesStyle","viewItem","requires","633703XUssmv","attribute:footnotesListStart:footnotesDefinitions","document","footnotes.footnotesProperties.defaultStartIndex","pluginName","lower-latin","footnotesDefinitions","getStyle","lower-alpha","upcast","_getDefaultStartIndex","max","_formatFootnoteListValue","plugins","model","hasAttribute","list-style-type","upper-roman","isNaN","element:ol","decimal","parseInt","add","schema","_defineConverters","attribute:footnotesListStyle:footnotesDefinitions","getAttribute"];return(bt=function(){return t})()}function It(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(238)]()}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=z(),Ct.insert=U().bind(null,"head"),Ct.domAPI=j(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[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:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new 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]})}}function xt(t,e){var o=St();return(xt=function(t,e){return o[t-=245]})(t,e)}var Et=xt;function St(){var t=["3322360qhbRQY","2675940eSyvkc","FootnotesProperties","requires","isPremiumPlugin","pluginName","133dzGFHO","4030782GCvMlU","2977265uWBpho","12747320eygUYV","7979461gNGENL","isOfficialPlugin","21784BoYPLB"];return(St=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(769387===parseInt(e(254))/1*(parseInt(e(247))/2)+-parseInt(e(255))/3+-parseInt(e(248))/4+parseInt(e(256))/5+parseInt(e(249))/6+-parseInt(e(245))/7+parseInt(e(257))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class At extends t.Plugin{static get[Et(253)](){return Et(250)}static get[Et(251)](){return[mt,Ft]}static get[Et(246)](){return!0}static get[Et(252)](){return!0}}function Pt(t,e){var o=Tt();return(Pt=function(t,e){return o[t-=395]})(t,e)}function Tt(){var t=["152madaxy","30501qSHgcF","61407pTHlVz","44nhPRUc","1360403VVRuaN","5faIKAN","1zHoqHi","13ZGEQgK","162626JYoVKF","13122NHbceW","530EScDWG","4924380qAmHfx","37261rtfQVT"];return(Tt=function(){return t})()}!function(t){for(var e=Pt,o=t();;)try{if(204401===-parseInt(e(398))/1*(parseInt(e(400))/2)+parseInt(e(406))/3*(parseInt(e(395))/4)+-parseInt(e(397))/5*(parseInt(e(401))/6)+-parseInt(e(404))/7*(-parseInt(e(405))/8)+-parseInt(e(407))/9*(-parseInt(e(402))/10)+parseInt(e(396))/11+parseInt(e(403))/12*(-parseInt(e(399))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var 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),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,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:()=>v,FootnotesProperties:()=>At,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>p,FootnotesUI:()=>J,InsertFootnoteCommand:()=>y});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=472]})(t,e)}function c(){const t=["length","position","_elementName","_model","12qgtnFh","flat","3195756atQJob","3006bhNaxd","push","$graveyard","175360KujckF","add","9976884yuUozj","has","1544LuZtHA","74367QUcJLp","251DfUkJX","_getElementKey","nodeAfter","root","13gMdBIr","name","3786167jSFfwu","set","getChanges","from","reset","getElementKey","insert","element","elementName","type","createRangeOn","22iwdhnO","$text","_trackedElements","get","rootName","slice","2972xCCRMM","5baUqLC","remove","getItems","clear","delete","attributes","values"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(276265===parseInt(e(516))/1*(-parseInt(e(492))/2)+parseInt(e(515))/3*(-parseInt(e(504))/4)+-parseInt(e(493))/5*(-parseInt(e(506))/6)+-parseInt(e(475))/7+parseInt(e(514))/8*(-parseInt(e(507))/9)+parseInt(e(510))/10*(-parseInt(e(486))/11)+-parseInt(e(512))/12*(-parseInt(e(473))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(503)];[r(502)];[r(517)];[r(488)]=new Map;constructor(t,e){const o=r;this[o(503)]=t,this[o(502)]=e[o(483)],this[o(517)]=e[o(480)]}[r(479)](){const t=r;this[t(488)][t(496)]()}[r(477)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(481)===i[e(484)]&&e(487)!==i[e(474)]&&i[e(501)][e(518)]){const t=this[e(503)][e(485)](i[e(501)][e(518)]);for(const o of t[e(495)]()){if(!o.is(e(482),this[e(502)]))continue;const t=this[e(517)](o);n[e(513)](t)||n[e(476)](t,[]),n[e(489)](t)[e(508)](o)}}if(e(494)===i[e(484)]&&i[e(474)]===this[e(502)]){const t=this[e(517)]({getAttribute:t=>i[e(498)][e(489)](t)});o[e(511)](t)}}for(const[t,n]of this[e(488)])e(509)===n[e(472)][e(490)]&&o[e(511)](t);for(const t of o)this[e(488)][e(497)](t);for(const[t,o]of n)this[e(488)][e(476)](t,o[o[e(500)]-1]);const i=new Set;for(const[t,s]of n)o[e(513)](t)&&(i[e(511)](s[0]),s[e(500)]>1?n[e(476)](t,s[e(491)](1)):n[e(497)](t),o[e(497)](t));return{removed:Array[e(478)](o),inserted:Array[e(478)](n[e(499)]())[e(505)](),moved:Array[e(478)](i)}}}function f(){const t=["createRangeOn","low","_footnoteDefsContainerTracker","before","map","reference","1903592EkCGCB","setAttribute","footnoteId","init","config","isOfficialPlugin","has","get","_ensureFootnotesReferencesHaveProperOrder","_handleFootnoteDefinitionsChanges","createRangeIn","getFootnotesDefinitionsObjectElement","isEqual","7hqWtJw","getFootnotes","length","getChanges","isPremiumPlugin","getRootNames","getAttribute","getFootnote","childCount","root","_footnoteDefsTracker","createPositionAt","min","_handleRemoveFootnoteReferenceById","setFootnoteFormatter","parent","FootnotesTracker","footnoteInlineContent","footnotesDefinitions","footnoteRef","pluginName","enqueueChange","12fsXECj","findIndex","add","indexOf","model","remove","_updateFootnoteRefCounter","_ensureFootnotesDefinitionsContainerExists","_updateFootnotesCounters","_footnotes","_footnotesDefinitions","footnoteDefinition","getChildren","_handleInsertedFootnoteReference","85407mDFVnq","createPositionBefore","_footnoteRefsTracker","5072QvNVxr","splice","_footnoteFormatter","insert","_handleFootnotesDefinitionsObjectChanges","document","append","_sortFootnoteDefinitions","151314poXLel","footnoteCounter","getFootnotesFormatter","listenTo","push","_handleFootnoteReferencesChanges","change:data","30dNgOGp","footnotes.multiBlock","definition","1790074nnRUrz","end","paragraph","set","singleton","compareWith","from","151921JwpSXc","2959650QEZcwR","createElement","40srkllL","some","_handleMovedFootnoteReference","unshift","find","_insertEmptyFootnotesDefinitionsContainer","editor","reset","$graveyard","high","move","16fCcdaL","differ","_handleFootnotesDefinitionsObjectSync","rootName","after","registerPostFixer","15HnTYpI"];return(f=function(){return t})()}const u=d;function d(t,e){const o=f();return(d=function(t,e){return o[t-=363]})(t,e)}!function(t){const e=d,o=t();for(;;)try{if(181939===-parseInt(e(388))/1*(-parseInt(e(464))/2)+-parseInt(e(461))/3*(parseInt(e(399))/4)+-parseInt(e(405))/5*(parseInt(e(368))/6)+parseInt(e(425))/7*(-parseInt(e(412))/8)+parseInt(e(386))/9+parseInt(e(375))/10*(parseInt(e(385))/11)+parseInt(e(447))/12*(parseInt(e(378))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class p extends t.Plugin{[u(456)]=[];[u(457)]=null;[u(466)]=null;[u(408)];[u(463)];[u(435)];static get[u(445)](){return u(441)}static get[u(417)](){return!0}static get[u(429)](){return!0}constructor(t){const e=u;super(t),this[e(408)]=new l(this[e(394)][e(451)],{elementName:e(443),getElementKey:()=>e(382)}),this[e(463)]=new l(this[e(394)][e(451)],{elementName:e(444),getElementKey:t=>t[e(431)](e(414))}),this[e(435)]=new l(this[e(394)][e(451)],{elementName:e(458),getElementKey:t=>t[e(431)](e(414))})}[u(415)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(365)][t(404)](e=>{const n=t,i=o[n(365)][n(400)][n(428)]();let s=!1;return this[n(364)](e,i)&&(s=!0),this[n(421)](e,i)&&(s=!0),this[n(373)](e,i)&&(s=!0),this[n(420)](e)&&(s=!0),this[n(401)](e)&&(s=!0),this[n(367)](e)&&(s=!0),s}),this[t(371)](o[t(365)],t(374),()=>{const e=t;o[e(446)]({isUndoable:!1},t=>{this[e(454)](t)})},{priority:t(407)}),this[t(371)](n,t(381),()=>{const e=t;this[e(456)]=[],this[e(408)][e(395)](),this[e(463)][e(395)](),this[e(435)][e(395)]()},{priority:t(397)})}[u(423)](){return this[u(457)]}[u(432)](t){const e=u;return this[e(456)][e(392)](e=>e.id===t)||null}[u(426)](){const t=u;return Array[t(384)](this[t(456)])}[u(370)](){return this[u(466)]}[u(439)](t){this[u(466)]=t}[u(455)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(456)][o(427)];i++)this[o(453)](t,i)&&(n=!0);return n}[u(393)](t,e){const o=u,n=t[o(387)](o(443),{});return t[o(366)](n,e),this[o(457)]=n,n}[u(454)](t){const e=u;if(!this[e(456)][e(427)]||this[e(457)])return;const o=this[e(456)][0][e(411)][e(434)],n=this[e(393)](t,o);for(const o of this[e(456)])o[e(377)][e(440)]||t[e(363)](o[e(377)],n,e(379));this[e(455)](t)}[u(364)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(408)][o(428)](e);if(r[o(427)]&&(this[o(457)]=r[0]),i[o(427)])if(i[o(427)]>1||this[o(457)]&&i[o(389)](t=>t!==this[o(457)])){const e=t[o(387)](o(443),{}),s=[];this[o(457)]&&s[o(372)](this[o(457)]),s[o(372)](...i),t[o(363)](e,s[0],o(409));for(const n of s)t[o(398)](t[o(422)](n),t[o(436)](e,o(379))),t[o(452)](n);this[o(457)]=e,this[o(455)](t),n=!0}else this[o(457)]=i[0];if(s[o(427)]&&o(396)===this[o(457)]?.[o(434)][o(402)]){for(const e of this[o(456)])t[o(452)](e[o(411)]),n=!0;this[o(456)]=[],this[o(457)]=null}return n}[u(421)](t,e){const o=u;let n=!1;const i=this[o(394)][o(416)][o(419)](o(376)),{inserted:s,moved:r}=this[o(435)][o(428)](e);for(const e of[...r,...s]){const s=e[o(431)](o(414)),r=this[o(432)](s);r&&(r[o(377)]=e),h(t,i,e)&&(n=!0)}return n}[u(373)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(463)][o(428)](e);for(const e of i)this[o(438)](t,e)&&(n=!0);for(const e of s)this[o(460)](t,e)&&(n=!0);for(const e of r)this[o(390)](t,e)&&(n=!0);return n}[u(401)](t){const e=u;if(!this[e(457)])return!1;let o=!1;if(this[e(457)][e(433)]!==this[e(456)][e(427)]){const n=[];for(const t of this[e(457)][e(459)]()){const i=t[e(431)](e(414));this[e(432)](i)||(n[e(391)](t),o=!0)}for(const o of n)t[e(452)](o)}const n=new Set,i=[];for(const t of this[e(457)][e(459)]()){const s=t[e(431)](e(414));n[e(418)](s)?(i[e(391)](t),o=!0):n[e(449)](s)}for(const o of i)t[e(452)](o);return this[e(457)][e(433)]||(t[e(452)](this[e(457)]),this[e(457)]=null,o=!0),o}[u(460)](t,e){const o=u;if(this[o(456)][o(392)](t=>t[o(411)]===e))return!1;let n=!1;const i=e[o(431)](o(414)),s=this[o(456)][o(448)](t=>t.id===i);-1!==s&&(t[o(452)](this[o(456)][s][o(411)]),this[o(456)][o(465)](s,1),n=!0);let r=this[o(457)]?function(t,e){const n=o;for(const o of t[n(459)]())if(o[n(431)](n(414))===e)return o;return null}(this[o(457)],i):null;r||(r=t[o(387)](o(458),{footnoteId:i}),this[o(457)]&&(t[o(363)](r,this[o(457)],o(379)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(394)][o(451)],this[o(456)],e);this[o(456)][o(465)](c,0,a);let l=c;return-1!==s&&(l=Math[o(437)](c,s)),this[o(455)](t,l)&&(n=!0),n}[u(438)](t,e){const o=u,n=this[o(456)][o(448)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(456)][n];return o(396)!==s[o(377)][o(434)][o(402)]&&(t[o(452)](s[o(377)]),i=!0),this[o(456)][o(465)](n,1),this[o(455)](t,n)&&(i=!0),i}[u(390)](t,e){const o=u,n=e[o(431)](o(414)),i=this[o(456)][o(448)](t=>t.id===n),s=this[o(456)][i];let r=!1;s[o(411)]=e,this[o(456)][o(465)](i,1);const a=m(this[o(394)][o(451)],this[o(456)],e);return this[o(456)][o(465)](a,0,s),this[o(455)](t,Math[o(437)](i,a))&&(r=!0),r}[u(453)](t,e){const o=u;if(!this[o(457)])return!1;const n=this[o(456)][e];let i;return i=this[o(466)]?this[o(466)]({footnote:n,container:this[o(457)],digits:String(this[o(456)][o(427)])[o(427)],value:e+1}):String(e+1),n[o(411)][o(431)](o(369))!=i&&(t[o(413)](o(369),i,n[o(411)]),!0)}[u(367)](t){const e=u;if(!this[e(457)]||this[e(456)][e(427)]<2)return!1;if(function(t,o){const n=e;if(t[n(427)]!==o[n(427)])return!1;for(let e=0;e<t[n(427)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(456)][e(410)](t=>t.id),Array[e(384)](this[e(457)][e(459)]())[e(410)](t=>t[e(431)](e(414)))))return!1;let o=!1;for(let n=0;n<this[e(456)][e(427)];n++){const i=this[e(456)][n],s=t[e(462)](i[e(377)]),r=t[e(436)](this[e(457)],n);s[e(424)](r)||(t[e(398)](t[e(406)](i[e(377)]),r),o=!0)}return o}[u(420)](t){const e=u;if(!this[e(456)][e(427)])return!1;const{model:o}=this[e(394)];let n=!1;for(let i=0;i<this[e(456)][e(427)]-1;i++){const s=this[e(456)][i],r=this[e(456)][i+1],a=o[e(462)](s[e(411)]),c=o[e(462)](r[e(411)]);e(403)===a[e(383)](c)&&(this[e(390)](t,s[e(411)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=u;if(o[n(433)])return!1;const i=n(e?380:442);return t[n(363)](t[n(387)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(427)])return 0;const i=t[n(462)](o);for(let o=0;o<e[n(427)];o++){const s=e[o],r=t[n(462)](s[n(411)]);if(n(409)===i[n(383)](r))return o}const s=o[n(434)];let r=-1;for(let t=e[n(427)]-1;t>=0;t--)if(e[t][n(411)][n(434)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(365)][n(430)](),c=a[n(450)](s[n(402)]),l=a[c+1];if(l)for(let t=0;t<e[n(427)];t++)if(e[t][n(411)][n(434)][n(402)]===l)return t;return e[n(427)]}const g=w;function w(t,e){const o=b();return(w=function(t,e){return o[t-=209]})(t,e)}!function(t){const e=w,o=t();for(;;)try{if(757244===parseInt(e(228))/1+-parseInt(e(217))/2+-parseInt(e(220))/3+parseInt(e(226))/4+parseInt(e(230))/5+parseInt(e(209))/6+-parseInt(e(242))/7)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class y extends t.Command{[g(219)](){const t=g,e=this[t(212)][t(223)][t(215)][t(224)],o=this[t(234)](e);this[t(239)]=!!o}[g(214)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(215)],r=this[e(234)](s);if(!r)return;const a=o[e(238)][e(232)](e(236)),c=t?.[e(213)]??(0,i.uid)();!function(t){const o=e;return o(221)==typeof t&&t[o(229)]>0&&!/\s/[o(216)](t)&&!/^\d/[o(216)](t)}(c)?(0,i.logWarning)(e(231)):(n[e(218)](t=>{const o=e,i=t[o(211)](o(233),{footnoteId:c});n[o(240)](i,r,null)}),a[e(235)](c))}[g(234)](t){const e=g,{model:o}=this[e(212)],{schema:n}=o,i=t[e(210)]();for(const t of i[e(227)]())if(n[e(241)](t)||n[e(222)](t))return null;const s=i[e(225)];return n[e(237)](s,e(233))?s:null}}function b(){const t=["plugins","isEnabled","insertObject","isBlock","5035464mDoYjj","6935850DlmJEl","getFirstRange","createElement","editor","footnoteId","execute","document","test","2637204NvpGzy","change","refresh","2336133bWKwvW","string","isObject","model","selection","end","3931120UwEXxl","getItems","853534DmWzgK","length","2908100KEEJQG","insert-footnote-command-executed-with-invalid-id","get","footnoteRef","_getPositionToInsertFootnote","_moveSelectionToFootnoteDefinition","FootnotesEditing","checkChild"];return(b=function(){return t})()}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[p]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new y(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1766275200;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var A=o(331);const D=T;function P(){const t=["_handlePasteFootnotesDefinitions","insert","getFirstRange","end","1236676uRBdMv","createElement","23736ECozZR","cloneElement","getRanges","contentInsertion","root","pluginName","append","element","88660PWReUg","toView","string","definition","1140732yzOwlN","clipboardInput","dataTransfer","footnotes.multiBlock","init","footnoteDefinition","method","_insertEmptyFootnotesDefinitionsContainer","_defineClipboardIntegration","18Xspmkh","push","application/ckeditor5-footnotes","isOfficialPlugin","get","340368DPiDqE","448wlJqpm","stringify","toModel","footnoteId","getFootnotesDefinitionsObjectElement","731042ucGlON","requires","data","find","_handleCopyFootnotesDefinitions","setAttribute","sourceEditorId","getFootnote","getChildren","includes","document","entries","FootnotesClipboard","getFootnotes","getSelectedBlocks","add","getData","listenTo","outputTransformation","from","selection","drop","config","toData","editing","footnotesDefinitions","content","createRangeIn","hasAttribute","change","create","remove","parse","length","keys","footnoteRef","isPremiumPlugin","htmlProcessor","flatMap","868100VNKdaX","1JWIVQY","footnoteInlineContent","setData","reduce","editor","getAttribute"];return(P=function(){return t})()}function T(t,e){const o=P();return(T=function(t,e){return o[t-=437]})(t,e)}!function(t){const e=T,o=t();for(;;)try{if(281226===parseInt(e(454))/1*(-parseInt(e(498))/2)+parseInt(e(492))/3+parseInt(e(464))/4+parseInt(e(474))/5+parseInt(e(478))/6+-parseInt(e(493))/7*(-parseInt(e(466))/8)+parseInt(e(487))/9*(-parseInt(e(453))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(P);class _ extends t.Plugin{static get[D(471)](){return D(510)}static get[D(499)](){return[v,A.ClipboardPipeline]}static get[D(490)](){return!0}static get[D(450)](){return!0}[D(482)](){this[D(486)]()}[D(486)](){const t=D;this[t(502)](),this[t(460)]()}[D(502)](){const t=D,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(491)](A.ClipboardPipeline),s=o[t(491)](p);this[t(515)](i,t(516),(o,i)=>{const r=t,a=V(n[r(441)](i[r(440)]));if(!a[r(447)])return;const c=s[r(511)](),l=a[r(457)]((t,o)=>{const n=r,i=c[n(501)](t=>t.id===o);if(i){const o=e[n(500)][n(475)](i[n(477)],{isClipboardPipeline:!0}),s=e[n(500)][n(451)][n(437)](o);t[i.id]=s}return t},Object[r(444)](null));i[r(480)][r(456)](r(489),JSON[r(494)](l))})}[D(460)](){const t=D,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(438)],r=n[t(491)](A.ClipboardPipeline),a=n[t(491)](p),c=e[t(520)][t(491)](t(481));let l=null;this[t(515)](s[t(508)],t(479),(e,o)=>{const n=t,i=o[n(480)][n(514)](n(489));l=i?JSON[n(446)](i):null}),this[t(515)](r,t(469),(n,s)=>{const r=t,f=s[r(504)]===this[r(458)].id;f&&r(519)===s[r(484)]||o[r(443)](t=>{const n=r;let u=a[n(497)]();const d=!!u&&Array[n(517)](o[n(508)][n(518)][n(512)]())[n(507)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(473),e(449)))return!0;return!1}(o[n(441)](s[n(440)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(444)](null);for(const e of i[o(506)]())e.is(o(473),o(483))&&e[o(442)](o(496))&&(s[e[o(459)](o(496))]=t[o(467)](e,!0));return Object[o(448)](s)[o(447)]?s:null}(t,s[n(440)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(441)](e))n.is(o(473),o(439))&&i[o(488)](n);for(const e of i)t[o(445)](e)}(t,s[n(440)]),!l)return;const{selection:p}=o[n(508)],h=p[n(462)]()[n(470)];u&&!d||(u=L(t,s[n(440)]),u||=a[n(485)](t,h));const m=Array[n(517)](p[n(468)]())[n(452)](V),g=function(t,e,o){const s=n,r=Object[s(444)](null);for(const{item:n}of t[s(441)](e))if(n.is(s(473),s(449))){const e=n[s(459)](s(496));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(503)](s(496),r[e],n)}return r}(t,s[n(440)],t=>{const e=n;return!f||!!a[e(505)](t)&&!m[e(507)](t)});for(const[o,i]of Object[n(509)](l)){const s=g[o]||o;let r;if(n(476)!=typeof i)r=i,s!==o&&t[n(503)](n(496),s,r);else{r=t[n(465)](n(483),{footnoteId:s});const o=e[n(500)][n(451)][n(475)](i);let a;if(c)a=e[n(500)][n(495)](o,r);else{a=t[n(465)](n(455));const i=e[n(500)][n(495)](o,a);t[n(461)](i,a)}t[n(472)](a,r)}t[n(461)](r,u,n(463))}l=null})})}}function L(t,e){const o=D;for(const{item:n}of t[o(441)](e))if(n.is(o(473),o(439)))return n;return null}function V(t){const e=D,o=new Set;for(const{item:n}of t)n.is(e(473),e(449))&&o[e(513)](n[e(459)](e(496)));return Array[e(517)](o)}var N=o(311),O=o(355),R=o(929),K=o.n(R),j=o(297),M=o.n(j),B=o(102),z=o.n(B),U=o(123),W=o.n(U),H=o(741),q=o.n(H),G=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=z().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=q();K()(G.A,X);G.A&&G.A.locals&&G.A.locals;class J extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,N.ButtonView)),e.add("menuBar:insertFootnote",Z(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function Q(){var t=["282372XufIGR","671fSxGIJ","requires","Footnotes","pluginName","81VVCDwO","452470knqbKb","44zYbxzg","isPremiumPlugin","isOfficialPlugin","892984QWuAHm","348787KNAfpK","2281600TPselH","47595GwbOkO","3921470XxtCGy","85SMhref"];return(Q=function(){return t})()}var Y=$;function $(t,e){var o=Q();return($=function(t,e){return o[t-=234]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(571332===-parseInt(e(243))/1+parseInt(e(244))/2+parseInt(e(245))/3*(parseInt(e(239))/4)+parseInt(e(247))/5*(parseInt(e(248))/6)+parseInt(e(246))/7+-parseInt(e(242))/8*(-parseInt(e(237))/9)+parseInt(e(238))/10*(-parseInt(e(249))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Q);class tt extends t.Plugin{static get[Y(236)](){return Y(235)}static get[Y(234)](){return[v,_,J]}static get[Y(241)](){return!0}static get[Y(240)](){return!0}}const et=ot;function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=355]})(t,e)}function nt(){const t=["lower-alpha","upper-roman","9121VowbAS","1395392iWOISb","decimal-leading-zero","lower-latin","2898ngPbSZ","decimal","326294sCONfs","40615FaRYdj","47786DkIrSM","upper-alpha","2612592zCKCzz","100ZUObXG","upper-latin","1614CVZMaA","lower-roman"];return(nt=function(){return t})()}!function(t){const e=ot,o=t();for(;;)try{if(298837===parseInt(e(363))/1+parseInt(e(361))/2+-parseInt(e(359))/3+parseInt(e(366))/4*(parseInt(e(362))/5)+parseInt(e(368))/6*(parseInt(e(355))/7)+-parseInt(e(356))/8+-parseInt(e(365))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[et(360),et(357),et(358),et(367),et(370),et(364),et(369),et(371)],st=rt;function rt(t,e){const o=ct();return(rt=function(t,e){return o[t-=499]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(909083===-parseInt(e(503))/1*(parseInt(e(511))/2)+-parseInt(e(505))/3+-parseInt(e(512))/4*(parseInt(e(501))/5)+-parseInt(e(518))/6*(-parseInt(e(520))/7)+-parseInt(e(517))/8*(-parseInt(e(509))/9)+-parseInt(e(522))/10+-parseInt(e(508))/11*(-parseInt(e(519))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class at extends t.Command{[st(523)](){const t=st,{editor:e}=this,o=e[t(507)][t(510)](p)[t(502)]();this[t(515)]=!!o,this[t(504)]=o?.[t(521)](t(500))??null}[st(513)]({value:t}){const e=st,{editor:o}=this,n=o[e(507)][e(510)](p),i=n[e(502)]();i&&it[e(506)](t)&&o[e(499)][e(514)](o=>{const s=e;o[s(516)](s(500),t,i),n[s(524)](o)})}}function ct(){const t=["20xTLQkA","execute","change","isEnabled","setAttribute","8vHFbjJ","5953530lPyxaf","12PIDwXF","7CGROFC","getAttribute","14951740DHfrgi","refresh","_updateFootnotesCounters","model","footnotesListStyle","1032235wJelkq","getFootnotesDefinitionsObjectElement","11ursSlI","value","1554942mNLDcL","includes","plugins","37032985jvSTrm","10657161ySphEF","get","288766hNXJQL"];return(ct=function(){return t})()}const lt=ut;function ft(){const t=["isInteger","model","isEnabled","2576798dAVExn","10748547MAnkSL","plugins","27313396RXGGKL","change","7538418qwNpZA","3234555HhkGOl","getAttribute","setAttribute","getFootnotesDefinitionsObjectElement","get","value","execute","footnotesListStart","24djhSqq","_updateFootnotesCounters","859171wZTRFS","348878PZUDSG","10vvkxBZ","refresh","4OYklGp","9mFqqZp"];return(ft=function(){return t})()}function ut(t,e){const o=ft();return(ut=function(t,e){return o[t-=106]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(712825===parseInt(e(111))/1+parseInt(e(112))/2*(parseInt(e(116))/3)+parseInt(e(115))/4*(parseInt(e(126))/5)+parseInt(e(125))/6+-parseInt(e(120))/7*(-parseInt(e(109))/8)+-parseInt(e(121))/9+parseInt(e(113))/10*(-parseInt(e(123))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[lt(114)](){const t=lt,{editor:e}=this,o=e[t(122)][t(130)](p)[t(129)]();this[t(119)]=!!o,this[t(106)]=o?.[t(127)](t(108))??null}[lt(107)]({value:t}){const e=lt,{editor:o}=this,n=o[e(122)][e(130)](p),i=n[e(129)]();i&&Number[e(117)](t)&&o[e(118)][e(124)](o=>{const s=e;o[s(128)](s(108),t,i),n[s(110)](o)})}}const pt=ht;function ht(t,e){const o=bt();return(ht=function(t,e){return o[t-=162]})(t,e)}!function(t){const e=ht,o=t();for(;;)try{if(410913===parseInt(e(225))/1*(-parseInt(e(173))/2)+-parseInt(e(177))/3*(-parseInt(e(171))/4)+-parseInt(e(223))/5*(parseInt(e(256))/6)+-parseInt(e(183))/7+parseInt(e(213))/8+-parseInt(e(240))/9+parseInt(e(230))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(bt);class mt extends t.Plugin{static get[pt(187)](){return pt(237)}static get[pt(182)](){return[v,p]}static get[pt(248)](){return!0}static get[pt(217)](){return!0}[pt(172)](){const t=pt,{editor:e}=this;e[t(221)][t(246)](t(262),t(203)),e[t(221)][t(246)](t(186),1),e[t(176)][t(205)](t(180),new at(e)),e[t(176)][t(205)](t(179),new dt(e)),this[t(231)](),this[t(207)](),this[t(245)](),this[t(234)]()}[pt(231)](){const t=pt,{editor:e}=this,{schema:o}=e[t(197)];o[t(257)](t(189),{allowAttributes:[t(178),t(253)]})}[pt(207)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(218)](t(192))[t(205)](e=>{const o=t;e.on(o(202),(t,e,n)=>{const s=o,r=e[s(181)],a=e[s(214)]?.[s(251)];r[s(242)](s(229))&&a?.is(s(162),s(189))&&(function(t,e,o,n){const i=s;if(!n[i(167)](e,i(253)))return;let r=1;const a=o[i(215)][i(236)](t,{attributes:i(260)});if(a){const e=Number[i(204)](t[i(209)](i(260)),10);Number[i(201)](e)||(r=e)}!a&&e[i(198)](i(253))||o[i(259)][i(216)](i(253),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(167)](e,i(178)))return;let r=i(203),a=!1;if(o[i(215)][i(236)](t,{attributes:i(222)})){const e={1:i(203),a:i(191),A:i(261),i:i(224),I:i(200)}[t[i(209)](i(222))];e&&(r=e),a=!0}o[i(215)][i(236)](t,{styles:i(199)})&&(r=function(t){const e=i;switch(t){case e(191):return e(188);case e(261):return e(164);default:return t}}(t[i(190)](i(199))),a=!0),!a&&e[i(198)](i(178))||o[i(259)][i(216)](i(178),r,e)}(r,a,n,i))})}),o[t(218)](t(249))[t(205)](e=>{const o=t;e.on(o(184),(t,e,n)=>{const i=o;if(!n[i(215)][i(236)](e[i(228)],t[i(226)]))return;const s=gt(e[i(228)],n[i(175)]),{attributeNewValue:r}=e;null==r||1===r?n[i(259)][i(169)](i(260),s):n[i(259)][i(216)](i(260),String(r),s)}),e.on(o(208),(t,e,n)=>{const i=o;if(!n[i(215)][i(236)](e[i(228)],t[i(226)]))return;const s=gt(e[i(228)],n[i(175)]),{attributeNewValue:r}=e;r&&i(203)!==r?n[i(259)][i(254)](i(199),r,s):n[i(259)][i(232)](i(199),s)})})}[pt(234)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(196)][t(163)](p),i=this[t(239)](),s=this[t(193)]();o[t(185)][t(174)](e=>{const r=t,a=o[r(185)][r(244)][r(241)]();let c=!1;for(const t of a){if(r(243)!==t[r(222)]||r(258)===t[r(226)])continue;const n=o[r(250)](t[r(227)][r(219)]);for(const t of n[r(170)]())t.is(r(162),r(189))&&(!t[r(198)](r(253))&&o[r(206)][r(167)](t,r(253))&&(e[r(216)](r(253),s,t),c=!0),!t[r(198)](r(178))&&o[r(206)][r(167)](t,r(178))&&(e[r(216)](r(178),i,t),c=!0))}return c&&n[r(235)](e),c})}[pt(245)](){const t=pt,{editor:e}=this;e[t(196)][t(163)](p)[t(165)](e=>this[t(195)](e))}[pt(239)](){const t=pt;return this[t(255)][t(221)][t(163)](t(262))}[pt(193)](){const t=pt;return this[t(255)][t(221)][t(163)](t(186))}[pt(195)]({container:t,value:e,digits:o}){const n=pt,i=t[n(209)](n(178)),s=t[n(209)](n(253)),r=Math[n(168)](e)+(s??1)-1;switch(i){case n(233):return function(t,e){const o=n;return String(t)[o(212)](e,"0")}(r,Math[n(194)](2,o));case n(191):case n(188):return wt(r,!1);case n(261):case n(164):return wt(r,!0);case n(224):return vt(r,!1);case n(200):return vt(r,!0);default:return String(r)}}}function gt(t,e){const o=pt,n=e[o(211)](t);return Array[o(252)](n[o(210)]())[o(166)](t=>t.is(o(162),"ol")&&t[o(242)](o(229)))}function wt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(247)](97+t)+n,i=Math[o(168)]((i-1)/26)}return e?n[o(220)]():n}const yt=[{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 bt(){const t=["getChildren","toViewElement","padStart","6345040kMvlTk","modelCursor","consumable","setAttribute","isPremiumPlugin","for","nodeAfter","toUpperCase","config","type","25XKxJpn","lower-roman","1fGATxK","name","position","item","footnotes-list","12534680BWcERA","_defineSchema","removeStyle","decimal-leading-zero","_definePostfixer","_updateFootnotesCounters","consume","FootnotesPropertiesEditing","toLowerCase","_getDefaultListStyle","5324355eChYIt","getChanges","hasClass","insert","differ","_defineFormatter","define","fromCharCode","isOfficialPlugin","downcast","createRangeOn","parent","from","footnotesListStart","setStyle","editor","715806FDETvs","extend","$text","writer","start","upper-alpha","footnotes.footnotesProperties.defaultListStyle","element","get","upper-latin","setFootnoteFormatter","find","checkAttribute","floor","removeAttribute","getItems","848228kDfmkC","init","1138226LGxxWb","registerPostFixer","mapper","commands","3VdeYoD","footnotesListStyle","footnotesStart","footnotesStyle","viewItem","requires","633703XUssmv","attribute:footnotesListStart:footnotesDefinitions","document","footnotes.footnotesProperties.defaultStartIndex","pluginName","lower-latin","footnotesDefinitions","getStyle","lower-alpha","upcast","_getDefaultStartIndex","max","_formatFootnoteListValue","plugins","model","hasAttribute","list-style-type","upper-roman","isNaN","element:ol","decimal","parseInt","add","schema","_defineConverters","attribute:footnotesListStyle:footnotesDefinitions","getAttribute"];return(bt=function(){return t})()}function vt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(238)]()}class It extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=z().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}function xt(t,e){var o=St();return(xt=function(t,e){return o[t-=245]})(t,e)}var Et=xt;function St(){var t=["3322360qhbRQY","2675940eSyvkc","FootnotesProperties","requires","isPremiumPlugin","pluginName","133dzGFHO","4030782GCvMlU","2977265uWBpho","12747320eygUYV","7979461gNGENL","isOfficialPlugin","21784BoYPLB"];return(St=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(769387===parseInt(e(254))/1*(parseInt(e(247))/2)+-parseInt(e(255))/3+-parseInt(e(248))/4+parseInt(e(256))/5+parseInt(e(249))/6+-parseInt(e(245))/7+parseInt(e(257))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class At extends t.Plugin{static get[Et(253)](){return Et(250)}static get[Et(251)](){return[mt,Ft]}static get[Et(246)](){return!0}static get[Et(252)](){return!0}}function Dt(t,e){var o=Pt();return(Dt=function(t,e){return o[t-=395]})(t,e)}function Pt(){var t=["152madaxy","30501qSHgcF","61407pTHlVz","44nhPRUc","1360403VVRuaN","5faIKAN","1zHoqHi","13ZGEQgK","162626JYoVKF","13122NHbceW","530EScDWG","4924380qAmHfx","37261rtfQVT"];return(Pt=function(){return t})()}!function(t){for(var e=Dt,o=t();;)try{if(204401===-parseInt(e(398))/1*(parseInt(e(400))/2)+parseInt(e(406))/3*(parseInt(e(395))/4)+-parseInt(e(397))/5*(parseInt(e(401))/6)+-parseInt(e(404))/7*(-parseInt(e(405))/8)+-parseInt(e(407))/9*(-parseInt(e(402))/10)+parseInt(e(396))/11+parseInt(e(403))/12*(-parseInt(e(399))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(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 _0x376500,Command as _0x56fe55}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x535696,isWidget as _0x4b8db9,toWidgetEditable as _0xbeec38,WidgetToolbarRepository as _0x1158fc}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x9f4a91,logWarning as _0x307ea4,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0xf7ba5e,ClickObserver as _0x10cbab}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x46fbd3}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x7e998c,ButtonView as _0x36aaaf,View as _0x1f73e8,ViewCollection as _0x40d1b5,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x1e12bb,BalloonPanelView as _0x3a46d5,createDropdown as _0x361a6e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x392258,IconListStyleDecimal as _0x4f3f9d,IconListStyleDecimalLeadingZero as _0x4c6215,IconListStyleLowerRoman as _0x31142a,IconListStyleUpperRoman as _0x529a8e,IconListStyleLowerLatin as _0x12da9f,IconListStyleUpperLatin as _0x2d09be}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x164d95,_0x7610ec){this['_model']=_0x164d95,this['_elementName']=_0x7610ec['elementName'],this['_getElementKey']=_0x7610ec['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x52f3ef){const _0x44c68e=new Set(),_0xa0c020=new Map();for(const _0x41edbd of _0x52f3ef){if('insert'===_0x41edbd['type']&&'$text'!==_0x41edbd['name']&&_0x41edbd['position']['nodeAfter']){const _0x8d5881=this['_model']['createRangeOn'](_0x41edbd['position']['nodeAfter']);for(const _0x3616ca of _0x8d5881['getItems']()){if(!_0x3616ca['is']('element',this['_elementName']))continue;const _0x20e7bf=this['_getElementKey'](_0x3616ca);_0xa0c020['has'](_0x20e7bf)||_0xa0c020['set'](_0x20e7bf,[]),_0xa0c020['get'](_0x20e7bf)['push'](_0x3616ca);}}if('remove'===_0x41edbd['type']&&_0x41edbd['name']===this['_elementName']){const _0x1b68e0=this['_getElementKey']({'getAttribute':_0x119e7b=>_0x41edbd['attributes']['get'](_0x119e7b)});_0x44c68e['add'](_0x1b68e0);}}for(const [_0x20f882,_0x5565cc]of this['_trackedElements'])'$graveyard'===_0x5565cc['root']['rootName']&&_0x44c68e['add'](_0x20f882);for(const _0xb1f2ba of _0x44c68e)this['_trackedElements']['delete'](_0xb1f2ba);for(const [_0x540640,_0x29ff95]of _0xa0c020)this['_trackedElements']['set'](_0x540640,_0x29ff95[_0x29ff95['length']-0x1]);const _0x4523a4=new Set();for(const [_0x179c87,_0x5c504c]of _0xa0c020)_0x44c68e['has'](_0x179c87)&&(_0x4523a4['add'](_0x5c504c[0x0]),_0x5c504c['length']>0x1?_0xa0c020['set'](_0x179c87,_0x5c504c['slice'](0x1)):_0xa0c020['delete'](_0x179c87),_0x44c68e['delete'](_0x179c87));return{'removed':Array['from'](_0x44c68e),'inserted':Array['from'](_0xa0c020['values']())['flat'](),'moved':Array['from'](_0x4523a4)};}}class f extends _0x376500{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5832f8){super(_0x5832f8),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x2ffea8=>_0x2ffea8['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0xa810b2=>_0xa810b2['getAttribute']('footnoteId')});}['init'](){const {editor:_0x2fdd60}=this,{model:_0x4e1ab5,data:_0x3e93d4}=_0x2fdd60;_0x4e1ab5['document']['registerPostFixer'](_0x3c5495=>{const _0x3f6c80=_0x4e1ab5['document']['differ']['getChanges']();let _0x6e834a=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x3c5495,_0x3f6c80)&&(_0x6e834a=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x3c5495,_0x3f6c80)&&(_0x6e834a=!0x0),this['_handleFootnoteReferencesChanges'](_0x3c5495,_0x3f6c80)&&(_0x6e834a=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x3c5495)&&(_0x6e834a=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x3c5495)&&(_0x6e834a=!0x0),this['_sortFootnoteDefinitions'](_0x3c5495)&&(_0x6e834a=!0x0),_0x6e834a;}),this['listenTo'](_0x4e1ab5['document'],'change:data',()=>{_0x4e1ab5['enqueueChange']({'isUndoable':!0x1},_0x2abff1=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x2abff1);});},{'priority':'low'}),this['listenTo'](_0x3e93d4,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x43ce2e){return this['_footnotes']['find'](_0x5c0d10=>_0x5c0d10['id']===_0x43ce2e)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x10d094){this['_footnoteFormatter']=_0x10d094;}['_updateFootnotesCounters'](_0x357d8c,_0x44b998=0x0){let _0x1c394f=!0x1;for(let _0x1cbdad=_0x44b998;_0x1cbdad<this['_footnotes']['length'];_0x1cbdad++)this['_updateFootnoteRefCounter'](_0x357d8c,_0x1cbdad)&&(_0x1c394f=!0x0);return _0x1c394f;}['_insertEmptyFootnotesDefinitionsContainer'](_0x1d89e2,_0x3dc6fc){const _0x48284b=_0x1d89e2['createElement']('footnotesDefinitions',{});return _0x1d89e2['append'](_0x48284b,_0x3dc6fc),this['_footnotesDefinitions']=_0x48284b,_0x48284b;}['_ensureFootnotesDefinitionsContainerExists'](_0xeedab1){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x4f542b=this['_footnotes'][0x0]['reference']['root'],_0x325dfb=this['_insertEmptyFootnotesDefinitionsContainer'](_0xeedab1,_0x4f542b);for(const _0x628c7 of this['_footnotes'])_0x628c7['definition']['parent']||_0xeedab1['insert'](_0x628c7['definition'],_0x325dfb,'end');this['_updateFootnotesCounters'](_0xeedab1);}['_handleFootnotesDefinitionsObjectChanges'](_0x80f9b8,_0x9c507e){let _0x451b38=!0x1;const {inserted:_0x5852d6,removed:_0x26a048,moved:_0x175b11}=this['_footnoteDefsContainerTracker']['getChanges'](_0x9c507e);if(_0x175b11['length']&&(this['_footnotesDefinitions']=_0x175b11[0x0]),_0x5852d6['length']){if(_0x5852d6['length']>0x1||this['_footnotesDefinitions']&&_0x5852d6['some'](_0x1549cc=>_0x1549cc!==this['_footnotesDefinitions'])){const _0x2cfecb=_0x80f9b8['createElement']('footnotesDefinitions',{}),_0x247b15=[];this['_footnotesDefinitions']&&_0x247b15['push'](this['_footnotesDefinitions']),_0x247b15['push'](..._0x5852d6),_0x80f9b8['insert'](_0x2cfecb,_0x247b15[0x0],'before');for(const _0x4e1896 of _0x247b15)_0x80f9b8['move'](_0x80f9b8['createRangeIn'](_0x4e1896),_0x80f9b8['createPositionAt'](_0x2cfecb,'end')),_0x80f9b8['remove'](_0x4e1896);this['_footnotesDefinitions']=_0x2cfecb,this['_updateFootnotesCounters'](_0x80f9b8),_0x451b38=!0x0;}else this['_footnotesDefinitions']=_0x5852d6[0x0];}if(_0x26a048['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0xbdb614 of this['_footnotes'])_0x80f9b8['remove'](_0xbdb614['reference']),_0x451b38=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x451b38;}['_handleFootnoteDefinitionsChanges'](_0x13879c,_0x2840c8){let _0x2832ab=!0x1;const _0xf6a4a9=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0xdd4414,moved:_0x2ba496}=this['_footnoteDefsTracker']['getChanges'](_0x2840c8);for(const _0x422371 of[..._0x2ba496,..._0xdd4414]){const _0x114020=_0x422371['getAttribute']('footnoteId'),_0x56d470=this['getFootnote'](_0x114020);_0x56d470&&(_0x56d470['definition']=_0x422371),_(_0x13879c,_0xf6a4a9,_0x422371)&&(_0x2832ab=!0x0);}return _0x2832ab;}['_handleFootnoteReferencesChanges'](_0x4b72db,_0x1adca1){let _0x2cdb32=!0x1;const {removed:_0x84d427,inserted:_0x237f98,moved:_0x1af29a}=this['_footnoteRefsTracker']['getChanges'](_0x1adca1);for(const _0x1f30f2 of _0x84d427)this['_handleRemoveFootnoteReferenceById'](_0x4b72db,_0x1f30f2)&&(_0x2cdb32=!0x0);for(const _0x5cd772 of _0x237f98)this['_handleInsertedFootnoteReference'](_0x4b72db,_0x5cd772)&&(_0x2cdb32=!0x0);for(const _0x149daf of _0x1af29a)this['_handleMovedFootnoteReference'](_0x4b72db,_0x149daf)&&(_0x2cdb32=!0x0);return _0x2cdb32;}['_handleFootnotesDefinitionsObjectSync'](_0x298584){if(!this['_footnotesDefinitions'])return!0x1;let _0x4f898d=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x186a2d=[];for(const _0x831b2 of this['_footnotesDefinitions']['getChildren']()){const _0xfd0530=_0x831b2['getAttribute']('footnoteId');this['getFootnote'](_0xfd0530)||(_0x186a2d['unshift'](_0x831b2),_0x4f898d=!0x0);}for(const _0x52b11b of _0x186a2d)_0x298584['remove'](_0x52b11b);}const _0x496455=new Set(),_0x205e12=[];for(const _0x3cb4bb of this['_footnotesDefinitions']['getChildren']()){const _0x38710e=_0x3cb4bb['getAttribute']('footnoteId');_0x496455['has'](_0x38710e)?(_0x205e12['unshift'](_0x3cb4bb),_0x4f898d=!0x0):_0x496455['add'](_0x38710e);}for(const _0x2e65d5 of _0x205e12)_0x298584['remove'](_0x2e65d5);return this['_footnotesDefinitions']['childCount']||(_0x298584['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x4f898d=!0x0),_0x4f898d;}['_handleInsertedFootnoteReference'](_0x52b745,_0x4eb79b){if(this['_footnotes']['find'](_0x25521e=>_0x25521e['reference']===_0x4eb79b))return!0x1;let _0x86f6fd=!0x1;const _0x49172d=_0x4eb79b['getAttribute']('footnoteId'),_0x2f3227=this['_footnotes']['findIndex'](_0x5625de=>_0x5625de['id']===_0x49172d);-0x1!==_0x2f3227&&(_0x52b745['remove'](this['_footnotes'][_0x2f3227]['reference']),this['_footnotes']['splice'](_0x2f3227,0x1),_0x86f6fd=!0x0);let _0x319d08=this['_footnotesDefinitions']?function(_0x464e45,_0x1081a2){for(const _0x31b11a of _0x464e45['getChildren']())if(_0x31b11a['getAttribute']('footnoteId')===_0x1081a2)return _0x31b11a;return null;}(this['_footnotesDefinitions'],_0x49172d):null;_0x319d08||(_0x319d08=_0x52b745['createElement']('footnoteDefinition',{'footnoteId':_0x49172d}),this['_footnotesDefinitions']&&(_0x52b745['insert'](_0x319d08,this['_footnotesDefinitions'],'end'),_0x86f6fd=!0x0));const _0x1bc0a1={'id':_0x49172d,'reference':_0x4eb79b,'definition':_0x319d08},_0x15c258=I(this['editor']['model'],this['_footnotes'],_0x4eb79b);this['_footnotes']['splice'](_0x15c258,0x0,_0x1bc0a1);let _0x3a66b0=_0x15c258;return-0x1!==_0x2f3227&&(_0x3a66b0=Math['min'](_0x15c258,_0x2f3227)),this['_updateFootnotesCounters'](_0x52b745,_0x3a66b0)&&(_0x86f6fd=!0x0),_0x86f6fd;}['_handleRemoveFootnoteReferenceById'](_0xaf07cd,_0x1da778){const _0x2b5cc2=this['_footnotes']['findIndex'](_0x283cf2=>_0x283cf2['id']===_0x1da778);if(-0x1===_0x2b5cc2)return!0x1;let _0x2cee86=!0x1;const _0x32f206=this['_footnotes'][_0x2b5cc2];return'$graveyard'!==_0x32f206['definition']['root']['rootName']&&(_0xaf07cd['remove'](_0x32f206['definition']),_0x2cee86=!0x0),this['_footnotes']['splice'](_0x2b5cc2,0x1),this['_updateFootnotesCounters'](_0xaf07cd,_0x2b5cc2)&&(_0x2cee86=!0x0),_0x2cee86;}['_handleMovedFootnoteReference'](_0x642318,_0x47c9aa){const _0xec0ba0=_0x47c9aa['getAttribute']('footnoteId'),_0x4a0e61=this['_footnotes']['findIndex'](_0x13d594=>_0x13d594['id']===_0xec0ba0),_0xc3283b=this['_footnotes'][_0x4a0e61];let _0x3d141c=!0x1;_0xc3283b['reference']=_0x47c9aa,this['_footnotes']['splice'](_0x4a0e61,0x1);const _0x2632c1=I(this['editor']['model'],this['_footnotes'],_0x47c9aa);return this['_footnotes']['splice'](_0x2632c1,0x0,_0xc3283b),this['_updateFootnotesCounters'](_0x642318,Math['min'](_0x4a0e61,_0x2632c1))&&(_0x3d141c=!0x0),_0x3d141c;}['_updateFootnoteRefCounter'](_0x1f3a23,_0x4ac42a){if(!this['_footnotesDefinitions'])return!0x1;const _0xa92c09=this['_footnotes'][_0x4ac42a];let _0x2172ab;return _0x2172ab=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0xa92c09,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x4ac42a+0x1}):String(_0x4ac42a+0x1),_0xa92c09['reference']['getAttribute']('footnoteCounter')!=_0x2172ab&&(_0x1f3a23['setAttribute']('footnoteCounter',_0x2172ab,_0xa92c09['reference']),!0x0);}['_sortFootnoteDefinitions'](_0xd0f273){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x33dc9a,_0x18f2a2){if(_0x33dc9a['length']!==_0x18f2a2['length'])return!0x1;for(let _0x5e61ea=0x0;_0x5e61ea<_0x33dc9a['length'];_0x5e61ea++)if(_0x33dc9a[_0x5e61ea]!==_0x18f2a2[_0x5e61ea])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x23751f=>_0x23751f['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x530d41=>_0x530d41['getAttribute']('footnoteId'))))return!0x1;let _0x4cc79d=!0x1;for(let _0x1f0822=0x0;_0x1f0822<this['_footnotes']['length'];_0x1f0822++){const _0x25721b=this['_footnotes'][_0x1f0822],_0x4e462a=_0xd0f273['createPositionBefore'](_0x25721b['definition']),_0x14f48d=_0xd0f273['createPositionAt'](this['_footnotesDefinitions'],_0x1f0822);_0x4e462a['isEqual'](_0x14f48d)||(_0xd0f273['move'](_0xd0f273['createRangeOn'](_0x25721b['definition']),_0x14f48d),_0x4cc79d=!0x0);}return _0x4cc79d;}['_ensureFootnotesReferencesHaveProperOrder'](_0x2fc5ed){if(!this['_footnotes']['length'])return!0x1;const {model:_0x2c66e4}=this['editor'];let _0x43da82=!0x1;for(let _0x18acac=0x0;_0x18acac<this['_footnotes']['length']-0x1;_0x18acac++){const _0x573f8d=this['_footnotes'][_0x18acac],_0x428b5a=this['_footnotes'][_0x18acac+0x1],_0x559785=_0x2c66e4['createPositionBefore'](_0x573f8d['reference']),_0x193e89=_0x2c66e4['createPositionBefore'](_0x428b5a['reference']);'after'===_0x559785['compareWith'](_0x193e89)&&(this['_handleMovedFootnoteReference'](_0x2fc5ed,_0x573f8d['reference']),_0x18acac=-0x1,_0x43da82=!0x0);}return _0x43da82;}}function _(_0x5cadbc,_0x6a1665,_0x30d724){if(_0x30d724['childCount'])return!0x1;const _0x526203=_0x6a1665?'paragraph':'footnoteInlineContent';return _0x5cadbc['insert'](_0x5cadbc['createElement'](_0x526203),_0x30d724),!0x0;}function I(_0x3837b8,_0x42fbc9,_0x567180){if(0x0===_0x42fbc9['length'])return 0x0;const _0x440299=_0x3837b8['createPositionBefore'](_0x567180);for(let _0x3ba9c9=0x0;_0x3ba9c9<_0x42fbc9['length'];_0x3ba9c9++){const _0x51c61b=_0x42fbc9[_0x3ba9c9],_0x4bf399=_0x3837b8['createPositionBefore'](_0x51c61b['reference']);if('before'===_0x440299['compareWith'](_0x4bf399))return _0x3ba9c9;}const _0x2a7bb2=_0x567180['root'];let _0x11e80f=-0x1;for(let _0x3c950b=_0x42fbc9['length']-0x1;_0x3c950b>=0x0;_0x3c950b--)if(_0x42fbc9[_0x3c950b]['reference']['root']===_0x2a7bb2){_0x11e80f=_0x3c950b;break;}if(-0x1!==_0x11e80f)return _0x11e80f+0x1;const _0x18e984=_0x3837b8['document']['getRootNames'](),_0x13d1b9=_0x18e984['indexOf'](_0x2a7bb2['rootName']),_0x37ce85=_0x18e984[_0x13d1b9+0x1];if(_0x37ce85){for(let _0x42b0f5=0x0;_0x42b0f5<_0x42fbc9['length'];_0x42b0f5++)if(_0x42fbc9[_0x42b0f5]['reference']['root']['rootName']===_0x37ce85)return _0x42b0f5;}return _0x42fbc9['length'];}class h extends _0x56fe55{['refresh'](){const _0x49a2ea=this['editor']['model']['document']['selection'],_0x1b14d0=this['_getPositionToInsertFootnote'](_0x49a2ea);this['isEnabled']=!!_0x1b14d0;}['execute'](_0x56e1a0){const {editor:_0x55fbc9}=this,{model:_0xed525b}=_0x55fbc9,{selection:_0x221a77}=_0xed525b['document'],_0xa0720e=this['_getPositionToInsertFootnote'](_0x221a77);if(!_0xa0720e)return;const _0x1580ae=_0x55fbc9['plugins']['get']('FootnotesEditing'),_0x207c6e=_0x56e1a0?.['footnoteId']??_0x9f4a91();!function(_0x56fe5d){return'string'==typeof _0x56fe5d&&_0x56fe5d['length']>0x0&&!/\s/['test'](_0x56fe5d)&&!/^\d/['test'](_0x56fe5d);}(_0x207c6e)?_0x307ea4('insert-footnote-command-executed-with-invalid-id'):(_0xed525b['change'](_0xf59eb=>{const _0x1fd8f2=_0xf59eb['createElement']('footnoteRef',{'footnoteId':_0x207c6e});_0xed525b['insertObject'](_0x1fd8f2,_0xa0720e,null);}),_0x1580ae['_moveSelectionToFootnoteDefinition'](_0x207c6e));}['_getPositionToInsertFootnote'](_0x236e57){const {model:_0x78d535}=this['editor'],{schema:_0x5f215e}=_0x78d535,_0x1efc30=_0x236e57['getFirstRange']();for(const _0x1e1307 of _0x1efc30['getItems']())if(_0x5f215e['isBlock'](_0x1e1307)||_0x5f215e['isObject'](_0x1e1307))return null;const _0x1b0cee=_0x1efc30['end'];return _0x5f215e['checkChild'](_0x1b0cee,'footnoteRef')?_0x1b0cee:null;}}class r extends _0x376500{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x534348}=this;_0x534348['config']['define']('footnotes.multiBlock',!0x0),_0x534348['commands']['add']('insertFootnote',new h(_0x534348)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x5370ae){const _0x49209c=_0x267cfe([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]),_0x191bd4=0x47a28506,_0x2f899d=0x47a5f976^_0x191bd4,_0x196872=window[_0x267cfe([0x44,0x61,0x74,0x65])][_0x267cfe([0x6e,0x6f,0x77])](),_0x2f22e1=_0x5370ae[_0x267cfe([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x364488=new window[(_0x267cfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26c441=>{_0x2f22e1[_0x267cfe([0x6f,0x6e,0x63,0x65])](_0x267cfe([0x72,0x65,0x61,0x64,0x79]),_0x26c441);}),_0x28cfe6={[_0x267cfe([0x6b,0x74,0x79])]:_0x267cfe([0x45,0x43]),[_0x267cfe([0x75,0x73,0x65])]:_0x267cfe([0x73,0x69,0x67]),[_0x267cfe([0x63,0x72,0x76])]:_0x267cfe([0x50,0x2d,0x32,0x35,0x36]),[_0x267cfe([0x78])]:_0x267cfe([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]),[_0x267cfe([0x79])]:_0x267cfe([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]),[_0x267cfe([0x61,0x6c,0x67])]:_0x267cfe([0x45,0x53,0x32,0x35,0x36])},_0x30f212=_0x2f22e1[_0x267cfe([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x267cfe([0x67,0x65,0x74])](_0x267cfe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x313434(){let _0x4ac2f1,_0x8610f2=null,_0x4bf002=null;try{if(_0x30f212==_0x267cfe([0x47,0x50,0x4c]))return _0x267cfe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4ac2f1=_0x44c587(),!_0x4ac2f1)return _0x267cfe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4ac2f1[_0x267cfe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4bf002=_0x597727(_0x4ac2f1[_0x267cfe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4ac2f1[_0x267cfe([0x6a,0x74,0x69])])),await _0xea24be()?_0x473146()?_0x2f6e02()?_0x267cfe([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1c4f1d()?(_0x4ac2f1[_0x267cfe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x267cfe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x8610f2=_0x596455(_0x267cfe([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4ac2f1[_0x267cfe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x267cfe([0x74,0x72,0x69,0x61,0x6c])&&(_0x8610f2=_0x596455(_0x267cfe([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2b9342()):_0x267cfe([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x267cfe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x267cfe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x267cfe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f6e02(){const _0x1d6c9e=[_0x267cfe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x267cfe([0x74,0x72,0x69,0x61,0x6c])][_0x267cfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ac2f1[_0x267cfe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x196872/0x3e8:0xe10*_0x2f899d;return _0x4ac2f1[_0x267cfe([0x65,0x78,0x70])]<_0x1d6c9e;}function _0x473146(){const _0x684ea2=_0x4ac2f1[_0x267cfe([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x684ea2&&(!!_0x684ea2[_0x267cfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x267cfe([0x2a]))||!!_0x684ea2[_0x267cfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x267cfe([0x46,0x4f,0x4f])));}function _0x1c4f1d(){const _0x4c96fc=_0x4ac2f1[_0x267cfe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4c96fc||0x0==_0x4c96fc[_0x267cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x451bba}=new URL(window[_0x267cfe([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4c96fc[_0x267cfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x451bba))return!0x0;const _0x461a98=_0x451bba[_0x267cfe([0x73,0x70,0x6c,0x69,0x74])](_0x267cfe([0x2e]));return _0x4c96fc[_0x267cfe([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb44d78=>_0xb44d78[_0x267cfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x267cfe([0x2a])))[_0x267cfe([0x6d,0x61,0x70])](_0x1b9fbd=>_0x1b9fbd[_0x267cfe([0x73,0x70,0x6c,0x69,0x74])](_0x267cfe([0x2e])))[_0x267cfe([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d3f45=>_0x2d3f45[_0x267cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x461a98[_0x267cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x267cfe([0x6d,0x61,0x70])](_0x34eeca=>Array(_0x461a98[_0x267cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x34eeca[_0x267cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x267cfe([0x66,0x69,0x6c,0x6c])](_0x34eeca[0x0]===_0x267cfe([0x2a])?_0x267cfe([0x2a]):'')[_0x267cfe([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x34eeca))[_0x267cfe([0x73,0x6f,0x6d,0x65])](_0x62e7f3=>_0x461a98[_0x267cfe([0x65,0x76,0x65,0x72,0x79])]((_0x3ae2a3,_0x12a52e)=>_0x62e7f3[_0x12a52e]===_0x3ae2a3||_0x62e7f3[_0x12a52e]===_0x267cfe([0x2a])));}function _0x2b9342(){return _0x8610f2&&_0x4bf002?new window[(_0x267cfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5bc7e4,_0x4e895c)=>{_0x8610f2[_0x267cfe([0x74,0x68,0x65,0x6e])](_0x5bc7e4,_0x4e895c),_0x4bf002[_0x267cfe([0x74,0x68,0x65,0x6e])](_0x586bbd=>{_0x586bbd!=_0x267cfe([0x56,0x61,0x6c,0x69,0x64])&&_0x5bc7e4(_0x586bbd);},_0x4e895c);}):_0x8610f2||_0x4bf002||_0x267cfe([0x56,0x61,0x6c,0x69,0x64]);}}function _0x597727(_0x5553b8,_0x36fc0a){return new window[(_0x267cfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bbf53=>{if(_0x43fd8c())return _0x1bbf53(_0x267cfe([0x56,0x61,0x6c,0x69,0x64]));_0x15cb09(),_0x2f22e1[_0x267cfe([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x267cfe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3a9592=!0x1;const _0x389449=_0x9f4a91();function _0x108cde(_0x349e6c){return!!_0x349e6c&&(typeof _0x349e6c===_0x267cfe([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x349e6c===_0x267cfe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x349e6c[_0x267cfe([0x74,0x68,0x65,0x6e])]===_0x267cfe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x349e6c[_0x267cfe([0x63,0x61,0x74,0x63,0x68])]===_0x267cfe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x34e866(_0x2d3204){_0x5af897(_0x2d3204)[_0x267cfe([0x74,0x68,0x65,0x6e])](_0xb5bf3e=>{if(!_0xb5bf3e||_0xb5bf3e[_0x267cfe([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x267cfe([0x6f,0x6b]))return _0x267cfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2200b8(_0x2ff394(_0x389449+_0x36fc0a))!=_0xb5bf3e[_0x267cfe([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x267cfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x267cfe([0x56,0x61,0x6c,0x69,0x64]);})[_0x267cfe([0x74,0x68,0x65,0x6e])](_0x588bfb=>(_0x24ac23(),_0x588bfb),()=>{const _0x3775c0=_0x58686e();return null==_0x3775c0?(_0x24ac23(),_0x267cfe([0x56,0x61,0x6c,0x69,0x64])):_0x267cfe(_0x196872-_0x3775c0>(0x63ae0106^_0x191bd4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x267cfe([0x74,0x68,0x65,0x6e])](_0x1bbf53)[_0x267cfe([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1bbf53(_0x267cfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3acc67=0x47946b86^_0x191bd4;function _0x24ac23(){const _0x249d9e=_0x267cfe([0x6c,0x6c,0x63,0x74,0x2d])+_0x2200b8(_0x2ff394(_0x5553b8)),_0x38d6f2=_0x288182(_0x2200b8(window[_0x267cfe([0x4d,0x61,0x74,0x68])][_0x267cfe([0x63,0x65,0x69,0x6c])](_0x196872/_0x3acc67)));window[_0x267cfe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x267cfe([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x249d9e,_0x38d6f2);}function _0x58686e(){const _0x5e6a3f=_0x267cfe([0x6c,0x6c,0x63,0x74,0x2d])+_0x2200b8(_0x2ff394(_0x5553b8)),_0x23adbc=window[_0x267cfe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x267cfe([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e6a3f);return _0x23adbc?window[_0x267cfe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x288182(_0x23adbc),0x10)*_0x3acc67:null;}function _0x5af897(_0x51bf31){return new window[(_0x267cfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c29bb,_0x6fb3d7)=>{_0x51bf31[_0x267cfe([0x74,0x68,0x65,0x6e])](_0x4c29bb,_0x6fb3d7),window[_0x267cfe([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x6fb3d7,0x47a351c6^_0x191bd4);});}}_0x2f22e1[_0x267cfe([0x6f,0x6e])](_0x267cfe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x28fa0a,_0x538356)=>{if(_0x538356[0x0]!=_0x5553b8)return _0x1bbf53(_0x267cfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x538356[0x1]={..._0x538356[0x1],[_0x267cfe([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x389449};},{[_0x267cfe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x267cfe([0x68,0x69,0x67,0x68])}),_0x2f22e1[_0x267cfe([0x6f,0x6e])](_0x267cfe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2e6d9e=>{_0x108cde(_0x2e6d9e[_0x267cfe([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3a9592=!0x0,_0x34e866(_0x2e6d9e[_0x267cfe([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x267cfe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x267cfe([0x6c,0x6f,0x77])}),_0x364488[_0x267cfe([0x74,0x68,0x65,0x6e])](()=>{_0x3a9592||_0x1bbf53(_0x267cfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x43fd8c(){return _0x2f22e1[_0x267cfe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x267cfe([0x76,0x69,0x65,0x77])][_0x267cfe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x267cfe([0x61,0x75,0x74,0x6f]);}function _0x15cb09(){_0x2f22e1[_0x267cfe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x267cfe([0x76,0x69,0x65,0x77])][_0x267cfe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x267cfe([0x61,0x75,0x74,0x6f]);}}function _0x596455(_0x585473){const _0x5785c7=[new window[(_0x267cfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25a6c3=>setTimeout(_0x25a6c3,0x47abbbca^_0x191bd4)),_0x364488[_0x267cfe([0x74,0x68,0x65,0x6e])](()=>new window[(_0x267cfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe67a98=>{let _0x37abf7=0x0;_0x2f22e1[_0x267cfe([0x6d,0x6f,0x64,0x65,0x6c])][_0x267cfe([0x6f,0x6e])](_0x267cfe([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x55cce3,_0x2fe0e1)=>{_0x2fe0e1[0x0][_0x267cfe([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x37abf7++,_0x37abf7==(0x47a280ee^_0x191bd4)&&(_0xe67a98(),_0x55cce3[_0x267cfe([0x6f,0x66,0x66])]());});}))];return window[_0x267cfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x267cfe([0x72,0x61,0x63,0x65])](_0x5785c7)[_0x267cfe([0x74,0x68,0x65,0x6e])](()=>_0x585473);}async function _0x16fb1c(){await _0x364488,_0x2f22e1[_0x267cfe([0x6d,0x6f,0x64,0x65,0x6c])][_0x267cfe([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa7cad7,_0x2f22e1[_0x267cfe([0x6d,0x6f,0x64,0x65,0x6c])][_0x267cfe([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa7cad7,_0x2f22e1[_0x267cfe([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x267cfe([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8556ec(_0x5c989c){const _0x423f06=_0x3a08d7();_0x2f22e1[_0x423f06]=_0x267cfe([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5c989c,_0x5c989c!=_0x267cfe([0x56,0x61,0x6c,0x69,0x64])&&_0x16fb1c();}function _0x3a08d7(){const _0x508dc8=window[_0x267cfe([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x267cfe([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x267cfe([0x6e,0x6f,0x77])]())[_0x267cfe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x267cfe([0x2e]),'');let _0x18b07d=_0x267cfe([0x75]);for(let _0x348ee0=0x0;_0x348ee0<_0x508dc8[_0x267cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x348ee0+=0x2){let _0xb6e037=window[_0x267cfe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x508dc8[_0x267cfe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x348ee0,_0x348ee0+0x2));_0xb6e037>=_0x49209c[_0x267cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb6e037-=_0x49209c[_0x267cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x18b07d+=_0x49209c[_0xb6e037];}return _0x18b07d;}function _0x44c587(){const _0x22b30b=_0x30f212[_0x267cfe([0x73,0x70,0x6c,0x69,0x74])](_0x267cfe([0x2e]));if(0x3!=_0x22b30b[_0x267cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x15e97c(_0x22b30b[0x1]);function _0x15e97c(_0x84286b){const _0x29f2e6=_0x1c745a(_0x84286b);return _0x29f2e6&&_0x4c8f04()?_0x29f2e6:null;function _0x4c8f04(){const _0x18a661=_0x29f2e6[_0x267cfe([0x6a,0x74,0x69])],_0x27ab45=window[_0x267cfe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18a661[_0x267cfe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18a661[_0x267cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x452705={..._0x29f2e6,[_0x267cfe([0x6a,0x74,0x69])]:_0x18a661[_0x267cfe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x18a661[_0x267cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x452705[_0x267cfe([0x76,0x63])],_0x2ff394(_0x452705)==_0x27ab45;}}}async function _0xea24be(){let _0x5c3dc9=!0x0;try{const _0x3b7e93=_0x30f212[_0x267cfe([0x73,0x70,0x6c,0x69,0x74])](_0x267cfe([0x2e])),[_0x454c5e,_0x219596,_0x400730]=_0x3b7e93;return _0x4311b3(_0x454c5e),await _0x2d86c7(_0x454c5e,_0x219596,_0x400730),_0x5c3dc9;}catch{return!0x1;}function _0x4311b3(_0x49378b){const _0xa1bee8=_0x1c745a(_0x49378b);_0xa1bee8&&_0xa1bee8[_0x267cfe([0x61,0x6c,0x67])]==_0x267cfe([0x45,0x53,0x32,0x35,0x36])||(_0x5c3dc9=!0x1);}async function _0x2d86c7(_0x1cc096,_0x449633,_0x22529e){const _0x371bab=window[_0x267cfe([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x267cfe([0x66,0x72,0x6f,0x6d])](_0x362161(_0x22529e),_0x5bb520=>_0x5bb520[_0x267cfe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a66ba=new window[(_0x267cfe([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x267cfe([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1cc096+_0x267cfe([0x2e])+_0x449633),_0x3a2981=window[_0x267cfe([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x267cfe([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3a2981)return;const _0x1e1886=await _0x3a2981[_0x267cfe([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x267cfe([0x6a,0x77,0x6b]),_0x28cfe6,{[_0x267cfe([0x6e,0x61,0x6d,0x65])]:_0x267cfe([0x45,0x43,0x44,0x53,0x41]),[_0x267cfe([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x267cfe([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x267cfe([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3a2981[_0x267cfe([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x267cfe([0x6e,0x61,0x6d,0x65])]:_0x267cfe([0x45,0x43,0x44,0x53,0x41]),[_0x267cfe([0x68,0x61,0x73,0x68])]:{[_0x267cfe([0x6e,0x61,0x6d,0x65])]:_0x267cfe([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1e1886,_0x371bab,_0x5a66ba)||(_0x5c3dc9=!0x1);}}function _0x1c745a(_0x137031){return _0x137031[_0x267cfe([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x267cfe([0x65,0x79]))?JSON[_0x267cfe([0x70,0x61,0x72,0x73,0x65])](_0x362161(_0x137031)):null;}function _0x362161(_0x3e2121){return window[_0x267cfe([0x61,0x74,0x6f,0x62])](_0x3e2121[_0x267cfe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x267cfe([0x2b]))[_0x267cfe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x267cfe([0x2f])));}function _0x2ff394(_0x5c411c){let _0x38cfa6=0x1505;function _0x1aadf8(_0x2a0cb5){for(let _0x2c58d3=0x0;_0x2c58d3<_0x2a0cb5[_0x267cfe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c58d3++){const _0x271114=_0x2a0cb5[_0x267cfe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c58d3);_0x38cfa6=(_0x38cfa6<<0x5)+_0x38cfa6+_0x271114,_0x38cfa6&=_0x38cfa6;}}function _0x1dedbf(_0x4cbae5){Array[_0x267cfe([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4cbae5)?_0x4cbae5[_0x267cfe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1dedbf):_0x4cbae5&&typeof _0x4cbae5==_0x267cfe([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x267cfe([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4cbae5)[_0x267cfe([0x73,0x6f,0x72,0x74])]()[_0x267cfe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5adb06,_0x13aa7f])=>{_0x1aadf8(_0x5adb06),_0x1dedbf(_0x13aa7f);}):_0x1aadf8(window[_0x267cfe([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4cbae5));}return _0x1dedbf(_0x5c411c),_0x38cfa6>>>0x0;}function _0x2200b8(_0x23b68d){return _0x23b68d[_0x267cfe([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x267cfe([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x267cfe([0x30]));}function _0x288182(_0xe5adc){return _0xe5adc[_0x267cfe([0x73,0x70,0x6c,0x69,0x74])]('')[_0x267cfe([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x267cfe([0x6a,0x6f,0x69,0x6e])]('');}function _0xa7cad7(){}function _0x267cfe(_0x32b1d0){return _0x32b1d0['map'](_0x42f54b=>String['fromCharCode'](_0x42f54b))['join']('');}_0x8556ec(await _0x313434());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4efc22){const {plugins:_0x41da6b,editing:_0x4b0470,model:_0x8e2c76}=this['editor'],_0x10d7fb=_0x41da6b['get'](f)['getFootnote'](_0x4efc22);return!!_0x10d7fb&&(_0x8e2c76['change'](_0x4be2b9=>{_0x4be2b9['setSelection'](_0x4be2b9['createPositionAt'](_0x10d7fb['definition'],'end'));}),_0x4b0470['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4347c5){const {plugins:_0x2e3b1a,editing:_0x5d4ff1,model:_0x3151f0}=this['editor'],_0x19117a=_0x2e3b1a['get'](f)['getFootnote'](_0x4347c5);return!!_0x19117a&&(_0x3151f0['change'](_0x2f2dde=>{_0x2f2dde['setSelection'](_0x19117a['reference'],'on');}),_0x5d4ff1['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x5bcc17}=this['editor']['model'],_0x59c3f6=this['editor']['config']['get']('footnotes.multiBlock');_0x5bcc17['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x5bcc17['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x5bcc17['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x59c3f6?_0x5bcc17['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x5bcc17['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x5bcc17['addChildCheck'](_0xd67131=>{for(const _0x1bd5db of _0xd67131)if('footnoteDefinition'===_0x1bd5db['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x3cf059}=this,{conversion:_0x3dddb2,editing:_0x5a8fe2}=_0x3cf059,{t:t}=_0x3cf059['locale'];_0x3dddb2['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x8b19cc,{writer:_0x26358d,consumable:_0xd91c10})=>{const _0x2f681b=_0x8b19cc['getChild'](0x0);if(!_0x2f681b||!_0x2f681b['is']('element','a'))return null;const _0x1ec723=_0x2f681b['getAttribute']('href')||'';if(!_0x1ec723['startsWith']('#'))return null;const _0x40a00c=_0x1ec723['replace'](/^#/,'');if(!_0x40a00c)return null;_0xd91c10['consume'](_0x2f681b,{'name':!0x0,'attributes':['href']});for(const {item:_0x4695c4}of _0x5a8fe2['view']['createRangeIn'](_0x2f681b))_0x4695c4['is']('$textProxy')?_0xd91c10['consume'](_0x4695c4['textNode'],{'name':!0x0}):_0x4695c4['is']('element')&&_0xd91c10['consume'](_0x4695c4,{'name':!0x0});return _0x26358d['createElement']('footnoteRef',{'footnoteId':_0x40a00c});}}),_0x3dddb2['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x36559b,{writer:_0x53aaea})=>b(_0x36559b,_0x53aaea)}),_0x3dddb2['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5e4d42,{writer:_0x717413})=>{const _0x21d780=_0x5e4d42['getAttribute']('footnoteCounter');return _0x535696(b(_0x5e4d42,_0x717413),_0x717413,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x21d780)});}});}['_defineDefinitionsConverters'](){const {editor:_0x55c174}=this,{t:t}=_0x55c174['locale'],{conversion:_0x2bb925}=_0x55c174;_0x2bb925['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x2bb925['for']('upcast')['add'](_0x4c502e=>{_0x4c502e['on']('element:ol',(_0x1a7ef3,_0x7bf47,_0x5957a1)=>{const _0x285ee8=_0x7bf47['viewItem'];if(!_0x285ee8['hasClass']('footnotes-list')||!_0x7bf47['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x5957a1['consumable']['consume'](_0x285ee8,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x375673,modelCursor:_0x1d294}=_0x5957a1['convertChildren'](_0x7bf47['viewItem'],_0x7bf47['modelCursor']);_0x7bf47['modelRange']=_0x375673,_0x7bf47['modelCursor']=_0x1d294;}),_0x4c502e['on']('element:hr',(_0x20e70a,_0x231359,_0x3c8f8b)=>{const _0x2fda53=_0x231359['viewItem'];_0x2fda53['hasClass']('footnotes-divider')&&_0x231359['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3c8f8b['consumable']['consume'](_0x2fda53,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x2bb925['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x8a5ba0,{writer:_0x129fa0})=>D(_0x129fa0)}),_0x2bb925['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x7d3691,{writer:_0x2d78a8})=>{const _0x5a3998=D(_0x2d78a8,{'data-footnotes-list-label':t('Footnotes')}),_0x34c908=_0x535696(_0x5a3998,_0x2d78a8,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2d78a8['setCustomProperty']('footnotesDefinitions',!0x0,_0x34c908),_0x34c908;}});}['_defineDefinitionConverters'](){const {editor:_0x3cf0c3}=this,{conversion:_0x3aed7e,locale:_0x401ddf}=_0x3cf0c3,_0x253648=_0x3cf0c3['config']['get']('footnotes.multiBlock');_0x3aed7e['for']('upcast')['add'](_0x1d6407=>{_0x1d6407['on']('element:li',(_0x4cb8d7,_0x1451d5,_0xe5582e)=>{const _0x434bbd=_0x1451d5['viewItem'];if(!_0x434bbd['hasClass']('footnote-definition')||!_0x434bbd['getAttribute']('id'))return;const _0x5bdf68=_0x434bbd['parent'];if(!_0x5bdf68['is']('element','ol')||!_0x5bdf68['hasClass']('footnotes-list'))return;if(!_0xe5582e['consumable']['test'](_0x434bbd,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x446e0c=_0xe5582e['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x434bbd['getAttribute']('id')});if(!_0xe5582e['safeInsert'](_0x446e0c,_0x1451d5['modelCursor']))return;_0xe5582e['consumable']['consume'](_0x434bbd,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4aaa02=Array['from'](_0x434bbd['getChildren']())['find'](_0x38e89d=>_0x38e89d['is']('element')&&_0x38e89d['hasClass']('footnote-content'));for(const _0x2fdc06 of _0x434bbd['getChildren']())_0x2fdc06['is']('element')&&(_0xe5582e['consumable']['consume'](_0x2fdc06,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0xe5582e['consumable']['consume'](_0x2fdc06,{'name':!0x0,'classes':'footnote-content'}));if(_0x4aaa02){if(_0x253648)_0xe5582e['convertChildren'](_0x4aaa02,_0x446e0c);else{const _0x47f76b=_0xe5582e['writer']['createElement']('footnoteInlineContent');_0xe5582e['writer']['insert'](_0x47f76b,_0x446e0c),_0xe5582e['convertChildren'](_0x4aaa02,_0x47f76b);}}_0xe5582e['updateConversionResult'](_0x446e0c,_0x1451d5);});}),_0x3aed7e['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x42a635,{writer:_0x512ee8})=>y(_0x42a635,_0x512ee8,_0x401ddf,{'dataPipeline':!0x0})}),_0x3aed7e['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x52d7de,{writer:_0x4eacb5})=>y(_0x52d7de,_0x4eacb5,_0x401ddf)});}['_defineBogusParagraphConverters'](){const {editor:_0x26fefe}=this,{conversion:_0x1486a0}=_0x26fefe;_0x26fefe['config']['get']('footnotes.multiBlock')?(_0x1486a0['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x1486a0['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x26fefe['model']['document'],'change:data',()=>{!function(_0x24f884,_0x20652b){const _0x3c6f2d=_0x24f884['document']['differ'],_0xe8cf49=new Set();for(const _0x289577 of _0x3c6f2d['getChanges']()){const _0x3e67b9='attribute'==_0x289577['type']?_0x289577['range']['start']['parent']:_0x289577['position']['parent'];_0x3e67b9['is']('element','footnoteDefinition')&&_0xe8cf49['add'](_0x3e67b9);}for(const _0x315264 of _0xe8cf49['values']()){const _0x51cdff=Array['from'](_0x315264['getChildren']())['filter'](_0x5f2eb5=>v(_0x5f2eb5,_0x20652b['mapper']));for(const _0x149e34 of _0x51cdff)_0x20652b['reconvertItem'](_0x149e34);}}(_0x26fefe['model'],_0x26fefe['editing']);})):(_0x1486a0['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x1486a0['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4598e4,{writer:_0x371363})=>{const _0x4dd4cc=_0x371363['createContainerElement']('span');return _0x371363['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4dd4cc),_0x4dd4cc;}}));}['_defineKeyboardHandlers'](){const {editor:_0x2279f3}=this,{editing:_0x59fdc9,t:t}=_0x2279f3,_0x50f05b=_0x2279f3['model']['document']['selection'];_0x2279f3['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x2279f3['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x59fdc9['view']['document'],'enter',(_0x4c8b5c,_0x4b64f2)=>{const _0x31bedd=function(_0x5e394a){const _0xf8d5d9=_0x5e394a['getSelectedElement']();if(_0xf8d5d9?.['is']('element','footnoteRef'))return _0xf8d5d9;return null;}(_0x50f05b);if(_0x31bedd){const _0x5b43da=_0x31bedd['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5b43da),_0x4b64f2['preventDefault'](),_0x4c8b5c['stop']();}},{'context':_0x4b8db9});}['_defineClickHandlers'](){const {editor:_0x1be5c6}=this,{editing:_0x137b62}=_0x1be5c6;_0x1be5c6['editing']['view']['addObserver'](_0xf7ba5e),_0x1be5c6['editing']['view']['addObserver'](_0x10cbab);let _0x513deb=!0x1;this['listenTo'](_0x137b62['view']['document'],'pointerdown',(_0x257096,_0x4e1cf9)=>{const {target:_0x297c83}=_0x4e1cf9,_0x2393e5=_0x137b62['view']['document']['selection'];_0x513deb=!!(_0x297c83?.['is']('element','a')&&_0x297c83['parent']?.['is']('element','sup')&&_0x297c83['parent']['hasClass']('footnote'))&&_0x2393e5['getSelectedElement']()===_0x297c83['parent'];},{'priority':'high'}),this['listenTo'](_0x137b62['view']['document'],'click',(_0x1bd978,_0x5df7bb)=>{const {target:_0x1c5f59}=_0x5df7bb;if(!_0x1c5f59?.['is']('element','a'))return;if(_0x1c5f59['parent']?.['is']('element','sup')&&_0x1c5f59['parent']['hasClass']('footnote')&&!_0x513deb)return void _0x5df7bb['preventDefault']();let _0x1c9f08=_0x1c5f59['getAttribute']('href');if(!_0x1c9f08?.['startsWith']('#'))return;_0x1c9f08=_0x1c9f08['slice'](0x1);let _0x5c75b5=!0x1;(_0x1c9f08['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1c9f08['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1c9f08))&&(_0x5c75b5=!0x0),_0x5c75b5&&(_0x5df7bb['preventDefault'](),_0x1bd978['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x49559c}={}){return(_0x5565b4,{writer:_0x38f5e0})=>{if(!g(_0x5565b4))return null;if(!_0x49559c)return _0x38f5e0['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0xbb3420=_0x38f5e0['createContainerElement']('p');return _0x38f5e0['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xbb3420),_0xbb3420;};}function g(_0x167eff){const {parent:_0x102053}=_0x167eff;if(!_0x102053?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x102053['childCount'])return!0x1;for(const _0x5ce84a of _0x167eff['getAttributeKeys']())if(!_0x5ce84a['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5ce84a)return!0x1;return!0x0;}function v(_0x1381ef,_0x395290){if(!_0x1381ef['is']('element','paragraph'))return!0x1;const _0x216084=_0x395290['toViewElement'](_0x1381ef);return!!_0x216084&&g(_0x1381ef)!==_0x216084['is']('element','span');}function Q(_0x27818d){return _0x4b8db9(_0x27818d)&&_0x27818d['is']('containerElement')&&!!_0x27818d['getCustomProperty']('footnotesDefinitions');}function D(_0x3cf47b,_0x68732d={}){const _0x1989bc=_0x3cf47b['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x48c272=_0x3cf47b['createContainerElement']('ol',{'class':'footnotes-list'},_0x3cf47b['createSlot']());return _0x3cf47b['createContainerElement']('div',{'class':'footnotes',..._0x68732d},[_0x1989bc,_0x48c272]);}function b(_0x2a7b3a,_0x3b37e1){const _0x269687=_0x2a7b3a['getAttribute']('footnoteId'),_0x4dc749=_0x2a7b3a['getAttribute']('footnoteCounter'),_0x5864d6=_0x3b37e1['createUIElement']('a',{'href':'#'+_0x269687},function(_0x1d693b){const _0x588155=this['toDomElement'](_0x1d693b);return _0x588155['textContent']=_0x4dc749,_0x588155;}),_0x3cb178=_0x3b37e1['createContainerElement']('sup',{'id':'ref-'+_0x269687,'class':'footnote'},[_0x5864d6]);return _0x3cb178['getFillerOffset']=()=>null,_0x3cb178;}function y(_0x314070,_0xf42d13,_0x2281aa,{dataPipeline:_0x5b476c}={}){const {t:t}=_0x2281aa,_0x131020=_0x314070['getAttribute']('footnoteId'),_0x2f1632=_0xf42d13['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x131020},function(_0x14b52c){const _0x52d532=this['toDomElement'](_0x14b52c);return _0x52d532['innerText']='^',_0x52d532;}),_0x39f6cf=_0x5b476c?_0xf42d13['createContainerElement']('div',{'class':'footnote-content'}):_0xbeec38(_0xf42d13['createEditableElement']('div',{'class':'footnote-content'}),_0xf42d13,{'label':t('Footnote\x20content.')});return _0xf42d13['insert'](_0xf42d13['createPositionAt'](_0x39f6cf,0x0),_0xf42d13['createSlot']()),_0xf42d13['createContainerElement']('li',{'class':'footnote-definition','id':_0x131020},[_0x2f1632,_0x39f6cf]);}class e extends _0x376500{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x46fbd3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x3c9211}=this,{plugins:_0x308c4e,model:_0x37545b}=_0x3c9211,_0x50e6a9=_0x308c4e['get'](_0x46fbd3),_0x67cda5=_0x308c4e['get'](f);this['listenTo'](_0x50e6a9,'outputTransformation',(_0x2ad99a,_0x7f69ab)=>{const _0x5670bb=l(_0x37545b['createRangeIn'](_0x7f69ab['content']));if(!_0x5670bb['length'])return;const _0x4d5ae5=_0x67cda5['getFootnotes'](),_0xb298a5=_0x5670bb['reduce']((_0x3f45c9,_0x449fcb)=>{const _0x47b629=_0x4d5ae5['find'](_0x3e1722=>_0x3e1722['id']===_0x449fcb);if(_0x47b629){const _0x3ed7cb=_0x3c9211['data']['toView'](_0x47b629['definition'],{'isClipboardPipeline':!0x0}),_0x4d4891=_0x3c9211['data']['htmlProcessor']['toData'](_0x3ed7cb);_0x3f45c9[_0x47b629['id']]=_0x4d4891;}return _0x3f45c9;},Object['create'](null));_0x7f69ab['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0xb298a5));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x2fc3e8}=this,{model:_0x3c6a66,plugins:_0xef3553}=_0x2fc3e8,{view:_0x5dca46}=_0x2fc3e8['editing'],_0x292e01=_0xef3553['get'](_0x46fbd3),_0x273bfb=_0xef3553['get'](f),_0x1cbc0e=_0x2fc3e8['config']['get']('footnotes.multiBlock');let _0x17bf58=null;this['listenTo'](_0x5dca46['document'],'clipboardInput',(_0x352823,_0x44e727)=>{const _0x3d2178=_0x44e727['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x17bf58=_0x3d2178?JSON['parse'](_0x3d2178):null;}),this['listenTo'](_0x292e01,'contentInsertion',(_0x4520a0,_0x2c1cba)=>{const _0x1ebbb4=_0x2c1cba['sourceEditorId']===this['editor']['id'];_0x1ebbb4&&'drop'===_0x2c1cba['method']||_0x3c6a66['change'](_0x1b0247=>{let _0x47d9fe=_0x273bfb['getFootnotesDefinitionsObjectElement']();const _0x4accc8=!!_0x47d9fe&&Array['from'](_0x3c6a66['document']['selection']['getSelectedBlocks']())['includes'](_0x47d9fe);if(!_0x17bf58&&function(_0x2002aa){for(const {item:_0x400405}of _0x2002aa)if(_0x400405['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x3c6a66['createRangeIn'](_0x2c1cba['content']))&&(_0x17bf58=function(_0x267bfa,_0x53667f){const _0x36ca04=c(_0x267bfa,_0x53667f);if(!_0x36ca04)return null;const _0x2666c1=Object['create'](null);for(const _0x4ce0b6 of _0x36ca04['getChildren']())_0x4ce0b6['is']('element','footnoteDefinition')&&_0x4ce0b6['hasAttribute']('footnoteId')&&(_0x2666c1[_0x4ce0b6['getAttribute']('footnoteId')]=_0x267bfa['cloneElement'](_0x4ce0b6,!0x0));return Object['keys'](_0x2666c1)['length']?_0x2666c1:null;}(_0x1b0247,_0x2c1cba['content'])),(_0x47d9fe&&!_0x4accc8||!_0x47d9fe&&!_0x17bf58)&&function(_0x2b09bb,_0x49e145){const _0x3fb929=[];for(const {item:_0x2e253b}of _0x2b09bb['createRangeIn'](_0x49e145))_0x2e253b['is']('element','footnotesDefinitions')&&_0x3fb929['push'](_0x2e253b);for(const _0x18731c of _0x3fb929)_0x2b09bb['remove'](_0x18731c);}(_0x1b0247,_0x2c1cba['content']),!_0x17bf58)return;const {selection:_0x4e9f5e}=_0x3c6a66['document'],_0x5ec3b7=_0x4e9f5e['getFirstRange']()['root'];_0x47d9fe&&!_0x4accc8||(_0x47d9fe=c(_0x1b0247,_0x2c1cba['content']),_0x47d9fe||=_0x273bfb['_insertEmptyFootnotesDefinitionsContainer'](_0x1b0247,_0x5ec3b7));const _0x48e22b=Array['from'](_0x4e9f5e['getRanges']())['flatMap'](l),_0x1fd3f8=function(_0x1b46b1,_0x5b2dc5,_0x384076){const _0x4c271f=Object['create'](null);for(const {item:_0x2ee827}of _0x1b46b1['createRangeIn'](_0x5b2dc5))if(_0x2ee827['is']('element','footnoteRef')){const _0x267daa=_0x2ee827['getAttribute']('footnoteId');if(!_0x384076(_0x267daa))continue;_0x4c271f[_0x267daa]||(_0x4c271f[_0x267daa]=_0x9f4a91()),_0x1b46b1['setAttribute']('footnoteId',_0x4c271f[_0x267daa],_0x2ee827);}return _0x4c271f;}(_0x1b0247,_0x2c1cba['content'],_0x47819e=>{if(!_0x1ebbb4)return!0x0;return!!_0x273bfb['getFootnote'](_0x47819e)&&!_0x48e22b['includes'](_0x47819e);});for(const [_0x4030a4,_0x5f4f89]of Object['entries'](_0x17bf58)){const _0x1ef836=_0x1fd3f8[_0x4030a4]||_0x4030a4;let _0xd5d030;if('string'!=typeof _0x5f4f89)_0xd5d030=_0x5f4f89,_0x1ef836!==_0x4030a4&&_0x1b0247['setAttribute']('footnoteId',_0x1ef836,_0xd5d030);else{_0xd5d030=_0x1b0247['createElement']('footnoteDefinition',{'footnoteId':_0x1ef836});const _0x5b0d9f=_0x2fc3e8['data']['htmlProcessor']['toView'](_0x5f4f89);let _0xdae012;if(_0x1cbc0e)_0xdae012=_0x2fc3e8['data']['toModel'](_0x5b0d9f,_0xd5d030);else{_0xdae012=_0x1b0247['createElement']('footnoteInlineContent');const _0x193d82=_0x2fc3e8['data']['toModel'](_0x5b0d9f,_0xdae012);_0x1b0247['insert'](_0x193d82,_0xdae012);}_0x1b0247['append'](_0xdae012,_0xd5d030);}_0x1b0247['insert'](_0xd5d030,_0x47d9fe,'end');}_0x17bf58=null;});});}}function c(_0x3ed901,_0x48320a){for(const {item:_0x4a47a1}of _0x3ed901['createRangeIn'](_0x48320a))if(_0x4a47a1['is']('element','footnotesDefinitions'))return _0x4a47a1;return null;}function l(_0x42b52e){const _0x56658d=new Set();for(const {item:_0x23d81e}of _0x42b52e)_0x23d81e['is']('element','footnoteRef')&&_0x56658d['add'](_0x23d81e['getAttribute']('footnoteId'));return Array['from'](_0x56658d);}class i extends _0x376500{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1cc321}=this,{componentFactory:_0x2279b4}=_0x1cc321['ui'];_0x2279b4['add']('insertFootnote',E(_0x1cc321,_0x36aaaf)),_0x2279b4['add']('menuBar:insertFootnote',E(_0x1cc321,_0x7e998c)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1791a9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3f3008;for(const _0x14981f in _0x1791a9){const _0x473507=_0x14981f,_0x18c297=_0x1791a9[_0x473507];if('footnotesLicenseKeyValid'==_0x18c297||'footnotesLicenseKeyInvalid'==_0x18c297||'footnotesLicenseKeyExpired'==_0x18c297||'footnotesLicenseKeyDomainLimit'==_0x18c297||'footnotesLicenseKeyNotAllowed'==_0x18c297||'footnotesLicenseKeyEvaluationLimit'==_0x18c297||'footnotesLicenseKeyTrialLimit'==_0x18c297||'footnotesLicenseKeyUsageLimit'==_0x18c297){delete _0x1791a9[_0x473507],_0x3f3008=_0x18c297,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x3f3008&&_0x1791a9['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x3f3008&&_0x1791a9['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x3f3008&&_0x1791a9['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x3f3008&&_0x1791a9['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x3f3008&&_0x1791a9['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x3f3008&&_0x1791a9['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x3f3008&&_0x1791a9['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x541587,_0x354d1e){const _0x47daca=_0x541587['commands']['get']('insertFootnote');return _0x181f7e=>{const {t:t}=_0x181f7e,_0x452459=new _0x354d1e(_0x181f7e),_0x6e8e6=_0x452459 instanceof _0x7e998c;return _0x452459['bind']('isEnabled')['to'](_0x47daca,'isEnabled'),_0x452459['set']({'label':t(_0x6e8e6?'Footnote':'Insert\x20footnote'),'icon':_0x392258,'tooltip':!0x0}),_0x452459['on']('execute',()=>{_0x47daca['execute'](),_0x541587['editing']['view']['focus']();}),_0x452459;};}class lt extends _0x376500{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 _0x56fe55{['refresh'](){const {editor:_0x49e8af}=this,_0x252349=_0x49e8af['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x252349,this['value']=_0x252349?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x141227}){const {editor:_0x150661}=this,_0x3b75ea=_0x150661['plugins']['get'](f),_0x5ece6d=_0x3b75ea['getFootnotesDefinitionsObjectElement']();_0x5ece6d&&W['includes'](_0x141227)&&_0x150661['model']['change'](_0x3527cb=>{_0x3527cb['setAttribute']('footnotesListStyle',_0x141227,_0x5ece6d),_0x3b75ea['_updateFootnotesCounters'](_0x3527cb);});}}class C extends _0x56fe55{['refresh'](){const {editor:_0x2adef7}=this,_0x2e14e1=_0x2adef7['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x2e14e1,this['value']=_0x2e14e1?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x2ba045}){const {editor:_0xff24f2}=this,_0x177897=_0xff24f2['plugins']['get'](f),_0x3d1f91=_0x177897['getFootnotesDefinitionsObjectElement']();_0x3d1f91&&Number['isInteger'](_0x2ba045)&&_0xff24f2['model']['change'](_0x427206=>{_0x427206['setAttribute']('footnotesListStart',_0x2ba045,_0x3d1f91),_0x177897['_updateFootnotesCounters'](_0x427206);});}}class P extends _0x376500{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5327a2}=this;_0x5327a2['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x5327a2['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x5327a2['commands']['add']('footnotesStyle',new S(_0x5327a2)),_0x5327a2['commands']['add']('footnotesStart',new C(_0x5327a2)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x460597}=this,{schema:_0x20f1b2}=_0x460597['model'];_0x20f1b2['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x3c0a75}=this,{conversion:_0x1b3288,model:_0x3a8073}=_0x3c0a75,{schema:_0x9cf519}=_0x3a8073;_0x1b3288['for']('upcast')['add'](_0x26e4f3=>{_0x26e4f3['on']('element:ol',(_0x56e20e,_0x120f5b,_0xe4410b)=>{const _0x59fef8=_0x120f5b['viewItem'],_0x4cdb08=_0x120f5b['modelCursor']?.['parent'];_0x59fef8['hasClass']('footnotes-list')&&_0x4cdb08?.['is']('element','footnotesDefinitions')&&(function(_0x261511,_0x2ea9f3,_0x4c719a,_0x21ba3b){if(!_0x21ba3b['checkAttribute'](_0x2ea9f3,'footnotesListStart'))return;let _0x4aa8d7=0x1;const _0x4835d1=_0x4c719a['consumable']['consume'](_0x261511,{'attributes':'start'});if(_0x4835d1){const _0x2a59cf=Number['parseInt'](_0x261511['getAttribute']('start'),0xa);Number['isNaN'](_0x2a59cf)||(_0x4aa8d7=_0x2a59cf);}!_0x4835d1&&_0x2ea9f3['hasAttribute']('footnotesListStart')||_0x4c719a['writer']['setAttribute']('footnotesListStart',_0x4aa8d7,_0x2ea9f3);}(_0x59fef8,_0x4cdb08,_0xe4410b,_0x9cf519),function(_0x574198,_0x5f2dbc,_0x378609,_0x42da25){if(!_0x42da25['checkAttribute'](_0x5f2dbc,'footnotesListStyle'))return;let _0x8d6f47='decimal',_0xa282d9=!0x1;if(_0x378609['consumable']['consume'](_0x574198,{'attributes':'type'})){const _0x105da4={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x574198['getAttribute']('type')];_0x105da4&&(_0x8d6f47=_0x105da4),_0xa282d9=!0x0;}_0x378609['consumable']['consume'](_0x574198,{'styles':'list-style-type'})&&(_0x8d6f47=function(_0x5d70fd){switch(_0x5d70fd){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x5d70fd;}}(_0x574198['getStyle']('list-style-type')),_0xa282d9=!0x0),!_0xa282d9&&_0x5f2dbc['hasAttribute']('footnotesListStyle')||_0x378609['writer']['setAttribute']('footnotesListStyle',_0x8d6f47,_0x5f2dbc);}(_0x59fef8,_0x4cdb08,_0xe4410b,_0x9cf519));});}),_0x1b3288['for']('downcast')['add'](_0x43fbc4=>{_0x43fbc4['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x546b34,_0x240600,_0x236e25)=>{if(!_0x236e25['consumable']['consume'](_0x240600['item'],_0x546b34['name']))return;const _0x22843a=M(_0x240600['item'],_0x236e25['mapper']),{attributeNewValue:_0x4d8317}=_0x240600;null==_0x4d8317||0x1===_0x4d8317?_0x236e25['writer']['removeAttribute']('start',_0x22843a):_0x236e25['writer']['setAttribute']('start',String(_0x4d8317),_0x22843a);}),_0x43fbc4['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x2fe92c,_0x53d693,_0x594832)=>{if(!_0x594832['consumable']['consume'](_0x53d693['item'],_0x2fe92c['name']))return;const _0x18c824=M(_0x53d693['item'],_0x594832['mapper']),{attributeNewValue:_0x4a7a83}=_0x53d693;_0x4a7a83&&'decimal'!==_0x4a7a83?_0x594832['writer']['setStyle']('list-style-type',_0x4a7a83,_0x18c824):_0x594832['writer']['removeStyle']('list-style-type',_0x18c824);});});}['_definePostfixer'](){const {editor:_0x1c668d}=this,{model:_0x2fb605}=_0x1c668d,_0x132b9f=_0x1c668d['plugins']['get'](f),_0x3df8c5=this['_getDefaultListStyle'](),_0x325399=this['_getDefaultStartIndex']();_0x2fb605['document']['registerPostFixer'](_0x4e915d=>{const _0x2e67ff=_0x2fb605['document']['differ']['getChanges']();let _0x3ba380=!0x1;for(const _0x4a4f2e of _0x2e67ff){if('insert'!==_0x4a4f2e['type']||'$text'===_0x4a4f2e['name'])continue;const _0x55c89a=_0x2fb605['createRangeOn'](_0x4a4f2e['position']['nodeAfter']);for(const _0x5818e8 of _0x55c89a['getItems']())_0x5818e8['is']('element','footnotesDefinitions')&&(!_0x5818e8['hasAttribute']('footnotesListStart')&&_0x2fb605['schema']['checkAttribute'](_0x5818e8,'footnotesListStart')&&(_0x4e915d['setAttribute']('footnotesListStart',_0x325399,_0x5818e8),_0x3ba380=!0x0),!_0x5818e8['hasAttribute']('footnotesListStyle')&&_0x2fb605['schema']['checkAttribute'](_0x5818e8,'footnotesListStyle')&&(_0x4e915d['setAttribute']('footnotesListStyle',_0x3df8c5,_0x5818e8),_0x3ba380=!0x0));}return _0x3ba380&&_0x132b9f['_updateFootnotesCounters'](_0x4e915d),_0x3ba380;});}['_defineFormatter'](){const {editor:_0x3cec79}=this;_0x3cec79['plugins']['get'](f)['setFootnoteFormatter'](_0x39c5dd=>this['_formatFootnoteListValue'](_0x39c5dd));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x1167de,value:_0x466d7a,digits:_0x25d3a4}){const _0x488ced=_0x1167de['getAttribute']('footnotesListStyle'),_0x5ee034=_0x1167de['getAttribute']('footnotesListStart'),_0xb4eee1=Math['floor'](_0x466d7a)+(_0x5ee034??0x1)-0x1;switch(_0x488ced){case'decimal-leading-zero':return function(_0x28a4bd,_0x4b32cc){return String(_0x28a4bd)['padStart'](_0x4b32cc,'0');}(_0xb4eee1,Math['max'](0x2,_0x25d3a4));case'lower-alpha':case'lower-latin':return N(_0xb4eee1,!0x1);case'upper-alpha':case'upper-latin':return N(_0xb4eee1,!0x0);case'lower-roman':return X(_0xb4eee1,!0x1);case'upper-roman':return X(_0xb4eee1,!0x0);default:return String(_0xb4eee1);}}}function M(_0x1f9a51,_0x1b3c48){const _0x1f9051=_0x1b3c48['toViewElement'](_0x1f9a51);return Array['from'](_0x1f9051['getChildren']())['find'](_0x4b0f26=>_0x4b0f26['is']('element','ol')&&_0x4b0f26['hasClass']('footnotes-list'));}function N(_0x25089f,_0x12f60a){let _0x438de2='',_0x47cc04=_0x25089f;for(;_0x47cc04>0x0;){const _0x1053ec=(_0x47cc04-0x1)%0x1a;_0x438de2=String['fromCharCode'](0x61+_0x1053ec)+_0x438de2,_0x47cc04=Math['floor']((_0x47cc04-0x1)/0x1a);}return _0x12f60a?_0x438de2['toUpperCase']():_0x438de2;}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(_0x507d75,_0x5f0268){let _0x1a415e='',_0x50559f=_0x507d75;for(const {value:_0x582e51,numeral:_0x4053df}of V)for(;_0x50559f>=_0x582e51;)_0x1a415e+=_0x4053df,_0x50559f-=_0x582e51;return _0x5f0268?_0x1a415e:_0x1a415e['toLowerCase']();}class J extends _0x1f73e8{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x40d1b5();['focusCycler'];constructor(_0x46c561,{styleButtonViews:_0x43035f,styleGridAriaLabel:_0x176770}){super(_0x46c561),(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'](_0x43035f,_0x176770),[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 _0x22bdcc of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x22bdcc['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 _0x58cebc=_0x1410b7=>_0x1410b7['stopPropagation']();this['keystrokes']['set']('arrowright',_0x58cebc),this['keystrokes']['set']('arrowleft',_0x58cebc),this['keystrokes']['set']('arrowup',_0x58cebc),this['keystrokes']['set']('arrowdown',_0x58cebc);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x2f30e1,_0x5e3b93){const _0x35d6d0=new _0x1f73e8(this['locale']);return _0x35d6d0['children']=_0x35d6d0['createCollection'](),_0x35d6d0['children']['addMany'](_0x2f30e1),_0x35d6d0['setTemplate']({'tag':'div','attributes':{'aria-label':_0x5e3b93,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x35d6d0['children']}),_0x35d6d0['children']['delegate']('execute')['to'](this),_0x35d6d0['focus']=function(){for(const _0x3652a8 of this['children'])if(_0x3652a8 instanceof _0x36aaaf&&_0x3652a8['isOn'])return void _0x3652a8['focus']();this['children']['first']['focus']();},_0x35d6d0['focusTracker']=new rt(),_0x35d6d0['keystrokes']=new nt(),_0x35d6d0['render'](),_0x35d6d0['keystrokes']['listenTo'](_0x35d6d0['element']),this['children']['add'](_0x35d6d0),_0x35d6d0;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x77cf42=this['_createStartIndexPropertyView'](),_0x36b187=[_0x77cf42],_0x32d2bf=new it(this['locale'],_0x36b187);return _0x32d2bf['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x32d2bf['buttonView']['bind']('isEnabled')['toMany'](_0x36b187,'isEnabled',(..._0x1fa318)=>_0x1fa318['some'](_0x4a2211=>_0x4a2211)),_0x32d2bf['buttonView']['on']('change:isEnabled',(_0x1d16d2,_0x4f893e,_0x40a72f)=>{_0x40a72f||(_0x32d2bf['isCollapsed']=!0x0);}),this['children']['add'](_0x32d2bf),[_0x77cf42,_0x32d2bf];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x463dfd=new et(this['locale'],ot);return _0x463dfd['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x463dfd['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x463dfd['fieldView']['on']('input',()=>{const _0x4677fe=_0x463dfd['fieldView']['element'],_0x50e7ad=_0x4677fe['valueAsNumber'];Number['isNaN'](_0x50e7ad)?_0x463dfd['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x4677fe['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x50e7ad}):_0x463dfd['errorText']=t(_0x50e7ad<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x463dfd;}}class j extends _0x376500{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x1e12bb,_0x1158fc];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x50991d}=this,{componentFactory:_0xc6cd94}=_0x50991d['ui'];_0x50991d['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0xc6cd94['add']('footnotesStyle',function(_0x2e040a){return _0x4c8f30=>{const {t:t}=_0x4c8f30,_0x5316b8=_0x2e040a['commands']['get']('footnotesStyle'),_0x2d5b31=_0x361a6e(_0x4c8f30),{buttonView:_0x24c189}=_0x2d5b31;return _0x2d5b31['class']='ck-footnotes-styles-dropdown',_0x2d5b31['bind']('isEnabled')['to'](_0x5316b8,'isEnabled'),_0x24c189['set']({'label':t('Footnotes\x20style'),'icon':_0x392258,'tooltip':!0x0}),_0x2d5b31['once']('change:isOpen',()=>{const _0x3f2cd8=function({editor:_0x20c7e7,dropdownView:_0x570343}){const {t:t}=_0x20c7e7['locale'],_0x59a8cb=t('Footnotes\x20definitions\x20styles'),_0x377904=function(_0x47040c){const t=_0x47040c['locale']['t'],_0x13fcd9=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x4f3f9d},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x4c6215},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x31142a},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x529a8e},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x12da9f},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x2d09be}];return _0x13fcd9['map'](function(_0x2568ce){const _0x43d543=_0x2568ce['locale'];return({label:_0x75015b,icon:_0x533e2c,tooltip:_0x384dbf,style:_0x464842})=>{const _0x113f5e=_0x2568ce['commands']['get']('footnotesStyle'),_0x4ac7b2=new _0x36aaaf(_0x43d543);return _0x4ac7b2['set']({'label':_0x75015b,'icon':_0x533e2c,'tooltip':_0x384dbf}),_0x4ac7b2['bind']('isOn')['to'](_0x113f5e,'value',_0x8056e4=>_0x8056e4===_0x464842),_0x4ac7b2['bind']('isEnabled')['to'](_0x113f5e,'isEnabled'),_0x4ac7b2['on']('execute',()=>{_0x2568ce['execute']('footnotesStyle',{'value':_0x464842}),_0x2568ce['editing']['view']['focus']();}),_0x4ac7b2;};}(_0x47040c));}(_0x20c7e7),_0x5405e5=new J(_0x20c7e7['locale'],{'styleGridAriaLabel':_0x59a8cb,'styleButtonViews':_0x377904}),_0x54cdb9=_0x20c7e7['commands']['get']('footnotesStart');return _0x5405e5['startIndexFieldView']['bind']('isEnabled')['to'](_0x54cdb9),_0x5405e5['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x54cdb9),_0x5405e5['on']('footnotesListStart',(_0x11e370,_0xb9eda3)=>{_0x20c7e7['execute']('footnotesStart',{'value':_0xb9eda3['startIndex']});}),_0x5405e5['delegate']('execute')['to'](_0x570343),_0x5405e5;}({'editor':_0x2e040a,'dropdownView':_0x2d5b31});_0x2d5b31['panelView']['children']['add'](_0x3f2cd8);}),_0x2d5b31;};}(_0x50991d));}['afterInit'](){const {editor:_0x34850e}=this,{t:t}=_0x34850e['locale'],_0x3e66aa=_0x34850e['plugins']['get'](_0x1158fc),{defaultPositions:_0x76e005}=_0x3a46d5;_0x3e66aa['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x34850e['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x23083a=>{let _0x71cffd=_0x23083a['getFirstPosition']()?.['parent'];return _0x71cffd?.['is']('$text')&&(_0x71cffd=_0x71cffd['parent']),_0x71cffd?.['is']('element')?_0x71cffd['findAncestor'](Q):null;},'positions':[_0x76e005['southArrowNorth'],_0x76e005['southArrowNorthMiddleWest'],_0x76e005['southArrowNorthMiddleEast'],_0x76e005['southArrowNorthWest'],_0x76e005['southArrowNorthEast'],_0x76e005['northArrowSouth'],_0x76e005['northArrowSouthMiddleWest'],_0x76e005['northArrowSouthMiddleEast'],_0x76e005['northArrowSouthWest'],_0x76e005['northArrowSouthEast'],_0x76e005['viewportStickyNorth']]});}}class ft extends _0x376500{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 _0x33f338,Command as _0x206b50}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x2d619d,isWidget as _0x46519d,toWidgetEditable as _0x1eb08a,WidgetToolbarRepository as _0x298294}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x8553f0,logWarning as _0x17c0b4,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x4678e1,ClickObserver as _0x153404}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x5bf402}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0xa176a3,ButtonView as _0x205b9d,View as _0x3cfec0,ViewCollection as _0x1490d9,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x5cd06c,BalloonPanelView as _0x4a808e,createDropdown as _0x945a55}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x317f87,IconListStyleDecimal as _0x71874c,IconListStyleDecimalLeadingZero as _0x17fdd6,IconListStyleLowerRoman as _0x19d412,IconListStyleUpperRoman as _0x3d9b37,IconListStyleLowerLatin as _0x108238,IconListStyleUpperLatin as _0x466849}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x477f23,_0x38c6a3){this['_model']=_0x477f23,this['_elementName']=_0x38c6a3['elementName'],this['_getElementKey']=_0x38c6a3['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x233800){const _0x1742a5=new Set(),_0x4459cf=new Map();for(const _0x1b3d3f of _0x233800){if('insert'===_0x1b3d3f['type']&&'$text'!==_0x1b3d3f['name']&&_0x1b3d3f['position']['nodeAfter']){const _0x27a5ea=this['_model']['createRangeOn'](_0x1b3d3f['position']['nodeAfter']);for(const _0x182c52 of _0x27a5ea['getItems']()){if(!_0x182c52['is']('element',this['_elementName']))continue;const _0x2e96f9=this['_getElementKey'](_0x182c52);_0x4459cf['has'](_0x2e96f9)||_0x4459cf['set'](_0x2e96f9,[]),_0x4459cf['get'](_0x2e96f9)['push'](_0x182c52);}}if('remove'===_0x1b3d3f['type']&&_0x1b3d3f['name']===this['_elementName']){const _0x2aecbe=this['_getElementKey']({'getAttribute':_0x4b8da4=>_0x1b3d3f['attributes']['get'](_0x4b8da4)});_0x1742a5['add'](_0x2aecbe);}}for(const [_0x162033,_0x3d11b9]of this['_trackedElements'])'$graveyard'===_0x3d11b9['root']['rootName']&&_0x1742a5['add'](_0x162033);for(const _0x19adb4 of _0x1742a5)this['_trackedElements']['delete'](_0x19adb4);for(const [_0x19bc40,_0x29680a]of _0x4459cf)this['_trackedElements']['set'](_0x19bc40,_0x29680a[_0x29680a['length']-0x1]);const _0x37c20a=new Set();for(const [_0x63608e,_0x31ff7f]of _0x4459cf)_0x1742a5['has'](_0x63608e)&&(_0x37c20a['add'](_0x31ff7f[0x0]),_0x31ff7f['length']>0x1?_0x4459cf['set'](_0x63608e,_0x31ff7f['slice'](0x1)):_0x4459cf['delete'](_0x63608e),_0x1742a5['delete'](_0x63608e));return{'removed':Array['from'](_0x1742a5),'inserted':Array['from'](_0x4459cf['values']())['flat'](),'moved':Array['from'](_0x37c20a)};}}class f extends _0x33f338{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4cca5b){super(_0x4cca5b),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x421f21=>_0x421f21['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x3eacc8=>_0x3eacc8['getAttribute']('footnoteId')});}['init'](){const {editor:_0x3ca335}=this,{model:_0x290ecd,data:_0x105f42}=_0x3ca335;_0x290ecd['document']['registerPostFixer'](_0x1234f2=>{const _0x3b475c=_0x290ecd['document']['differ']['getChanges']();let _0x47ea57=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x1234f2,_0x3b475c)&&(_0x47ea57=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x1234f2,_0x3b475c)&&(_0x47ea57=!0x0),this['_handleFootnoteReferencesChanges'](_0x1234f2,_0x3b475c)&&(_0x47ea57=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x1234f2)&&(_0x47ea57=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x1234f2)&&(_0x47ea57=!0x0),this['_sortFootnoteDefinitions'](_0x1234f2)&&(_0x47ea57=!0x0),_0x47ea57;}),this['listenTo'](_0x290ecd['document'],'change:data',()=>{_0x290ecd['enqueueChange']({'isUndoable':!0x1},_0x66713=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x66713);});},{'priority':'low'}),this['listenTo'](_0x105f42,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x1c4e25){return this['_footnotes']['find'](_0x564c14=>_0x564c14['id']===_0x1c4e25)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x1436cc){this['_footnoteFormatter']=_0x1436cc;}['_updateFootnotesCounters'](_0x5534ef,_0x393f18=0x0){let _0x9ee630=!0x1;for(let _0x17bd4b=_0x393f18;_0x17bd4b<this['_footnotes']['length'];_0x17bd4b++)this['_updateFootnoteRefCounter'](_0x5534ef,_0x17bd4b)&&(_0x9ee630=!0x0);return _0x9ee630;}['_insertEmptyFootnotesDefinitionsContainer'](_0x334866,_0x41caf4){const _0x2d9597=_0x334866['createElement']('footnotesDefinitions',{});return _0x334866['append'](_0x2d9597,_0x41caf4),this['_footnotesDefinitions']=_0x2d9597,_0x2d9597;}['_ensureFootnotesDefinitionsContainerExists'](_0x3c4baf){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x28302f=this['_footnotes'][0x0]['reference']['root'],_0x221209=this['_insertEmptyFootnotesDefinitionsContainer'](_0x3c4baf,_0x28302f);for(const _0x33d802 of this['_footnotes'])_0x33d802['definition']['parent']||_0x3c4baf['insert'](_0x33d802['definition'],_0x221209,'end');this['_updateFootnotesCounters'](_0x3c4baf);}['_handleFootnotesDefinitionsObjectChanges'](_0x1293ba,_0x16e2c7){let _0x2268e0=!0x1;const {inserted:_0x5031b4,removed:_0x44d3b9,moved:_0x49f882}=this['_footnoteDefsContainerTracker']['getChanges'](_0x16e2c7);if(_0x49f882['length']&&(this['_footnotesDefinitions']=_0x49f882[0x0]),_0x5031b4['length']){if(_0x5031b4['length']>0x1||this['_footnotesDefinitions']&&_0x5031b4['some'](_0x2b4054=>_0x2b4054!==this['_footnotesDefinitions'])){const _0x12c7e6=_0x1293ba['createElement']('footnotesDefinitions',{}),_0x48b95d=[];this['_footnotesDefinitions']&&_0x48b95d['push'](this['_footnotesDefinitions']),_0x48b95d['push'](..._0x5031b4),_0x1293ba['insert'](_0x12c7e6,_0x48b95d[0x0],'before');for(const _0x219fdf of _0x48b95d)_0x1293ba['move'](_0x1293ba['createRangeIn'](_0x219fdf),_0x1293ba['createPositionAt'](_0x12c7e6,'end')),_0x1293ba['remove'](_0x219fdf);this['_footnotesDefinitions']=_0x12c7e6,this['_updateFootnotesCounters'](_0x1293ba),_0x2268e0=!0x0;}else this['_footnotesDefinitions']=_0x5031b4[0x0];}if(_0x44d3b9['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x4ba839 of this['_footnotes'])_0x1293ba['remove'](_0x4ba839['reference']),_0x2268e0=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x2268e0;}['_handleFootnoteDefinitionsChanges'](_0x306788,_0x904522){let _0x2a6dc8=!0x1;const _0x307e47=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x428d54,moved:_0x48fc70}=this['_footnoteDefsTracker']['getChanges'](_0x904522);for(const _0x24a718 of[..._0x48fc70,..._0x428d54]){const _0x1489d9=_0x24a718['getAttribute']('footnoteId'),_0x37d5d6=this['getFootnote'](_0x1489d9);_0x37d5d6&&(_0x37d5d6['definition']=_0x24a718),_(_0x306788,_0x307e47,_0x24a718)&&(_0x2a6dc8=!0x0);}return _0x2a6dc8;}['_handleFootnoteReferencesChanges'](_0xef1f95,_0xc2f0ec){let _0x25c64f=!0x1;const {removed:_0x45219b,inserted:_0x44062b,moved:_0x1951ed}=this['_footnoteRefsTracker']['getChanges'](_0xc2f0ec);for(const _0x27deb0 of _0x45219b)this['_handleRemoveFootnoteReferenceById'](_0xef1f95,_0x27deb0)&&(_0x25c64f=!0x0);for(const _0x5d1f14 of _0x44062b)this['_handleInsertedFootnoteReference'](_0xef1f95,_0x5d1f14)&&(_0x25c64f=!0x0);for(const _0x4b4a45 of _0x1951ed)this['_handleMovedFootnoteReference'](_0xef1f95,_0x4b4a45)&&(_0x25c64f=!0x0);return _0x25c64f;}['_handleFootnotesDefinitionsObjectSync'](_0x3f682b){if(!this['_footnotesDefinitions'])return!0x1;let _0x578fd6=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x485ad3=[];for(const _0x4c6023 of this['_footnotesDefinitions']['getChildren']()){const _0x56df70=_0x4c6023['getAttribute']('footnoteId');this['getFootnote'](_0x56df70)||(_0x485ad3['unshift'](_0x4c6023),_0x578fd6=!0x0);}for(const _0x32d07d of _0x485ad3)_0x3f682b['remove'](_0x32d07d);}const _0x3f4675=new Set(),_0x13d35d=[];for(const _0x1a0a54 of this['_footnotesDefinitions']['getChildren']()){const _0x273843=_0x1a0a54['getAttribute']('footnoteId');_0x3f4675['has'](_0x273843)?(_0x13d35d['unshift'](_0x1a0a54),_0x578fd6=!0x0):_0x3f4675['add'](_0x273843);}for(const _0x404695 of _0x13d35d)_0x3f682b['remove'](_0x404695);return this['_footnotesDefinitions']['childCount']||(_0x3f682b['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x578fd6=!0x0),_0x578fd6;}['_handleInsertedFootnoteReference'](_0x352b2b,_0x59ae81){if(this['_footnotes']['find'](_0x52e7e8=>_0x52e7e8['reference']===_0x59ae81))return!0x1;let _0x50bc3d=!0x1;const _0x3c0757=_0x59ae81['getAttribute']('footnoteId'),_0x177704=this['_footnotes']['findIndex'](_0x5509b5=>_0x5509b5['id']===_0x3c0757);-0x1!==_0x177704&&(_0x352b2b['remove'](this['_footnotes'][_0x177704]['reference']),this['_footnotes']['splice'](_0x177704,0x1),_0x50bc3d=!0x0);let _0x2c279e=this['_footnotesDefinitions']?function(_0x495a6b,_0x487f33){for(const _0x3049f3 of _0x495a6b['getChildren']())if(_0x3049f3['getAttribute']('footnoteId')===_0x487f33)return _0x3049f3;return null;}(this['_footnotesDefinitions'],_0x3c0757):null;_0x2c279e||(_0x2c279e=_0x352b2b['createElement']('footnoteDefinition',{'footnoteId':_0x3c0757}),this['_footnotesDefinitions']&&(_0x352b2b['insert'](_0x2c279e,this['_footnotesDefinitions'],'end'),_0x50bc3d=!0x0));const _0x5a245b={'id':_0x3c0757,'reference':_0x59ae81,'definition':_0x2c279e},_0x7daec8=I(this['editor']['model'],this['_footnotes'],_0x59ae81);this['_footnotes']['splice'](_0x7daec8,0x0,_0x5a245b);let _0x12556f=_0x7daec8;return-0x1!==_0x177704&&(_0x12556f=Math['min'](_0x7daec8,_0x177704)),this['_updateFootnotesCounters'](_0x352b2b,_0x12556f)&&(_0x50bc3d=!0x0),_0x50bc3d;}['_handleRemoveFootnoteReferenceById'](_0x5080e5,_0x45cc32){const _0x272201=this['_footnotes']['findIndex'](_0x2e3eb1=>_0x2e3eb1['id']===_0x45cc32);if(-0x1===_0x272201)return!0x1;let _0x1e76d8=!0x1;const _0x58f84c=this['_footnotes'][_0x272201];return'$graveyard'!==_0x58f84c['definition']['root']['rootName']&&(_0x5080e5['remove'](_0x58f84c['definition']),_0x1e76d8=!0x0),this['_footnotes']['splice'](_0x272201,0x1),this['_updateFootnotesCounters'](_0x5080e5,_0x272201)&&(_0x1e76d8=!0x0),_0x1e76d8;}['_handleMovedFootnoteReference'](_0x375c98,_0x19948f){const _0x5e8b33=_0x19948f['getAttribute']('footnoteId'),_0x41985f=this['_footnotes']['findIndex'](_0x2f5669=>_0x2f5669['id']===_0x5e8b33),_0x39b323=this['_footnotes'][_0x41985f];let _0xa53d7a=!0x1;_0x39b323['reference']=_0x19948f,this['_footnotes']['splice'](_0x41985f,0x1);const _0x5e330=I(this['editor']['model'],this['_footnotes'],_0x19948f);return this['_footnotes']['splice'](_0x5e330,0x0,_0x39b323),this['_updateFootnotesCounters'](_0x375c98,Math['min'](_0x41985f,_0x5e330))&&(_0xa53d7a=!0x0),_0xa53d7a;}['_updateFootnoteRefCounter'](_0x2fd184,_0x2fffac){if(!this['_footnotesDefinitions'])return!0x1;const _0x1da068=this['_footnotes'][_0x2fffac];let _0x4df62b;return _0x4df62b=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x1da068,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x2fffac+0x1}):String(_0x2fffac+0x1),_0x1da068['reference']['getAttribute']('footnoteCounter')!=_0x4df62b&&(_0x2fd184['setAttribute']('footnoteCounter',_0x4df62b,_0x1da068['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x37242e){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x51d91f,_0x240503){if(_0x51d91f['length']!==_0x240503['length'])return!0x1;for(let _0x3ccfd4=0x0;_0x3ccfd4<_0x51d91f['length'];_0x3ccfd4++)if(_0x51d91f[_0x3ccfd4]!==_0x240503[_0x3ccfd4])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x4cca72=>_0x4cca72['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x1def27=>_0x1def27['getAttribute']('footnoteId'))))return!0x1;let _0x3a4772=!0x1;for(let _0x53c60e=0x0;_0x53c60e<this['_footnotes']['length'];_0x53c60e++){const _0x37ba84=this['_footnotes'][_0x53c60e],_0x8ffea5=_0x37242e['createPositionBefore'](_0x37ba84['definition']),_0x28c1d9=_0x37242e['createPositionAt'](this['_footnotesDefinitions'],_0x53c60e);_0x8ffea5['isEqual'](_0x28c1d9)||(_0x37242e['move'](_0x37242e['createRangeOn'](_0x37ba84['definition']),_0x28c1d9),_0x3a4772=!0x0);}return _0x3a4772;}['_ensureFootnotesReferencesHaveProperOrder'](_0x55ef77){if(!this['_footnotes']['length'])return!0x1;const {model:_0x2f25f9}=this['editor'];let _0x2e1043=!0x1;for(let _0x410c55=0x0;_0x410c55<this['_footnotes']['length']-0x1;_0x410c55++){const _0x509eb6=this['_footnotes'][_0x410c55],_0xa9ed50=this['_footnotes'][_0x410c55+0x1],_0x342059=_0x2f25f9['createPositionBefore'](_0x509eb6['reference']),_0x199c92=_0x2f25f9['createPositionBefore'](_0xa9ed50['reference']);'after'===_0x342059['compareWith'](_0x199c92)&&(this['_handleMovedFootnoteReference'](_0x55ef77,_0x509eb6['reference']),_0x410c55=-0x1,_0x2e1043=!0x0);}return _0x2e1043;}}function _(_0x16cb25,_0x41b05d,_0x1aeb55){if(_0x1aeb55['childCount'])return!0x1;const _0x8a5f8c=_0x41b05d?'paragraph':'footnoteInlineContent';return _0x16cb25['insert'](_0x16cb25['createElement'](_0x8a5f8c),_0x1aeb55),!0x0;}function I(_0x41744a,_0x57c4c1,_0x262f99){if(0x0===_0x57c4c1['length'])return 0x0;const _0x570d26=_0x41744a['createPositionBefore'](_0x262f99);for(let _0x5bea47=0x0;_0x5bea47<_0x57c4c1['length'];_0x5bea47++){const _0x2c96b7=_0x57c4c1[_0x5bea47],_0x3911ce=_0x41744a['createPositionBefore'](_0x2c96b7['reference']);if('before'===_0x570d26['compareWith'](_0x3911ce))return _0x5bea47;}const _0x1cd53c=_0x262f99['root'];let _0x238995=-0x1;for(let _0x1d6935=_0x57c4c1['length']-0x1;_0x1d6935>=0x0;_0x1d6935--)if(_0x57c4c1[_0x1d6935]['reference']['root']===_0x1cd53c){_0x238995=_0x1d6935;break;}if(-0x1!==_0x238995)return _0x238995+0x1;const _0xa67174=_0x41744a['document']['getRootNames'](),_0x19bd10=_0xa67174['indexOf'](_0x1cd53c['rootName']),_0x8647c9=_0xa67174[_0x19bd10+0x1];if(_0x8647c9){for(let _0xdd0a26=0x0;_0xdd0a26<_0x57c4c1['length'];_0xdd0a26++)if(_0x57c4c1[_0xdd0a26]['reference']['root']['rootName']===_0x8647c9)return _0xdd0a26;}return _0x57c4c1['length'];}class h extends _0x206b50{['refresh'](){const _0x18ddd0=this['editor']['model']['document']['selection'],_0x20af4f=this['_getPositionToInsertFootnote'](_0x18ddd0);this['isEnabled']=!!_0x20af4f;}['execute'](_0x2db831){const {editor:_0x3c4977}=this,{model:_0x488f08}=_0x3c4977,{selection:_0x506f40}=_0x488f08['document'],_0x56e329=this['_getPositionToInsertFootnote'](_0x506f40);if(!_0x56e329)return;const _0x547f76=_0x3c4977['plugins']['get']('FootnotesEditing'),_0x1c90e5=_0x2db831?.['footnoteId']??_0x8553f0();!function(_0x194cfa){return'string'==typeof _0x194cfa&&_0x194cfa['length']>0x0&&!/\s/['test'](_0x194cfa)&&!/^\d/['test'](_0x194cfa);}(_0x1c90e5)?_0x17c0b4('insert-footnote-command-executed-with-invalid-id'):(_0x488f08['change'](_0x5099c1=>{const _0xa1bfed=_0x5099c1['createElement']('footnoteRef',{'footnoteId':_0x1c90e5});_0x488f08['insertObject'](_0xa1bfed,_0x56e329,null);}),_0x547f76['_moveSelectionToFootnoteDefinition'](_0x1c90e5));}['_getPositionToInsertFootnote'](_0x50aea8){const {model:_0x282459}=this['editor'],{schema:_0x5f112f}=_0x282459,_0x2a7de2=_0x50aea8['getFirstRange']();for(const _0xe4eb3b of _0x2a7de2['getItems']())if(_0x5f112f['isBlock'](_0xe4eb3b)||_0x5f112f['isObject'](_0xe4eb3b))return null;const _0x18f289=_0x2a7de2['end'];return _0x5f112f['checkChild'](_0x18f289,'footnoteRef')?_0x18f289:null;}}class r extends _0x33f338{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4deacb}=this;_0x4deacb['config']['define']('footnotes.multiBlock',!0x0),_0x4deacb['commands']['add']('insertFootnote',new h(_0x4deacb)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3b9645){const _0x3c09a2=_0x16e3f1([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]),_0x40e85c=0x47a28506,_0x2a98b8=0x47a5f98e^_0x40e85c,_0x1f1b5d=window[_0x16e3f1([0x44,0x61,0x74,0x65])][_0x16e3f1([0x6e,0x6f,0x77])](),_0x1d8053=_0x3b9645[_0x16e3f1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x231cd9=new window[(_0x16e3f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32c23e=>{_0x1d8053[_0x16e3f1([0x6f,0x6e,0x63,0x65])](_0x16e3f1([0x72,0x65,0x61,0x64,0x79]),_0x32c23e);}),_0x1c4741={[_0x16e3f1([0x6b,0x74,0x79])]:_0x16e3f1([0x45,0x43]),[_0x16e3f1([0x75,0x73,0x65])]:_0x16e3f1([0x73,0x69,0x67]),[_0x16e3f1([0x63,0x72,0x76])]:_0x16e3f1([0x50,0x2d,0x32,0x35,0x36]),[_0x16e3f1([0x78])]:_0x16e3f1([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]),[_0x16e3f1([0x79])]:_0x16e3f1([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]),[_0x16e3f1([0x61,0x6c,0x67])]:_0x16e3f1([0x45,0x53,0x32,0x35,0x36])},_0x3c9201=_0x1d8053[_0x16e3f1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x16e3f1([0x67,0x65,0x74])](_0x16e3f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5a5a88(){let _0x4141de,_0x42dacb=null,_0x319c7b=null;try{if(_0x3c9201==_0x16e3f1([0x47,0x50,0x4c]))return _0x16e3f1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4141de=_0x1d782c(),!_0x4141de)return _0x16e3f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4141de[_0x16e3f1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x319c7b=_0xdfe7e4(_0x4141de[_0x16e3f1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4141de[_0x16e3f1([0x6a,0x74,0x69])])),await _0x19fb31()?_0x4eb80e()?_0x14a079()?_0x16e3f1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xb8d74c()?(_0x4141de[_0x16e3f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16e3f1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42dacb=_0xa44caf(_0x16e3f1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4141de[_0x16e3f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16e3f1([0x74,0x72,0x69,0x61,0x6c])&&(_0x42dacb=_0xa44caf(_0x16e3f1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5367d4()):_0x16e3f1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x16e3f1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x16e3f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x16e3f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x14a079(){const _0x55a29c=[_0x16e3f1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x16e3f1([0x74,0x72,0x69,0x61,0x6c])][_0x16e3f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4141de[_0x16e3f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f1b5d/0x3e8:0xe10*_0x2a98b8;return _0x4141de[_0x16e3f1([0x65,0x78,0x70])]<_0x55a29c;}function _0x4eb80e(){const _0x280765=_0x4141de[_0x16e3f1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x280765&&(!!_0x280765[_0x16e3f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16e3f1([0x2a]))||!!_0x280765[_0x16e3f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16e3f1([0x46,0x4f,0x4f])));}function _0xb8d74c(){const _0x553671=_0x4141de[_0x16e3f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x553671||0x0==_0x553671[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x508543}=new URL(window[_0x16e3f1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x553671[_0x16e3f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x508543))return!0x0;const _0x257418=_0x508543[_0x16e3f1([0x73,0x70,0x6c,0x69,0x74])](_0x16e3f1([0x2e]));return _0x553671[_0x16e3f1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1699cf=>_0x1699cf[_0x16e3f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16e3f1([0x2a])))[_0x16e3f1([0x6d,0x61,0x70])](_0x7067fd=>_0x7067fd[_0x16e3f1([0x73,0x70,0x6c,0x69,0x74])](_0x16e3f1([0x2e])))[_0x16e3f1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b773c=>_0x5b773c[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x257418[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16e3f1([0x6d,0x61,0x70])](_0x2ed3af=>Array(_0x257418[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2ed3af[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16e3f1([0x66,0x69,0x6c,0x6c])](_0x2ed3af[0x0]===_0x16e3f1([0x2a])?_0x16e3f1([0x2a]):'')[_0x16e3f1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2ed3af))[_0x16e3f1([0x73,0x6f,0x6d,0x65])](_0x447aba=>_0x257418[_0x16e3f1([0x65,0x76,0x65,0x72,0x79])]((_0x37e9eb,_0x52e7a9)=>_0x447aba[_0x52e7a9]===_0x37e9eb||_0x447aba[_0x52e7a9]===_0x16e3f1([0x2a])));}function _0x5367d4(){return _0x42dacb&&_0x319c7b?new window[(_0x16e3f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46e178,_0x73560c)=>{_0x42dacb[_0x16e3f1([0x74,0x68,0x65,0x6e])](_0x46e178,_0x73560c),_0x319c7b[_0x16e3f1([0x74,0x68,0x65,0x6e])](_0x3c35af=>{_0x3c35af!=_0x16e3f1([0x56,0x61,0x6c,0x69,0x64])&&_0x46e178(_0x3c35af);},_0x73560c);}):_0x42dacb||_0x319c7b||_0x16e3f1([0x56,0x61,0x6c,0x69,0x64]);}}function _0xdfe7e4(_0x34a7c7,_0x4cc99e){return new window[(_0x16e3f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30aa47=>{if(_0x308b12())return _0x30aa47(_0x16e3f1([0x56,0x61,0x6c,0x69,0x64]));_0x4f1174(),_0x1d8053[_0x16e3f1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x16e3f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x25a9da=!0x1;const _0x2be00f=_0x8553f0();function _0xf9977b(_0x399e78){return!!_0x399e78&&(typeof _0x399e78===_0x16e3f1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x399e78===_0x16e3f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x399e78[_0x16e3f1([0x74,0x68,0x65,0x6e])]===_0x16e3f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x399e78[_0x16e3f1([0x63,0x61,0x74,0x63,0x68])]===_0x16e3f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1446a6(_0x528937){_0x2f80a0(_0x528937)[_0x16e3f1([0x74,0x68,0x65,0x6e])](_0xbafcf7=>{if(!_0xbafcf7||_0xbafcf7[_0x16e3f1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x16e3f1([0x6f,0x6b]))return _0x16e3f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5dbb30(_0x32190b(_0x2be00f+_0x4cc99e))!=_0xbafcf7[_0x16e3f1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x16e3f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x16e3f1([0x56,0x61,0x6c,0x69,0x64]);})[_0x16e3f1([0x74,0x68,0x65,0x6e])](_0x8d13ba=>(_0x490237(),_0x8d13ba),()=>{const _0xd0cdb2=_0x359166();return null==_0xd0cdb2?(_0x490237(),_0x16e3f1([0x56,0x61,0x6c,0x69,0x64])):_0x16e3f1(_0x1f1b5d-_0xd0cdb2>(0x63ae0106^_0x40e85c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x16e3f1([0x74,0x68,0x65,0x6e])](_0x30aa47)[_0x16e3f1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x30aa47(_0x16e3f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e9103=0x47946b86^_0x40e85c;function _0x490237(){const _0x274693=_0x16e3f1([0x6c,0x6c,0x63,0x74,0x2d])+_0x5dbb30(_0x32190b(_0x34a7c7)),_0x299f18=_0x52dc60(_0x5dbb30(window[_0x16e3f1([0x4d,0x61,0x74,0x68])][_0x16e3f1([0x63,0x65,0x69,0x6c])](_0x1f1b5d/_0x2e9103)));window[_0x16e3f1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16e3f1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x274693,_0x299f18);}function _0x359166(){const _0x5e3fb2=_0x16e3f1([0x6c,0x6c,0x63,0x74,0x2d])+_0x5dbb30(_0x32190b(_0x34a7c7)),_0xca8051=window[_0x16e3f1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16e3f1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e3fb2);return _0xca8051?window[_0x16e3f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52dc60(_0xca8051),0x10)*_0x2e9103:null;}function _0x2f80a0(_0x1d8651){return new window[(_0x16e3f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x329a59,_0x434c0e)=>{_0x1d8651[_0x16e3f1([0x74,0x68,0x65,0x6e])](_0x329a59,_0x434c0e),window[_0x16e3f1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x434c0e,0x47a351c6^_0x40e85c);});}}_0x1d8053[_0x16e3f1([0x6f,0x6e])](_0x16e3f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5756db,_0xa6cfb6)=>{if(_0xa6cfb6[0x0]!=_0x34a7c7)return _0x30aa47(_0x16e3f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa6cfb6[0x1]={..._0xa6cfb6[0x1],[_0x16e3f1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2be00f};},{[_0x16e3f1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16e3f1([0x68,0x69,0x67,0x68])}),_0x1d8053[_0x16e3f1([0x6f,0x6e])](_0x16e3f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x51509d=>{_0xf9977b(_0x51509d[_0x16e3f1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x25a9da=!0x0,_0x1446a6(_0x51509d[_0x16e3f1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x16e3f1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16e3f1([0x6c,0x6f,0x77])}),_0x231cd9[_0x16e3f1([0x74,0x68,0x65,0x6e])](()=>{_0x25a9da||_0x30aa47(_0x16e3f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x308b12(){return _0x1d8053[_0x16e3f1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16e3f1([0x76,0x69,0x65,0x77])][_0x16e3f1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x16e3f1([0x61,0x75,0x74,0x6f]);}function _0x4f1174(){_0x1d8053[_0x16e3f1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16e3f1([0x76,0x69,0x65,0x77])][_0x16e3f1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16e3f1([0x61,0x75,0x74,0x6f]);}}function _0xa44caf(_0x345273){const _0x1dae29=[new window[(_0x16e3f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d5bf3=>setTimeout(_0x3d5bf3,0x47abbbca^_0x40e85c)),_0x231cd9[_0x16e3f1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x16e3f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e73be=>{let _0x307141=0x0;_0x1d8053[_0x16e3f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x16e3f1([0x6f,0x6e])](_0x16e3f1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd39ac3,_0x5098d6)=>{_0x5098d6[0x0][_0x16e3f1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x307141++,_0x307141==(0x47a280ee^_0x40e85c)&&(_0x2e73be(),_0xd39ac3[_0x16e3f1([0x6f,0x66,0x66])]());});}))];return window[_0x16e3f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16e3f1([0x72,0x61,0x63,0x65])](_0x1dae29)[_0x16e3f1([0x74,0x68,0x65,0x6e])](()=>_0x345273);}async function _0x4b74df(){await _0x231cd9,_0x1d8053[_0x16e3f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x16e3f1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x58db77,_0x1d8053[_0x16e3f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x16e3f1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x58db77,_0x1d8053[_0x16e3f1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x16e3f1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3aaa80(_0x4b788e){const _0x1981aa=_0x55a3ec();_0x1d8053[_0x1981aa]=_0x16e3f1([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4b788e,_0x4b788e!=_0x16e3f1([0x56,0x61,0x6c,0x69,0x64])&&_0x4b74df();}function _0x55a3ec(){const _0x3e77ac=window[_0x16e3f1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x16e3f1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x16e3f1([0x6e,0x6f,0x77])]())[_0x16e3f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x16e3f1([0x2e]),'');let _0x143981=_0x16e3f1([0x75]);for(let _0x1cd48d=0x0;_0x1cd48d<_0x3e77ac[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cd48d+=0x2){let _0x1d0293=window[_0x16e3f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e77ac[_0x16e3f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1cd48d,_0x1cd48d+0x2));_0x1d0293>=_0x3c09a2[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1d0293-=_0x3c09a2[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x143981+=_0x3c09a2[_0x1d0293];}return _0x143981;}function _0x1d782c(){const _0x3d0f54=_0x3c9201[_0x16e3f1([0x73,0x70,0x6c,0x69,0x74])](_0x16e3f1([0x2e]));if(0x3!=_0x3d0f54[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3627be(_0x3d0f54[0x1]);function _0x3627be(_0x2128c8){const _0x4b238f=_0x596633(_0x2128c8);return _0x4b238f&&_0x32f54c()?_0x4b238f:null;function _0x32f54c(){const _0x76576f=_0x4b238f[_0x16e3f1([0x6a,0x74,0x69])],_0x23f72d=window[_0x16e3f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x76576f[_0x16e3f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x76576f[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b4aed={..._0x4b238f,[_0x16e3f1([0x6a,0x74,0x69])]:_0x76576f[_0x16e3f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x76576f[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b4aed[_0x16e3f1([0x76,0x63])],_0x32190b(_0x4b4aed)==_0x23f72d;}}}async function _0x19fb31(){let _0x5287f8=!0x0;try{const _0x5532d6=_0x3c9201[_0x16e3f1([0x73,0x70,0x6c,0x69,0x74])](_0x16e3f1([0x2e])),[_0x33333a,_0xcafd6b,_0x19cc6b]=_0x5532d6;return _0x29cfdc(_0x33333a),await _0x2a3eea(_0x33333a,_0xcafd6b,_0x19cc6b),_0x5287f8;}catch{return!0x1;}function _0x29cfdc(_0x4086b4){const _0x51e238=_0x596633(_0x4086b4);_0x51e238&&_0x51e238[_0x16e3f1([0x61,0x6c,0x67])]==_0x16e3f1([0x45,0x53,0x32,0x35,0x36])||(_0x5287f8=!0x1);}async function _0x2a3eea(_0xc574a6,_0x461d37,_0x1e568e){const _0x5713f9=window[_0x16e3f1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x16e3f1([0x66,0x72,0x6f,0x6d])](_0x11f568(_0x1e568e),_0x3c313a=>_0x3c313a[_0x16e3f1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x29fd34=new window[(_0x16e3f1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x16e3f1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc574a6+_0x16e3f1([0x2e])+_0x461d37),_0x4f5dba=window[_0x16e3f1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x16e3f1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f5dba)return;const _0xbbeaf1=await _0x4f5dba[_0x16e3f1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x16e3f1([0x6a,0x77,0x6b]),_0x1c4741,{[_0x16e3f1([0x6e,0x61,0x6d,0x65])]:_0x16e3f1([0x45,0x43,0x44,0x53,0x41]),[_0x16e3f1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x16e3f1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x16e3f1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f5dba[_0x16e3f1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x16e3f1([0x6e,0x61,0x6d,0x65])]:_0x16e3f1([0x45,0x43,0x44,0x53,0x41]),[_0x16e3f1([0x68,0x61,0x73,0x68])]:{[_0x16e3f1([0x6e,0x61,0x6d,0x65])]:_0x16e3f1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xbbeaf1,_0x5713f9,_0x29fd34)||(_0x5287f8=!0x1);}}function _0x596633(_0x33603e){return _0x33603e[_0x16e3f1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x16e3f1([0x65,0x79]))?JSON[_0x16e3f1([0x70,0x61,0x72,0x73,0x65])](_0x11f568(_0x33603e)):null;}function _0x11f568(_0x3d1a4e){return window[_0x16e3f1([0x61,0x74,0x6f,0x62])](_0x3d1a4e[_0x16e3f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x16e3f1([0x2b]))[_0x16e3f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x16e3f1([0x2f])));}function _0x32190b(_0x4e10df){let _0x204b72=0x1505;function _0x535d53(_0x2f2215){for(let _0xdaf33=0x0;_0xdaf33<_0x2f2215[_0x16e3f1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdaf33++){const _0x4dd040=_0x2f2215[_0x16e3f1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xdaf33);_0x204b72=(_0x204b72<<0x5)+_0x204b72+_0x4dd040,_0x204b72&=_0x204b72;}}function _0x257b72(_0x2a9012){Array[_0x16e3f1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2a9012)?_0x2a9012[_0x16e3f1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x257b72):_0x2a9012&&typeof _0x2a9012==_0x16e3f1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x16e3f1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2a9012)[_0x16e3f1([0x73,0x6f,0x72,0x74])]()[_0x16e3f1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x28bee8,_0x559785])=>{_0x535d53(_0x28bee8),_0x257b72(_0x559785);}):_0x535d53(window[_0x16e3f1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2a9012));}return _0x257b72(_0x4e10df),_0x204b72>>>0x0;}function _0x5dbb30(_0x148e5e){return _0x148e5e[_0x16e3f1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x16e3f1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x16e3f1([0x30]));}function _0x52dc60(_0x650627){return _0x650627[_0x16e3f1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x16e3f1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x16e3f1([0x6a,0x6f,0x69,0x6e])]('');}function _0x58db77(){}function _0x16e3f1(_0x4cf4d6){return _0x4cf4d6['map'](_0x36adaf=>String['fromCharCode'](_0x36adaf))['join']('');}_0x3aaa80(await _0x5a5a88());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3396f9){const {plugins:_0x52c8d5,editing:_0x29908d,model:_0x33da77}=this['editor'],_0x99f05=_0x52c8d5['get'](f)['getFootnote'](_0x3396f9);return!!_0x99f05&&(_0x33da77['change'](_0x342ca1=>{_0x342ca1['setSelection'](_0x342ca1['createPositionAt'](_0x99f05['definition'],'end'));}),_0x29908d['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x1e3abf){const {plugins:_0x2c66e5,editing:_0x4e6e48,model:_0x6afaa3}=this['editor'],_0x59a886=_0x2c66e5['get'](f)['getFootnote'](_0x1e3abf);return!!_0x59a886&&(_0x6afaa3['change'](_0x21e71c=>{_0x21e71c['setSelection'](_0x59a886['reference'],'on');}),_0x4e6e48['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x25b925}=this['editor']['model'],_0x9fefe=this['editor']['config']['get']('footnotes.multiBlock');_0x25b925['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x25b925['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x25b925['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x9fefe?_0x25b925['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x25b925['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x25b925['addChildCheck'](_0x23181c=>{for(const _0x1c290a of _0x23181c)if('footnoteDefinition'===_0x1c290a['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1d8540}=this,{conversion:_0x350920,editing:_0x8f15b5}=_0x1d8540,{t:t}=_0x1d8540['locale'];_0x350920['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x196450,{writer:_0x31593f,consumable:_0x4945a9})=>{const _0x17d5a0=_0x196450['getChild'](0x0);if(!_0x17d5a0||!_0x17d5a0['is']('element','a'))return null;const _0x57c000=_0x17d5a0['getAttribute']('href')||'';if(!_0x57c000['startsWith']('#'))return null;const _0x47dd74=_0x57c000['replace'](/^#/,'');if(!_0x47dd74)return null;_0x4945a9['consume'](_0x17d5a0,{'name':!0x0,'attributes':['href']});for(const {item:_0x1697d1}of _0x8f15b5['view']['createRangeIn'](_0x17d5a0))_0x1697d1['is']('$textProxy')?_0x4945a9['consume'](_0x1697d1['textNode'],{'name':!0x0}):_0x1697d1['is']('element')&&_0x4945a9['consume'](_0x1697d1,{'name':!0x0});return _0x31593f['createElement']('footnoteRef',{'footnoteId':_0x47dd74});}}),_0x350920['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x52ed01,{writer:_0xfa63b})=>b(_0x52ed01,_0xfa63b)}),_0x350920['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x52610c,{writer:_0x1bb7d3})=>{const _0x29a4b1=_0x52610c['getAttribute']('footnoteCounter');return _0x2d619d(b(_0x52610c,_0x1bb7d3),_0x1bb7d3,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x29a4b1)});}});}['_defineDefinitionsConverters'](){const {editor:_0x38b217}=this,{t:t}=_0x38b217['locale'],{conversion:_0x11dc36}=_0x38b217;_0x11dc36['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x11dc36['for']('upcast')['add'](_0x28bf6e=>{_0x28bf6e['on']('element:ol',(_0x2b4b74,_0x424fec,_0x4188cb)=>{const _0x39e2f6=_0x424fec['viewItem'];if(!_0x39e2f6['hasClass']('footnotes-list')||!_0x424fec['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4188cb['consumable']['consume'](_0x39e2f6,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x24b29b,modelCursor:_0x5790c8}=_0x4188cb['convertChildren'](_0x424fec['viewItem'],_0x424fec['modelCursor']);_0x424fec['modelRange']=_0x24b29b,_0x424fec['modelCursor']=_0x5790c8;}),_0x28bf6e['on']('element:hr',(_0x5be5e8,_0x8d8d14,_0x416f30)=>{const _0x336b9b=_0x8d8d14['viewItem'];_0x336b9b['hasClass']('footnotes-divider')&&_0x8d8d14['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x416f30['consumable']['consume'](_0x336b9b,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x11dc36['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xfab51b,{writer:_0x5a1bc8})=>D(_0x5a1bc8)}),_0x11dc36['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2725f2,{writer:_0x357626})=>{const _0x240646=D(_0x357626,{'data-footnotes-list-label':t('Footnotes')}),_0x232a94=_0x2d619d(_0x240646,_0x357626,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x357626['setCustomProperty']('footnotesDefinitions',!0x0,_0x232a94),_0x232a94;}});}['_defineDefinitionConverters'](){const {editor:_0x1a9df2}=this,{conversion:_0x50bc2e,locale:_0x2deb9d}=_0x1a9df2,_0xf9a737=_0x1a9df2['config']['get']('footnotes.multiBlock');_0x50bc2e['for']('upcast')['add'](_0x841dae=>{_0x841dae['on']('element:li',(_0x49c264,_0x5c5507,_0x2ff7a3)=>{const _0x775cf1=_0x5c5507['viewItem'];if(!_0x775cf1['hasClass']('footnote-definition')||!_0x775cf1['getAttribute']('id'))return;const _0x557b23=_0x775cf1['parent'];if(!_0x557b23['is']('element','ol')||!_0x557b23['hasClass']('footnotes-list'))return;if(!_0x2ff7a3['consumable']['test'](_0x775cf1,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x26e9c1=_0x2ff7a3['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x775cf1['getAttribute']('id')});if(!_0x2ff7a3['safeInsert'](_0x26e9c1,_0x5c5507['modelCursor']))return;_0x2ff7a3['consumable']['consume'](_0x775cf1,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x24933c=Array['from'](_0x775cf1['getChildren']())['find'](_0x4f04a0=>_0x4f04a0['is']('element')&&_0x4f04a0['hasClass']('footnote-content'));for(const _0x3785fd of _0x775cf1['getChildren']())_0x3785fd['is']('element')&&(_0x2ff7a3['consumable']['consume'](_0x3785fd,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2ff7a3['consumable']['consume'](_0x3785fd,{'name':!0x0,'classes':'footnote-content'}));if(_0x24933c){if(_0xf9a737)_0x2ff7a3['convertChildren'](_0x24933c,_0x26e9c1);else{const _0x6baf26=_0x2ff7a3['writer']['createElement']('footnoteInlineContent');_0x2ff7a3['writer']['insert'](_0x6baf26,_0x26e9c1),_0x2ff7a3['convertChildren'](_0x24933c,_0x6baf26);}}_0x2ff7a3['updateConversionResult'](_0x26e9c1,_0x5c5507);});}),_0x50bc2e['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1fc9eb,{writer:_0x26e7cf})=>y(_0x1fc9eb,_0x26e7cf,_0x2deb9d,{'dataPipeline':!0x0})}),_0x50bc2e['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3bd349,{writer:_0x5cd162})=>y(_0x3bd349,_0x5cd162,_0x2deb9d)});}['_defineBogusParagraphConverters'](){const {editor:_0x3287f3}=this,{conversion:_0x3bc54f}=_0x3287f3;_0x3287f3['config']['get']('footnotes.multiBlock')?(_0x3bc54f['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x3bc54f['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3287f3['model']['document'],'change:data',()=>{!function(_0x487a4e,_0x13fa8a){const _0xe673df=_0x487a4e['document']['differ'],_0x2ac0c4=new Set();for(const _0x50a55f of _0xe673df['getChanges']()){const _0x1bd1dc='attribute'==_0x50a55f['type']?_0x50a55f['range']['start']['parent']:_0x50a55f['position']['parent'];_0x1bd1dc['is']('element','footnoteDefinition')&&_0x2ac0c4['add'](_0x1bd1dc);}for(const _0x17fa27 of _0x2ac0c4['values']()){const _0x1a9422=Array['from'](_0x17fa27['getChildren']())['filter'](_0x2a05f9=>v(_0x2a05f9,_0x13fa8a['mapper']));for(const _0x5873b3 of _0x1a9422)_0x13fa8a['reconvertItem'](_0x5873b3);}}(_0x3287f3['model'],_0x3287f3['editing']);})):(_0x3bc54f['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x3bc54f['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5e0774,{writer:_0x1d0ef7})=>{const _0x374ba5=_0x1d0ef7['createContainerElement']('span');return _0x1d0ef7['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x374ba5),_0x374ba5;}}));}['_defineKeyboardHandlers'](){const {editor:_0x4c537f}=this,{editing:_0x5a4517,t:t}=_0x4c537f,_0x39780a=_0x4c537f['model']['document']['selection'];_0x4c537f['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x4c537f['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x5a4517['view']['document'],'enter',(_0xd82de6,_0x179b4e)=>{const _0x2663b6=function(_0x2ff02b){const _0x507b74=_0x2ff02b['getSelectedElement']();if(_0x507b74?.['is']('element','footnoteRef'))return _0x507b74;return null;}(_0x39780a);if(_0x2663b6){const _0x17897b=_0x2663b6['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x17897b),_0x179b4e['preventDefault'](),_0xd82de6['stop']();}},{'context':_0x46519d});}['_defineClickHandlers'](){const {editor:_0x5a2dea}=this,{editing:_0x46389a}=_0x5a2dea;_0x5a2dea['editing']['view']['addObserver'](_0x4678e1),_0x5a2dea['editing']['view']['addObserver'](_0x153404);let _0x33b3f1=!0x1;this['listenTo'](_0x46389a['view']['document'],'pointerdown',(_0x10791b,_0x4204d5)=>{const {target:_0x2caf7b}=_0x4204d5,_0x5cb35a=_0x46389a['view']['document']['selection'];_0x33b3f1=!!(_0x2caf7b?.['is']('element','a')&&_0x2caf7b['parent']?.['is']('element','sup')&&_0x2caf7b['parent']['hasClass']('footnote'))&&_0x5cb35a['getSelectedElement']()===_0x2caf7b['parent'];},{'priority':'high'}),this['listenTo'](_0x46389a['view']['document'],'click',(_0x170350,_0x14f7b6)=>{const {target:_0x2b7644}=_0x14f7b6;if(!_0x2b7644?.['is']('element','a'))return;if(_0x2b7644['parent']?.['is']('element','sup')&&_0x2b7644['parent']['hasClass']('footnote')&&!_0x33b3f1)return void _0x14f7b6['preventDefault']();let _0x1245f5=_0x2b7644['getAttribute']('href');if(!_0x1245f5?.['startsWith']('#'))return;_0x1245f5=_0x1245f5['slice'](0x1);let _0x36de9a=!0x1;(_0x1245f5['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1245f5['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1245f5))&&(_0x36de9a=!0x0),_0x36de9a&&(_0x14f7b6['preventDefault'](),_0x170350['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x540d5d}={}){return(_0xcba574,{writer:_0x183b09})=>{if(!g(_0xcba574))return null;if(!_0x540d5d)return _0x183b09['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x18ed0a=_0x183b09['createContainerElement']('p');return _0x183b09['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x18ed0a),_0x18ed0a;};}function g(_0x5b98ee){const {parent:_0x508596}=_0x5b98ee;if(!_0x508596?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x508596['childCount'])return!0x1;for(const _0x4ce077 of _0x5b98ee['getAttributeKeys']())if(!_0x4ce077['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4ce077)return!0x1;return!0x0;}function v(_0x5e25c2,_0x59e047){if(!_0x5e25c2['is']('element','paragraph'))return!0x1;const _0x177eac=_0x59e047['toViewElement'](_0x5e25c2);return!!_0x177eac&&g(_0x5e25c2)!==_0x177eac['is']('element','span');}function H(_0x1ed089){return _0x46519d(_0x1ed089)&&_0x1ed089['is']('containerElement')&&!!_0x1ed089['getCustomProperty']('footnotesDefinitions');}function D(_0x4b4e02,_0x191737={}){const _0x2a3062=_0x4b4e02['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x251886=_0x4b4e02['createContainerElement']('ol',{'class':'footnotes-list'},_0x4b4e02['createSlot']());return _0x4b4e02['createContainerElement']('div',{'class':'footnotes',..._0x191737},[_0x2a3062,_0x251886]);}function b(_0x28a2cc,_0x32affe){const _0x5d582b=_0x28a2cc['getAttribute']('footnoteId'),_0x185fd5=_0x28a2cc['getAttribute']('footnoteCounter'),_0x39bc8e=_0x32affe['createUIElement']('a',{'href':'#'+_0x5d582b},function(_0x4b2ac3){const _0x5cc6a4=this['toDomElement'](_0x4b2ac3);return _0x5cc6a4['textContent']=_0x185fd5,_0x5cc6a4;}),_0xa95bb5=_0x32affe['createContainerElement']('sup',{'id':'ref-'+_0x5d582b,'class':'footnote'},[_0x39bc8e]);return _0xa95bb5['getFillerOffset']=()=>null,_0xa95bb5;}function y(_0x4f8169,_0x45f31d,_0x570840,{dataPipeline:_0x39c61c}={}){const {t:t}=_0x570840,_0x1c1b36=_0x4f8169['getAttribute']('footnoteId'),_0x287cbb=_0x45f31d['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1c1b36},function(_0x277c48){const _0x2e2d3d=this['toDomElement'](_0x277c48);return _0x2e2d3d['innerText']='^',_0x2e2d3d;}),_0x278365=_0x39c61c?_0x45f31d['createContainerElement']('div',{'class':'footnote-content'}):_0x1eb08a(_0x45f31d['createEditableElement']('div',{'class':'footnote-content'}),_0x45f31d,{'label':t('Footnote\x20content.')});return _0x45f31d['insert'](_0x45f31d['createPositionAt'](_0x278365,0x0),_0x45f31d['createSlot']()),_0x45f31d['createContainerElement']('li',{'class':'footnote-definition','id':_0x1c1b36},[_0x287cbb,_0x278365]);}class e extends _0x33f338{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x5bf402];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x424be0}=this,{plugins:_0x429102,model:_0x4c0b35}=_0x424be0,_0x578e91=_0x429102['get'](_0x5bf402),_0x428736=_0x429102['get'](f);this['listenTo'](_0x578e91,'outputTransformation',(_0x2b86d1,_0x2c4ed5)=>{const _0x1d126f=l(_0x4c0b35['createRangeIn'](_0x2c4ed5['content']));if(!_0x1d126f['length'])return;const _0x4bea1f=_0x428736['getFootnotes'](),_0x349949=_0x1d126f['reduce']((_0x5a4740,_0x474cdc)=>{const _0x35d5e6=_0x4bea1f['find'](_0x1b2931=>_0x1b2931['id']===_0x474cdc);if(_0x35d5e6){const _0x4c3613=_0x424be0['data']['toView'](_0x35d5e6['definition'],{'isClipboardPipeline':!0x0}),_0x4931fe=_0x424be0['data']['htmlProcessor']['toData'](_0x4c3613);_0x5a4740[_0x35d5e6['id']]=_0x4931fe;}return _0x5a4740;},Object['create'](null));_0x2c4ed5['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x349949));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x4b46c5}=this,{model:_0x2f4747,plugins:_0xcf470b}=_0x4b46c5,{view:_0xfadd}=_0x4b46c5['editing'],_0x55444b=_0xcf470b['get'](_0x5bf402),_0x144901=_0xcf470b['get'](f),_0x328fa4=_0x4b46c5['config']['get']('footnotes.multiBlock');let _0xc6747e=null;this['listenTo'](_0xfadd['document'],'clipboardInput',(_0x7b134e,_0x29a444)=>{const _0x18fa61=_0x29a444['dataTransfer']['getData']('application/ckeditor5-footnotes');_0xc6747e=_0x18fa61?JSON['parse'](_0x18fa61):null;}),this['listenTo'](_0x55444b,'contentInsertion',(_0x311f0b,_0x14e328)=>{const _0x12740c=_0x14e328['sourceEditorId']===this['editor']['id'];_0x12740c&&'drop'===_0x14e328['method']||_0x2f4747['change'](_0x41737f=>{let _0x3cbdf8=_0x144901['getFootnotesDefinitionsObjectElement']();const _0x57b46d=!!_0x3cbdf8&&Array['from'](_0x2f4747['document']['selection']['getSelectedBlocks']())['includes'](_0x3cbdf8);if(!_0xc6747e&&function(_0x347952){for(const {item:_0x38f810}of _0x347952)if(_0x38f810['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x2f4747['createRangeIn'](_0x14e328['content']))&&(_0xc6747e=function(_0x5b407b,_0x3cd632){const _0x568577=c(_0x5b407b,_0x3cd632);if(!_0x568577)return null;const _0x4d5595=Object['create'](null);for(const _0x40bb16 of _0x568577['getChildren']())_0x40bb16['is']('element','footnoteDefinition')&&_0x40bb16['hasAttribute']('footnoteId')&&(_0x4d5595[_0x40bb16['getAttribute']('footnoteId')]=_0x5b407b['cloneElement'](_0x40bb16,!0x0));return Object['keys'](_0x4d5595)['length']?_0x4d5595:null;}(_0x41737f,_0x14e328['content'])),(_0x3cbdf8&&!_0x57b46d||!_0x3cbdf8&&!_0xc6747e)&&function(_0x4ddbed,_0x3e3360){const _0x494771=[];for(const {item:_0x76f948}of _0x4ddbed['createRangeIn'](_0x3e3360))_0x76f948['is']('element','footnotesDefinitions')&&_0x494771['push'](_0x76f948);for(const _0x379ebd of _0x494771)_0x4ddbed['remove'](_0x379ebd);}(_0x41737f,_0x14e328['content']),!_0xc6747e)return;const {selection:_0x21cba6}=_0x2f4747['document'],_0x5b4d9a=_0x21cba6['getFirstRange']()['root'];_0x3cbdf8&&!_0x57b46d||(_0x3cbdf8=c(_0x41737f,_0x14e328['content']),_0x3cbdf8||=_0x144901['_insertEmptyFootnotesDefinitionsContainer'](_0x41737f,_0x5b4d9a));const _0x1909d9=Array['from'](_0x21cba6['getRanges']())['flatMap'](l),_0x295721=function(_0x5cca31,_0xa3e72,_0x47ff83){const _0x5b9a77=Object['create'](null);for(const {item:_0x25927e}of _0x5cca31['createRangeIn'](_0xa3e72))if(_0x25927e['is']('element','footnoteRef')){const _0x25662f=_0x25927e['getAttribute']('footnoteId');if(!_0x47ff83(_0x25662f))continue;_0x5b9a77[_0x25662f]||(_0x5b9a77[_0x25662f]=_0x8553f0()),_0x5cca31['setAttribute']('footnoteId',_0x5b9a77[_0x25662f],_0x25927e);}return _0x5b9a77;}(_0x41737f,_0x14e328['content'],_0x23bc5a=>{if(!_0x12740c)return!0x0;return!!_0x144901['getFootnote'](_0x23bc5a)&&!_0x1909d9['includes'](_0x23bc5a);});for(const [_0x566eea,_0x27302d]of Object['entries'](_0xc6747e)){const _0x1f0a62=_0x295721[_0x566eea]||_0x566eea;let _0x15416b;if('string'!=typeof _0x27302d)_0x15416b=_0x27302d,_0x1f0a62!==_0x566eea&&_0x41737f['setAttribute']('footnoteId',_0x1f0a62,_0x15416b);else{_0x15416b=_0x41737f['createElement']('footnoteDefinition',{'footnoteId':_0x1f0a62});const _0x37d4ae=_0x4b46c5['data']['htmlProcessor']['toView'](_0x27302d);let _0x383bf8;if(_0x328fa4)_0x383bf8=_0x4b46c5['data']['toModel'](_0x37d4ae,_0x15416b);else{_0x383bf8=_0x41737f['createElement']('footnoteInlineContent');const _0x1bdd2a=_0x4b46c5['data']['toModel'](_0x37d4ae,_0x383bf8);_0x41737f['insert'](_0x1bdd2a,_0x383bf8);}_0x41737f['append'](_0x383bf8,_0x15416b);}_0x41737f['insert'](_0x15416b,_0x3cbdf8,'end');}_0xc6747e=null;});});}}function c(_0x46e954,_0x2569c0){for(const {item:_0x1cc92d}of _0x46e954['createRangeIn'](_0x2569c0))if(_0x1cc92d['is']('element','footnotesDefinitions'))return _0x1cc92d;return null;}function l(_0x34fb03){const _0x845785=new Set();for(const {item:_0x3f9fcf}of _0x34fb03)_0x3f9fcf['is']('element','footnoteRef')&&_0x845785['add'](_0x3f9fcf['getAttribute']('footnoteId'));return Array['from'](_0x845785);}class i extends _0x33f338{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x21f03a}=this,{componentFactory:_0x3ffe92}=_0x21f03a['ui'];_0x3ffe92['add']('insertFootnote',E(_0x21f03a,_0x205b9d)),_0x3ffe92['add']('menuBar:insertFootnote',E(_0x21f03a,_0xa176a3)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5a85b2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f3bc3;for(const _0x49c6aa in _0x5a85b2){const _0x38873d=_0x49c6aa,_0x4de495=_0x5a85b2[_0x38873d];if('footnotesLicenseKeyValid'==_0x4de495||'footnotesLicenseKeyInvalid'==_0x4de495||'footnotesLicenseKeyExpired'==_0x4de495||'footnotesLicenseKeyDomainLimit'==_0x4de495||'footnotesLicenseKeyNotAllowed'==_0x4de495||'footnotesLicenseKeyEvaluationLimit'==_0x4de495||'footnotesLicenseKeyTrialLimit'==_0x4de495||'footnotesLicenseKeyUsageLimit'==_0x4de495){delete _0x5a85b2[_0x38873d],_0x1f3bc3=_0x4de495,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x1f3bc3&&_0x5a85b2['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x1f3bc3&&_0x5a85b2['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x1f3bc3&&_0x5a85b2['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x1f3bc3&&_0x5a85b2['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x1f3bc3&&_0x5a85b2['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x1f3bc3&&_0x5a85b2['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x1f3bc3&&_0x5a85b2['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x15ff6b,_0x3879a4){const _0x264924=_0x15ff6b['commands']['get']('insertFootnote');return _0x8fe7a8=>{const {t:t}=_0x8fe7a8,_0xde69c5=new _0x3879a4(_0x8fe7a8),_0xab8461=_0xde69c5 instanceof _0xa176a3;return _0xde69c5['bind']('isEnabled')['to'](_0x264924,'isEnabled'),_0xde69c5['set']({'label':t(_0xab8461?'Footnote':'Insert\x20footnote'),'icon':_0x317f87,'tooltip':!0x0}),_0xde69c5['on']('execute',()=>{_0x264924['execute'](),_0x15ff6b['editing']['view']['focus']();}),_0xde69c5;};}class lt extends _0x33f338{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 _0x206b50{['refresh'](){const {editor:_0x4be354}=this,_0x209759=_0x4be354['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x209759,this['value']=_0x209759?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x5ddba9}){const {editor:_0x455dcf}=this,_0x2af37c=_0x455dcf['plugins']['get'](f),_0x102903=_0x2af37c['getFootnotesDefinitionsObjectElement']();_0x102903&&W['includes'](_0x5ddba9)&&_0x455dcf['model']['change'](_0x5dcb48=>{_0x5dcb48['setAttribute']('footnotesListStyle',_0x5ddba9,_0x102903),_0x2af37c['_updateFootnotesCounters'](_0x5dcb48);});}}class C extends _0x206b50{['refresh'](){const {editor:_0x5546f6}=this,_0x904745=_0x5546f6['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x904745,this['value']=_0x904745?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x494ad2}){const {editor:_0x1188d4}=this,_0x56c7a2=_0x1188d4['plugins']['get'](f),_0x4a91b8=_0x56c7a2['getFootnotesDefinitionsObjectElement']();_0x4a91b8&&Number['isInteger'](_0x494ad2)&&_0x1188d4['model']['change'](_0x68d51c=>{_0x68d51c['setAttribute']('footnotesListStart',_0x494ad2,_0x4a91b8),_0x56c7a2['_updateFootnotesCounters'](_0x68d51c);});}}class P extends _0x33f338{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5c6213}=this;_0x5c6213['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x5c6213['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x5c6213['commands']['add']('footnotesStyle',new S(_0x5c6213)),_0x5c6213['commands']['add']('footnotesStart',new C(_0x5c6213)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x3efbbe}=this,{schema:_0x16009d}=_0x3efbbe['model'];_0x16009d['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x48a778}=this,{conversion:_0x145783,model:_0xc545c0}=_0x48a778,{schema:_0x5030bf}=_0xc545c0;_0x145783['for']('upcast')['add'](_0x3c1a7b=>{_0x3c1a7b['on']('element:ol',(_0x9a0ad3,_0x74a2cb,_0x3cbf59)=>{const _0x2ddda4=_0x74a2cb['viewItem'],_0x3d9615=_0x74a2cb['modelCursor']?.['parent'];_0x2ddda4['hasClass']('footnotes-list')&&_0x3d9615?.['is']('element','footnotesDefinitions')&&(function(_0x4ac5c2,_0x2463d1,_0x2e8138,_0x1b1381){if(!_0x1b1381['checkAttribute'](_0x2463d1,'footnotesListStart'))return;let _0x486f76=0x1;const _0x594e26=_0x2e8138['consumable']['consume'](_0x4ac5c2,{'attributes':'start'});if(_0x594e26){const _0x3290ff=Number['parseInt'](_0x4ac5c2['getAttribute']('start'),0xa);Number['isNaN'](_0x3290ff)||(_0x486f76=_0x3290ff);}!_0x594e26&&_0x2463d1['hasAttribute']('footnotesListStart')||_0x2e8138['writer']['setAttribute']('footnotesListStart',_0x486f76,_0x2463d1);}(_0x2ddda4,_0x3d9615,_0x3cbf59,_0x5030bf),function(_0x13f156,_0x316969,_0x26e700,_0x5332c0){if(!_0x5332c0['checkAttribute'](_0x316969,'footnotesListStyle'))return;let _0x1e35b3='decimal',_0x5e5703=!0x1;if(_0x26e700['consumable']['consume'](_0x13f156,{'attributes':'type'})){const _0x40446f={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x13f156['getAttribute']('type')];_0x40446f&&(_0x1e35b3=_0x40446f),_0x5e5703=!0x0;}_0x26e700['consumable']['consume'](_0x13f156,{'styles':'list-style-type'})&&(_0x1e35b3=function(_0x17de4c){switch(_0x17de4c){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x17de4c;}}(_0x13f156['getStyle']('list-style-type')),_0x5e5703=!0x0),!_0x5e5703&&_0x316969['hasAttribute']('footnotesListStyle')||_0x26e700['writer']['setAttribute']('footnotesListStyle',_0x1e35b3,_0x316969);}(_0x2ddda4,_0x3d9615,_0x3cbf59,_0x5030bf));});}),_0x145783['for']('downcast')['add'](_0x32e13d=>{_0x32e13d['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x3497c3,_0x2b8fb9,_0x2c2bdb)=>{if(!_0x2c2bdb['consumable']['consume'](_0x2b8fb9['item'],_0x3497c3['name']))return;const _0x442510=M(_0x2b8fb9['item'],_0x2c2bdb['mapper']),{attributeNewValue:_0xb65d4c}=_0x2b8fb9;null==_0xb65d4c||0x1===_0xb65d4c?_0x2c2bdb['writer']['removeAttribute']('start',_0x442510):_0x2c2bdb['writer']['setAttribute']('start',String(_0xb65d4c),_0x442510);}),_0x32e13d['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x29c5c1,_0x4d8e4a,_0x3ae681)=>{if(!_0x3ae681['consumable']['consume'](_0x4d8e4a['item'],_0x29c5c1['name']))return;const _0x3b5239=M(_0x4d8e4a['item'],_0x3ae681['mapper']),{attributeNewValue:_0x36ddc1}=_0x4d8e4a;_0x36ddc1&&'decimal'!==_0x36ddc1?_0x3ae681['writer']['setStyle']('list-style-type',_0x36ddc1,_0x3b5239):_0x3ae681['writer']['removeStyle']('list-style-type',_0x3b5239);});});}['_definePostfixer'](){const {editor:_0x3b0bca}=this,{model:_0x46576e}=_0x3b0bca,_0x32166e=_0x3b0bca['plugins']['get'](f),_0x364f7e=this['_getDefaultListStyle'](),_0x1e3eb3=this['_getDefaultStartIndex']();_0x46576e['document']['registerPostFixer'](_0x17e24a=>{const _0x5588cd=_0x46576e['document']['differ']['getChanges']();let _0x24c523=!0x1;for(const _0x58e939 of _0x5588cd){if('insert'!==_0x58e939['type']||'$text'===_0x58e939['name'])continue;const _0x5168ae=_0x46576e['createRangeOn'](_0x58e939['position']['nodeAfter']);for(const _0x2154c4 of _0x5168ae['getItems']())_0x2154c4['is']('element','footnotesDefinitions')&&(!_0x2154c4['hasAttribute']('footnotesListStart')&&_0x46576e['schema']['checkAttribute'](_0x2154c4,'footnotesListStart')&&(_0x17e24a['setAttribute']('footnotesListStart',_0x1e3eb3,_0x2154c4),_0x24c523=!0x0),!_0x2154c4['hasAttribute']('footnotesListStyle')&&_0x46576e['schema']['checkAttribute'](_0x2154c4,'footnotesListStyle')&&(_0x17e24a['setAttribute']('footnotesListStyle',_0x364f7e,_0x2154c4),_0x24c523=!0x0));}return _0x24c523&&_0x32166e['_updateFootnotesCounters'](_0x17e24a),_0x24c523;});}['_defineFormatter'](){const {editor:_0x89fe38}=this;_0x89fe38['plugins']['get'](f)['setFootnoteFormatter'](_0x1f68bb=>this['_formatFootnoteListValue'](_0x1f68bb));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x2bc5a1,value:_0x33930b,digits:_0x489e66}){const _0x5acaba=_0x2bc5a1['getAttribute']('footnotesListStyle'),_0x224ee0=_0x2bc5a1['getAttribute']('footnotesListStart'),_0x54b8db=Math['floor'](_0x33930b)+(_0x224ee0??0x1)-0x1;switch(_0x5acaba){case'decimal-leading-zero':return function(_0x5344b4,_0x1f0b87){return String(_0x5344b4)['padStart'](_0x1f0b87,'0');}(_0x54b8db,Math['max'](0x2,_0x489e66));case'lower-alpha':case'lower-latin':return N(_0x54b8db,!0x1);case'upper-alpha':case'upper-latin':return N(_0x54b8db,!0x0);case'lower-roman':return X(_0x54b8db,!0x1);case'upper-roman':return X(_0x54b8db,!0x0);default:return String(_0x54b8db);}}}function M(_0x283a00,_0x2fcea0){const _0x3b50ee=_0x2fcea0['toViewElement'](_0x283a00);return Array['from'](_0x3b50ee['getChildren']())['find'](_0x3dbec1=>_0x3dbec1['is']('element','ol')&&_0x3dbec1['hasClass']('footnotes-list'));}function N(_0x3447a4,_0x2ce152){let _0x188acf='',_0x3e9051=_0x3447a4;for(;_0x3e9051>0x0;){const _0x5793ca=(_0x3e9051-0x1)%0x1a;_0x188acf=String['fromCharCode'](0x61+_0x5793ca)+_0x188acf,_0x3e9051=Math['floor']((_0x3e9051-0x1)/0x1a);}return _0x2ce152?_0x188acf['toUpperCase']():_0x188acf;}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(_0x15424c,_0x6f091d){let _0x167625='',_0x146dbf=_0x15424c;for(const {value:_0x146a22,numeral:_0x3d4849}of V)for(;_0x146dbf>=_0x146a22;)_0x167625+=_0x3d4849,_0x146dbf-=_0x146a22;return _0x6f091d?_0x167625:_0x167625['toLowerCase']();}class $ extends _0x3cfec0{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x1490d9();['focusCycler'];constructor(_0x318184,{styleButtonViews:_0x8f492a,styleGridAriaLabel:_0x55f8ce}){super(_0x318184),(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'](_0x8f492a,_0x55f8ce),[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 _0x49aaf1 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x49aaf1['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 _0x23db71=_0x388953=>_0x388953['stopPropagation']();this['keystrokes']['set']('arrowright',_0x23db71),this['keystrokes']['set']('arrowleft',_0x23db71),this['keystrokes']['set']('arrowup',_0x23db71),this['keystrokes']['set']('arrowdown',_0x23db71);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3c3d29,_0x186946){const _0x38b318=new _0x3cfec0(this['locale']);return _0x38b318['children']=_0x38b318['createCollection'](),_0x38b318['children']['addMany'](_0x3c3d29),_0x38b318['setTemplate']({'tag':'div','attributes':{'aria-label':_0x186946,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x38b318['children']}),_0x38b318['children']['delegate']('execute')['to'](this),_0x38b318['focus']=function(){for(const _0x446fd2 of this['children'])if(_0x446fd2 instanceof _0x205b9d&&_0x446fd2['isOn'])return void _0x446fd2['focus']();this['children']['first']['focus']();},_0x38b318['focusTracker']=new rt(),_0x38b318['keystrokes']=new nt(),_0x38b318['render'](),_0x38b318['keystrokes']['listenTo'](_0x38b318['element']),this['children']['add'](_0x38b318),_0x38b318;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x438a32=this['_createStartIndexPropertyView'](),_0x528b7c=[_0x438a32],_0x2fab58=new it(this['locale'],_0x528b7c);return _0x2fab58['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x2fab58['buttonView']['bind']('isEnabled')['toMany'](_0x528b7c,'isEnabled',(..._0x27c6bc)=>_0x27c6bc['some'](_0x3ed9c5=>_0x3ed9c5)),_0x2fab58['buttonView']['on']('change:isEnabled',(_0x14ed5c,_0x11b43f,_0x502cea)=>{_0x502cea||(_0x2fab58['isCollapsed']=!0x0);}),this['children']['add'](_0x2fab58),[_0x438a32,_0x2fab58];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2c938d=new et(this['locale'],ot);return _0x2c938d['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2c938d['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2c938d['fieldView']['on']('input',()=>{const _0x4b0f94=_0x2c938d['fieldView']['element'],_0x2d280d=_0x4b0f94['valueAsNumber'];Number['isNaN'](_0x2d280d)?_0x2c938d['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x4b0f94['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x2d280d}):_0x2c938d['errorText']=t(_0x2d280d<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2c938d;}}class j extends _0x33f338{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x5cd06c,_0x298294];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x58fe4d}=this,{componentFactory:_0x335928}=_0x58fe4d['ui'];_0x58fe4d['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x335928['add']('footnotesStyle',function(_0x2e4424){return _0xf7a532=>{const {t:t}=_0xf7a532,_0xbbfc3d=_0x2e4424['commands']['get']('footnotesStyle'),_0x5c3a55=_0x945a55(_0xf7a532),{buttonView:_0x4ec479}=_0x5c3a55;return _0x5c3a55['class']='ck-footnotes-styles-dropdown',_0x5c3a55['bind']('isEnabled')['to'](_0xbbfc3d,'isEnabled'),_0x4ec479['set']({'label':t('Footnotes\x20style'),'icon':_0x317f87,'tooltip':!0x0}),_0x5c3a55['once']('change:isOpen',()=>{const _0x3a2417=function({editor:_0x262616,dropdownView:_0x4f705b}){const {t:t}=_0x262616['locale'],_0x41d877=t('Footnotes\x20definitions\x20styles'),_0x24a422=function(_0x40d011){const t=_0x40d011['locale']['t'],_0x3098be=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x71874c},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x17fdd6},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x19d412},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x3d9b37},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x108238},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x466849}];return _0x3098be['map'](function(_0x8d5de2){const _0x198ef3=_0x8d5de2['locale'];return({label:_0x20d250,icon:_0x530e7d,tooltip:_0xcf2fd9,style:_0x221662})=>{const _0x1dd4e8=_0x8d5de2['commands']['get']('footnotesStyle'),_0x325e17=new _0x205b9d(_0x198ef3);return _0x325e17['set']({'label':_0x20d250,'icon':_0x530e7d,'tooltip':_0xcf2fd9}),_0x325e17['bind']('isOn')['to'](_0x1dd4e8,'value',_0x10fad7=>_0x10fad7===_0x221662),_0x325e17['bind']('isEnabled')['to'](_0x1dd4e8,'isEnabled'),_0x325e17['on']('execute',()=>{_0x8d5de2['execute']('footnotesStyle',{'value':_0x221662}),_0x8d5de2['editing']['view']['focus']();}),_0x325e17;};}(_0x40d011));}(_0x262616),_0x30f3ba=new $(_0x262616['locale'],{'styleGridAriaLabel':_0x41d877,'styleButtonViews':_0x24a422}),_0x5eca78=_0x262616['commands']['get']('footnotesStart');return _0x30f3ba['startIndexFieldView']['bind']('isEnabled')['to'](_0x5eca78),_0x30f3ba['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x5eca78),_0x30f3ba['on']('footnotesListStart',(_0x352aa0,_0x243874)=>{_0x262616['execute']('footnotesStart',{'value':_0x243874['startIndex']});}),_0x30f3ba['delegate']('execute')['to'](_0x4f705b),_0x30f3ba;}({'editor':_0x2e4424,'dropdownView':_0x5c3a55});_0x5c3a55['panelView']['children']['add'](_0x3a2417);}),_0x5c3a55;};}(_0x58fe4d));}['afterInit'](){const {editor:_0x1cde39}=this,{t:t}=_0x1cde39['locale'],_0x36890c=_0x1cde39['plugins']['get'](_0x298294),{defaultPositions:_0x3818f8}=_0x4a808e;_0x36890c['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x1cde39['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x519dae=>{let _0x1a62ff=_0x519dae['getFirstPosition']()?.['parent'];return _0x1a62ff?.['is']('$text')&&(_0x1a62ff=_0x1a62ff['parent']),_0x1a62ff?.['is']('element')?_0x1a62ff['findAncestor'](H):null;},'positions':[_0x3818f8['southArrowNorth'],_0x3818f8['southArrowNorthMiddleWest'],_0x3818f8['southArrowNorthMiddleEast'],_0x3818f8['southArrowNorthWest'],_0x3818f8['southArrowNorthEast'],_0x3818f8['northArrowSouth'],_0x3818f8['northArrowSouthMiddleWest'],_0x3818f8['northArrowSouthMiddleEast'],_0x3818f8['northArrowSouthWest'],_0x3818f8['northArrowSouthEast'],_0x3818f8['viewportStickyNorth']]});}}class ft extends _0x33f338{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,h as InsertFootnoteCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-footnotes",
3
- "version": "0.0.0-nightly-20251220.0",
3
+ "version": "0.0.0-nightly-20251221.0",
4
4
  "description": "The footnotes feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -23,14 +23,14 @@
23
23
  "type": "module",
24
24
  "main": "src/index.js",
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251220.0",
27
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251220.0",
28
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251220.0",
29
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251220.0",
30
- "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251220.0",
31
- "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251220.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251220.0",
33
- "ckeditor5": "0.0.0-nightly-20251220.0"
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251221.0",
27
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251221.0",
28
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251221.0",
29
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251221.0",
30
+ "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251221.0",
31
+ "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251221.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251221.0",
33
+ "ckeditor5": "0.0.0-nightly-20251221.0"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (http://cksource.com/)",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x15b9cf=_0x21b3;(function(_0x34880e,_0x38ff06){const _0x4b7bb5=_0x21b3,_0x1e52f3=_0x34880e();while(!![]){try{const _0x1acf1d=-parseInt(_0x4b7bb5(0x12e))/0x1*(-parseInt(_0x4b7bb5(0x131))/0x2)+-parseInt(_0x4b7bb5(0x11a))/0x3*(parseInt(_0x4b7bb5(0x134))/0x4)+-parseInt(_0x4b7bb5(0x112))/0x5+-parseInt(_0x4b7bb5(0x130))/0x6+parseInt(_0x4b7bb5(0x12a))/0x7+parseInt(_0x4b7bb5(0x12b))/0x8*(-parseInt(_0x4b7bb5(0x11f))/0x9)+parseInt(_0x4b7bb5(0x128))/0xa*(parseInt(_0x4b7bb5(0x113))/0xb);if(_0x1acf1d===_0x38ff06)break;else _0x1e52f3['push'](_0x1e52f3['shift']());}catch(_0x3d4c65){_0x1e52f3['push'](_0x1e52f3['shift']());}}}(_0x48ec,0xeaeb0));import{logWarning as _0x47472c,uid as _0x5ecf8c}from'ckeditor5/src/utils.js';import{Command as _0x193a10}from'ckeditor5/src/core.js';function _0x48ec(){const _0x3a9f27=['change','7263585ObxJRR','2871PxVvSC','getItems','footnoteId','_getPositionToInsertFootnote','selection','editor','createElement','1119522TatFJt','FootnotesEditing','execute','length','isObject','2762469VhMoFE','getFirstRange','checkChild','refresh','insert-footnote-command-executed-with-invalid-id','insertObject','plugins','end','footnoteRef','116140buYLxW','_moveSelectionToFootnoteDefinition','754383FjRfDd','8WtcfgK','isEnabled','isBlock','773417eaktsg','test','2665260YjOJGr','2SolYlr','get','model','8EIpCSr','document','string'];_0x48ec=function(){return _0x3a9f27;};return _0x48ec();}function _0x21b3(_0x50e1c4,_0x397114){const _0x48ec1e=_0x48ec();return _0x21b3=function(_0x21b397,_0x39aa62){_0x21b397=_0x21b397-0x10f;let _0x2f67e0=_0x48ec1e[_0x21b397];return _0x2f67e0;},_0x21b3(_0x50e1c4,_0x397114);}export class InsertFootnoteCommand extends _0x193a10{[_0x15b9cf(0x122)](){const _0x1e6129=_0x15b9cf,_0x26de3a=this[_0x1e6129(0x118)][_0x1e6129(0x133)][_0x1e6129(0x10f)][_0x1e6129(0x117)],_0x228f19=this[_0x1e6129(0x116)](_0x26de3a);this[_0x1e6129(0x12c)]=!!_0x228f19;}[_0x15b9cf(0x11c)](_0x11ca51){const _0x298919=_0x15b9cf,{editor:_0x46641b}=this,{model:_0x3eaa5a}=_0x46641b,{selection:_0xb9ac2c}=_0x3eaa5a[_0x298919(0x10f)],_0x5cab68=this[_0x298919(0x116)](_0xb9ac2c);if(!_0x5cab68)return;const _0x1df527=_0x46641b[_0x298919(0x125)][_0x298919(0x132)](_0x298919(0x11b)),_0x74f19c=_0x11ca51?.[_0x298919(0x115)]??_0x5ecf8c();!function(_0x4ef8ce){const _0x3eb16c=_0x298919;return _0x3eb16c(0x110)==typeof _0x4ef8ce&&_0x4ef8ce[_0x3eb16c(0x11d)]>0x0&&!/\s/[_0x3eb16c(0x12f)](_0x4ef8ce)&&!/^\d/[_0x3eb16c(0x12f)](_0x4ef8ce);}(_0x74f19c)?_0x47472c(_0x298919(0x123)):(_0x3eaa5a[_0x298919(0x111)](_0x2d0e51=>{const _0x12541b=_0x298919,_0x28422b=_0x2d0e51[_0x12541b(0x119)](_0x12541b(0x127),{'footnoteId':_0x74f19c});_0x3eaa5a[_0x12541b(0x124)](_0x28422b,_0x5cab68,null);}),_0x1df527[_0x298919(0x129)](_0x74f19c));}[_0x15b9cf(0x116)](_0x477152){const _0x1e7625=_0x15b9cf,{model:_0xc63963}=this[_0x1e7625(0x118)],{schema:_0x20c918}=_0xc63963,_0x5df0d2=_0x477152[_0x1e7625(0x120)]();for(const _0x396845 of _0x5df0d2[_0x1e7625(0x114)]())if(_0x20c918[_0x1e7625(0x12d)](_0x396845)||_0x20c918[_0x1e7625(0x11e)](_0x396845))return null;const _0x470353=_0x5df0d2[_0x1e7625(0x126)];return _0x20c918[_0x1e7625(0x121)](_0x470353,_0x1e7625(0x127))?_0x470353:null;}}
23
+ const _0x3c642c=_0x2d67;(function(_0x434280,_0x4c25dc){const _0xdd9a6b=_0x2d67,_0x556118=_0x434280();while(!![]){try{const _0x2dca01=parseInt(_0xdd9a6b(0xe4))/0x1+-parseInt(_0xdd9a6b(0xd9))/0x2+-parseInt(_0xdd9a6b(0xdc))/0x3+parseInt(_0xdd9a6b(0xe2))/0x4+parseInt(_0xdd9a6b(0xe6))/0x5+parseInt(_0xdd9a6b(0xd1))/0x6+-parseInt(_0xdd9a6b(0xf2))/0x7;if(_0x2dca01===_0x4c25dc)break;else _0x556118['push'](_0x556118['shift']());}catch(_0x5e48bf){_0x556118['push'](_0x556118['shift']());}}}(_0x5d67,0xb8dfc));import{logWarning as _0x1e5315,uid as _0x230291}from'ckeditor5/src/utils.js';function _0x2d67(_0x14c1f5,_0x5efd97){const _0x5d6736=_0x5d67();return _0x2d67=function(_0x2d67b8,_0x8d6825){_0x2d67b8=_0x2d67b8-0xd1;let _0x32c198=_0x5d6736[_0x2d67b8];return _0x32c198;},_0x2d67(_0x14c1f5,_0x5efd97);}import{Command as _0x3f1a6d}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0x3f1a6d{[_0x3c642c(0xdb)](){const _0x1042de=_0x3c642c,_0xaf5a78=this[_0x1042de(0xd4)][_0x1042de(0xdf)][_0x1042de(0xd7)][_0x1042de(0xe0)],_0x5a9585=this[_0x1042de(0xea)](_0xaf5a78);this[_0x1042de(0xef)]=!!_0x5a9585;}[_0x3c642c(0xd6)](_0x176f39){const _0x3e5b68=_0x3c642c,{editor:_0x5570aa}=this,{model:_0x397756}=_0x5570aa,{selection:_0x31e4a6}=_0x397756[_0x3e5b68(0xd7)],_0x1d7443=this[_0x3e5b68(0xea)](_0x31e4a6);if(!_0x1d7443)return;const _0xf240f4=_0x5570aa[_0x3e5b68(0xee)][_0x3e5b68(0xe8)](_0x3e5b68(0xec)),_0x811efa=_0x176f39?.[_0x3e5b68(0xd5)]??_0x230291();!function(_0x4e7e14){const _0x48ef23=_0x3e5b68;return _0x48ef23(0xdd)==typeof _0x4e7e14&&_0x4e7e14[_0x48ef23(0xe5)]>0x0&&!/\s/[_0x48ef23(0xd8)](_0x4e7e14)&&!/^\d/[_0x48ef23(0xd8)](_0x4e7e14);}(_0x811efa)?_0x1e5315(_0x3e5b68(0xe7)):(_0x397756[_0x3e5b68(0xda)](_0x4c77c1=>{const _0x8d1d59=_0x3e5b68,_0x4e7497=_0x4c77c1[_0x8d1d59(0xd3)](_0x8d1d59(0xe9),{'footnoteId':_0x811efa});_0x397756[_0x8d1d59(0xf0)](_0x4e7497,_0x1d7443,null);}),_0xf240f4[_0x3e5b68(0xeb)](_0x811efa));}[_0x3c642c(0xea)](_0xe96827){const _0x23cf5e=_0x3c642c,{model:_0x48e4fe}=this[_0x23cf5e(0xd4)],{schema:_0x4e8bd7}=_0x48e4fe,_0x23e2f2=_0xe96827[_0x23cf5e(0xd2)]();for(const _0x50e203 of _0x23e2f2[_0x23cf5e(0xe3)]())if(_0x4e8bd7[_0x23cf5e(0xf1)](_0x50e203)||_0x4e8bd7[_0x23cf5e(0xde)](_0x50e203))return null;const _0x34ed69=_0x23e2f2[_0x23cf5e(0xe1)];return _0x4e8bd7[_0x23cf5e(0xed)](_0x34ed69,_0x23cf5e(0xe9))?_0x34ed69:null;}}function _0x5d67(){const _0xed6db6=['plugins','isEnabled','insertObject','isBlock','5035464mDoYjj','6935850DlmJEl','getFirstRange','createElement','editor','footnoteId','execute','document','test','2637204NvpGzy','change','refresh','2336133bWKwvW','string','isObject','model','selection','end','3931120UwEXxl','getItems','853534DmWzgK','length','2908100KEEJQG','insert-footnote-command-executed-with-invalid-id','get','footnoteRef','_getPositionToInsertFootnote','_moveSelectionToFootnoteDefinition','FootnotesEditing','checkChild'];_0x5d67=function(){return _0xed6db6;};return _0x5d67();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x303f36}from'ckeditor5/src/core.js';import{isWidget as _0x1184ca,toWidget as _0x4f7e7b,toWidgetEditable as _0x49512e}from'ckeditor5/src/widget.js';import{uid as _0x481778}from'ckeditor5/src/utils.js';import{PointerObserver as _0x5edbc1,ClickObserver as _0x5bf242}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x1102d7}from'./footnotestracker.js';import{InsertFootnoteCommand as _0xdb79db}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x303f36{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x1102d7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x13b209}=this;_0x13b209['config']['define']('footnotes.multiBlock',!0x0),_0x13b209['commands']['add']('insertFootnote',new _0xdb79db(_0x13b209)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1db8f8){const _0x5e1575=_0x134eaa([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]),_0x5035f7=0x47a28506,_0x19f295=0x47a5f976^_0x5035f7,_0x28cd50=window[_0x134eaa([0x44,0x61,0x74,0x65])][_0x134eaa([0x6e,0x6f,0x77])](),_0x25f1d9=_0x1db8f8[_0x134eaa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4649c1=new window[(_0x134eaa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43447c=>{_0x25f1d9[_0x134eaa([0x6f,0x6e,0x63,0x65])](_0x134eaa([0x72,0x65,0x61,0x64,0x79]),_0x43447c);}),_0x3eca69={[_0x134eaa([0x6b,0x74,0x79])]:_0x134eaa([0x45,0x43]),[_0x134eaa([0x75,0x73,0x65])]:_0x134eaa([0x73,0x69,0x67]),[_0x134eaa([0x63,0x72,0x76])]:_0x134eaa([0x50,0x2d,0x32,0x35,0x36]),[_0x134eaa([0x78])]:_0x134eaa([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]),[_0x134eaa([0x79])]:_0x134eaa([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]),[_0x134eaa([0x61,0x6c,0x67])]:_0x134eaa([0x45,0x53,0x32,0x35,0x36])},_0x3a4e82=_0x25f1d9[_0x134eaa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x134eaa([0x67,0x65,0x74])](_0x134eaa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2eca77(){let _0x2ea66b,_0x575bf1=null,_0x1c700f=null;try{if(_0x3a4e82==_0x134eaa([0x47,0x50,0x4c]))return _0x134eaa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2ea66b=_0x338e9d(),!_0x2ea66b)return _0x134eaa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2ea66b[_0x134eaa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1c700f=_0x3fe7e1(_0x2ea66b[_0x134eaa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2ea66b[_0x134eaa([0x6a,0x74,0x69])])),await _0x35ff52()?_0x593d9f()?_0x231df2()?_0x134eaa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4fd64f()?(_0x2ea66b[_0x134eaa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x134eaa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x575bf1=_0x2f9b10(_0x134eaa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2ea66b[_0x134eaa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x134eaa([0x74,0x72,0x69,0x61,0x6c])&&(_0x575bf1=_0x2f9b10(_0x134eaa([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x126871()):_0x134eaa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x134eaa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x134eaa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x134eaa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x231df2(){const _0x109475=[_0x134eaa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x134eaa([0x74,0x72,0x69,0x61,0x6c])][_0x134eaa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ea66b[_0x134eaa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x28cd50/0x3e8:0xe10*_0x19f295;return _0x2ea66b[_0x134eaa([0x65,0x78,0x70])]<_0x109475;}function _0x593d9f(){const _0xe5014a=_0x2ea66b[_0x134eaa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xe5014a&&(!!_0xe5014a[_0x134eaa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x134eaa([0x2a]))||!!_0xe5014a[_0x134eaa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x134eaa([0x46,0x4f,0x4f])));}function _0x4fd64f(){const _0x5da2c8=_0x2ea66b[_0x134eaa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5da2c8||0x0==_0x5da2c8[_0x134eaa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x492ee5}=new URL(window[_0x134eaa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5da2c8[_0x134eaa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x492ee5))return!0x0;const _0x3085d7=_0x492ee5[_0x134eaa([0x73,0x70,0x6c,0x69,0x74])](_0x134eaa([0x2e]));return _0x5da2c8[_0x134eaa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5ce172=>_0x5ce172[_0x134eaa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x134eaa([0x2a])))[_0x134eaa([0x6d,0x61,0x70])](_0x229b28=>_0x229b28[_0x134eaa([0x73,0x70,0x6c,0x69,0x74])](_0x134eaa([0x2e])))[_0x134eaa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3cd54d=>_0x3cd54d[_0x134eaa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3085d7[_0x134eaa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x134eaa([0x6d,0x61,0x70])](_0x3e70c8=>Array(_0x3085d7[_0x134eaa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3e70c8[_0x134eaa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x134eaa([0x66,0x69,0x6c,0x6c])](_0x3e70c8[0x0]===_0x134eaa([0x2a])?_0x134eaa([0x2a]):'')[_0x134eaa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3e70c8))[_0x134eaa([0x73,0x6f,0x6d,0x65])](_0x5ce053=>_0x3085d7[_0x134eaa([0x65,0x76,0x65,0x72,0x79])]((_0x5e3c4d,_0x5c1e58)=>_0x5ce053[_0x5c1e58]===_0x5e3c4d||_0x5ce053[_0x5c1e58]===_0x134eaa([0x2a])));}function _0x126871(){return _0x575bf1&&_0x1c700f?new window[(_0x134eaa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x283a5e,_0x5e37fb)=>{_0x575bf1[_0x134eaa([0x74,0x68,0x65,0x6e])](_0x283a5e,_0x5e37fb),_0x1c700f[_0x134eaa([0x74,0x68,0x65,0x6e])](_0x199532=>{_0x199532!=_0x134eaa([0x56,0x61,0x6c,0x69,0x64])&&_0x283a5e(_0x199532);},_0x5e37fb);}):_0x575bf1||_0x1c700f||_0x134eaa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3fe7e1(_0x5b5e03,_0x386fac){return new window[(_0x134eaa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19665e=>{if(_0x5c72bc())return _0x19665e(_0x134eaa([0x56,0x61,0x6c,0x69,0x64]));_0x25f4f0(),_0x25f1d9[_0x134eaa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x134eaa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xae9ba=!0x1;const _0x1b6e16=_0x481778();function _0x10dec6(_0x472219){return!!_0x472219&&(typeof _0x472219===_0x134eaa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x472219===_0x134eaa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x472219[_0x134eaa([0x74,0x68,0x65,0x6e])]===_0x134eaa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x472219[_0x134eaa([0x63,0x61,0x74,0x63,0x68])]===_0x134eaa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x41d5ff(_0x200b80){_0x156cee(_0x200b80)[_0x134eaa([0x74,0x68,0x65,0x6e])](_0x160f65=>{if(!_0x160f65||_0x160f65[_0x134eaa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x134eaa([0x6f,0x6b]))return _0x134eaa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1390f6(_0x269a7f(_0x1b6e16+_0x386fac))!=_0x160f65[_0x134eaa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x134eaa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x134eaa([0x56,0x61,0x6c,0x69,0x64]);})[_0x134eaa([0x74,0x68,0x65,0x6e])](_0x2e5941=>(_0xae3252(),_0x2e5941),()=>{const _0x12bc21=_0x514279();return null==_0x12bc21?(_0xae3252(),_0x134eaa([0x56,0x61,0x6c,0x69,0x64])):_0x134eaa(_0x28cd50-_0x12bc21>(0x63ae0106^_0x5035f7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x134eaa([0x74,0x68,0x65,0x6e])](_0x19665e)[_0x134eaa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x19665e(_0x134eaa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d94b6=0x47946b86^_0x5035f7;function _0xae3252(){const _0x3a541c=_0x134eaa([0x6c,0x6c,0x63,0x74,0x2d])+_0x1390f6(_0x269a7f(_0x5b5e03)),_0x4a2df3=_0xdddf9b(_0x1390f6(window[_0x134eaa([0x4d,0x61,0x74,0x68])][_0x134eaa([0x63,0x65,0x69,0x6c])](_0x28cd50/_0x5d94b6)));window[_0x134eaa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x134eaa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a541c,_0x4a2df3);}function _0x514279(){const _0x5d875d=_0x134eaa([0x6c,0x6c,0x63,0x74,0x2d])+_0x1390f6(_0x269a7f(_0x5b5e03)),_0x16d71b=window[_0x134eaa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x134eaa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d875d);return _0x16d71b?window[_0x134eaa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdddf9b(_0x16d71b),0x10)*_0x5d94b6:null;}function _0x156cee(_0x24b55a){return new window[(_0x134eaa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52f6a1,_0x2cfffa)=>{_0x24b55a[_0x134eaa([0x74,0x68,0x65,0x6e])](_0x52f6a1,_0x2cfffa),window[_0x134eaa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2cfffa,0x47a351c6^_0x5035f7);});}}_0x25f1d9[_0x134eaa([0x6f,0x6e])](_0x134eaa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x578ce8,_0x229963)=>{if(_0x229963[0x0]!=_0x5b5e03)return _0x19665e(_0x134eaa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x229963[0x1]={..._0x229963[0x1],[_0x134eaa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b6e16};},{[_0x134eaa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x134eaa([0x68,0x69,0x67,0x68])}),_0x25f1d9[_0x134eaa([0x6f,0x6e])](_0x134eaa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5b67ce=>{_0x10dec6(_0x5b67ce[_0x134eaa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xae9ba=!0x0,_0x41d5ff(_0x5b67ce[_0x134eaa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x134eaa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x134eaa([0x6c,0x6f,0x77])}),_0x4649c1[_0x134eaa([0x74,0x68,0x65,0x6e])](()=>{_0xae9ba||_0x19665e(_0x134eaa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c72bc(){return _0x25f1d9[_0x134eaa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x134eaa([0x76,0x69,0x65,0x77])][_0x134eaa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x134eaa([0x61,0x75,0x74,0x6f]);}function _0x25f4f0(){_0x25f1d9[_0x134eaa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x134eaa([0x76,0x69,0x65,0x77])][_0x134eaa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x134eaa([0x61,0x75,0x74,0x6f]);}}function _0x2f9b10(_0x210da8){const _0x254bfc=[new window[(_0x134eaa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x262e60=>setTimeout(_0x262e60,0x47abbbca^_0x5035f7)),_0x4649c1[_0x134eaa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x134eaa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4aec98=>{let _0x2a9051=0x0;_0x25f1d9[_0x134eaa([0x6d,0x6f,0x64,0x65,0x6c])][_0x134eaa([0x6f,0x6e])](_0x134eaa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4418b3,_0x37175b)=>{_0x37175b[0x0][_0x134eaa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a9051++,_0x2a9051==(0x47a280ee^_0x5035f7)&&(_0x4aec98(),_0x4418b3[_0x134eaa([0x6f,0x66,0x66])]());});}))];return window[_0x134eaa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x134eaa([0x72,0x61,0x63,0x65])](_0x254bfc)[_0x134eaa([0x74,0x68,0x65,0x6e])](()=>_0x210da8);}async function _0x5e9931(){await _0x4649c1,_0x25f1d9[_0x134eaa([0x6d,0x6f,0x64,0x65,0x6c])][_0x134eaa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xb9b868,_0x25f1d9[_0x134eaa([0x6d,0x6f,0x64,0x65,0x6c])][_0x134eaa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xb9b868,_0x25f1d9[_0x134eaa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x134eaa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xec23ff(_0x21025e){const _0x19f870=_0x2aed91();_0x25f1d9[_0x19f870]=_0x134eaa([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x21025e,_0x21025e!=_0x134eaa([0x56,0x61,0x6c,0x69,0x64])&&_0x5e9931();}function _0x2aed91(){const _0x3ec5f2=window[_0x134eaa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x134eaa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x134eaa([0x6e,0x6f,0x77])]())[_0x134eaa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x134eaa([0x2e]),'');let _0x1e42c9=_0x134eaa([0x75]);for(let _0x492658=0x0;_0x492658<_0x3ec5f2[_0x134eaa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x492658+=0x2){let _0x46e031=window[_0x134eaa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ec5f2[_0x134eaa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x492658,_0x492658+0x2));_0x46e031>=_0x5e1575[_0x134eaa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x46e031-=_0x5e1575[_0x134eaa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e42c9+=_0x5e1575[_0x46e031];}return _0x1e42c9;}function _0x338e9d(){const _0x20ab9d=_0x3a4e82[_0x134eaa([0x73,0x70,0x6c,0x69,0x74])](_0x134eaa([0x2e]));if(0x3!=_0x20ab9d[_0x134eaa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3c1f32(_0x20ab9d[0x1]);function _0x3c1f32(_0x2b5eb9){const _0x5afe52=_0x32d3bc(_0x2b5eb9);return _0x5afe52&&_0x51107a()?_0x5afe52:null;function _0x51107a(){const _0x9ab3d=_0x5afe52[_0x134eaa([0x6a,0x74,0x69])],_0xadaa9e=window[_0x134eaa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9ab3d[_0x134eaa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9ab3d[_0x134eaa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x50fdd7={..._0x5afe52,[_0x134eaa([0x6a,0x74,0x69])]:_0x9ab3d[_0x134eaa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x9ab3d[_0x134eaa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x50fdd7[_0x134eaa([0x76,0x63])],_0x269a7f(_0x50fdd7)==_0xadaa9e;}}}async function _0x35ff52(){let _0x44df8c=!0x0;try{const _0x557dfc=_0x3a4e82[_0x134eaa([0x73,0x70,0x6c,0x69,0x74])](_0x134eaa([0x2e])),[_0x574145,_0xca1558,_0x5bce3f]=_0x557dfc;return _0x4837cf(_0x574145),await _0x3c85a9(_0x574145,_0xca1558,_0x5bce3f),_0x44df8c;}catch{return!0x1;}function _0x4837cf(_0x4c3744){const _0x265d1a=_0x32d3bc(_0x4c3744);_0x265d1a&&_0x265d1a[_0x134eaa([0x61,0x6c,0x67])]==_0x134eaa([0x45,0x53,0x32,0x35,0x36])||(_0x44df8c=!0x1);}async function _0x3c85a9(_0x3a30bf,_0x8a112a,_0x53414e){const _0x6bbc92=window[_0x134eaa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x134eaa([0x66,0x72,0x6f,0x6d])](_0x1be342(_0x53414e),_0x1214c6=>_0x1214c6[_0x134eaa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e4bdb=new window[(_0x134eaa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x134eaa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a30bf+_0x134eaa([0x2e])+_0x8a112a),_0x55f250=window[_0x134eaa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x134eaa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x55f250)return;const _0x164770=await _0x55f250[_0x134eaa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x134eaa([0x6a,0x77,0x6b]),_0x3eca69,{[_0x134eaa([0x6e,0x61,0x6d,0x65])]:_0x134eaa([0x45,0x43,0x44,0x53,0x41]),[_0x134eaa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x134eaa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x134eaa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x55f250[_0x134eaa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x134eaa([0x6e,0x61,0x6d,0x65])]:_0x134eaa([0x45,0x43,0x44,0x53,0x41]),[_0x134eaa([0x68,0x61,0x73,0x68])]:{[_0x134eaa([0x6e,0x61,0x6d,0x65])]:_0x134eaa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x164770,_0x6bbc92,_0x3e4bdb)||(_0x44df8c=!0x1);}}function _0x32d3bc(_0xb513ea){return _0xb513ea[_0x134eaa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x134eaa([0x65,0x79]))?JSON[_0x134eaa([0x70,0x61,0x72,0x73,0x65])](_0x1be342(_0xb513ea)):null;}function _0x1be342(_0x5a22db){return window[_0x134eaa([0x61,0x74,0x6f,0x62])](_0x5a22db[_0x134eaa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x134eaa([0x2b]))[_0x134eaa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x134eaa([0x2f])));}function _0x269a7f(_0x2611e6){let _0x56b0f6=0x1505;function _0x1cffe9(_0x48b56f){for(let _0x1cf485=0x0;_0x1cf485<_0x48b56f[_0x134eaa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cf485++){const _0x2c3870=_0x48b56f[_0x134eaa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1cf485);_0x56b0f6=(_0x56b0f6<<0x5)+_0x56b0f6+_0x2c3870,_0x56b0f6&=_0x56b0f6;}}function _0x432aeb(_0x13d7a8){Array[_0x134eaa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x13d7a8)?_0x13d7a8[_0x134eaa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x432aeb):_0x13d7a8&&typeof _0x13d7a8==_0x134eaa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x134eaa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x13d7a8)[_0x134eaa([0x73,0x6f,0x72,0x74])]()[_0x134eaa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x26e2e9,_0x60b9fd])=>{_0x1cffe9(_0x26e2e9),_0x432aeb(_0x60b9fd);}):_0x1cffe9(window[_0x134eaa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x13d7a8));}return _0x432aeb(_0x2611e6),_0x56b0f6>>>0x0;}function _0x1390f6(_0x58bcb5){return _0x58bcb5[_0x134eaa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x134eaa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x134eaa([0x30]));}function _0xdddf9b(_0x44458d){return _0x44458d[_0x134eaa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x134eaa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x134eaa([0x6a,0x6f,0x69,0x6e])]('');}function _0xb9b868(){}function _0x134eaa(_0x51ad1f){return _0x51ad1f['map'](_0x4a2bf4=>String['fromCharCode'](_0x4a2bf4))['join']('');}_0xec23ff(await _0x2eca77());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3c9b10){const {plugins:_0x3f8421,editing:_0x4dca9b,model:_0x3f066d}=this['editor'],_0xbc15a2=_0x3f8421['get'](_0x1102d7)['getFootnote'](_0x3c9b10);return!!_0xbc15a2&&(_0x3f066d['change'](_0x4660e6=>{_0x4660e6['setSelection'](_0x4660e6['createPositionAt'](_0xbc15a2['definition'],'end'));}),_0x4dca9b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2c129e){const {plugins:_0x5e2eb8,editing:_0x21c5ea,model:_0x2ccb65}=this['editor'],_0x267c70=_0x5e2eb8['get'](_0x1102d7)['getFootnote'](_0x2c129e);return!!_0x267c70&&(_0x2ccb65['change'](_0x5eea27=>{_0x5eea27['setSelection'](_0x267c70['reference'],'on');}),_0x21c5ea['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x24a25c}=this['editor']['model'],_0x693753=this['editor']['config']['get']('footnotes.multiBlock');_0x24a25c['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x24a25c['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x24a25c['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x693753?_0x24a25c['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x24a25c['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x24a25c['addChildCheck'](_0x5cbc5e=>{for(const _0x3f277b of _0x5cbc5e)if('footnoteDefinition'===_0x3f277b['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x37e51a}=this,{conversion:_0xb9de0c,editing:_0x1fadf0}=_0x37e51a,{t:t}=_0x37e51a['locale'];_0xb9de0c['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x55f637,{writer:_0x2ded9e,consumable:_0x39c72b})=>{const _0x99bb7a=_0x55f637['getChild'](0x0);if(!_0x99bb7a||!_0x99bb7a['is']('element','a'))return null;const _0x5c3899=_0x99bb7a['getAttribute']('href')||'';if(!_0x5c3899['startsWith']('#'))return null;const _0x515bef=_0x5c3899['replace'](/^#/,'');if(!_0x515bef)return null;_0x39c72b['consume'](_0x99bb7a,{'name':!0x0,'attributes':['href']});for(const {item:_0xebf8f2}of _0x1fadf0['view']['createRangeIn'](_0x99bb7a))_0xebf8f2['is']('$textProxy')?_0x39c72b['consume'](_0xebf8f2['textNode'],{'name':!0x0}):_0xebf8f2['is']('element')&&_0x39c72b['consume'](_0xebf8f2,{'name':!0x0});return _0x2ded9e['createElement']('footnoteRef',{'footnoteId':_0x515bef});}}),_0xb9de0c['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2bf9f7,{writer:_0xe51b2f})=>b(_0x2bf9f7,_0xe51b2f)}),_0xb9de0c['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x397c9e,{writer:_0x3f4caf})=>{const _0x174171=_0x397c9e['getAttribute']('footnoteCounter');return _0x4f7e7b(b(_0x397c9e,_0x3f4caf),_0x3f4caf,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x174171)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4c658c}=this,{t:t}=_0x4c658c['locale'],{conversion:_0x846f3a}=_0x4c658c;_0x846f3a['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x846f3a['for']('upcast')['add'](_0x74a668=>{_0x74a668['on']('element:ol',(_0x34bcd4,_0x1fb03c,_0x4edd66)=>{const _0x264862=_0x1fb03c['viewItem'];if(!_0x264862['hasClass']('footnotes-list')||!_0x1fb03c['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4edd66['consumable']['consume'](_0x264862,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x1ee4dd,modelCursor:_0x5c50e3}=_0x4edd66['convertChildren'](_0x1fb03c['viewItem'],_0x1fb03c['modelCursor']);_0x1fb03c['modelRange']=_0x1ee4dd,_0x1fb03c['modelCursor']=_0x5c50e3;}),_0x74a668['on']('element:hr',(_0x5c96ed,_0x3a47d8,_0x144a6f)=>{const _0x4ccf6e=_0x3a47d8['viewItem'];_0x4ccf6e['hasClass']('footnotes-divider')&&_0x3a47d8['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x144a6f['consumable']['consume'](_0x4ccf6e,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x846f3a['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5d0991,{writer:_0x66cc2b})=>D(_0x66cc2b)}),_0x846f3a['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x49ee03,{writer:_0x2ddb34})=>{const _0x87b006=D(_0x2ddb34,{'data-footnotes-list-label':t('Footnotes')}),_0x33ce96=_0x4f7e7b(_0x87b006,_0x2ddb34,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2ddb34['setCustomProperty']('footnotesDefinitions',!0x0,_0x33ce96),_0x33ce96;}});}['_defineDefinitionConverters'](){const {editor:_0x260f8f}=this,{conversion:_0x40e128,locale:_0x1342f9}=_0x260f8f,_0x1ba325=_0x260f8f['config']['get']('footnotes.multiBlock');_0x40e128['for']('upcast')['add'](_0x45183e=>{_0x45183e['on']('element:li',(_0x50ffc1,_0x59eb14,_0x1f9245)=>{const _0x28bd1c=_0x59eb14['viewItem'];if(!_0x28bd1c['hasClass']('footnote-definition')||!_0x28bd1c['getAttribute']('id'))return;const _0x58d3e5=_0x28bd1c['parent'];if(!_0x58d3e5['is']('element','ol')||!_0x58d3e5['hasClass']('footnotes-list'))return;if(!_0x1f9245['consumable']['test'](_0x28bd1c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x2d8103=_0x1f9245['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x28bd1c['getAttribute']('id')});if(!_0x1f9245['safeInsert'](_0x2d8103,_0x59eb14['modelCursor']))return;_0x1f9245['consumable']['consume'](_0x28bd1c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x7ad200=Array['from'](_0x28bd1c['getChildren']())['find'](_0x3807fb=>_0x3807fb['is']('element')&&_0x3807fb['hasClass']('footnote-content'));for(const _0x5a80d7 of _0x28bd1c['getChildren']())_0x5a80d7['is']('element')&&(_0x1f9245['consumable']['consume'](_0x5a80d7,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1f9245['consumable']['consume'](_0x5a80d7,{'name':!0x0,'classes':'footnote-content'}));if(_0x7ad200){if(_0x1ba325)_0x1f9245['convertChildren'](_0x7ad200,_0x2d8103);else{const _0x1d4a07=_0x1f9245['writer']['createElement']('footnoteInlineContent');_0x1f9245['writer']['insert'](_0x1d4a07,_0x2d8103),_0x1f9245['convertChildren'](_0x7ad200,_0x1d4a07);}}_0x1f9245['updateConversionResult'](_0x2d8103,_0x59eb14);});}),_0x40e128['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x56db9e,{writer:_0xde76a2})=>y(_0x56db9e,_0xde76a2,_0x1342f9,{'dataPipeline':!0x0})}),_0x40e128['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x59ece8,{writer:_0xa2cfbb})=>y(_0x59ece8,_0xa2cfbb,_0x1342f9)});}['_defineBogusParagraphConverters'](){const {editor:_0x959d72}=this,{conversion:_0xc3ef14}=_0x959d72;_0x959d72['config']['get']('footnotes.multiBlock')?(_0xc3ef14['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0xc3ef14['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x959d72['model']['document'],'change:data',()=>{!function(_0x4ff05c,_0x5db3cb){const _0x1f4554=_0x4ff05c['document']['differ'],_0x58718a=new Set();for(const _0x359c51 of _0x1f4554['getChanges']()){const _0x174cf4='attribute'==_0x359c51['type']?_0x359c51['range']['start']['parent']:_0x359c51['position']['parent'];_0x174cf4['is']('element','footnoteDefinition')&&_0x58718a['add'](_0x174cf4);}for(const _0xfb0038 of _0x58718a['values']()){const _0x2ab170=Array['from'](_0xfb0038['getChildren']())['filter'](_0x48f4bc=>v(_0x48f4bc,_0x5db3cb['mapper']));for(const _0x6da5a4 of _0x2ab170)_0x5db3cb['reconvertItem'](_0x6da5a4);}}(_0x959d72['model'],_0x959d72['editing']);})):(_0xc3ef14['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0xc3ef14['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3a1567,{writer:_0xf0667a})=>{const _0x5f29ac=_0xf0667a['createContainerElement']('span');return _0xf0667a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5f29ac),_0x5f29ac;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5cf823}=this,{editing:_0x16f3cb,t:t}=_0x5cf823,_0x485e0f=_0x5cf823['model']['document']['selection'];_0x5cf823['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x5cf823['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x16f3cb['view']['document'],'enter',(_0x427f25,_0x32d85f)=>{const _0x591065=function(_0x56127d){const _0x133319=_0x56127d['getSelectedElement']();if(_0x133319?.['is']('element','footnoteRef'))return _0x133319;return null;}(_0x485e0f);if(_0x591065){const _0x2478b6=_0x591065['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x2478b6),_0x32d85f['preventDefault'](),_0x427f25['stop']();}},{'context':_0x1184ca});}['_defineClickHandlers'](){const {editor:_0x3ee710}=this,{editing:_0x461640}=_0x3ee710;_0x3ee710['editing']['view']['addObserver'](_0x5edbc1),_0x3ee710['editing']['view']['addObserver'](_0x5bf242);let _0xc4aa44=!0x1;this['listenTo'](_0x461640['view']['document'],'pointerdown',(_0x98b898,_0x5b4cea)=>{const {target:_0x2f3de0}=_0x5b4cea,_0x298259=_0x461640['view']['document']['selection'];_0xc4aa44=!!(_0x2f3de0?.['is']('element','a')&&_0x2f3de0['parent']?.['is']('element','sup')&&_0x2f3de0['parent']['hasClass']('footnote'))&&_0x298259['getSelectedElement']()===_0x2f3de0['parent'];},{'priority':'high'}),this['listenTo'](_0x461640['view']['document'],'click',(_0x26fb5b,_0x49320f)=>{const {target:_0x505e8e}=_0x49320f;if(!_0x505e8e?.['is']('element','a'))return;if(_0x505e8e['parent']?.['is']('element','sup')&&_0x505e8e['parent']['hasClass']('footnote')&&!_0xc4aa44)return void _0x49320f['preventDefault']();let _0x1b5ea9=_0x505e8e['getAttribute']('href');if(!_0x1b5ea9?.['startsWith']('#'))return;_0x1b5ea9=_0x1b5ea9['slice'](0x1);let _0xf5a89b=!0x1;(_0x1b5ea9['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1b5ea9['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1b5ea9))&&(_0xf5a89b=!0x0),_0xf5a89b&&(_0x49320f['preventDefault'](),_0x26fb5b['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x1c64c3}={}){return(_0x2d5047,{writer:_0x144fee})=>{if(!g(_0x2d5047))return null;if(!_0x1c64c3)return _0x144fee['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x37508c=_0x144fee['createContainerElement']('p');return _0x144fee['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x37508c),_0x37508c;};}function g(_0x1c70d1){const {parent:_0x11c13f}=_0x1c70d1;if(!_0x11c13f?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x11c13f['childCount'])return!0x1;for(const _0x2d87fe of _0x1c70d1['getAttributeKeys']())if(!_0x2d87fe['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x2d87fe)return!0x1;return!0x0;}function v(_0x2fc770,_0x45eb68){if(!_0x2fc770['is']('element','paragraph'))return!0x1;const _0x16a6d6=_0x45eb68['toViewElement'](_0x2fc770);return!!_0x16a6d6&&g(_0x2fc770)!==_0x16a6d6['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x3be561){return _0x1184ca(_0x3be561)&&_0x3be561['is']('containerElement')&&!!_0x3be561['getCustomProperty']('footnotesDefinitions');}function D(_0x5d2d28,_0x31cad5={}){const _0x3ce053=_0x5d2d28['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x20d798=_0x5d2d28['createContainerElement']('ol',{'class':'footnotes-list'},_0x5d2d28['createSlot']());return _0x5d2d28['createContainerElement']('div',{'class':'footnotes',..._0x31cad5},[_0x3ce053,_0x20d798]);}function b(_0x527c87,_0x42c80a){const _0x5744dc=_0x527c87['getAttribute']('footnoteId'),_0x4f90b9=_0x527c87['getAttribute']('footnoteCounter'),_0xc1e381=_0x42c80a['createUIElement']('a',{'href':'#'+_0x5744dc},function(_0x1a15ae){const _0x1191e8=this['toDomElement'](_0x1a15ae);return _0x1191e8['textContent']=_0x4f90b9,_0x1191e8;}),_0x16d41e=_0x42c80a['createContainerElement']('sup',{'id':'ref-'+_0x5744dc,'class':'footnote'},[_0xc1e381]);return _0x16d41e['getFillerOffset']=()=>null,_0x16d41e;}function y(_0x54f8d6,_0x12f4df,_0x1085d6,{dataPipeline:_0x16e6d7}={}){const {t:t}=_0x1085d6,_0x9c4530=_0x54f8d6['getAttribute']('footnoteId'),_0x4f325e=_0x12f4df['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x9c4530},function(_0x34a3e7){const _0xe3b6db=this['toDomElement'](_0x34a3e7);return _0xe3b6db['innerText']='^',_0xe3b6db;}),_0x498a86=_0x16e6d7?_0x12f4df['createContainerElement']('div',{'class':'footnote-content'}):_0x49512e(_0x12f4df['createEditableElement']('div',{'class':'footnote-content'}),_0x12f4df,{'label':t('Footnote\x20content.')});return _0x12f4df['insert'](_0x12f4df['createPositionAt'](_0x498a86,0x0),_0x12f4df['createSlot']()),_0x12f4df['createContainerElement']('li',{'class':'footnote-definition','id':_0x9c4530},[_0x4f325e,_0x498a86]);}
23
+ import{Plugin as _0x4e8dc7}from'ckeditor5/src/core.js';import{isWidget as _0x5eeb14,toWidget as _0x343848,toWidgetEditable as _0xe96de1}from'ckeditor5/src/widget.js';import{uid as _0x10e963}from'ckeditor5/src/utils.js';import{PointerObserver as _0x1bdd58,ClickObserver as _0x4d644d}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x21f5d8}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x84e82c}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x4e8dc7{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x21f5d8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x288a46}=this;_0x288a46['config']['define']('footnotes.multiBlock',!0x0),_0x288a46['commands']['add']('insertFootnote',new _0x84e82c(_0x288a46)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x586641){const _0x4ff5f5=_0x585b71([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]),_0x2f4633=0x47a28506,_0x4619f8=0x47a5f98e^_0x2f4633,_0x18ef9e=window[_0x585b71([0x44,0x61,0x74,0x65])][_0x585b71([0x6e,0x6f,0x77])](),_0x4c91d6=_0x586641[_0x585b71([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x23c930=new window[(_0x585b71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43e77e=>{_0x4c91d6[_0x585b71([0x6f,0x6e,0x63,0x65])](_0x585b71([0x72,0x65,0x61,0x64,0x79]),_0x43e77e);}),_0x36a171={[_0x585b71([0x6b,0x74,0x79])]:_0x585b71([0x45,0x43]),[_0x585b71([0x75,0x73,0x65])]:_0x585b71([0x73,0x69,0x67]),[_0x585b71([0x63,0x72,0x76])]:_0x585b71([0x50,0x2d,0x32,0x35,0x36]),[_0x585b71([0x78])]:_0x585b71([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]),[_0x585b71([0x79])]:_0x585b71([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]),[_0x585b71([0x61,0x6c,0x67])]:_0x585b71([0x45,0x53,0x32,0x35,0x36])},_0xd3ea52=_0x4c91d6[_0x585b71([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x585b71([0x67,0x65,0x74])](_0x585b71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e036b(){let _0x2642f9,_0x479a4f=null,_0x3d787a=null;try{if(_0xd3ea52==_0x585b71([0x47,0x50,0x4c]))return _0x585b71([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2642f9=_0x131b74(),!_0x2642f9)return _0x585b71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2642f9[_0x585b71([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d787a=_0x425e16(_0x2642f9[_0x585b71([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2642f9[_0x585b71([0x6a,0x74,0x69])])),await _0x407c54()?_0x3fedfb()?_0x47a2b6()?_0x585b71([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1253fb()?(_0x2642f9[_0x585b71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x585b71([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x479a4f=_0x13bebb(_0x585b71([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2642f9[_0x585b71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x585b71([0x74,0x72,0x69,0x61,0x6c])&&(_0x479a4f=_0x13bebb(_0x585b71([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b6e47()):_0x585b71([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x585b71([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x585b71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x585b71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47a2b6(){const _0x52b179=[_0x585b71([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x585b71([0x74,0x72,0x69,0x61,0x6c])][_0x585b71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2642f9[_0x585b71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x18ef9e/0x3e8:0xe10*_0x4619f8;return _0x2642f9[_0x585b71([0x65,0x78,0x70])]<_0x52b179;}function _0x3fedfb(){const _0x351438=_0x2642f9[_0x585b71([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x351438&&(!!_0x351438[_0x585b71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x585b71([0x2a]))||!!_0x351438[_0x585b71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x585b71([0x46,0x4f,0x4f])));}function _0x1253fb(){const _0x10b803=_0x2642f9[_0x585b71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x10b803||0x0==_0x10b803[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x29d36c}=new URL(window[_0x585b71([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x10b803[_0x585b71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29d36c))return!0x0;const _0x1ee901=_0x29d36c[_0x585b71([0x73,0x70,0x6c,0x69,0x74])](_0x585b71([0x2e]));return _0x10b803[_0x585b71([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e9504=>_0x3e9504[_0x585b71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x585b71([0x2a])))[_0x585b71([0x6d,0x61,0x70])](_0x1e0bc4=>_0x1e0bc4[_0x585b71([0x73,0x70,0x6c,0x69,0x74])](_0x585b71([0x2e])))[_0x585b71([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x107312=>_0x107312[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ee901[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x585b71([0x6d,0x61,0x70])](_0x29bf49=>Array(_0x1ee901[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x29bf49[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x585b71([0x66,0x69,0x6c,0x6c])](_0x29bf49[0x0]===_0x585b71([0x2a])?_0x585b71([0x2a]):'')[_0x585b71([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x29bf49))[_0x585b71([0x73,0x6f,0x6d,0x65])](_0xec846e=>_0x1ee901[_0x585b71([0x65,0x76,0x65,0x72,0x79])]((_0x1700ac,_0x5b791a)=>_0xec846e[_0x5b791a]===_0x1700ac||_0xec846e[_0x5b791a]===_0x585b71([0x2a])));}function _0x3b6e47(){return _0x479a4f&&_0x3d787a?new window[(_0x585b71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x237932,_0xe9cfd3)=>{_0x479a4f[_0x585b71([0x74,0x68,0x65,0x6e])](_0x237932,_0xe9cfd3),_0x3d787a[_0x585b71([0x74,0x68,0x65,0x6e])](_0x3265e2=>{_0x3265e2!=_0x585b71([0x56,0x61,0x6c,0x69,0x64])&&_0x237932(_0x3265e2);},_0xe9cfd3);}):_0x479a4f||_0x3d787a||_0x585b71([0x56,0x61,0x6c,0x69,0x64]);}}function _0x425e16(_0x409c25,_0x4b0f1d){return new window[(_0x585b71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ee67b=>{if(_0x55df12())return _0x4ee67b(_0x585b71([0x56,0x61,0x6c,0x69,0x64]));_0x512608(),_0x4c91d6[_0x585b71([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x585b71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x559612=!0x1;const _0x2e6090=_0x10e963();function _0x4fd25a(_0x285849){return!!_0x285849&&(typeof _0x285849===_0x585b71([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x285849===_0x585b71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x285849[_0x585b71([0x74,0x68,0x65,0x6e])]===_0x585b71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x285849[_0x585b71([0x63,0x61,0x74,0x63,0x68])]===_0x585b71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46e3ba(_0x3c0638){_0x2155da(_0x3c0638)[_0x585b71([0x74,0x68,0x65,0x6e])](_0x32fa1f=>{if(!_0x32fa1f||_0x32fa1f[_0x585b71([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x585b71([0x6f,0x6b]))return _0x585b71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2124eb(_0x2e00af(_0x2e6090+_0x4b0f1d))!=_0x32fa1f[_0x585b71([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x585b71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x585b71([0x56,0x61,0x6c,0x69,0x64]);})[_0x585b71([0x74,0x68,0x65,0x6e])](_0x4a90f0=>(_0x322c36(),_0x4a90f0),()=>{const _0x15371f=_0x33dc8e();return null==_0x15371f?(_0x322c36(),_0x585b71([0x56,0x61,0x6c,0x69,0x64])):_0x585b71(_0x18ef9e-_0x15371f>(0x63ae0106^_0x2f4633)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x585b71([0x74,0x68,0x65,0x6e])](_0x4ee67b)[_0x585b71([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ee67b(_0x585b71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x32f742=0x47946b86^_0x2f4633;function _0x322c36(){const _0x6e125e=_0x585b71([0x6c,0x6c,0x63,0x74,0x2d])+_0x2124eb(_0x2e00af(_0x409c25)),_0x3aed5d=_0x2d9750(_0x2124eb(window[_0x585b71([0x4d,0x61,0x74,0x68])][_0x585b71([0x63,0x65,0x69,0x6c])](_0x18ef9e/_0x32f742)));window[_0x585b71([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x585b71([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6e125e,_0x3aed5d);}function _0x33dc8e(){const _0x2386fc=_0x585b71([0x6c,0x6c,0x63,0x74,0x2d])+_0x2124eb(_0x2e00af(_0x409c25)),_0x1e27d2=window[_0x585b71([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x585b71([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2386fc);return _0x1e27d2?window[_0x585b71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d9750(_0x1e27d2),0x10)*_0x32f742:null;}function _0x2155da(_0x4682bd){return new window[(_0x585b71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32bb31,_0x29e4db)=>{_0x4682bd[_0x585b71([0x74,0x68,0x65,0x6e])](_0x32bb31,_0x29e4db),window[_0x585b71([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29e4db,0x47a351c6^_0x2f4633);});}}_0x4c91d6[_0x585b71([0x6f,0x6e])](_0x585b71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x310044,_0x204bc4)=>{if(_0x204bc4[0x0]!=_0x409c25)return _0x4ee67b(_0x585b71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x204bc4[0x1]={..._0x204bc4[0x1],[_0x585b71([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2e6090};},{[_0x585b71([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x585b71([0x68,0x69,0x67,0x68])}),_0x4c91d6[_0x585b71([0x6f,0x6e])](_0x585b71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x501e55=>{_0x4fd25a(_0x501e55[_0x585b71([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x559612=!0x0,_0x46e3ba(_0x501e55[_0x585b71([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x585b71([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x585b71([0x6c,0x6f,0x77])}),_0x23c930[_0x585b71([0x74,0x68,0x65,0x6e])](()=>{_0x559612||_0x4ee67b(_0x585b71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x55df12(){return _0x4c91d6[_0x585b71([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x585b71([0x76,0x69,0x65,0x77])][_0x585b71([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x585b71([0x61,0x75,0x74,0x6f]);}function _0x512608(){_0x4c91d6[_0x585b71([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x585b71([0x76,0x69,0x65,0x77])][_0x585b71([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x585b71([0x61,0x75,0x74,0x6f]);}}function _0x13bebb(_0x175165){const _0x18536b=[new window[(_0x585b71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x381412=>setTimeout(_0x381412,0x47abbbca^_0x2f4633)),_0x23c930[_0x585b71([0x74,0x68,0x65,0x6e])](()=>new window[(_0x585b71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bfddc=>{let _0x5453c3=0x0;_0x4c91d6[_0x585b71([0x6d,0x6f,0x64,0x65,0x6c])][_0x585b71([0x6f,0x6e])](_0x585b71([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2bec6c,_0x237546)=>{_0x237546[0x0][_0x585b71([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5453c3++,_0x5453c3==(0x47a280ee^_0x2f4633)&&(_0x3bfddc(),_0x2bec6c[_0x585b71([0x6f,0x66,0x66])]());});}))];return window[_0x585b71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x585b71([0x72,0x61,0x63,0x65])](_0x18536b)[_0x585b71([0x74,0x68,0x65,0x6e])](()=>_0x175165);}async function _0x5b6947(){await _0x23c930,_0x4c91d6[_0x585b71([0x6d,0x6f,0x64,0x65,0x6c])][_0x585b71([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x308875,_0x4c91d6[_0x585b71([0x6d,0x6f,0x64,0x65,0x6c])][_0x585b71([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x308875,_0x4c91d6[_0x585b71([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x585b71([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2205c9(_0x51261b){const _0x273d74=_0xc44363();_0x4c91d6[_0x273d74]=_0x585b71([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x51261b,_0x51261b!=_0x585b71([0x56,0x61,0x6c,0x69,0x64])&&_0x5b6947();}function _0xc44363(){const _0x362195=window[_0x585b71([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x585b71([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x585b71([0x6e,0x6f,0x77])]())[_0x585b71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x585b71([0x2e]),'');let _0xa0c7d8=_0x585b71([0x75]);for(let _0xdc3f92=0x0;_0xdc3f92<_0x362195[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdc3f92+=0x2){let _0x2ba3a8=window[_0x585b71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x362195[_0x585b71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xdc3f92,_0xdc3f92+0x2));_0x2ba3a8>=_0x4ff5f5[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ba3a8-=_0x4ff5f5[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa0c7d8+=_0x4ff5f5[_0x2ba3a8];}return _0xa0c7d8;}function _0x131b74(){const _0xe2ff12=_0xd3ea52[_0x585b71([0x73,0x70,0x6c,0x69,0x74])](_0x585b71([0x2e]));if(0x3!=_0xe2ff12[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x12cf61(_0xe2ff12[0x1]);function _0x12cf61(_0x575d6b){const _0x261a16=_0x272bf2(_0x575d6b);return _0x261a16&&_0x1733da()?_0x261a16:null;function _0x1733da(){const _0x2353e6=_0x261a16[_0x585b71([0x6a,0x74,0x69])],_0x412d7a=window[_0x585b71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2353e6[_0x585b71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2353e6[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1fe396={..._0x261a16,[_0x585b71([0x6a,0x74,0x69])]:_0x2353e6[_0x585b71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2353e6[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1fe396[_0x585b71([0x76,0x63])],_0x2e00af(_0x1fe396)==_0x412d7a;}}}async function _0x407c54(){let _0x2f20d2=!0x0;try{const _0x3f86ac=_0xd3ea52[_0x585b71([0x73,0x70,0x6c,0x69,0x74])](_0x585b71([0x2e])),[_0x3b08dc,_0x1859d0,_0xdae30b]=_0x3f86ac;return _0x4a2671(_0x3b08dc),await _0x4fb437(_0x3b08dc,_0x1859d0,_0xdae30b),_0x2f20d2;}catch{return!0x1;}function _0x4a2671(_0x34c633){const _0x170d01=_0x272bf2(_0x34c633);_0x170d01&&_0x170d01[_0x585b71([0x61,0x6c,0x67])]==_0x585b71([0x45,0x53,0x32,0x35,0x36])||(_0x2f20d2=!0x1);}async function _0x4fb437(_0x4d8c51,_0x205633,_0x52a8b2){const _0x41ec3a=window[_0x585b71([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x585b71([0x66,0x72,0x6f,0x6d])](_0x12ff25(_0x52a8b2),_0x1869be=>_0x1869be[_0x585b71([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x412086=new window[(_0x585b71([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x585b71([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4d8c51+_0x585b71([0x2e])+_0x205633),_0x44023f=window[_0x585b71([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x585b71([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x44023f)return;const _0x274a4f=await _0x44023f[_0x585b71([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x585b71([0x6a,0x77,0x6b]),_0x36a171,{[_0x585b71([0x6e,0x61,0x6d,0x65])]:_0x585b71([0x45,0x43,0x44,0x53,0x41]),[_0x585b71([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x585b71([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x585b71([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x44023f[_0x585b71([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x585b71([0x6e,0x61,0x6d,0x65])]:_0x585b71([0x45,0x43,0x44,0x53,0x41]),[_0x585b71([0x68,0x61,0x73,0x68])]:{[_0x585b71([0x6e,0x61,0x6d,0x65])]:_0x585b71([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x274a4f,_0x41ec3a,_0x412086)||(_0x2f20d2=!0x1);}}function _0x272bf2(_0x32f23d){return _0x32f23d[_0x585b71([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x585b71([0x65,0x79]))?JSON[_0x585b71([0x70,0x61,0x72,0x73,0x65])](_0x12ff25(_0x32f23d)):null;}function _0x12ff25(_0x1efc55){return window[_0x585b71([0x61,0x74,0x6f,0x62])](_0x1efc55[_0x585b71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x585b71([0x2b]))[_0x585b71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x585b71([0x2f])));}function _0x2e00af(_0x29cc6f){let _0x34cac7=0x1505;function _0x471070(_0x4be47b){for(let _0x3d29b2=0x0;_0x3d29b2<_0x4be47b[_0x585b71([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d29b2++){const _0x32a03d=_0x4be47b[_0x585b71([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d29b2);_0x34cac7=(_0x34cac7<<0x5)+_0x34cac7+_0x32a03d,_0x34cac7&=_0x34cac7;}}function _0x152388(_0x4a768b){Array[_0x585b71([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a768b)?_0x4a768b[_0x585b71([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x152388):_0x4a768b&&typeof _0x4a768b==_0x585b71([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x585b71([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a768b)[_0x585b71([0x73,0x6f,0x72,0x74])]()[_0x585b71([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x275c83,_0x478895])=>{_0x471070(_0x275c83),_0x152388(_0x478895);}):_0x471070(window[_0x585b71([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a768b));}return _0x152388(_0x29cc6f),_0x34cac7>>>0x0;}function _0x2124eb(_0x1137f6){return _0x1137f6[_0x585b71([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x585b71([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x585b71([0x30]));}function _0x2d9750(_0x2406d1){return _0x2406d1[_0x585b71([0x73,0x70,0x6c,0x69,0x74])]('')[_0x585b71([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x585b71([0x6a,0x6f,0x69,0x6e])]('');}function _0x308875(){}function _0x585b71(_0x11c726){return _0x11c726['map'](_0x149a0e=>String['fromCharCode'](_0x149a0e))['join']('');}_0x2205c9(await _0x4e036b());}(this);}['_moveSelectionToFootnoteDefinition'](_0x364499){const {plugins:_0x21e7bd,editing:_0x54e766,model:_0x112490}=this['editor'],_0xcab313=_0x21e7bd['get'](_0x21f5d8)['getFootnote'](_0x364499);return!!_0xcab313&&(_0x112490['change'](_0xcbd982=>{_0xcbd982['setSelection'](_0xcbd982['createPositionAt'](_0xcab313['definition'],'end'));}),_0x54e766['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2db3d7){const {plugins:_0x51f8af,editing:_0x40b527,model:_0xef780a}=this['editor'],_0x40b543=_0x51f8af['get'](_0x21f5d8)['getFootnote'](_0x2db3d7);return!!_0x40b543&&(_0xef780a['change'](_0x18ade5=>{_0x18ade5['setSelection'](_0x40b543['reference'],'on');}),_0x40b527['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2ec543}=this['editor']['model'],_0x58fc96=this['editor']['config']['get']('footnotes.multiBlock');_0x2ec543['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2ec543['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2ec543['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x58fc96?_0x2ec543['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2ec543['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2ec543['addChildCheck'](_0x10d15f=>{for(const _0x4c9229 of _0x10d15f)if('footnoteDefinition'===_0x4c9229['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1ccae7}=this,{conversion:_0x3a785e,editing:_0x26a39a}=_0x1ccae7,{t:t}=_0x1ccae7['locale'];_0x3a785e['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x31795d,{writer:_0x7bc22a,consumable:_0x56eb59})=>{const _0x5aaf2b=_0x31795d['getChild'](0x0);if(!_0x5aaf2b||!_0x5aaf2b['is']('element','a'))return null;const _0x2b4be0=_0x5aaf2b['getAttribute']('href')||'';if(!_0x2b4be0['startsWith']('#'))return null;const _0x18df8d=_0x2b4be0['replace'](/^#/,'');if(!_0x18df8d)return null;_0x56eb59['consume'](_0x5aaf2b,{'name':!0x0,'attributes':['href']});for(const {item:_0x3b004e}of _0x26a39a['view']['createRangeIn'](_0x5aaf2b))_0x3b004e['is']('$textProxy')?_0x56eb59['consume'](_0x3b004e['textNode'],{'name':!0x0}):_0x3b004e['is']('element')&&_0x56eb59['consume'](_0x3b004e,{'name':!0x0});return _0x7bc22a['createElement']('footnoteRef',{'footnoteId':_0x18df8d});}}),_0x3a785e['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x35d12f,{writer:_0x4c6c7d})=>b(_0x35d12f,_0x4c6c7d)}),_0x3a785e['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x48676e,{writer:_0x374d77})=>{const _0x34c951=_0x48676e['getAttribute']('footnoteCounter');return _0x343848(b(_0x48676e,_0x374d77),_0x374d77,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x34c951)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3c0793}=this,{t:t}=_0x3c0793['locale'],{conversion:_0x5e3d96}=_0x3c0793;_0x5e3d96['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5e3d96['for']('upcast')['add'](_0x31ad0c=>{_0x31ad0c['on']('element:ol',(_0x413459,_0x5bec27,_0x2be1b0)=>{const _0x5c1628=_0x5bec27['viewItem'];if(!_0x5c1628['hasClass']('footnotes-list')||!_0x5bec27['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2be1b0['consumable']['consume'](_0x5c1628,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x21efac,modelCursor:_0x62a69}=_0x2be1b0['convertChildren'](_0x5bec27['viewItem'],_0x5bec27['modelCursor']);_0x5bec27['modelRange']=_0x21efac,_0x5bec27['modelCursor']=_0x62a69;}),_0x31ad0c['on']('element:hr',(_0x31361c,_0x4ddae2,_0x5c8122)=>{const _0x424298=_0x4ddae2['viewItem'];_0x424298['hasClass']('footnotes-divider')&&_0x4ddae2['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5c8122['consumable']['consume'](_0x424298,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5e3d96['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x16850a,{writer:_0x20c68c})=>D(_0x20c68c)}),_0x5e3d96['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x44d876,{writer:_0x41a212})=>{const _0x26c9f6=D(_0x41a212,{'data-footnotes-list-label':t('Footnotes')}),_0x23ca91=_0x343848(_0x26c9f6,_0x41a212,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x41a212['setCustomProperty']('footnotesDefinitions',!0x0,_0x23ca91),_0x23ca91;}});}['_defineDefinitionConverters'](){const {editor:_0x33ce26}=this,{conversion:_0x10be58,locale:_0x5c5d0f}=_0x33ce26,_0xc4df5b=_0x33ce26['config']['get']('footnotes.multiBlock');_0x10be58['for']('upcast')['add'](_0x23f05d=>{_0x23f05d['on']('element:li',(_0x45c2d2,_0x31fd36,_0x2ce42f)=>{const _0x382bd9=_0x31fd36['viewItem'];if(!_0x382bd9['hasClass']('footnote-definition')||!_0x382bd9['getAttribute']('id'))return;const _0x508989=_0x382bd9['parent'];if(!_0x508989['is']('element','ol')||!_0x508989['hasClass']('footnotes-list'))return;if(!_0x2ce42f['consumable']['test'](_0x382bd9,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4f44d7=_0x2ce42f['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x382bd9['getAttribute']('id')});if(!_0x2ce42f['safeInsert'](_0x4f44d7,_0x31fd36['modelCursor']))return;_0x2ce42f['consumable']['consume'](_0x382bd9,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4b3b4c=Array['from'](_0x382bd9['getChildren']())['find'](_0x118e15=>_0x118e15['is']('element')&&_0x118e15['hasClass']('footnote-content'));for(const _0x43c225 of _0x382bd9['getChildren']())_0x43c225['is']('element')&&(_0x2ce42f['consumable']['consume'](_0x43c225,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2ce42f['consumable']['consume'](_0x43c225,{'name':!0x0,'classes':'footnote-content'}));if(_0x4b3b4c){if(_0xc4df5b)_0x2ce42f['convertChildren'](_0x4b3b4c,_0x4f44d7);else{const _0x50528a=_0x2ce42f['writer']['createElement']('footnoteInlineContent');_0x2ce42f['writer']['insert'](_0x50528a,_0x4f44d7),_0x2ce42f['convertChildren'](_0x4b3b4c,_0x50528a);}}_0x2ce42f['updateConversionResult'](_0x4f44d7,_0x31fd36);});}),_0x10be58['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x594b40,{writer:_0x2268b1})=>y(_0x594b40,_0x2268b1,_0x5c5d0f,{'dataPipeline':!0x0})}),_0x10be58['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1eed07,{writer:_0x2aec87})=>y(_0x1eed07,_0x2aec87,_0x5c5d0f)});}['_defineBogusParagraphConverters'](){const {editor:_0x808f5c}=this,{conversion:_0xf3731e}=_0x808f5c;_0x808f5c['config']['get']('footnotes.multiBlock')?(_0xf3731e['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0xf3731e['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x808f5c['model']['document'],'change:data',()=>{!function(_0x9a9d58,_0x3f9203){const _0x358309=_0x9a9d58['document']['differ'],_0x309979=new Set();for(const _0x8d65e8 of _0x358309['getChanges']()){const _0x56cc06='attribute'==_0x8d65e8['type']?_0x8d65e8['range']['start']['parent']:_0x8d65e8['position']['parent'];_0x56cc06['is']('element','footnoteDefinition')&&_0x309979['add'](_0x56cc06);}for(const _0x32e77e of _0x309979['values']()){const _0x993fd4=Array['from'](_0x32e77e['getChildren']())['filter'](_0x567ebf=>v(_0x567ebf,_0x3f9203['mapper']));for(const _0x19017f of _0x993fd4)_0x3f9203['reconvertItem'](_0x19017f);}}(_0x808f5c['model'],_0x808f5c['editing']);})):(_0xf3731e['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0xf3731e['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x304542,{writer:_0x34bbb6})=>{const _0xb56d38=_0x34bbb6['createContainerElement']('span');return _0x34bbb6['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xb56d38),_0xb56d38;}}));}['_defineKeyboardHandlers'](){const {editor:_0x22cf3a}=this,{editing:_0x7cbc12,t:t}=_0x22cf3a,_0x5d8cfd=_0x22cf3a['model']['document']['selection'];_0x22cf3a['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x22cf3a['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x7cbc12['view']['document'],'enter',(_0x36da44,_0x7cd548)=>{const _0xcdd2b2=function(_0x25b911){const _0x1c9bdf=_0x25b911['getSelectedElement']();if(_0x1c9bdf?.['is']('element','footnoteRef'))return _0x1c9bdf;return null;}(_0x5d8cfd);if(_0xcdd2b2){const _0x27f4f9=_0xcdd2b2['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x27f4f9),_0x7cd548['preventDefault'](),_0x36da44['stop']();}},{'context':_0x5eeb14});}['_defineClickHandlers'](){const {editor:_0x17d245}=this,{editing:_0x1875b2}=_0x17d245;_0x17d245['editing']['view']['addObserver'](_0x1bdd58),_0x17d245['editing']['view']['addObserver'](_0x4d644d);let _0x4436c8=!0x1;this['listenTo'](_0x1875b2['view']['document'],'pointerdown',(_0x56ab9c,_0x96f6ec)=>{const {target:_0x2c8ae2}=_0x96f6ec,_0x25c4e3=_0x1875b2['view']['document']['selection'];_0x4436c8=!!(_0x2c8ae2?.['is']('element','a')&&_0x2c8ae2['parent']?.['is']('element','sup')&&_0x2c8ae2['parent']['hasClass']('footnote'))&&_0x25c4e3['getSelectedElement']()===_0x2c8ae2['parent'];},{'priority':'high'}),this['listenTo'](_0x1875b2['view']['document'],'click',(_0x59fa0c,_0x52fb59)=>{const {target:_0x3ac1e3}=_0x52fb59;if(!_0x3ac1e3?.['is']('element','a'))return;if(_0x3ac1e3['parent']?.['is']('element','sup')&&_0x3ac1e3['parent']['hasClass']('footnote')&&!_0x4436c8)return void _0x52fb59['preventDefault']();let _0x349bbc=_0x3ac1e3['getAttribute']('href');if(!_0x349bbc?.['startsWith']('#'))return;_0x349bbc=_0x349bbc['slice'](0x1);let _0x478595=!0x1;(_0x349bbc['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x349bbc['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x349bbc))&&(_0x478595=!0x0),_0x478595&&(_0x52fb59['preventDefault'](),_0x59fa0c['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x1e239c}={}){return(_0x11894d,{writer:_0x2e5efb})=>{if(!g(_0x11894d))return null;if(!_0x1e239c)return _0x2e5efb['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x10a32b=_0x2e5efb['createContainerElement']('p');return _0x2e5efb['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x10a32b),_0x10a32b;};}function g(_0x5787a5){const {parent:_0x209119}=_0x5787a5;if(!_0x209119?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x209119['childCount'])return!0x1;for(const _0x379498 of _0x5787a5['getAttributeKeys']())if(!_0x379498['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x379498)return!0x1;return!0x0;}function v(_0x2b508e,_0xb27b88){if(!_0x2b508e['is']('element','paragraph'))return!0x1;const _0x476bc8=_0xb27b88['toViewElement'](_0x2b508e);return!!_0x476bc8&&g(_0x2b508e)!==_0x476bc8['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x14be75){return _0x5eeb14(_0x14be75)&&_0x14be75['is']('containerElement')&&!!_0x14be75['getCustomProperty']('footnotesDefinitions');}function D(_0x2ea841,_0x49138e={}){const _0x4a75d1=_0x2ea841['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x3cc183=_0x2ea841['createContainerElement']('ol',{'class':'footnotes-list'},_0x2ea841['createSlot']());return _0x2ea841['createContainerElement']('div',{'class':'footnotes',..._0x49138e},[_0x4a75d1,_0x3cc183]);}function b(_0x556346,_0x561653){const _0x173748=_0x556346['getAttribute']('footnoteId'),_0x15166b=_0x556346['getAttribute']('footnoteCounter'),_0x506ba4=_0x561653['createUIElement']('a',{'href':'#'+_0x173748},function(_0x100907){const _0x3cdb76=this['toDomElement'](_0x100907);return _0x3cdb76['textContent']=_0x15166b,_0x3cdb76;}),_0x304075=_0x561653['createContainerElement']('sup',{'id':'ref-'+_0x173748,'class':'footnote'},[_0x506ba4]);return _0x304075['getFillerOffset']=()=>null,_0x304075;}function y(_0x4625e4,_0x137e28,_0x52d570,{dataPipeline:_0x442362}={}){const {t:t}=_0x52d570,_0x1f653d=_0x4625e4['getAttribute']('footnoteId'),_0x4f0c1a=_0x137e28['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1f653d},function(_0x28dbb2){const _0x48bfe9=this['toDomElement'](_0x28dbb2);return _0x48bfe9['innerText']='^',_0x48bfe9;}),_0x5e9352=_0x442362?_0x137e28['createContainerElement']('div',{'class':'footnote-content'}):_0xe96de1(_0x137e28['createEditableElement']('div',{'class':'footnote-content'}),_0x137e28,{'label':t('Footnote\x20content.')});return _0x137e28['insert'](_0x137e28['createPositionAt'](_0x5e9352,0x0),_0x137e28['createSlot']()),_0x137e28['createContainerElement']('li',{'class':'footnote-definition','id':_0x1f653d},[_0x4f0c1a,_0x5e9352]);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3d1e(_0x45a56e,_0x5c77f4){const _0x4946eb=_0x4946();return _0x3d1e=function(_0x3d1e7b,_0xeb314a){_0x3d1e7b=_0x3d1e7b-0x174;let _0x80ae64=_0x4946eb[_0x3d1e7b];return _0x80ae64;},_0x3d1e(_0x45a56e,_0x5c77f4);}const _0x1173b7=_0x3d1e;function _0x4946(){const _0x31d187=['5677392boHozO','execute','get','2YRiipF','plugins','isEnabled','_updateFootnotesCounters','getFootnotesDefinitionsObjectElement','149916aikipf','1883175nonmMy','20gknsfi','getAttribute','change','4296924MLUjJJ','isInteger','model','23242690ucYAiL','value','setAttribute','refresh','1289750UfVLsg','28UCKuWh','footnotesListStart','1212184pCXCBA'];_0x4946=function(){return _0x31d187;};return _0x4946();}(function(_0x24209c,_0xcaaf30){const _0x246052=_0x3d1e,_0x1e4e57=_0x24209c();while(!![]){try{const _0x975dc0=parseInt(_0x246052(0x17c))/0x1*(-parseInt(_0x246052(0x181))/0x2)+-parseInt(_0x246052(0x182))/0x3+-parseInt(_0x246052(0x183))/0x4*(-parseInt(_0x246052(0x175))/0x5)+-parseInt(_0x246052(0x179))/0x6+parseInt(_0x246052(0x176))/0x7*(-parseInt(_0x246052(0x178))/0x8)+-parseInt(_0x246052(0x186))/0x9+parseInt(_0x246052(0x189))/0xa;if(_0x975dc0===_0xcaaf30)break;else _0x1e4e57['push'](_0x1e4e57['shift']());}catch(_0x432886){_0x1e4e57['push'](_0x1e4e57['shift']());}}}(_0x4946,0xc4eda));import{Command as _0x2e9b6a}from'ckeditor5/src/core.js';import{FootnotesTracker as _0xcaedca}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x2e9b6a{[_0x1173b7(0x174)](){const _0x1ac9c0=_0x1173b7,{editor:_0x28a13f}=this,_0x404b9f=_0x28a13f[_0x1ac9c0(0x17d)][_0x1ac9c0(0x17b)](_0xcaedca)[_0x1ac9c0(0x180)]();this[_0x1ac9c0(0x17e)]=!!_0x404b9f,this[_0x1ac9c0(0x18a)]=_0x404b9f?.[_0x1ac9c0(0x184)](_0x1ac9c0(0x177))??null;}[_0x1173b7(0x17a)]({value:_0x5c526a}){const _0x58c531=_0x1173b7,{editor:_0x3d5b64}=this,_0x19bc0b=_0x3d5b64[_0x58c531(0x17d)][_0x58c531(0x17b)](_0xcaedca),_0x15c236=_0x19bc0b[_0x58c531(0x180)]();_0x15c236&&Number[_0x58c531(0x187)](_0x5c526a)&&_0x3d5b64[_0x58c531(0x188)][_0x58c531(0x185)](_0x2e5ba6=>{const _0x3899c4=_0x58c531;_0x2e5ba6[_0x3899c4(0x18b)](_0x3899c4(0x177),_0x5c526a,_0x15c236),_0x19bc0b[_0x3899c4(0x17f)](_0x2e5ba6);});}}
23
+ const _0x337bc7=_0x4a70;(function(_0x23702d,_0x4e4909){const _0x52eec2=_0x4a70,_0x179327=_0x23702d();while(!![]){try{const _0x146439=parseInt(_0x52eec2(0x6f))/0x1+parseInt(_0x52eec2(0x70))/0x2*(parseInt(_0x52eec2(0x74))/0x3)+parseInt(_0x52eec2(0x73))/0x4*(parseInt(_0x52eec2(0x7e))/0x5)+parseInt(_0x52eec2(0x7d))/0x6+-parseInt(_0x52eec2(0x78))/0x7*(-parseInt(_0x52eec2(0x6d))/0x8)+-parseInt(_0x52eec2(0x79))/0x9+parseInt(_0x52eec2(0x71))/0xa*(-parseInt(_0x52eec2(0x7b))/0xb);if(_0x146439===_0x4e4909)break;else _0x179327['push'](_0x179327['shift']());}catch(_0x16aa83){_0x179327['push'](_0x179327['shift']());}}}(_0x24e5,0xae079));function _0x24e5(){const _0x451319=['isInteger','model','isEnabled','2576798dAVExn','10748547MAnkSL','plugins','27313396RXGGKL','change','7538418qwNpZA','3234555HhkGOl','getAttribute','setAttribute','getFootnotesDefinitionsObjectElement','get','value','execute','footnotesListStart','24djhSqq','_updateFootnotesCounters','859171wZTRFS','348878PZUDSG','10vvkxBZ','refresh','4OYklGp','9mFqqZp'];_0x24e5=function(){return _0x451319;};return _0x24e5();}import{Command as _0x5d9d1c}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x2c98fb}from'../../footnotestracker.js';function _0x4a70(_0x209924,_0x4c850a){const _0x24e538=_0x24e5();return _0x4a70=function(_0x4a70e4,_0x2dcd36){_0x4a70e4=_0x4a70e4-0x6a;let _0x4d4057=_0x24e538[_0x4a70e4];return _0x4d4057;},_0x4a70(_0x209924,_0x4c850a);}export class FootnotesStartCommand extends _0x5d9d1c{[_0x337bc7(0x72)](){const _0x1f524f=_0x337bc7,{editor:_0x346d2e}=this,_0x5436cc=_0x346d2e[_0x1f524f(0x7a)][_0x1f524f(0x82)](_0x2c98fb)[_0x1f524f(0x81)]();this[_0x1f524f(0x77)]=!!_0x5436cc,this[_0x1f524f(0x6a)]=_0x5436cc?.[_0x1f524f(0x7f)](_0x1f524f(0x6c))??null;}[_0x337bc7(0x6b)]({value:_0x1e569f}){const _0x2f018c=_0x337bc7,{editor:_0x3a4aaa}=this,_0x3163e0=_0x3a4aaa[_0x2f018c(0x7a)][_0x2f018c(0x82)](_0x2c98fb),_0x3e736b=_0x3163e0[_0x2f018c(0x81)]();_0x3e736b&&Number[_0x2f018c(0x75)](_0x1e569f)&&_0x3a4aaa[_0x2f018c(0x76)][_0x2f018c(0x7c)](_0x3c29b3=>{const _0x5a08d7=_0x2f018c;_0x3c29b3[_0x5a08d7(0x80)](_0x5a08d7(0x6c),_0x1e569f,_0x3e736b),_0x3163e0[_0x5a08d7(0x6e)](_0x3c29b3);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1848(_0x3674ed,_0x3f9107){const _0xe7607c=_0xe760();return _0x1848=function(_0x1848a2,_0x38fe17){_0x1848a2=_0x1848a2-0x12b;let _0x540897=_0xe7607c[_0x1848a2];return _0x540897;},_0x1848(_0x3674ed,_0x3f9107);}const _0x4c7fa4=_0x1848;(function(_0x1f6016,_0x509c64){const _0x3460a1=_0x1848,_0x550071=_0x1f6016();while(!![]){try{const _0x1e2f80=parseInt(_0x3460a1(0x134))/0x1+parseInt(_0x3460a1(0x12b))/0x2+parseInt(_0x3460a1(0x133))/0x3*(parseInt(_0x3460a1(0x130))/0x4)+-parseInt(_0x3460a1(0x13f))/0x5*(-parseInt(_0x3460a1(0x139))/0x6)+parseInt(_0x3460a1(0x12e))/0x7+-parseInt(_0x3460a1(0x13d))/0x8+parseInt(_0x3460a1(0x135))/0x9*(-parseInt(_0x3460a1(0x13b))/0xa);if(_0x1e2f80===_0x509c64)break;else _0x550071['push'](_0x550071['shift']());}catch(_0x2a0720){_0x550071['push'](_0x550071['shift']());}}}(_0xe760,0x608ad));function _0xe760(){const _0x281caf=['852BwPqxp','value','6093610pGqnxb','_updateFootnotesCounters','1862552CsVHsh','change','5095Bquacf','execute','getAttribute','getFootnotesDefinitionsObjectElement','1454776jrPtuC','model','isEnabled','1754081fysBAx','plugins','164EWIqxQ','get','footnotesListStyle','8655VmNBhf','606024bmWMFZ','18rYCtRM','setAttribute','refresh','includes'];_0xe760=function(){return _0x281caf;};return _0xe760();}import{Command as _0x357f2b}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x485b70}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x5784d1}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x357f2b{[_0x4c7fa4(0x137)](){const _0xd86ff6=_0x4c7fa4,{editor:_0x2bb371}=this,_0x327286=_0x2bb371[_0xd86ff6(0x12f)][_0xd86ff6(0x131)](_0x5784d1)[_0xd86ff6(0x142)]();this[_0xd86ff6(0x12d)]=!!_0x327286,this[_0xd86ff6(0x13a)]=_0x327286?.[_0xd86ff6(0x141)](_0xd86ff6(0x132))??null;}[_0x4c7fa4(0x140)]({value:_0x59fa7e}){const _0xbc8467=_0x4c7fa4,{editor:_0x15b975}=this,_0x10f33a=_0x15b975[_0xbc8467(0x12f)][_0xbc8467(0x131)](_0x5784d1),_0x452915=_0x10f33a[_0xbc8467(0x142)]();_0x452915&&_0x485b70[_0xbc8467(0x138)](_0x59fa7e)&&_0x15b975[_0xbc8467(0x12c)][_0xbc8467(0x13e)](_0x4be8ad=>{const _0x5dbc6f=_0xbc8467;_0x4be8ad[_0x5dbc6f(0x136)](_0x5dbc6f(0x132),_0x59fa7e,_0x452915),_0x10f33a[_0x5dbc6f(0x13c)](_0x4be8ad);});}}
23
+ const _0x33ef21=_0x3bcf;(function(_0x3faa69,_0x205cc8){const _0x3f8e5f=_0x3bcf,_0x2c0d1f=_0x3faa69();while(!![]){try{const _0x598ab6=-parseInt(_0x3f8e5f(0x1f7))/0x1*(parseInt(_0x3f8e5f(0x1ff))/0x2)+-parseInt(_0x3f8e5f(0x1f9))/0x3+-parseInt(_0x3f8e5f(0x200))/0x4*(parseInt(_0x3f8e5f(0x1f5))/0x5)+-parseInt(_0x3f8e5f(0x206))/0x6*(-parseInt(_0x3f8e5f(0x208))/0x7)+-parseInt(_0x3f8e5f(0x205))/0x8*(-parseInt(_0x3f8e5f(0x1fd))/0x9)+-parseInt(_0x3f8e5f(0x20a))/0xa+-parseInt(_0x3f8e5f(0x1fc))/0xb*(-parseInt(_0x3f8e5f(0x207))/0xc);if(_0x598ab6===_0x205cc8)break;else _0x2c0d1f['push'](_0x2c0d1f['shift']());}catch(_0x187aa7){_0x2c0d1f['push'](_0x2c0d1f['shift']());}}}(_0x5b35,0xddf1b));function _0x3bcf(_0x2f2900,_0x4f3c65){const _0x5b3549=_0x5b35();return _0x3bcf=function(_0x3bcf5e,_0x433175){_0x3bcf5e=_0x3bcf5e-0x1f3;let _0xc5ca2=_0x5b3549[_0x3bcf5e];return _0xc5ca2;},_0x3bcf(_0x2f2900,_0x4f3c65);}import{Command as _0x193dff}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x1379c7}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x1c13b6}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x193dff{[_0x33ef21(0x20b)](){const _0x4689ee=_0x33ef21,{editor:_0x19bccc}=this,_0x3e3edd=_0x19bccc[_0x4689ee(0x1fb)][_0x4689ee(0x1fe)](_0x1c13b6)[_0x4689ee(0x1f6)]();this[_0x4689ee(0x203)]=!!_0x3e3edd,this[_0x4689ee(0x1f8)]=_0x3e3edd?.[_0x4689ee(0x209)](_0x4689ee(0x1f4))??null;}[_0x33ef21(0x201)]({value:_0x203135}){const _0x395c26=_0x33ef21,{editor:_0x176e67}=this,_0xeccb87=_0x176e67[_0x395c26(0x1fb)][_0x395c26(0x1fe)](_0x1c13b6),_0x5c6981=_0xeccb87[_0x395c26(0x1f6)]();_0x5c6981&&_0x1379c7[_0x395c26(0x1fa)](_0x203135)&&_0x176e67[_0x395c26(0x1f3)][_0x395c26(0x202)](_0x3b0978=>{const _0x282830=_0x395c26;_0x3b0978[_0x282830(0x204)](_0x282830(0x1f4),_0x203135,_0x5c6981),_0xeccb87[_0x282830(0x20c)](_0x3b0978);});}}function _0x5b35(){const _0x2d77a6=['20xTLQkA','execute','change','isEnabled','setAttribute','8vHFbjJ','5953530lPyxaf','12PIDwXF','7CGROFC','getAttribute','14951740DHfrgi','refresh','_updateFootnotesCounters','model','footnotesListStyle','1032235wJelkq','getFootnotesDefinitionsObjectElement','11ursSlI','value','1554942mNLDcL','includes','plugins','37032985jvSTrm','10657161ySphEF','get','288766hNXJQL'];_0x5b35=function(){return _0x2d77a6;};return _0x5b35();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{BalloonPanelView as _0x218da3,ButtonView as _0x2958cd,ContextualBalloon as _0x1f93c2,createDropdown as _0x490f59}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x4647bb}from'ckeditor5/src/widget.js';import{Plugin as _0x40350a}from'ckeditor5/src/core.js';import{IconFootnote as _0x5c2ae6,IconListStyleDecimal as _0x35ab00,IconListStyleDecimalLeadingZero as _0x39e25c,IconListStyleLowerLatin as _0x317425,IconListStyleLowerRoman as _0x5cb38b,IconListStyleUpperLatin as _0x8ad891,IconListStyleUpperRoman as _0x460429}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x210af8}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x4c115b}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x40350a{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x1f93c2,_0x4647bb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x239fc4}=this,{componentFactory:_0x3b6888}=_0x239fc4['ui'];_0x239fc4['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x3b6888['add']('footnotesStyle',function(_0x3867bf){return _0x6727fd=>{const {t:t}=_0x6727fd,_0x2776c0=_0x3867bf['commands']['get']('footnotesStyle'),_0x287878=_0x490f59(_0x6727fd),{buttonView:_0x3f954a}=_0x287878;return _0x287878['class']='ck-footnotes-styles-dropdown',_0x287878['bind']('isEnabled')['to'](_0x2776c0,'isEnabled'),_0x3f954a['set']({'label':t('Footnotes\x20style'),'icon':_0x5c2ae6,'tooltip':!0x0}),_0x287878['once']('change:isOpen',()=>{const _0x31ea78=function({editor:_0x4f48e2,dropdownView:_0x3e8533}){const {t:t}=_0x4f48e2['locale'],_0x4c3a6a=t('Footnotes\x20definitions\x20styles'),_0x27ae2d=function(_0x19de80){const t=_0x19de80['locale']['t'],_0x2e3eff=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x35ab00},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x39e25c},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x5cb38b},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x460429},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x317425},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x8ad891}];return _0x2e3eff['map'](function(_0x55c8fa){const _0x3069a5=_0x55c8fa['locale'];return({label:_0x2634e8,icon:_0x345ac2,tooltip:_0x5dc15e,style:_0x5bda52})=>{const _0x5ed55a=_0x55c8fa['commands']['get']('footnotesStyle'),_0x332e10=new _0x2958cd(_0x3069a5);return _0x332e10['set']({'label':_0x2634e8,'icon':_0x345ac2,'tooltip':_0x5dc15e}),_0x332e10['bind']('isOn')['to'](_0x5ed55a,'value',_0x8c2ca5=>_0x8c2ca5===_0x5bda52),_0x332e10['bind']('isEnabled')['to'](_0x5ed55a,'isEnabled'),_0x332e10['on']('execute',()=>{_0x55c8fa['execute']('footnotesStyle',{'value':_0x5bda52}),_0x55c8fa['editing']['view']['focus']();}),_0x332e10;};}(_0x19de80));}(_0x4f48e2),_0x5cdecb=new _0x210af8(_0x4f48e2['locale'],{'styleGridAriaLabel':_0x4c3a6a,'styleButtonViews':_0x27ae2d}),_0x24c3fe=_0x4f48e2['commands']['get']('footnotesStart');return _0x5cdecb['startIndexFieldView']['bind']('isEnabled')['to'](_0x24c3fe),_0x5cdecb['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x24c3fe),_0x5cdecb['on']('footnotesListStart',(_0x45b471,_0x1ec16f)=>{_0x4f48e2['execute']('footnotesStart',{'value':_0x1ec16f['startIndex']});}),_0x5cdecb['delegate']('execute')['to'](_0x3e8533),_0x5cdecb;}({'editor':_0x3867bf,'dropdownView':_0x287878});_0x287878['panelView']['children']['add'](_0x31ea78);}),_0x287878;};}(_0x239fc4));}['afterInit'](){const {editor:_0x1fc1c5}=this,{t:t}=_0x1fc1c5['locale'],_0x4b9936=_0x1fc1c5['plugins']['get'](_0x4647bb),{defaultPositions:_0x1b7ba5}=_0x218da3;_0x4b9936['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x1fc1c5['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x331726=>{let _0x4d326c=_0x331726['getFirstPosition']()?.['parent'];return _0x4d326c?.['is']('$text')&&(_0x4d326c=_0x4d326c['parent']),_0x4d326c?.['is']('element')?_0x4d326c['findAncestor'](_0x4c115b):null;},'positions':[_0x1b7ba5['southArrowNorth'],_0x1b7ba5['southArrowNorthMiddleWest'],_0x1b7ba5['southArrowNorthMiddleEast'],_0x1b7ba5['southArrowNorthWest'],_0x1b7ba5['southArrowNorthEast'],_0x1b7ba5['northArrowSouth'],_0x1b7ba5['northArrowSouthMiddleWest'],_0x1b7ba5['northArrowSouthMiddleEast'],_0x1b7ba5['northArrowSouthWest'],_0x1b7ba5['northArrowSouthEast'],_0x1b7ba5['viewportStickyNorth']]});}}
23
+ import{BalloonPanelView as _0x5b5d80,ButtonView as _0x566fe8,ContextualBalloon as _0x2a599d,createDropdown as _0x41dce5}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x5e86ac}from'ckeditor5/src/widget.js';import{Plugin as _0x57210e}from'ckeditor5/src/core.js';import{IconFootnote as _0x2873d5,IconListStyleDecimal as _0xf50831,IconListStyleDecimalLeadingZero as _0x407b28,IconListStyleLowerLatin as _0x1f1988,IconListStyleLowerRoman as _0xec2e38,IconListStyleUpperLatin as _0x52cea2,IconListStyleUpperRoman as _0x2fec30}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x5f3932}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x1f532d}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x57210e{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x2a599d,_0x5e86ac];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x83cdc3}=this,{componentFactory:_0x19d464}=_0x83cdc3['ui'];_0x83cdc3['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x19d464['add']('footnotesStyle',function(_0x26b1cc){return _0x714819=>{const {t:t}=_0x714819,_0x5260a0=_0x26b1cc['commands']['get']('footnotesStyle'),_0x3f8748=_0x41dce5(_0x714819),{buttonView:_0xb16bdd}=_0x3f8748;return _0x3f8748['class']='ck-footnotes-styles-dropdown',_0x3f8748['bind']('isEnabled')['to'](_0x5260a0,'isEnabled'),_0xb16bdd['set']({'label':t('Footnotes\x20style'),'icon':_0x2873d5,'tooltip':!0x0}),_0x3f8748['once']('change:isOpen',()=>{const _0x3cf565=function({editor:_0x2bf3c0,dropdownView:_0x21f1ce}){const {t:t}=_0x2bf3c0['locale'],_0x367205=t('Footnotes\x20definitions\x20styles'),_0x5b8bfd=function(_0x5d2ee9){const t=_0x5d2ee9['locale']['t'],_0x27ea91=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0xf50831},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x407b28},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0xec2e38},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x2fec30},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x1f1988},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x52cea2}];return _0x27ea91['map'](function(_0x33c98f){const _0x2e29e1=_0x33c98f['locale'];return({label:_0x45b77a,icon:_0x3a292c,tooltip:_0x12c156,style:_0x574e95})=>{const _0x55f4c5=_0x33c98f['commands']['get']('footnotesStyle'),_0x3f3437=new _0x566fe8(_0x2e29e1);return _0x3f3437['set']({'label':_0x45b77a,'icon':_0x3a292c,'tooltip':_0x12c156}),_0x3f3437['bind']('isOn')['to'](_0x55f4c5,'value',_0x285a87=>_0x285a87===_0x574e95),_0x3f3437['bind']('isEnabled')['to'](_0x55f4c5,'isEnabled'),_0x3f3437['on']('execute',()=>{_0x33c98f['execute']('footnotesStyle',{'value':_0x574e95}),_0x33c98f['editing']['view']['focus']();}),_0x3f3437;};}(_0x5d2ee9));}(_0x2bf3c0),_0x40bbbe=new _0x5f3932(_0x2bf3c0['locale'],{'styleGridAriaLabel':_0x367205,'styleButtonViews':_0x5b8bfd}),_0x9bf2f0=_0x2bf3c0['commands']['get']('footnotesStart');return _0x40bbbe['startIndexFieldView']['bind']('isEnabled')['to'](_0x9bf2f0),_0x40bbbe['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x9bf2f0),_0x40bbbe['on']('footnotesListStart',(_0x2b4f52,_0x13026c)=>{_0x2bf3c0['execute']('footnotesStart',{'value':_0x13026c['startIndex']});}),_0x40bbbe['delegate']('execute')['to'](_0x21f1ce),_0x40bbbe;}({'editor':_0x26b1cc,'dropdownView':_0x3f8748});_0x3f8748['panelView']['children']['add'](_0x3cf565);}),_0x3f8748;};}(_0x83cdc3));}['afterInit'](){const {editor:_0x5252c7}=this,{t:t}=_0x5252c7['locale'],_0x9df1a1=_0x5252c7['plugins']['get'](_0x5e86ac),{defaultPositions:_0x463885}=_0x5b5d80;_0x9df1a1['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x5252c7['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x4e3211=>{let _0x19f290=_0x4e3211['getFirstPosition']()?.['parent'];return _0x19f290?.['is']('$text')&&(_0x19f290=_0x19f290['parent']),_0x19f290?.['is']('element')?_0x19f290['findAncestor'](_0x1f532d):null;},'positions':[_0x463885['southArrowNorth'],_0x463885['southArrowNorthMiddleWest'],_0x463885['southArrowNorthMiddleEast'],_0x463885['southArrowNorthWest'],_0x463885['southArrowNorthEast'],_0x463885['northArrowSouth'],_0x463885['northArrowSouthMiddleWest'],_0x463885['northArrowSouthMiddleEast'],_0x463885['northArrowSouthWest'],_0x463885['northArrowSouthEast'],_0x463885['viewportStickyNorth']]});}}