@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251122.0 → 0.0.0-nightly-20251124.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.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -9
- package/src/footnotesediting.js +1 -1
package/build/footnotes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-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 u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>A,FootnotesEditing:()=>I,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["$text","558573ZVQJVJ","has","4639590Ddmnzb","from","reset","_model","flat","remove","7386yHavnz","10uKkJqK","type","_trackedElements","push","767522uMIPrW","$graveyard","1465ozprox","createRangeOn","add","_elementName","getElementKey","slice","set","39XwjnvB","rootName","insert","getItems","_getElementKey","8rAOsFW","elementName","length","delete","root","9XVldGd","1419sRuvhZ","values","name","50057HMrrrO","nodeAfter","element","14424wZkXpX","8QOstxy","attributes","clear","get","2407748NZlpiX","position","getChanges"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=287]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(335985===parseInt(e(327))/1*(parseInt(e(300))/2)+-parseInt(e(291))/3*(parseInt(e(318))/4)+-parseInt(e(306))/5*(-parseInt(e(299))/6)+-parseInt(e(304))/7*(parseInt(e(331))/8)+-parseInt(e(323))/9*(parseInt(e(293))/10)+-parseInt(e(324))/11*(-parseInt(e(330))/12)+-parseInt(e(313))/13*(-parseInt(e(287))/14))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(296)];[r(309)];[r(317)];[r(302)]=new Map;constructor(t,e){const o=r;this[o(296)]=t,this[o(309)]=e[o(319)],this[o(317)]=e[o(310)]}[r(295)](){const t=r;this[t(302)][t(333)]()}[r(289)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(315)===i[e(301)]&&e(290)!==i[e(326)]&&i[e(288)][e(328)]){const t=this[e(296)][e(307)](i[e(288)][e(328)]);for(const o of t[e(316)]()){if(!o.is(e(329),this[e(309)]))continue;const t=this[e(317)](o);n[e(292)](t)||n[e(312)](t,[]),n[e(334)](t)[e(303)](o)}}if(e(298)===i[e(301)]&&i[e(326)]===this[e(309)]){const t=this[e(317)]({getAttribute:t=>i[e(332)][e(334)](t)});o[e(308)](t)}}for(const[t,n]of this[e(302)])e(305)===n[e(322)][e(314)]&&o[e(308)](t);for(const t of o)this[e(302)][e(321)](t);for(const[t,o]of n)this[e(302)][e(312)](t,o[o[e(320)]-1]);const i=new Set;for(const[t,s]of n)o[e(292)](t)&&(i[e(308)](s[0]),s[e(320)]>1?n[e(312)](t,s[e(311)](1)):n[e(321)](t),o[e(321)](t));return{removed:Array[e(294)](o),inserted:Array[e(294)](n[e(325)]())[e(297)](),moved:Array[e(294)](i)}}}const u=h;function f(){const t=["footnoteRef","setFootnoteFormatter","footnotesDefinitions","4pPhrCx","push","after","remove","footnotes.multiBlock","$graveyard","_handleFootnotesDefinitionsObjectChanges","isEqual","_ensureFootnotesDefinitionsContainerExists","footnoteDefinition","getChanges","138005WqBTGg","get","_footnotesDefinitions","_insertEmptyFootnotesDefinitionsContainer","footnoteInlineContent","editor","3722787PUPlCC","find","compareWith","childCount","high","model","document","getFootnotesDefinitionsObjectElement","31224zPvWTx","move","config","reference","set","min","getFootnote","differ","from","footnoteId","add","indexOf","init","change:data","map","pluginName","_footnoteRefsTracker","_handleRemoveFootnoteReferenceById","end","createRangeOn","some","_updateFootnotesCounters","singleton","paragraph","getFootnotes","_handleFootnoteReferencesChanges","_sortFootnoteDefinitions","enqueueChange","createPositionBefore","976620OMcTAX","_footnoteDefsTracker","parent","setAttribute","createRangeIn","registerPostFixer","footnoteCounter","insert","isPremiumPlugin","_handleInsertedFootnoteReference","_handleFootnoteDefinitionsChanges","isOfficialPlugin","definition","listenTo","rootName","root","has","FootnotesTracker","findIndex","3KYvsRb","unshift","_footnotes","low","_ensureFootnotesReferencesHaveProperOrder","getRootNames","getChildren","_footnoteDefsContainerTracker","append","getAttribute","createPositionAt","_handleMovedFootnoteReference","_handleFootnotesDefinitionsObjectSync","reset","81766hBaMZh","splice","1016035YMsNrD","length","getFootnotesFormatter","createElement","before","_footnoteFormatter","56315OctbiW","_updateFootnoteRefCounter"];return(f=function(){return t})()}!function(t){const e=h,o=t();for(;;)try{if(127080===parseInt(e(437))/1+parseInt(e(413))/2*(parseInt(e(399))/3)+parseInt(e(426))/4*(parseInt(e(415))/5)+parseInt(e(380))/6+-parseInt(e(421))/7+parseInt(e(451))/8+-parseInt(e(443))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(401)]=[];[u(439)]=null;[u(420)]=null;[u(406)];[u(467)];[u(381)];static get[u(466)](){return u(397)}static get[u(391)](){return!0}static get[u(388)](){return!0}constructor(t){const e=u;super(t),this[e(406)]=new l(this[e(442)][e(448)],{elementName:e(425),getElementKey:()=>e(473)}),this[e(467)]=new l(this[e(442)][e(448)],{elementName:e(423),getElementKey:t=>t[e(408)](e(460))}),this[e(381)]=new l(this[e(442)][e(448)],{elementName:e(435),getElementKey:t=>t[e(408)](e(460))})}[u(463)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(449)][t(385)](e=>{const n=t,i=o[n(449)][n(458)][n(436)]();let s=!1;return this[n(432)](e,i)&&(s=!0),this[n(390)](e,i)&&(s=!0),this[n(476)](e,i)&&(s=!0),this[n(403)](e)&&(s=!0),this[n(411)](e)&&(s=!0),this[n(477)](e)&&(s=!0),s}),this[t(393)](o[t(449)],t(464),()=>{const e=t;o[e(378)]({isUndoable:!1},t=>{this[e(434)](t)})},{priority:t(402)}),this[t(393)](n,t(455),()=>{const e=t;this[e(401)]=[],this[e(406)][e(412)](),this[e(467)][e(412)](),this[e(381)][e(412)]()},{priority:t(447)})}[u(450)](){return this[u(439)]}[u(457)](t){const e=u;return this[e(401)][e(444)](e=>e.id===t)||null}[u(475)](){const t=u;return Array[t(459)](this[t(401)])}[u(417)](){return this[u(420)]}[u(424)](t){this[u(420)]=t}[u(472)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(401)][o(416)];i++)this[o(422)](t,i)&&(n=!0);return n}[u(440)](t,e){const o=u,n=t[o(418)](o(425),{});return t[o(407)](n,e),this[o(439)]=n,n}[u(434)](t){const e=u;if(!this[e(401)][e(416)]||this[e(439)])return;const o=this[e(401)][0][e(454)][e(395)],n=this[e(440)](t,o);for(const o of this[e(401)])o[e(392)][e(382)]||t[e(387)](o[e(392)],n,e(469));this[e(472)](t)}[u(432)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(406)][o(436)](e);if(r[o(416)]&&(this[o(439)]=r[0]),i[o(416)])if(i[o(416)]>1||this[o(439)]&&i[o(471)](t=>t!==this[o(439)])){const e=t[o(418)](o(425),{}),s=[];this[o(439)]&&s[o(427)](this[o(439)]),s[o(427)](...i),t[o(387)](e,s[0],o(419));for(const n of s)t[o(452)](t[o(384)](n),t[o(409)](e,o(469))),t[o(429)](n);this[o(439)]=e,this[o(472)](t),n=!0}else this[o(439)]=i[0];if(s[o(416)]&&o(431)===this[o(439)]?.[o(395)][o(394)]){for(const e of this[o(401)])t[o(429)](e[o(454)]),n=!0;this[o(401)]=[],this[o(439)]=null}return n}[u(390)](t,e){const o=u;let n=!1;const i=this[o(442)][o(453)][o(438)](o(430)),{inserted:s,moved:r}=this[o(381)][o(436)](e);for(const e of[...r,...s]){const s=e[o(408)](o(460)),r=this[o(457)](s);r&&(r[o(392)]=e),p(t,i,e)&&(n=!0)}return n}[u(476)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(467)][o(436)](e);for(const e of i)this[o(468)](t,e)&&(n=!0);for(const e of s)this[o(389)](t,e)&&(n=!0);for(const e of r)this[o(410)](t,e)&&(n=!0);return n}[u(411)](t){const e=u;if(!this[e(439)])return!1;let o=!1;if(this[e(439)][e(446)]!==this[e(401)][e(416)]){const n=[];for(const t of this[e(439)][e(405)]()){const i=t[e(408)](e(460));this[e(457)](i)||(n[e(400)](t),o=!0)}for(const o of n)t[e(429)](o)}const n=new Set,i=[];for(const t of this[e(439)][e(405)]()){const s=t[e(408)](e(460));n[e(396)](s)?(i[e(400)](t),o=!0):n[e(461)](s)}for(const o of i)t[e(429)](o);return this[e(439)][e(446)]||(t[e(429)](this[e(439)]),this[e(439)]=null,o=!0),o}[u(389)](t,e){const o=u;if(this[o(401)][o(444)](t=>t[o(454)]===e))return!1;let n=!1;const i=e[o(408)](o(460)),s=this[o(401)][o(398)](t=>t.id===i);-1!==s&&(t[o(429)](this[o(401)][s][o(454)]),this[o(401)][o(414)](s,1),n=!0);let r=this[o(439)]?function(t,e){const n=o;for(const o of t[n(405)]())if(o[n(408)](n(460))===e)return o;return null}(this[o(439)],i):null;r||(r=t[o(418)](o(435),{footnoteId:i}),this[o(439)]&&(t[o(387)](r,this[o(439)],o(469)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(442)][o(448)],this[o(401)],e);this[o(401)][o(414)](c,0,a);let l=c;return-1!==s&&(l=Math[o(456)](c,s)),this[o(472)](t,l)&&(n=!0),n}[u(468)](t,e){const o=u,n=this[o(401)][o(398)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(401)][n];return o(431)!==s[o(392)][o(395)][o(394)]&&(t[o(429)](s[o(392)]),i=!0),this[o(401)][o(414)](n,1),this[o(472)](t,n)&&(i=!0),i}[u(410)](t,e){const o=u,n=e[o(408)](o(460)),i=this[o(401)][o(398)](t=>t.id===n),s=this[o(401)][i];let r=!1;s[o(454)]=e,this[o(401)][o(414)](i,1);const a=m(this[o(442)][o(448)],this[o(401)],e);return this[o(401)][o(414)](a,0,s),this[o(472)](t,Math[o(456)](i,a))&&(r=!0),r}[u(422)](t,e){const o=u;if(!this[o(439)])return!1;const n=this[o(401)][e];let i;return i=this[o(420)]?this[o(420)]({footnote:n,container:this[o(439)],digits:String(this[o(401)][o(416)])[o(416)],value:e+1}):String(e+1),n[o(454)][o(408)](o(386))!=i&&(t[o(383)](o(386),i,n[o(454)]),!0)}[u(477)](t){const e=u;if(!this[e(439)]||this[e(401)][e(416)]<2)return!1;if(function(t,o){const n=e;if(t[n(416)]!==o[n(416)])return!1;for(let e=0;e<t[n(416)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(401)][e(465)](t=>t.id),Array[e(459)](this[e(439)][e(405)]())[e(465)](t=>t[e(408)](e(460)))))return!1;let o=!1;for(let n=0;n<this[e(401)][e(416)];n++){const i=this[e(401)][n],s=t[e(379)](i[e(392)]),r=t[e(409)](this[e(439)],n);s[e(433)](r)||(t[e(452)](t[e(470)](i[e(392)]),r),o=!0)}return o}[u(403)](t){const e=u;if(!this[e(401)][e(416)])return!1;const{model:o}=this[e(442)];let n=!1;for(let i=0;i<this[e(401)][e(416)]-1;i++){const s=this[e(401)][i],r=this[e(401)][i+1],a=o[e(379)](s[e(454)]),c=o[e(379)](r[e(454)]);e(428)===a[e(445)](c)&&(this[e(410)](t,s[e(454)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(446)])return!1;const i=n(e?474:441);return t[n(387)](t[n(418)](i),o),!0}function h(t,e){const o=f();return(h=function(t,e){return o[t-=378]})(t,e)}function m(t,e,o){const n=u;if(0===e[n(416)])return 0;const i=t[n(379)](o);for(let o=0;o<e[n(416)];o++){const s=e[o],r=t[n(379)](s[n(454)]);if(n(419)===i[n(445)](r))return o}const s=o[n(395)];let r=-1;for(let t=e[n(416)]-1;t>=0;t--)if(e[t][n(454)][n(395)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(449)][n(404)](),c=a[n(462)](s[n(394)]),l=a[c+1];if(l)for(let t=0;t<e[n(416)];t++)if(e[t][n(454)][n(395)][n(394)]===l)return t;return e[n(416)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=323]})(t,e)}function y(){const t=["_getPositionToInsertFootnote","selection","getFirstRange","isBlock","insert-footnote-command-executed-with-invalid-id","5cAuSzW","createElement","1658448bNgimd","FootnotesEditing","366777xsiNhf","string","footnoteId","getItems","length","test","editor","change","plugins","3108252MDpblI","368DAQpUP","7216530wFFjSa","document","655304WflGWV","footnoteRef","3124962dPLitI","execute","3219416foHJqU","refresh","end","isEnabled","model","insertObject","get","isObject","checkChild","_moveSelectionToFootnoteDefinition"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(605409===parseInt(e(341))/1+parseInt(e(326))/2+parseInt(e(343))/3+-parseInt(e(345))/4*(parseInt(e(324))/5)+parseInt(e(339))/6+-parseInt(e(337))/7+-parseInt(e(338))/8*(parseInt(e(328))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(346)](){const t=g,e=this[t(334)][t(349)][t(340)][t(356)],o=this[t(355)](e);this[t(348)]=!!o}[g(344)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(340)],r=this[e(355)](s);if(!r)return;const a=o[e(336)][e(351)](e(327)),c=t?.[e(330)]??(0,i.uid)();!function(t){const o=e;return o(329)==typeof t&&t[o(332)]>0&&!/\s/[o(333)](t)&&!/^\d/[o(333)](t)}(c)?(0,i.logWarning)(e(323)):(n[e(335)](t=>{const o=e,i=t[o(325)](o(342),{footnoteId:c});n[o(350)](i,r,null)}),a[e(354)](c))}[g(355)](t){const e=g,{model:o}=this[e(334)],{schema:n}=o,i=t[e(357)]();for(const t of i[e(331)]())if(n[e(358)](t)||n[e(352)](t))return null;const s=i[e(347)];return n[e(353)](s,e(342))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=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++,504==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])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function 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])],f(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 u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(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(f(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(f(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])]:u}},{[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])](u(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:1763769600;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(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>P(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)(P(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})=>E(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>E(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 P(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 E(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 S=o(331);const T=_;function D(){const t=["from","editing","6685146wQvVNR","getFootnote","change","content","definition","clipboardInput","root","getRanges","stringify","listenTo","element","add","setAttribute","toData","2613804CeRupZ","contentInsertion","init","reduce","7024easVPR","includes","parse","pluginName","editor","insert","footnoteRef","toModel","isOfficialPlugin","getAttribute","getFootnotes","toView","sourceEditorId","5005770OLVkVG","getFirstRange","createRangeIn","flatMap","isPremiumPlugin","_insertEmptyFootnotesDefinitionsContainer","setData","end","_handlePasteFootnotesDefinitions","getData","footnoteId","getFootnotesDefinitionsObjectElement","getSelectedBlocks","drop","dataTransfer","outputTransformation","append","htmlProcessor","142cDbCpn","find","10740249vtpZVI","footnoteDefinition","application/ckeditor5-footnotes","footnotesDefinitions","push","remove","length","method","selection","createElement","entries","12460pHRZXn","11559FFNcPP","document","create","get","FootnotesClipboard","_handleCopyFootnotesDefinitions","5462646CprBzA","requires","_defineClipboardIntegration","data"];return(D=function(){return t})()}function _(t,e){const o=D();return(_=function(t,e){return o[t-=321]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(987598===-parseInt(e(329))/1*(parseInt(e(390))/2)+parseInt(e(335))/3+-parseInt(e(355))/4+-parseInt(e(372))/5+-parseInt(e(341))/6+parseInt(e(328))/7*(parseInt(e(359))/8)+parseInt(e(392))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class A extends t.Plugin{static get[T(362)](){return T(333)}static get[T(336)](){return[I,S.ClipboardPipeline]}static get[T(367)](){return!0}static get[T(376)](){return!0}[T(357)](){this[T(337)]()}[T(337)](){const t=T;this[t(334)](),this[t(380)]()}[T(334)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(332)](S.ClipboardPipeline),s=o[t(332)](d);this[t(350)](i,t(387),(o,i)=>{const r=t,a=L(n[r(374)](i[r(344)]));if(!a[r(323)])return;const c=s[r(369)](),l=a[r(358)]((t,o)=>{const n=r,i=c[n(391)](t=>t.id===o);if(i){const o=e[n(338)][n(370)](i[n(345)],{isClipboardPipeline:!0}),s=e[n(338)][n(389)][n(354)](o);t[i.id]=s}return t},Object[r(331)](null));i[r(386)][r(378)](r(394),JSON[r(349)](l))})}[T(380)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(340)],r=n[t(332)](S.ClipboardPipeline),a=n[t(332)](d);let c=null;this[t(350)](s[t(330)],t(346),(e,o)=>{const n=t,i=o[n(386)][n(381)](n(394));c=i?JSON[n(361)](i):null}),this[t(350)](r,t(356),(n,s)=>{const r=t,l=s[r(371)]===this[r(363)].id;l&&r(385)===s[r(324)]||o[r(343)](t=>{const n=r;let u=a[n(383)]();const f=!!u&&Array[n(339)](o[n(330)][n(325)][n(384)]())[n(360)](u);if((u&&!f||!u&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(374)](e))n.is(o(351),o(395))&&i[o(321)](n);for(const e of i)t[o(322)](e)}(t,s[n(344)]),!c)return;const{selection:d}=o[n(330)],p=d[n(373)]()[n(347)];u&&!f||(u=function(t,e){const o=n;for(const{item:n}of t[o(374)](e))if(n.is(o(351),o(395)))return n;return null}(t,s[n(344)]),u||=a[n(377)](t,p));const h=Array[n(339)](d[n(348)]())[n(375)](L),m=function(t,e,o){const s=n,r=Object[s(331)](null);for(const{item:n}of t[s(374)](e))if(n.is(s(351),s(365))){const e=n[s(368)](s(382));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(353)](s(382),r[e],n)}return r}(t,s[n(344)],t=>{const e=n;return!l||!!a[e(342)](t)&&!h[e(360)](t)});for(const[o,i]of Object[n(327)](c)){const s=m[o]||o,r=t[n(326)](n(393),{footnoteId:s}),a=e[n(338)][n(389)][n(370)](i),c=e[n(338)][n(366)](a,r);t[n(388)](c,r),t[n(364)](r,u,n(379))}c=null})})}}function L(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(351),e(365))&&o[e(352)](n[e(368)](e(382)));return Array[e(339)](o)}var N=o(311),R=o(355),V=o(929),O=o.n(V),K=o(297),M=o.n(K),j=o(102),B=o.n(j),W=o(123),U=o.n(W),z=o(741),H=o.n(z),X=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=U(),G.insert=B().bind(null,"head"),G.domAPI=M(),G.insertStyleElement=H();O()(X.A,G);X.A&&X.A.locals&&X.A.locals;class q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",J(t,N.ButtonView)),e.add("menuBar:insertFootnote",J(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 J(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:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Z=Y;function Y(t,e){var o=Q();return(Y=function(t,e){return o[t-=151]})(t,e)}function Q(){var t=["pluginName","258256KhWDBb","requires","6500480mCtFLU","45966OXUaFy","isOfficialPlugin","2989650NKYcCW","33JEJxLC","1667619qldrsF","isPremiumPlugin","4elpxpm","780726IfJdsU","994NIUnfm","Footnotes","10gdMFuE","289113GRwGHJ","432EyiGHK"];return(Q=function(){return t})()}!function(t){for(var e=Y,o=t();;)try{if(727191===parseInt(e(159))/1+parseInt(e(166))/2*(-parseInt(e(155))/3)+parseInt(e(158))/4*(parseInt(e(154))/5)+-parseInt(e(152))/6*(-parseInt(e(160))/7)+parseInt(e(151))/8+-parseInt(e(156))/9*(parseInt(e(162))/10)+parseInt(e(163))/11*(-parseInt(e(164))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Q);class $ extends t.Plugin{static get[Z(165)](){return Z(161)}static get[Z(167)](){return[I,A,q]}static get[Z(153)](){return!0}static get[Z(157)](){return!0}}function tt(){const t=["upper-latin","1337016YUCNLh","lower-alpha","5xOyMnK","upper-roman","60003EBwblL","8iCQDHa","883172GYIaUw","1017604vyRgKi","126rSYgbx","lower-latin","decimal","3144057RcSyYE","1139352UvVCWS","lower-roman","1563930NkjmKP","decimal-leading-zero","upper-alpha"];return(tt=function(){return t})()}function et(t,e){const o=tt();return(et=function(t,e){return o[t-=461]})(t,e)}const ot=et;!function(t){const e=et,o=t();for(;;)try{if(348133===-parseInt(e(472))/1+-parseInt(e(475))/2+-parseInt(e(462))/3+-parseInt(e(474))/4*(parseInt(e(470))/5)+-parseInt(e(468))/6+-parseInt(e(461))/7*(parseInt(e(473))/8)+parseInt(e(476))/9*(parseInt(e(464))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);const nt=[ot(478),ot(465),ot(477),ot(467),ot(469),ot(466),ot(463),ot(471)];function it(t,e){const o=st();return(it=function(t,e){return o[t-=106]})(t,e)}function st(){const t=["isEnabled","refresh","104sYTRrG","7126IZPxMm","plugins","getFootnotesDefinitionsObjectElement","value","34MZtWrA","model","17970glyhcN","1027638cBhQnQ","913CXwmLX","getAttribute","_updateFootnotesCounters","12474DugpQl","206616zNdINu","20LluYrG","execute","774486dhShGB","footnotesListStyle","98128cZQqmN","includes","change","get","setAttribute"];return(st=function(){return t})()}const rt=it;!function(t){const e=it,o=t();for(;;)try{if(157999===-parseInt(e(114))/1*(parseInt(e(121))/2)+parseInt(e(125))/3+-parseInt(e(127))/4*(-parseInt(e(123))/5)+-parseInt(e(122))/6+parseInt(e(110))/7*(parseInt(e(109))/8)+-parseInt(e(117))/9+parseInt(e(116))/10*(parseInt(e(118))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class at extends t.Command{[rt(108)](){const t=rt,{editor:e}=this,o=e[t(111)][t(130)](d)[t(112)]();this[t(107)]=!!o,this[t(113)]=o?.[t(119)](t(126))??null}[rt(124)]({value:t}){const e=rt,{editor:o}=this,n=o[e(111)][e(130)](d),i=n[e(112)]();i&&nt[e(128)](t)&&o[e(115)][e(129)](o=>{const s=e;o[s(106)](s(126),t,i),n[s(120)](o)})}}const ct=lt;function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=262]})(t,e)}!function(t){const e=lt,o=t();for(;;)try{if(803346===parseInt(e(267))/1*(-parseInt(e(277))/2)+-parseInt(e(280))/3+parseInt(e(273))/4+parseInt(e(274))/5*(parseInt(e(278))/6)+parseInt(e(265))/7*(parseInt(e(268))/8)+-parseInt(e(282))/9*(parseInt(e(262))/10)+parseInt(e(276))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class ut extends t.Command{[ct(266)](){const t=ct,{editor:e}=this,o=e[t(275)][t(279)](d)[t(271)]();this[t(272)]=!!o,this[t(286)]=o?.[t(263)](t(285))??null}[ct(283)]({value:t}){const e=ct,{editor:o}=this,n=o[e(275)][e(279)](d),i=n[e(271)]();i&&Number[e(269)](t)&&o[e(281)][e(270)](o=>{const s=e;o[s(284)](s(285),t,i),n[s(264)](o)})}}function ft(){const t=["1405dIhzFL","plugins","8356128WLTKIT","194kXFLNk","32196SaTFfw","get","1556442Rjigcm","model","1179WdtugJ","execute","setAttribute","footnotesListStart","value","73760AQUnXD","getAttribute","_updateFootnotesCounters","3389603FMVuJG","refresh","7127DufNnN","8xhIIcW","isInteger","change","getFootnotesDefinitionsObjectElement","isEnabled","912048PMHnrM"];return(ft=function(){return t})()}function dt(t,e){const o=yt();return(dt=function(t,e){return o[t-=253]})(t,e)}const pt=dt;!function(t){const e=dt,o=t();for(;;)try{if(346239===-parseInt(e(331))/1+-parseInt(e(275))/2+parseInt(e(266))/3*(-parseInt(e(336))/4)+-parseInt(e(326))/5*(parseInt(e(262))/6)+parseInt(e(296))/7+-parseInt(e(328))/8*(-parseInt(e(338))/9)+-parseInt(e(280))/10*(-parseInt(e(306))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(yt);class ht extends t.Plugin{static get[pt(279)](){return pt(299)}static get[pt(320)](){return[I,d]}static get[pt(351)](){return!0}static get[pt(259)](){return!0}[pt(312)](){const t=pt,{editor:e}=this;e[t(309)][t(288)](t(302),t(349)),e[t(309)][t(288)](t(260),1),e[t(330)][t(340)](t(272),new at(e)),e[t(330)][t(340)](t(339),new ut(e)),this[t(264)](),this[t(273)](),this[t(292)](),this[t(318)]()}[pt(264)](){const t=pt,{editor:e}=this,{schema:o}=e[t(281)];o[t(267)](t(278),{allowAttributes:[t(308),t(257)]})}[pt(273)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(343)](t(346))[t(340)](e=>{const o=t;e.on(o(291),(t,e,n)=>{const s=o,r=e[s(274)],a=e[s(261)]?.[s(325)];r[s(344)](s(341))&&a?.is(s(255),s(278))&&(function(t,e,o,n){const i=s;if(!n[i(337)](e,i(257)))return;let r=1;const a=o[i(334)][i(276)](t,{attributes:i(283)});if(a){const e=Number[i(268)](t[i(263)](i(283)),10);Number[i(335)](e)||(r=e)}!a&&e[i(353)](i(257))||o[i(317)][i(287)](i(257),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(337)](e,i(308)))return;let r=i(349),a=!1;if(o[i(334)][i(276)](t,{attributes:i(294)})){const e={1:i(349),a:i(277),A:i(324),i:i(289),I:i(315)}[t[i(263)](i(294))];e&&(r=e),a=!0}o[i(334)][i(276)](t,{styles:i(354)})&&(r=t[i(352)](i(354)),a=!0),!a&&e[i(353)](i(308))||o[i(317)][i(287)](i(308),r,e)}(r,a,n,i))})}),o[t(343)](t(305))[t(340)](e=>{const o=t;e.on(o(285),(t,e,n)=>{const i=o;if(!n[i(334)][i(276)](e[i(293)],t[i(304)]))return;const s=mt(e[i(293)],n[i(332)]),{attributeNewValue:r}=e;null==r||1===r?n[i(317)][i(284)](i(283),s):n[i(317)][i(287)](i(283),String(r),s)}),e.on(o(303),(t,e,n)=>{const i=o;if(!n[i(334)][i(276)](e[i(293)],t[i(304)]))return;const s=mt(e[i(293)],n[i(332)]),{attributeNewValue:r}=e;r&&i(349)!==r?n[i(317)][i(307)](i(354),r,s):n[i(317)][i(298)](i(354),s)})})}[pt(318)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(295)][t(347)](d),i=this[t(313)](),s=this[t(314)]();o[t(271)][t(256)](e=>{const r=t,a=o[r(271)][r(311)][r(265)]();let c=!1;for(const t of a){if(r(297)!==t[r(294)]||r(327)===t[r(304)])continue;const n=o[r(300)](t[r(286)][r(350)]);for(const t of n[r(301)]())t.is(r(255),r(278))&&(!t[r(353)](r(257))&&o[r(345)][r(337)](t,r(257))&&(e[r(287)](r(257),s,t),c=!0),!t[r(353)](r(308))&&o[r(345)][r(337)](t,r(308))&&(e[r(287)](r(308),i,t),c=!0))}return c&&n[r(316)](e),c})}[pt(292)](){const t=pt,{editor:e}=this;e[t(295)][t(347)](d)[t(253)](e=>this[t(282)](e))}[pt(313)](){const t=pt;return this[t(258)][t(309)][t(347)](t(302))}[pt(314)](){const t=pt;return this[t(258)][t(309)][t(347)](t(260))}[pt(282)]({container:t,value:e,digits:o}){const n=pt,i=t[n(263)](n(308)),s=t[n(263)](n(257)),r=Math[n(333)](e)+(s??1)-1;switch(i){case n(269):return function(t,e){const o=n;return String(t)[o(323)](e,"0")}(r,Math[n(319)](2,o));case n(277):case n(342):return gt(r,!1);case n(324):case n(254):return gt(r,!0);case n(289):return bt(r,!1);case n(315):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=pt,n=e[o(322)](t);return Array[o(270)](n[o(329)]())[o(321)](t=>t.is(o(255),"ol")&&t[o(344)](o(341)))}function gt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(290)](97+t)+n,i=Math[o(333)]((i-1)/26)}return e?n[o(348)]():n}const wt=[{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 yt(){const t=["getAttribute","_defineSchema","getChanges","3aCeIeX","extend","parseInt","decimal-leading-zero","from","document","footnotesStyle","_defineConverters","viewItem","1038540TqNJcQ","consume","lower-alpha","footnotesDefinitions","pluginName","12105440aFEhCh","model","_formatFootnoteListValue","start","removeAttribute","attribute:footnotesListStart:footnotesDefinitions","position","setAttribute","define","lower-roman","fromCharCode","element:ol","_defineFormatter","item","type","plugins","393358tNaHsR","insert","removeStyle","FootnotesPropertiesEditing","createRangeOn","getItems","footnotes.footnotesProperties.defaultListStyle","attribute:footnotesListStyle:footnotesDefinitions","name","downcast","11vtJWmh","setStyle","footnotesListStyle","config","toLowerCase","differ","init","_getDefaultListStyle","_getDefaultStartIndex","upper-roman","_updateFootnotesCounters","writer","_definePostfixer","max","requires","find","toViewElement","padStart","upper-alpha","parent","10XhoRNq","$text","4936016SBGFkO","getChildren","commands","463990fkRtbg","mapper","floor","consumable","isNaN","566156RharKo","checkAttribute","9XMUFgJ","footnotesStart","add","footnotes-list","lower-latin","for","hasClass","schema","upcast","get","toUpperCase","decimal","nodeAfter","isOfficialPlugin","getStyle","hasAttribute","list-style-type","setFootnoteFormatter","upper-latin","element","registerPostFixer","footnotesListStart","editor","isPremiumPlugin","footnotes.footnotesProperties.defaultStartIndex","modelCursor","1238106yXgBWS"];return(yt=function(){return t})()}function bt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of wt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(310)]()}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 vt=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=U(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=H();O()(vt.A,kt);vt.A&&vt.A.locals&&vt.A.locals;class Ct 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:R.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new 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});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=Pt;function xt(){var t=["10ZPYPJG","205326PIdfKc","2173941ZGkDCw","isOfficialPlugin","425YxRdnc","4338531ioPnfx","pluginName","4664IqntGO","70RRlYao","FootnotesProperties","153xXflwc","767152SNLOuI","isPremiumPlugin","84DOTwEC","396504SmuNGZ","requires","10536dZJbbD"];return(xt=function(){return t})()}function Pt(t,e){var o=xt();return(Pt=function(t,e){return o[t-=264]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(434820===-parseInt(e(279))/1*(parseInt(e(276))/2)+-parseInt(e(266))/3+parseInt(e(268))/4*(-parseInt(e(273))/5)+-parseInt(e(270))/6*(-parseInt(e(277))/7)+-parseInt(e(280))/8+parseInt(e(274))/9*(-parseInt(e(269))/10)+-parseInt(e(271))/11*(-parseInt(e(265))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Et extends t.Plugin{static get[Ft(275)](){return Ft(278)}static get[Ft(267)](){return[ht,Ct]}static get[Ft(272)](){return!0}static get[Ft(264)](){return!0}}function St(t,e){var o=Tt();return(St=function(t,e){return o[t-=122]})(t,e)}function Tt(){var t=["40ysuEGc","6ZPcMLK","599384EYNdtL","6hxVpkP","11100kJzrpm","9SYbaRI","280510VgKRwE","3866048pPqYKR","30206iPIeup","991341VLptqz","363650yVjgdX","3552135CgyCMt"];return(Tt=function(){return t})()}!function(t){for(var e=St,o=t();;)try{if(495915===parseInt(e(128))/1+-parseInt(e(133))/2*(-parseInt(e(122))/3)+parseInt(e(126))/4+parseInt(e(130))/5*(parseInt(e(132))/6)+parseInt(e(129))/7*(-parseInt(e(131))/8)+parseInt(e(124))/9*(parseInt(e(125))/10)+parseInt(e(127))/11*(-parseInt(e(123))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
5
|
+
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>A,FootnotesEditing:()=>I,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["$text","558573ZVQJVJ","has","4639590Ddmnzb","from","reset","_model","flat","remove","7386yHavnz","10uKkJqK","type","_trackedElements","push","767522uMIPrW","$graveyard","1465ozprox","createRangeOn","add","_elementName","getElementKey","slice","set","39XwjnvB","rootName","insert","getItems","_getElementKey","8rAOsFW","elementName","length","delete","root","9XVldGd","1419sRuvhZ","values","name","50057HMrrrO","nodeAfter","element","14424wZkXpX","8QOstxy","attributes","clear","get","2407748NZlpiX","position","getChanges"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=287]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(335985===parseInt(e(327))/1*(parseInt(e(300))/2)+-parseInt(e(291))/3*(parseInt(e(318))/4)+-parseInt(e(306))/5*(-parseInt(e(299))/6)+-parseInt(e(304))/7*(parseInt(e(331))/8)+-parseInt(e(323))/9*(parseInt(e(293))/10)+-parseInt(e(324))/11*(-parseInt(e(330))/12)+-parseInt(e(313))/13*(-parseInt(e(287))/14))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(296)];[r(309)];[r(317)];[r(302)]=new Map;constructor(t,e){const o=r;this[o(296)]=t,this[o(309)]=e[o(319)],this[o(317)]=e[o(310)]}[r(295)](){const t=r;this[t(302)][t(333)]()}[r(289)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(315)===i[e(301)]&&e(290)!==i[e(326)]&&i[e(288)][e(328)]){const t=this[e(296)][e(307)](i[e(288)][e(328)]);for(const o of t[e(316)]()){if(!o.is(e(329),this[e(309)]))continue;const t=this[e(317)](o);n[e(292)](t)||n[e(312)](t,[]),n[e(334)](t)[e(303)](o)}}if(e(298)===i[e(301)]&&i[e(326)]===this[e(309)]){const t=this[e(317)]({getAttribute:t=>i[e(332)][e(334)](t)});o[e(308)](t)}}for(const[t,n]of this[e(302)])e(305)===n[e(322)][e(314)]&&o[e(308)](t);for(const t of o)this[e(302)][e(321)](t);for(const[t,o]of n)this[e(302)][e(312)](t,o[o[e(320)]-1]);const i=new Set;for(const[t,s]of n)o[e(292)](t)&&(i[e(308)](s[0]),s[e(320)]>1?n[e(312)](t,s[e(311)](1)):n[e(321)](t),o[e(321)](t));return{removed:Array[e(294)](o),inserted:Array[e(294)](n[e(325)]())[e(297)](),moved:Array[e(294)](i)}}}const u=h;function f(){const t=["footnoteRef","setFootnoteFormatter","footnotesDefinitions","4pPhrCx","push","after","remove","footnotes.multiBlock","$graveyard","_handleFootnotesDefinitionsObjectChanges","isEqual","_ensureFootnotesDefinitionsContainerExists","footnoteDefinition","getChanges","138005WqBTGg","get","_footnotesDefinitions","_insertEmptyFootnotesDefinitionsContainer","footnoteInlineContent","editor","3722787PUPlCC","find","compareWith","childCount","high","model","document","getFootnotesDefinitionsObjectElement","31224zPvWTx","move","config","reference","set","min","getFootnote","differ","from","footnoteId","add","indexOf","init","change:data","map","pluginName","_footnoteRefsTracker","_handleRemoveFootnoteReferenceById","end","createRangeOn","some","_updateFootnotesCounters","singleton","paragraph","getFootnotes","_handleFootnoteReferencesChanges","_sortFootnoteDefinitions","enqueueChange","createPositionBefore","976620OMcTAX","_footnoteDefsTracker","parent","setAttribute","createRangeIn","registerPostFixer","footnoteCounter","insert","isPremiumPlugin","_handleInsertedFootnoteReference","_handleFootnoteDefinitionsChanges","isOfficialPlugin","definition","listenTo","rootName","root","has","FootnotesTracker","findIndex","3KYvsRb","unshift","_footnotes","low","_ensureFootnotesReferencesHaveProperOrder","getRootNames","getChildren","_footnoteDefsContainerTracker","append","getAttribute","createPositionAt","_handleMovedFootnoteReference","_handleFootnotesDefinitionsObjectSync","reset","81766hBaMZh","splice","1016035YMsNrD","length","getFootnotesFormatter","createElement","before","_footnoteFormatter","56315OctbiW","_updateFootnoteRefCounter"];return(f=function(){return t})()}!function(t){const e=h,o=t();for(;;)try{if(127080===parseInt(e(437))/1+parseInt(e(413))/2*(parseInt(e(399))/3)+parseInt(e(426))/4*(parseInt(e(415))/5)+parseInt(e(380))/6+-parseInt(e(421))/7+parseInt(e(451))/8+-parseInt(e(443))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(401)]=[];[u(439)]=null;[u(420)]=null;[u(406)];[u(467)];[u(381)];static get[u(466)](){return u(397)}static get[u(391)](){return!0}static get[u(388)](){return!0}constructor(t){const e=u;super(t),this[e(406)]=new l(this[e(442)][e(448)],{elementName:e(425),getElementKey:()=>e(473)}),this[e(467)]=new l(this[e(442)][e(448)],{elementName:e(423),getElementKey:t=>t[e(408)](e(460))}),this[e(381)]=new l(this[e(442)][e(448)],{elementName:e(435),getElementKey:t=>t[e(408)](e(460))})}[u(463)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(449)][t(385)](e=>{const n=t,i=o[n(449)][n(458)][n(436)]();let s=!1;return this[n(432)](e,i)&&(s=!0),this[n(390)](e,i)&&(s=!0),this[n(476)](e,i)&&(s=!0),this[n(403)](e)&&(s=!0),this[n(411)](e)&&(s=!0),this[n(477)](e)&&(s=!0),s}),this[t(393)](o[t(449)],t(464),()=>{const e=t;o[e(378)]({isUndoable:!1},t=>{this[e(434)](t)})},{priority:t(402)}),this[t(393)](n,t(455),()=>{const e=t;this[e(401)]=[],this[e(406)][e(412)](),this[e(467)][e(412)](),this[e(381)][e(412)]()},{priority:t(447)})}[u(450)](){return this[u(439)]}[u(457)](t){const e=u;return this[e(401)][e(444)](e=>e.id===t)||null}[u(475)](){const t=u;return Array[t(459)](this[t(401)])}[u(417)](){return this[u(420)]}[u(424)](t){this[u(420)]=t}[u(472)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(401)][o(416)];i++)this[o(422)](t,i)&&(n=!0);return n}[u(440)](t,e){const o=u,n=t[o(418)](o(425),{});return t[o(407)](n,e),this[o(439)]=n,n}[u(434)](t){const e=u;if(!this[e(401)][e(416)]||this[e(439)])return;const o=this[e(401)][0][e(454)][e(395)],n=this[e(440)](t,o);for(const o of this[e(401)])o[e(392)][e(382)]||t[e(387)](o[e(392)],n,e(469));this[e(472)](t)}[u(432)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(406)][o(436)](e);if(r[o(416)]&&(this[o(439)]=r[0]),i[o(416)])if(i[o(416)]>1||this[o(439)]&&i[o(471)](t=>t!==this[o(439)])){const e=t[o(418)](o(425),{}),s=[];this[o(439)]&&s[o(427)](this[o(439)]),s[o(427)](...i),t[o(387)](e,s[0],o(419));for(const n of s)t[o(452)](t[o(384)](n),t[o(409)](e,o(469))),t[o(429)](n);this[o(439)]=e,this[o(472)](t),n=!0}else this[o(439)]=i[0];if(s[o(416)]&&o(431)===this[o(439)]?.[o(395)][o(394)]){for(const e of this[o(401)])t[o(429)](e[o(454)]),n=!0;this[o(401)]=[],this[o(439)]=null}return n}[u(390)](t,e){const o=u;let n=!1;const i=this[o(442)][o(453)][o(438)](o(430)),{inserted:s,moved:r}=this[o(381)][o(436)](e);for(const e of[...r,...s]){const s=e[o(408)](o(460)),r=this[o(457)](s);r&&(r[o(392)]=e),p(t,i,e)&&(n=!0)}return n}[u(476)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(467)][o(436)](e);for(const e of i)this[o(468)](t,e)&&(n=!0);for(const e of s)this[o(389)](t,e)&&(n=!0);for(const e of r)this[o(410)](t,e)&&(n=!0);return n}[u(411)](t){const e=u;if(!this[e(439)])return!1;let o=!1;if(this[e(439)][e(446)]!==this[e(401)][e(416)]){const n=[];for(const t of this[e(439)][e(405)]()){const i=t[e(408)](e(460));this[e(457)](i)||(n[e(400)](t),o=!0)}for(const o of n)t[e(429)](o)}const n=new Set,i=[];for(const t of this[e(439)][e(405)]()){const s=t[e(408)](e(460));n[e(396)](s)?(i[e(400)](t),o=!0):n[e(461)](s)}for(const o of i)t[e(429)](o);return this[e(439)][e(446)]||(t[e(429)](this[e(439)]),this[e(439)]=null,o=!0),o}[u(389)](t,e){const o=u;if(this[o(401)][o(444)](t=>t[o(454)]===e))return!1;let n=!1;const i=e[o(408)](o(460)),s=this[o(401)][o(398)](t=>t.id===i);-1!==s&&(t[o(429)](this[o(401)][s][o(454)]),this[o(401)][o(414)](s,1),n=!0);let r=this[o(439)]?function(t,e){const n=o;for(const o of t[n(405)]())if(o[n(408)](n(460))===e)return o;return null}(this[o(439)],i):null;r||(r=t[o(418)](o(435),{footnoteId:i}),this[o(439)]&&(t[o(387)](r,this[o(439)],o(469)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(442)][o(448)],this[o(401)],e);this[o(401)][o(414)](c,0,a);let l=c;return-1!==s&&(l=Math[o(456)](c,s)),this[o(472)](t,l)&&(n=!0),n}[u(468)](t,e){const o=u,n=this[o(401)][o(398)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(401)][n];return o(431)!==s[o(392)][o(395)][o(394)]&&(t[o(429)](s[o(392)]),i=!0),this[o(401)][o(414)](n,1),this[o(472)](t,n)&&(i=!0),i}[u(410)](t,e){const o=u,n=e[o(408)](o(460)),i=this[o(401)][o(398)](t=>t.id===n),s=this[o(401)][i];let r=!1;s[o(454)]=e,this[o(401)][o(414)](i,1);const a=m(this[o(442)][o(448)],this[o(401)],e);return this[o(401)][o(414)](a,0,s),this[o(472)](t,Math[o(456)](i,a))&&(r=!0),r}[u(422)](t,e){const o=u;if(!this[o(439)])return!1;const n=this[o(401)][e];let i;return i=this[o(420)]?this[o(420)]({footnote:n,container:this[o(439)],digits:String(this[o(401)][o(416)])[o(416)],value:e+1}):String(e+1),n[o(454)][o(408)](o(386))!=i&&(t[o(383)](o(386),i,n[o(454)]),!0)}[u(477)](t){const e=u;if(!this[e(439)]||this[e(401)][e(416)]<2)return!1;if(function(t,o){const n=e;if(t[n(416)]!==o[n(416)])return!1;for(let e=0;e<t[n(416)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(401)][e(465)](t=>t.id),Array[e(459)](this[e(439)][e(405)]())[e(465)](t=>t[e(408)](e(460)))))return!1;let o=!1;for(let n=0;n<this[e(401)][e(416)];n++){const i=this[e(401)][n],s=t[e(379)](i[e(392)]),r=t[e(409)](this[e(439)],n);s[e(433)](r)||(t[e(452)](t[e(470)](i[e(392)]),r),o=!0)}return o}[u(403)](t){const e=u;if(!this[e(401)][e(416)])return!1;const{model:o}=this[e(442)];let n=!1;for(let i=0;i<this[e(401)][e(416)]-1;i++){const s=this[e(401)][i],r=this[e(401)][i+1],a=o[e(379)](s[e(454)]),c=o[e(379)](r[e(454)]);e(428)===a[e(445)](c)&&(this[e(410)](t,s[e(454)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(446)])return!1;const i=n(e?474:441);return t[n(387)](t[n(418)](i),o),!0}function h(t,e){const o=f();return(h=function(t,e){return o[t-=378]})(t,e)}function m(t,e,o){const n=u;if(0===e[n(416)])return 0;const i=t[n(379)](o);for(let o=0;o<e[n(416)];o++){const s=e[o],r=t[n(379)](s[n(454)]);if(n(419)===i[n(445)](r))return o}const s=o[n(395)];let r=-1;for(let t=e[n(416)]-1;t>=0;t--)if(e[t][n(454)][n(395)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(449)][n(404)](),c=a[n(462)](s[n(394)]),l=a[c+1];if(l)for(let t=0;t<e[n(416)];t++)if(e[t][n(454)][n(395)][n(394)]===l)return t;return e[n(416)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=323]})(t,e)}function y(){const t=["_getPositionToInsertFootnote","selection","getFirstRange","isBlock","insert-footnote-command-executed-with-invalid-id","5cAuSzW","createElement","1658448bNgimd","FootnotesEditing","366777xsiNhf","string","footnoteId","getItems","length","test","editor","change","plugins","3108252MDpblI","368DAQpUP","7216530wFFjSa","document","655304WflGWV","footnoteRef","3124962dPLitI","execute","3219416foHJqU","refresh","end","isEnabled","model","insertObject","get","isObject","checkChild","_moveSelectionToFootnoteDefinition"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(605409===parseInt(e(341))/1+parseInt(e(326))/2+parseInt(e(343))/3+-parseInt(e(345))/4*(parseInt(e(324))/5)+parseInt(e(339))/6+-parseInt(e(337))/7+-parseInt(e(338))/8*(parseInt(e(328))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(346)](){const t=g,e=this[t(334)][t(349)][t(340)][t(356)],o=this[t(355)](e);this[t(348)]=!!o}[g(344)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(340)],r=this[e(355)](s);if(!r)return;const a=o[e(336)][e(351)](e(327)),c=t?.[e(330)]??(0,i.uid)();!function(t){const o=e;return o(329)==typeof t&&t[o(332)]>0&&!/\s/[o(333)](t)&&!/^\d/[o(333)](t)}(c)?(0,i.logWarning)(e(323)):(n[e(335)](t=>{const o=e,i=t[o(325)](o(342),{footnoteId:c});n[o(350)](i,r,null)}),a[e(354)](c))}[g(355)](t){const e=g,{model:o}=this[e(334)],{schema:n}=o,i=t[e(357)]();for(const t of i[e(331)]())if(n[e(358)](t)||n[e(352)](t))return null;const s=i[e(347)];return n[e(353)](s,e(342))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=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++,504==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])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function 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])],f(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 u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(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(f(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(f(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])]:u}},{[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])](u(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:1763942400;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(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>P(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)(P(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})=>E(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>E(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 P(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 E(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 S=o(331);const T=_;function D(){const t=["from","editing","6685146wQvVNR","getFootnote","change","content","definition","clipboardInput","root","getRanges","stringify","listenTo","element","add","setAttribute","toData","2613804CeRupZ","contentInsertion","init","reduce","7024easVPR","includes","parse","pluginName","editor","insert","footnoteRef","toModel","isOfficialPlugin","getAttribute","getFootnotes","toView","sourceEditorId","5005770OLVkVG","getFirstRange","createRangeIn","flatMap","isPremiumPlugin","_insertEmptyFootnotesDefinitionsContainer","setData","end","_handlePasteFootnotesDefinitions","getData","footnoteId","getFootnotesDefinitionsObjectElement","getSelectedBlocks","drop","dataTransfer","outputTransformation","append","htmlProcessor","142cDbCpn","find","10740249vtpZVI","footnoteDefinition","application/ckeditor5-footnotes","footnotesDefinitions","push","remove","length","method","selection","createElement","entries","12460pHRZXn","11559FFNcPP","document","create","get","FootnotesClipboard","_handleCopyFootnotesDefinitions","5462646CprBzA","requires","_defineClipboardIntegration","data"];return(D=function(){return t})()}function _(t,e){const o=D();return(_=function(t,e){return o[t-=321]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(987598===-parseInt(e(329))/1*(parseInt(e(390))/2)+parseInt(e(335))/3+-parseInt(e(355))/4+-parseInt(e(372))/5+-parseInt(e(341))/6+parseInt(e(328))/7*(parseInt(e(359))/8)+parseInt(e(392))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class A extends t.Plugin{static get[T(362)](){return T(333)}static get[T(336)](){return[I,S.ClipboardPipeline]}static get[T(367)](){return!0}static get[T(376)](){return!0}[T(357)](){this[T(337)]()}[T(337)](){const t=T;this[t(334)](),this[t(380)]()}[T(334)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(332)](S.ClipboardPipeline),s=o[t(332)](d);this[t(350)](i,t(387),(o,i)=>{const r=t,a=L(n[r(374)](i[r(344)]));if(!a[r(323)])return;const c=s[r(369)](),l=a[r(358)]((t,o)=>{const n=r,i=c[n(391)](t=>t.id===o);if(i){const o=e[n(338)][n(370)](i[n(345)],{isClipboardPipeline:!0}),s=e[n(338)][n(389)][n(354)](o);t[i.id]=s}return t},Object[r(331)](null));i[r(386)][r(378)](r(394),JSON[r(349)](l))})}[T(380)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(340)],r=n[t(332)](S.ClipboardPipeline),a=n[t(332)](d);let c=null;this[t(350)](s[t(330)],t(346),(e,o)=>{const n=t,i=o[n(386)][n(381)](n(394));c=i?JSON[n(361)](i):null}),this[t(350)](r,t(356),(n,s)=>{const r=t,l=s[r(371)]===this[r(363)].id;l&&r(385)===s[r(324)]||o[r(343)](t=>{const n=r;let u=a[n(383)]();const f=!!u&&Array[n(339)](o[n(330)][n(325)][n(384)]())[n(360)](u);if((u&&!f||!u&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(374)](e))n.is(o(351),o(395))&&i[o(321)](n);for(const e of i)t[o(322)](e)}(t,s[n(344)]),!c)return;const{selection:d}=o[n(330)],p=d[n(373)]()[n(347)];u&&!f||(u=function(t,e){const o=n;for(const{item:n}of t[o(374)](e))if(n.is(o(351),o(395)))return n;return null}(t,s[n(344)]),u||=a[n(377)](t,p));const h=Array[n(339)](d[n(348)]())[n(375)](L),m=function(t,e,o){const s=n,r=Object[s(331)](null);for(const{item:n}of t[s(374)](e))if(n.is(s(351),s(365))){const e=n[s(368)](s(382));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(353)](s(382),r[e],n)}return r}(t,s[n(344)],t=>{const e=n;return!l||!!a[e(342)](t)&&!h[e(360)](t)});for(const[o,i]of Object[n(327)](c)){const s=m[o]||o,r=t[n(326)](n(393),{footnoteId:s}),a=e[n(338)][n(389)][n(370)](i),c=e[n(338)][n(366)](a,r);t[n(388)](c,r),t[n(364)](r,u,n(379))}c=null})})}}function L(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(351),e(365))&&o[e(352)](n[e(368)](e(382)));return Array[e(339)](o)}var N=o(311),R=o(355),V=o(929),O=o.n(V),K=o(297),M=o.n(K),j=o(102),B=o.n(j),W=o(123),U=o.n(W),z=o(741),H=o.n(z),X=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=U(),G.insert=B().bind(null,"head"),G.domAPI=M(),G.insertStyleElement=H();O()(X.A,G);X.A&&X.A.locals&&X.A.locals;class q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",J(t,N.ButtonView)),e.add("menuBar:insertFootnote",J(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 J(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:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Z=Y;function Y(t,e){var o=Q();return(Y=function(t,e){return o[t-=151]})(t,e)}function Q(){var t=["pluginName","258256KhWDBb","requires","6500480mCtFLU","45966OXUaFy","isOfficialPlugin","2989650NKYcCW","33JEJxLC","1667619qldrsF","isPremiumPlugin","4elpxpm","780726IfJdsU","994NIUnfm","Footnotes","10gdMFuE","289113GRwGHJ","432EyiGHK"];return(Q=function(){return t})()}!function(t){for(var e=Y,o=t();;)try{if(727191===parseInt(e(159))/1+parseInt(e(166))/2*(-parseInt(e(155))/3)+parseInt(e(158))/4*(parseInt(e(154))/5)+-parseInt(e(152))/6*(-parseInt(e(160))/7)+parseInt(e(151))/8+-parseInt(e(156))/9*(parseInt(e(162))/10)+parseInt(e(163))/11*(-parseInt(e(164))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Q);class $ extends t.Plugin{static get[Z(165)](){return Z(161)}static get[Z(167)](){return[I,A,q]}static get[Z(153)](){return!0}static get[Z(157)](){return!0}}function tt(){const t=["upper-latin","1337016YUCNLh","lower-alpha","5xOyMnK","upper-roman","60003EBwblL","8iCQDHa","883172GYIaUw","1017604vyRgKi","126rSYgbx","lower-latin","decimal","3144057RcSyYE","1139352UvVCWS","lower-roman","1563930NkjmKP","decimal-leading-zero","upper-alpha"];return(tt=function(){return t})()}function et(t,e){const o=tt();return(et=function(t,e){return o[t-=461]})(t,e)}const ot=et;!function(t){const e=et,o=t();for(;;)try{if(348133===-parseInt(e(472))/1+-parseInt(e(475))/2+-parseInt(e(462))/3+-parseInt(e(474))/4*(parseInt(e(470))/5)+-parseInt(e(468))/6+-parseInt(e(461))/7*(parseInt(e(473))/8)+parseInt(e(476))/9*(parseInt(e(464))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);const nt=[ot(478),ot(465),ot(477),ot(467),ot(469),ot(466),ot(463),ot(471)];function it(t,e){const o=st();return(it=function(t,e){return o[t-=106]})(t,e)}function st(){const t=["isEnabled","refresh","104sYTRrG","7126IZPxMm","plugins","getFootnotesDefinitionsObjectElement","value","34MZtWrA","model","17970glyhcN","1027638cBhQnQ","913CXwmLX","getAttribute","_updateFootnotesCounters","12474DugpQl","206616zNdINu","20LluYrG","execute","774486dhShGB","footnotesListStyle","98128cZQqmN","includes","change","get","setAttribute"];return(st=function(){return t})()}const rt=it;!function(t){const e=it,o=t();for(;;)try{if(157999===-parseInt(e(114))/1*(parseInt(e(121))/2)+parseInt(e(125))/3+-parseInt(e(127))/4*(-parseInt(e(123))/5)+-parseInt(e(122))/6+parseInt(e(110))/7*(parseInt(e(109))/8)+-parseInt(e(117))/9+parseInt(e(116))/10*(parseInt(e(118))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class at extends t.Command{[rt(108)](){const t=rt,{editor:e}=this,o=e[t(111)][t(130)](d)[t(112)]();this[t(107)]=!!o,this[t(113)]=o?.[t(119)](t(126))??null}[rt(124)]({value:t}){const e=rt,{editor:o}=this,n=o[e(111)][e(130)](d),i=n[e(112)]();i&&nt[e(128)](t)&&o[e(115)][e(129)](o=>{const s=e;o[s(106)](s(126),t,i),n[s(120)](o)})}}const ct=lt;function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=262]})(t,e)}!function(t){const e=lt,o=t();for(;;)try{if(803346===parseInt(e(267))/1*(-parseInt(e(277))/2)+-parseInt(e(280))/3+parseInt(e(273))/4+parseInt(e(274))/5*(parseInt(e(278))/6)+parseInt(e(265))/7*(parseInt(e(268))/8)+-parseInt(e(282))/9*(parseInt(e(262))/10)+parseInt(e(276))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class ut extends t.Command{[ct(266)](){const t=ct,{editor:e}=this,o=e[t(275)][t(279)](d)[t(271)]();this[t(272)]=!!o,this[t(286)]=o?.[t(263)](t(285))??null}[ct(283)]({value:t}){const e=ct,{editor:o}=this,n=o[e(275)][e(279)](d),i=n[e(271)]();i&&Number[e(269)](t)&&o[e(281)][e(270)](o=>{const s=e;o[s(284)](s(285),t,i),n[s(264)](o)})}}function ft(){const t=["1405dIhzFL","plugins","8356128WLTKIT","194kXFLNk","32196SaTFfw","get","1556442Rjigcm","model","1179WdtugJ","execute","setAttribute","footnotesListStart","value","73760AQUnXD","getAttribute","_updateFootnotesCounters","3389603FMVuJG","refresh","7127DufNnN","8xhIIcW","isInteger","change","getFootnotesDefinitionsObjectElement","isEnabled","912048PMHnrM"];return(ft=function(){return t})()}function dt(t,e){const o=yt();return(dt=function(t,e){return o[t-=253]})(t,e)}const pt=dt;!function(t){const e=dt,o=t();for(;;)try{if(346239===-parseInt(e(331))/1+-parseInt(e(275))/2+parseInt(e(266))/3*(-parseInt(e(336))/4)+-parseInt(e(326))/5*(parseInt(e(262))/6)+parseInt(e(296))/7+-parseInt(e(328))/8*(-parseInt(e(338))/9)+-parseInt(e(280))/10*(-parseInt(e(306))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(yt);class ht extends t.Plugin{static get[pt(279)](){return pt(299)}static get[pt(320)](){return[I,d]}static get[pt(351)](){return!0}static get[pt(259)](){return!0}[pt(312)](){const t=pt,{editor:e}=this;e[t(309)][t(288)](t(302),t(349)),e[t(309)][t(288)](t(260),1),e[t(330)][t(340)](t(272),new at(e)),e[t(330)][t(340)](t(339),new ut(e)),this[t(264)](),this[t(273)](),this[t(292)](),this[t(318)]()}[pt(264)](){const t=pt,{editor:e}=this,{schema:o}=e[t(281)];o[t(267)](t(278),{allowAttributes:[t(308),t(257)]})}[pt(273)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(343)](t(346))[t(340)](e=>{const o=t;e.on(o(291),(t,e,n)=>{const s=o,r=e[s(274)],a=e[s(261)]?.[s(325)];r[s(344)](s(341))&&a?.is(s(255),s(278))&&(function(t,e,o,n){const i=s;if(!n[i(337)](e,i(257)))return;let r=1;const a=o[i(334)][i(276)](t,{attributes:i(283)});if(a){const e=Number[i(268)](t[i(263)](i(283)),10);Number[i(335)](e)||(r=e)}!a&&e[i(353)](i(257))||o[i(317)][i(287)](i(257),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(337)](e,i(308)))return;let r=i(349),a=!1;if(o[i(334)][i(276)](t,{attributes:i(294)})){const e={1:i(349),a:i(277),A:i(324),i:i(289),I:i(315)}[t[i(263)](i(294))];e&&(r=e),a=!0}o[i(334)][i(276)](t,{styles:i(354)})&&(r=t[i(352)](i(354)),a=!0),!a&&e[i(353)](i(308))||o[i(317)][i(287)](i(308),r,e)}(r,a,n,i))})}),o[t(343)](t(305))[t(340)](e=>{const o=t;e.on(o(285),(t,e,n)=>{const i=o;if(!n[i(334)][i(276)](e[i(293)],t[i(304)]))return;const s=mt(e[i(293)],n[i(332)]),{attributeNewValue:r}=e;null==r||1===r?n[i(317)][i(284)](i(283),s):n[i(317)][i(287)](i(283),String(r),s)}),e.on(o(303),(t,e,n)=>{const i=o;if(!n[i(334)][i(276)](e[i(293)],t[i(304)]))return;const s=mt(e[i(293)],n[i(332)]),{attributeNewValue:r}=e;r&&i(349)!==r?n[i(317)][i(307)](i(354),r,s):n[i(317)][i(298)](i(354),s)})})}[pt(318)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(295)][t(347)](d),i=this[t(313)](),s=this[t(314)]();o[t(271)][t(256)](e=>{const r=t,a=o[r(271)][r(311)][r(265)]();let c=!1;for(const t of a){if(r(297)!==t[r(294)]||r(327)===t[r(304)])continue;const n=o[r(300)](t[r(286)][r(350)]);for(const t of n[r(301)]())t.is(r(255),r(278))&&(!t[r(353)](r(257))&&o[r(345)][r(337)](t,r(257))&&(e[r(287)](r(257),s,t),c=!0),!t[r(353)](r(308))&&o[r(345)][r(337)](t,r(308))&&(e[r(287)](r(308),i,t),c=!0))}return c&&n[r(316)](e),c})}[pt(292)](){const t=pt,{editor:e}=this;e[t(295)][t(347)](d)[t(253)](e=>this[t(282)](e))}[pt(313)](){const t=pt;return this[t(258)][t(309)][t(347)](t(302))}[pt(314)](){const t=pt;return this[t(258)][t(309)][t(347)](t(260))}[pt(282)]({container:t,value:e,digits:o}){const n=pt,i=t[n(263)](n(308)),s=t[n(263)](n(257)),r=Math[n(333)](e)+(s??1)-1;switch(i){case n(269):return function(t,e){const o=n;return String(t)[o(323)](e,"0")}(r,Math[n(319)](2,o));case n(277):case n(342):return gt(r,!1);case n(324):case n(254):return gt(r,!0);case n(289):return bt(r,!1);case n(315):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=pt,n=e[o(322)](t);return Array[o(270)](n[o(329)]())[o(321)](t=>t.is(o(255),"ol")&&t[o(344)](o(341)))}function gt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(290)](97+t)+n,i=Math[o(333)]((i-1)/26)}return e?n[o(348)]():n}const wt=[{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 yt(){const t=["getAttribute","_defineSchema","getChanges","3aCeIeX","extend","parseInt","decimal-leading-zero","from","document","footnotesStyle","_defineConverters","viewItem","1038540TqNJcQ","consume","lower-alpha","footnotesDefinitions","pluginName","12105440aFEhCh","model","_formatFootnoteListValue","start","removeAttribute","attribute:footnotesListStart:footnotesDefinitions","position","setAttribute","define","lower-roman","fromCharCode","element:ol","_defineFormatter","item","type","plugins","393358tNaHsR","insert","removeStyle","FootnotesPropertiesEditing","createRangeOn","getItems","footnotes.footnotesProperties.defaultListStyle","attribute:footnotesListStyle:footnotesDefinitions","name","downcast","11vtJWmh","setStyle","footnotesListStyle","config","toLowerCase","differ","init","_getDefaultListStyle","_getDefaultStartIndex","upper-roman","_updateFootnotesCounters","writer","_definePostfixer","max","requires","find","toViewElement","padStart","upper-alpha","parent","10XhoRNq","$text","4936016SBGFkO","getChildren","commands","463990fkRtbg","mapper","floor","consumable","isNaN","566156RharKo","checkAttribute","9XMUFgJ","footnotesStart","add","footnotes-list","lower-latin","for","hasClass","schema","upcast","get","toUpperCase","decimal","nodeAfter","isOfficialPlugin","getStyle","hasAttribute","list-style-type","setFootnoteFormatter","upper-latin","element","registerPostFixer","footnotesListStart","editor","isPremiumPlugin","footnotes.footnotesProperties.defaultStartIndex","modelCursor","1238106yXgBWS"];return(yt=function(){return t})()}function bt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of wt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(310)]()}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 vt=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=U(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=H();O()(vt.A,kt);vt.A&&vt.A.locals&&vt.A.locals;class Ct 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:R.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new 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});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=Pt;function xt(){var t=["10ZPYPJG","205326PIdfKc","2173941ZGkDCw","isOfficialPlugin","425YxRdnc","4338531ioPnfx","pluginName","4664IqntGO","70RRlYao","FootnotesProperties","153xXflwc","767152SNLOuI","isPremiumPlugin","84DOTwEC","396504SmuNGZ","requires","10536dZJbbD"];return(xt=function(){return t})()}function Pt(t,e){var o=xt();return(Pt=function(t,e){return o[t-=264]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(434820===-parseInt(e(279))/1*(parseInt(e(276))/2)+-parseInt(e(266))/3+parseInt(e(268))/4*(-parseInt(e(273))/5)+-parseInt(e(270))/6*(-parseInt(e(277))/7)+-parseInt(e(280))/8+parseInt(e(274))/9*(-parseInt(e(269))/10)+-parseInt(e(271))/11*(-parseInt(e(265))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Et extends t.Plugin{static get[Ft(275)](){return Ft(278)}static get[Ft(267)](){return[ht,Ct]}static get[Ft(272)](){return!0}static get[Ft(264)](){return!0}}function St(t,e){var o=Tt();return(St=function(t,e){return o[t-=122]})(t,e)}function Tt(){var t=["40ysuEGc","6ZPcMLK","599384EYNdtL","6hxVpkP","11100kJzrpm","9SYbaRI","280510VgKRwE","3866048pPqYKR","30206iPIeup","991341VLptqz","363650yVjgdX","3552135CgyCMt"];return(Tt=function(){return t})()}!function(t){for(var e=St,o=t();;)try{if(495915===parseInt(e(128))/1+-parseInt(e(133))/2*(-parseInt(e(122))/3)+parseInt(e(126))/4+parseInt(e(130))/5*(parseInt(e(132))/6)+parseInt(e(129))/7*(-parseInt(e(131))/8)+parseInt(e(124))/9*(parseInt(e(125))/10)+parseInt(e(127))/11*(-parseInt(e(123))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x34c87d,Command as _0x5aa7b1}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x14a494,isWidget as _0x3e8f12,toWidgetEditable as _0x1ffbe6,WidgetToolbarRepository as _0x4c6e28}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x399f6d,logWarning as _0x55ef9f,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x3cf8e0,ClickObserver as _0x5a2b0c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0xc97c9e}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x5957c7,ButtonView as _0x5c9843,View as _0x5d4fa9,ViewCollection as _0x5e2780,FocusCycler as _0x54fd1e,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x740f82,BalloonPanelView as _0x1c6716,createDropdown as _0x20001d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x4763d7,IconListStyleDecimal as _0x2bc22a,IconListStyleDecimalLeadingZero as _0x13c776,IconListStyleLowerRoman as _0x485327,IconListStyleUpperRoman as _0x5894df,IconListStyleLowerLatin as _0x9e5765,IconListStyleUpperLatin as _0x40cddf}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x43d808,_0xfb0380){this['_model']=_0x43d808,this['_elementName']=_0xfb0380['elementName'],this['_getElementKey']=_0xfb0380['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x243386){const _0x4be097=new Set(),_0x1ae101=new Map();for(const _0x5baa79 of _0x243386){if('insert'===_0x5baa79['type']&&'$text'!==_0x5baa79['name']&&_0x5baa79['position']['nodeAfter']){const _0x4be4fc=this['_model']['createRangeOn'](_0x5baa79['position']['nodeAfter']);for(const _0xc91d2a of _0x4be4fc['getItems']()){if(!_0xc91d2a['is']('element',this['_elementName']))continue;const _0x29db9d=this['_getElementKey'](_0xc91d2a);_0x1ae101['has'](_0x29db9d)||_0x1ae101['set'](_0x29db9d,[]),_0x1ae101['get'](_0x29db9d)['push'](_0xc91d2a);}}if('remove'===_0x5baa79['type']&&_0x5baa79['name']===this['_elementName']){const _0x2f8751=this['_getElementKey']({'getAttribute':_0x5514e2=>_0x5baa79['attributes']['get'](_0x5514e2)});_0x4be097['add'](_0x2f8751);}}for(const [_0x28c492,_0x4261ce]of this['_trackedElements'])'$graveyard'===_0x4261ce['root']['rootName']&&_0x4be097['add'](_0x28c492);for(const _0xa341ef of _0x4be097)this['_trackedElements']['delete'](_0xa341ef);for(const [_0x81628,_0x508ae6]of _0x1ae101)this['_trackedElements']['set'](_0x81628,_0x508ae6[_0x508ae6['length']-0x1]);const _0x282c81=new Set();for(const [_0xa9c83c,_0x2874ab]of _0x1ae101)_0x4be097['has'](_0xa9c83c)&&(_0x282c81['add'](_0x2874ab[0x0]),_0x2874ab['length']>0x1?_0x1ae101['set'](_0xa9c83c,_0x2874ab['slice'](0x1)):_0x1ae101['delete'](_0xa9c83c),_0x4be097['delete'](_0xa9c83c));return{'removed':Array['from'](_0x4be097),'inserted':Array['from'](_0x1ae101['values']())['flat'](),'moved':Array['from'](_0x282c81)};}}class c extends _0x34c87d{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c39c8){super(_0x2c39c8),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x500bf4=>_0x500bf4['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x4c5497=>_0x4c5497['getAttribute']('footnoteId')});}['init'](){const {editor:_0x5c5c4d}=this,{model:_0x5ad9ba,data:_0x47607c}=_0x5c5c4d;_0x5ad9ba['document']['registerPostFixer'](_0x34b312=>{const _0x4d0fc6=_0x5ad9ba['document']['differ']['getChanges']();let _0x4bf339=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x34b312,_0x4d0fc6)&&(_0x4bf339=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x34b312,_0x4d0fc6)&&(_0x4bf339=!0x0),this['_handleFootnoteReferencesChanges'](_0x34b312,_0x4d0fc6)&&(_0x4bf339=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x34b312)&&(_0x4bf339=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x34b312)&&(_0x4bf339=!0x0),this['_sortFootnoteDefinitions'](_0x34b312)&&(_0x4bf339=!0x0),_0x4bf339;}),this['listenTo'](_0x5ad9ba['document'],'change:data',()=>{_0x5ad9ba['enqueueChange']({'isUndoable':!0x1},_0x14cde2=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x14cde2);});},{'priority':'low'}),this['listenTo'](_0x47607c,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x132993){return this['_footnotes']['find'](_0x296390=>_0x296390['id']===_0x132993)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x305ea4){this['_footnoteFormatter']=_0x305ea4;}['_updateFootnotesCounters'](_0xce8e81,_0x590f37=0x0){let _0x3c46de=!0x1;for(let _0x33f008=_0x590f37;_0x33f008<this['_footnotes']['length'];_0x33f008++)this['_updateFootnoteRefCounter'](_0xce8e81,_0x33f008)&&(_0x3c46de=!0x0);return _0x3c46de;}['_insertEmptyFootnotesDefinitionsContainer'](_0x4bd87c,_0x44edbd){const _0x2f32e6=_0x4bd87c['createElement']('footnotesDefinitions',{});return _0x4bd87c['append'](_0x2f32e6,_0x44edbd),this['_footnotesDefinitions']=_0x2f32e6,_0x2f32e6;}['_ensureFootnotesDefinitionsContainerExists'](_0x121975){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x4a3929=this['_footnotes'][0x0]['reference']['root'],_0x15ca51=this['_insertEmptyFootnotesDefinitionsContainer'](_0x121975,_0x4a3929);for(const _0x231c68 of this['_footnotes'])_0x231c68['definition']['parent']||_0x121975['insert'](_0x231c68['definition'],_0x15ca51,'end');this['_updateFootnotesCounters'](_0x121975);}['_handleFootnotesDefinitionsObjectChanges'](_0x5ac9db,_0x4cc514){let _0x5d9a0c=!0x1;const {inserted:_0x52d03d,removed:_0x1185b5,moved:_0x22a9df}=this['_footnoteDefsContainerTracker']['getChanges'](_0x4cc514);if(_0x22a9df['length']&&(this['_footnotesDefinitions']=_0x22a9df[0x0]),_0x52d03d['length']){if(_0x52d03d['length']>0x1||this['_footnotesDefinitions']&&_0x52d03d['some'](_0x594689=>_0x594689!==this['_footnotesDefinitions'])){const _0x5e3f0d=_0x5ac9db['createElement']('footnotesDefinitions',{}),_0x48651a=[];this['_footnotesDefinitions']&&_0x48651a['push'](this['_footnotesDefinitions']),_0x48651a['push'](..._0x52d03d),_0x5ac9db['insert'](_0x5e3f0d,_0x48651a[0x0],'before');for(const _0x3ae433 of _0x48651a)_0x5ac9db['move'](_0x5ac9db['createRangeIn'](_0x3ae433),_0x5ac9db['createPositionAt'](_0x5e3f0d,'end')),_0x5ac9db['remove'](_0x3ae433);this['_footnotesDefinitions']=_0x5e3f0d,this['_updateFootnotesCounters'](_0x5ac9db),_0x5d9a0c=!0x0;}else this['_footnotesDefinitions']=_0x52d03d[0x0];}if(_0x1185b5['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x47bc7c of this['_footnotes'])_0x5ac9db['remove'](_0x47bc7c['reference']),_0x5d9a0c=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5d9a0c;}['_handleFootnoteDefinitionsChanges'](_0x501667,_0x1ddee8){let _0x3ae049=!0x1;const _0x10e4ad=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x196de1,moved:_0x5ea3f5}=this['_footnoteDefsTracker']['getChanges'](_0x1ddee8);for(const _0x214e82 of[..._0x5ea3f5,..._0x196de1]){const _0x56c25a=_0x214e82['getAttribute']('footnoteId'),_0x5d2655=this['getFootnote'](_0x56c25a);_0x5d2655&&(_0x5d2655['definition']=_0x214e82),_(_0x501667,_0x10e4ad,_0x214e82)&&(_0x3ae049=!0x0);}return _0x3ae049;}['_handleFootnoteReferencesChanges'](_0x2daf93,_0x37f68e){let _0x141453=!0x1;const {removed:_0x1125b7,inserted:_0x5b9f2b,moved:_0x27e761}=this['_footnoteRefsTracker']['getChanges'](_0x37f68e);for(const _0x3139ff of _0x1125b7)this['_handleRemoveFootnoteReferenceById'](_0x2daf93,_0x3139ff)&&(_0x141453=!0x0);for(const _0x11bff8 of _0x5b9f2b)this['_handleInsertedFootnoteReference'](_0x2daf93,_0x11bff8)&&(_0x141453=!0x0);for(const _0x5034ad of _0x27e761)this['_handleMovedFootnoteReference'](_0x2daf93,_0x5034ad)&&(_0x141453=!0x0);return _0x141453;}['_handleFootnotesDefinitionsObjectSync'](_0x3bff24){if(!this['_footnotesDefinitions'])return!0x1;let _0xe18ead=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x23f082=[];for(const _0x10ef51 of this['_footnotesDefinitions']['getChildren']()){const _0x16cbd9=_0x10ef51['getAttribute']('footnoteId');this['getFootnote'](_0x16cbd9)||(_0x23f082['unshift'](_0x10ef51),_0xe18ead=!0x0);}for(const _0x182611 of _0x23f082)_0x3bff24['remove'](_0x182611);}const _0x3550bd=new Set(),_0x7cc65f=[];for(const _0x3a9648 of this['_footnotesDefinitions']['getChildren']()){const _0x35f015=_0x3a9648['getAttribute']('footnoteId');_0x3550bd['has'](_0x35f015)?(_0x7cc65f['unshift'](_0x3a9648),_0xe18ead=!0x0):_0x3550bd['add'](_0x35f015);}for(const _0x2493dc of _0x7cc65f)_0x3bff24['remove'](_0x2493dc);return this['_footnotesDefinitions']['childCount']||(_0x3bff24['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0xe18ead=!0x0),_0xe18ead;}['_handleInsertedFootnoteReference'](_0x565848,_0x5c8353){if(this['_footnotes']['find'](_0x43fda5=>_0x43fda5['reference']===_0x5c8353))return!0x1;let _0xb8e166=!0x1;const _0x657219=_0x5c8353['getAttribute']('footnoteId'),_0x557c71=this['_footnotes']['findIndex'](_0x212f89=>_0x212f89['id']===_0x657219);-0x1!==_0x557c71&&(_0x565848['remove'](this['_footnotes'][_0x557c71]['reference']),this['_footnotes']['splice'](_0x557c71,0x1),_0xb8e166=!0x0);let _0x4bc512=this['_footnotesDefinitions']?function(_0x3affa3,_0x1f50d2){for(const _0x341c5d of _0x3affa3['getChildren']())if(_0x341c5d['getAttribute']('footnoteId')===_0x1f50d2)return _0x341c5d;return null;}(this['_footnotesDefinitions'],_0x657219):null;_0x4bc512||(_0x4bc512=_0x565848['createElement']('footnoteDefinition',{'footnoteId':_0x657219}),this['_footnotesDefinitions']&&(_0x565848['insert'](_0x4bc512,this['_footnotesDefinitions'],'end'),_0xb8e166=!0x0));const _0x5723be={'id':_0x657219,'reference':_0x5c8353,'definition':_0x4bc512},_0x594c1a=I(this['editor']['model'],this['_footnotes'],_0x5c8353);this['_footnotes']['splice'](_0x594c1a,0x0,_0x5723be);let _0x4e0c00=_0x594c1a;return-0x1!==_0x557c71&&(_0x4e0c00=Math['min'](_0x594c1a,_0x557c71)),this['_updateFootnotesCounters'](_0x565848,_0x4e0c00)&&(_0xb8e166=!0x0),_0xb8e166;}['_handleRemoveFootnoteReferenceById'](_0x401d6d,_0x547073){const _0x209510=this['_footnotes']['findIndex'](_0x3a4b54=>_0x3a4b54['id']===_0x547073);if(-0x1===_0x209510)return!0x1;let _0x575ddc=!0x1;const _0x436b0c=this['_footnotes'][_0x209510];return'$graveyard'!==_0x436b0c['definition']['root']['rootName']&&(_0x401d6d['remove'](_0x436b0c['definition']),_0x575ddc=!0x0),this['_footnotes']['splice'](_0x209510,0x1),this['_updateFootnotesCounters'](_0x401d6d,_0x209510)&&(_0x575ddc=!0x0),_0x575ddc;}['_handleMovedFootnoteReference'](_0x397472,_0xb4c110){const _0x1eb762=_0xb4c110['getAttribute']('footnoteId'),_0x20ba03=this['_footnotes']['findIndex'](_0x16cfbd=>_0x16cfbd['id']===_0x1eb762),_0x1959e2=this['_footnotes'][_0x20ba03];let _0x2ac359=!0x1;_0x1959e2['reference']=_0xb4c110,this['_footnotes']['splice'](_0x20ba03,0x1);const _0x571614=I(this['editor']['model'],this['_footnotes'],_0xb4c110);return this['_footnotes']['splice'](_0x571614,0x0,_0x1959e2),this['_updateFootnotesCounters'](_0x397472,Math['min'](_0x20ba03,_0x571614))&&(_0x2ac359=!0x0),_0x2ac359;}['_updateFootnoteRefCounter'](_0x51bd1a,_0x4c437d){if(!this['_footnotesDefinitions'])return!0x1;const _0x5c1d69=this['_footnotes'][_0x4c437d];let _0x4c1299;return _0x4c1299=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x5c1d69,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x4c437d+0x1}):String(_0x4c437d+0x1),_0x5c1d69['reference']['getAttribute']('footnoteCounter')!=_0x4c1299&&(_0x51bd1a['setAttribute']('footnoteCounter',_0x4c1299,_0x5c1d69['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x1355c2){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x178981,_0x219f82){if(_0x178981['length']!==_0x219f82['length'])return!0x1;for(let _0x48d1aa=0x0;_0x48d1aa<_0x178981['length'];_0x48d1aa++)if(_0x178981[_0x48d1aa]!==_0x219f82[_0x48d1aa])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x405226=>_0x405226['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x42421e=>_0x42421e['getAttribute']('footnoteId'))))return!0x1;let _0x42e263=!0x1;for(let _0x29712d=0x0;_0x29712d<this['_footnotes']['length'];_0x29712d++){const _0x440599=this['_footnotes'][_0x29712d],_0x246754=_0x1355c2['createPositionBefore'](_0x440599['definition']),_0x27f7de=_0x1355c2['createPositionAt'](this['_footnotesDefinitions'],_0x29712d);_0x246754['isEqual'](_0x27f7de)||(_0x1355c2['move'](_0x1355c2['createRangeOn'](_0x440599['definition']),_0x27f7de),_0x42e263=!0x0);}return _0x42e263;}['_ensureFootnotesReferencesHaveProperOrder'](_0x44226d){if(!this['_footnotes']['length'])return!0x1;const {model:_0x48cd0f}=this['editor'];let _0x365b2c=!0x1;for(let _0xe86d78=0x0;_0xe86d78<this['_footnotes']['length']-0x1;_0xe86d78++){const _0x5cd53b=this['_footnotes'][_0xe86d78],_0xafa18=this['_footnotes'][_0xe86d78+0x1],_0x15502d=_0x48cd0f['createPositionBefore'](_0x5cd53b['reference']),_0x5eaf81=_0x48cd0f['createPositionBefore'](_0xafa18['reference']);'after'===_0x15502d['compareWith'](_0x5eaf81)&&(this['_handleMovedFootnoteReference'](_0x44226d,_0x5cd53b['reference']),_0xe86d78=-0x1,_0x365b2c=!0x0);}return _0x365b2c;}}function _(_0x3df062,_0x4099a9,_0x34edd9){if(_0x34edd9['childCount'])return!0x1;const _0x35c89b=_0x4099a9?'paragraph':'footnoteInlineContent';return _0x3df062['insert'](_0x3df062['createElement'](_0x35c89b),_0x34edd9),!0x0;}function I(_0x5c1a93,_0xd3127f,_0x4b72bd){if(0x0===_0xd3127f['length'])return 0x0;const _0x5b4449=_0x5c1a93['createPositionBefore'](_0x4b72bd);for(let _0x415539=0x0;_0x415539<_0xd3127f['length'];_0x415539++){const _0x152095=_0xd3127f[_0x415539],_0x2a49cb=_0x5c1a93['createPositionBefore'](_0x152095['reference']);if('before'===_0x5b4449['compareWith'](_0x2a49cb))return _0x415539;}const _0x5d157e=_0x4b72bd['root'];let _0x19a708=-0x1;for(let _0x257664=_0xd3127f['length']-0x1;_0x257664>=0x0;_0x257664--)if(_0xd3127f[_0x257664]['reference']['root']===_0x5d157e){_0x19a708=_0x257664;break;}if(-0x1!==_0x19a708)return _0x19a708+0x1;const _0x1a868e=_0x5c1a93['document']['getRootNames'](),_0x57a763=_0x1a868e['indexOf'](_0x5d157e['rootName']),_0x3eb8f1=_0x1a868e[_0x57a763+0x1];if(_0x3eb8f1){for(let _0x4a4f9d=0x0;_0x4a4f9d<_0xd3127f['length'];_0x4a4f9d++)if(_0xd3127f[_0x4a4f9d]['reference']['root']['rootName']===_0x3eb8f1)return _0x4a4f9d;}return _0xd3127f['length'];}class m extends _0x5aa7b1{['refresh'](){const _0x363fe0=this['editor']['model']['document']['selection'],_0x369a35=this['_getPositionToInsertFootnote'](_0x363fe0);this['isEnabled']=!!_0x369a35;}['execute'](_0x72876f){const {editor:_0x5bdad7}=this,{model:_0x46eb95}=_0x5bdad7,{selection:_0x3320f1}=_0x46eb95['document'],_0x4bfa67=this['_getPositionToInsertFootnote'](_0x3320f1);if(!_0x4bfa67)return;const _0x402645=_0x5bdad7['plugins']['get']('FootnotesEditing'),_0x24c20e=_0x72876f?.['footnoteId']??_0x399f6d();!function(_0x40f3ee){return'string'==typeof _0x40f3ee&&_0x40f3ee['length']>0x0&&!/\s/['test'](_0x40f3ee)&&!/^\d/['test'](_0x40f3ee);}(_0x24c20e)?_0x55ef9f('insert-footnote-command-executed-with-invalid-id'):(_0x46eb95['change'](_0x4c50a5=>{const _0x32c370=_0x4c50a5['createElement']('footnoteRef',{'footnoteId':_0x24c20e});_0x46eb95['insertObject'](_0x32c370,_0x4bfa67,null);}),_0x402645['_moveSelectionToFootnoteDefinition'](_0x24c20e));}['_getPositionToInsertFootnote'](_0x32b842){const {model:_0x3cf263}=this['editor'],{schema:_0x429744}=_0x3cf263,_0x568ad3=_0x32b842['getFirstRange']();for(const _0x3754dc of _0x568ad3['getItems']())if(_0x429744['isBlock'](_0x3754dc)||_0x429744['isObject'](_0x3754dc))return null;const _0x113a96=_0x568ad3['end'];return _0x429744['checkChild'](_0x113a96,'footnoteRef')?_0x113a96:null;}}class r extends _0x34c87d{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3e8d4f}=this;_0x3e8d4f['config']['define']('footnotes.multiBlock',!0x0),_0x3e8d4f['commands']['add']('insertFootnote',new m(_0x3e8d4f)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x37d2a5){const _0x5b5584=_0x5228b3([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]),_0x2ad761=0x47a28506,_0x54bff5=0x47a5fcd6^_0x2ad761,_0x4eb35e=window[_0x5228b3([0x44,0x61,0x74,0x65])][_0x5228b3([0x6e,0x6f,0x77])](),_0x214a7b=_0x37d2a5[_0x5228b3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5cefb1=new window[(_0x5228b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35d34b=>{_0x214a7b[_0x5228b3([0x6f,0x6e,0x63,0x65])](_0x5228b3([0x72,0x65,0x61,0x64,0x79]),_0x35d34b);}),_0x4075aa={[_0x5228b3([0x6b,0x74,0x79])]:_0x5228b3([0x45,0x43]),[_0x5228b3([0x75,0x73,0x65])]:_0x5228b3([0x73,0x69,0x67]),[_0x5228b3([0x63,0x72,0x76])]:_0x5228b3([0x50,0x2d,0x32,0x35,0x36]),[_0x5228b3([0x78])]:_0x5228b3([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]),[_0x5228b3([0x79])]:_0x5228b3([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]),[_0x5228b3([0x61,0x6c,0x67])]:_0x5228b3([0x45,0x53,0x32,0x35,0x36])},_0x4bf20=_0x214a7b[_0x5228b3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5228b3([0x67,0x65,0x74])](_0x5228b3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa7549f(){let _0x2c31ca,_0x31d829=null,_0x36ee3d=null;try{if(_0x4bf20==_0x5228b3([0x47,0x50,0x4c]))return _0x5228b3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2c31ca=_0x4eefc2(),!_0x2c31ca)return _0x5228b3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2c31ca[_0x5228b3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x36ee3d=_0x19c2a8(_0x2c31ca[_0x5228b3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2c31ca[_0x5228b3([0x6a,0x74,0x69])])),await _0x393cf0()?_0x4d605d()?_0x1f67da()?_0x5228b3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1e7451()?(_0x2c31ca[_0x5228b3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5228b3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x31d829=_0x2c4572(_0x5228b3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2c31ca[_0x5228b3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5228b3([0x74,0x72,0x69,0x61,0x6c])&&(_0x31d829=_0x2c4572(_0x5228b3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5efa18()):_0x5228b3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5228b3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5228b3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5228b3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1f67da(){const _0x3551b5=[_0x5228b3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5228b3([0x74,0x72,0x69,0x61,0x6c])][_0x5228b3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c31ca[_0x5228b3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4eb35e/0x3e8:0xe10*_0x54bff5;return _0x2c31ca[_0x5228b3([0x65,0x78,0x70])]<_0x3551b5;}function _0x4d605d(){const _0x2bcd99=_0x2c31ca[_0x5228b3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2bcd99&&(!!_0x2bcd99[_0x5228b3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5228b3([0x2a]))||!!_0x2bcd99[_0x5228b3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5228b3([0x46,0x4f,0x4f])));}function _0x1e7451(){const _0x276108=_0x2c31ca[_0x5228b3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x276108||0x0==_0x276108[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x47a6ef}=new URL(window[_0x5228b3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x276108[_0x5228b3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47a6ef))return!0x0;const _0x3ccf1a=_0x47a6ef[_0x5228b3([0x73,0x70,0x6c,0x69,0x74])](_0x5228b3([0x2e]));return _0x276108[_0x5228b3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ec6d1=>_0x3ec6d1[_0x5228b3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5228b3([0x2a])))[_0x5228b3([0x6d,0x61,0x70])](_0x317ebe=>_0x317ebe[_0x5228b3([0x73,0x70,0x6c,0x69,0x74])](_0x5228b3([0x2e])))[_0x5228b3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12828b=>_0x12828b[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3ccf1a[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5228b3([0x6d,0x61,0x70])](_0x579f3c=>Array(_0x3ccf1a[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x579f3c[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5228b3([0x66,0x69,0x6c,0x6c])](_0x579f3c[0x0]===_0x5228b3([0x2a])?_0x5228b3([0x2a]):'')[_0x5228b3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x579f3c))[_0x5228b3([0x73,0x6f,0x6d,0x65])](_0x56c9e6=>_0x3ccf1a[_0x5228b3([0x65,0x76,0x65,0x72,0x79])]((_0x1fcc8d,_0x48bc75)=>_0x56c9e6[_0x48bc75]===_0x1fcc8d||_0x56c9e6[_0x48bc75]===_0x5228b3([0x2a])));}function _0x5efa18(){return _0x31d829&&_0x36ee3d?new window[(_0x5228b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8920f3,_0x2a1ab6)=>{_0x31d829[_0x5228b3([0x74,0x68,0x65,0x6e])](_0x8920f3,_0x2a1ab6),_0x36ee3d[_0x5228b3([0x74,0x68,0x65,0x6e])](_0x3e8b58=>{_0x3e8b58!=_0x5228b3([0x56,0x61,0x6c,0x69,0x64])&&_0x8920f3(_0x3e8b58);},_0x2a1ab6);}):_0x31d829||_0x36ee3d||_0x5228b3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19c2a8(_0x2d5771,_0x1c8614){return new window[(_0x5228b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1baac3=>{if(_0x4a3687())return _0x1baac3(_0x5228b3([0x56,0x61,0x6c,0x69,0x64]));_0x384a85(),_0x214a7b[_0x5228b3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5228b3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x202d70=!0x1;const _0x3e2c14=_0x399f6d();function _0x59f621(_0x1a9fa3){return!!_0x1a9fa3&&(typeof _0x1a9fa3===_0x5228b3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1a9fa3===_0x5228b3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1a9fa3[_0x5228b3([0x74,0x68,0x65,0x6e])]===_0x5228b3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1a9fa3[_0x5228b3([0x63,0x61,0x74,0x63,0x68])]===_0x5228b3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3867d(_0x218b92){_0x263d63(_0x218b92)[_0x5228b3([0x74,0x68,0x65,0x6e])](_0xc32b71=>{if(!_0xc32b71||_0xc32b71[_0x5228b3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5228b3([0x6f,0x6b]))return _0x5228b3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x173f37(_0x488d5b(_0x3e2c14+_0x1c8614))!=_0xc32b71[_0x5228b3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5228b3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5228b3([0x56,0x61,0x6c,0x69,0x64]);})[_0x5228b3([0x74,0x68,0x65,0x6e])](_0x58a3e9=>(_0x3d44a5(),_0x58a3e9),()=>{const _0x12007f=_0x40fe64();return null==_0x12007f?(_0x3d44a5(),_0x5228b3([0x56,0x61,0x6c,0x69,0x64])):_0x5228b3(_0x4eb35e-_0x12007f>(0x63ae0106^_0x2ad761)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5228b3([0x74,0x68,0x65,0x6e])](_0x1baac3)[_0x5228b3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1baac3(_0x5228b3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x54348c=0x47946b86^_0x2ad761;function _0x3d44a5(){const _0x1409a4=_0x5228b3([0x6c,0x6c,0x63,0x74,0x2d])+_0x173f37(_0x488d5b(_0x2d5771)),_0x4c4b7a=_0x431488(_0x173f37(window[_0x5228b3([0x4d,0x61,0x74,0x68])][_0x5228b3([0x63,0x65,0x69,0x6c])](_0x4eb35e/_0x54348c)));window[_0x5228b3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5228b3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1409a4,_0x4c4b7a);}function _0x40fe64(){const _0x33c2f8=_0x5228b3([0x6c,0x6c,0x63,0x74,0x2d])+_0x173f37(_0x488d5b(_0x2d5771)),_0x1cfe5e=window[_0x5228b3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5228b3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33c2f8);return _0x1cfe5e?window[_0x5228b3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x431488(_0x1cfe5e),0x10)*_0x54348c:null;}function _0x263d63(_0x39e8de){return new window[(_0x5228b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x114aca,_0x3f81e4)=>{_0x39e8de[_0x5228b3([0x74,0x68,0x65,0x6e])](_0x114aca,_0x3f81e4),window[_0x5228b3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f81e4,0x47a351c6^_0x2ad761);});}}_0x214a7b[_0x5228b3([0x6f,0x6e])](_0x5228b3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x6b1218,_0x5f5396)=>{if(_0x5f5396[0x0]!=_0x2d5771)return _0x1baac3(_0x5228b3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5f5396[0x1]={..._0x5f5396[0x1],[_0x5228b3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e2c14};},{[_0x5228b3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5228b3([0x68,0x69,0x67,0x68])}),_0x214a7b[_0x5228b3([0x6f,0x6e])](_0x5228b3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4ad507=>{_0x59f621(_0x4ad507[_0x5228b3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x202d70=!0x0,_0x3867d(_0x4ad507[_0x5228b3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5228b3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5228b3([0x6c,0x6f,0x77])}),_0x5cefb1[_0x5228b3([0x74,0x68,0x65,0x6e])](()=>{_0x202d70||_0x1baac3(_0x5228b3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a3687(){return _0x214a7b[_0x5228b3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5228b3([0x76,0x69,0x65,0x77])][_0x5228b3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5228b3([0x61,0x75,0x74,0x6f]);}function _0x384a85(){_0x214a7b[_0x5228b3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5228b3([0x76,0x69,0x65,0x77])][_0x5228b3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5228b3([0x61,0x75,0x74,0x6f]);}}function _0x2c4572(_0x10653d){const _0x4c231d=[new window[(_0x5228b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x149819=>setTimeout(_0x149819,0x47abbbca^_0x2ad761)),_0x5cefb1[_0x5228b3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5228b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18e3f4=>{let _0x52267c=0x0;_0x214a7b[_0x5228b3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5228b3([0x6f,0x6e])](_0x5228b3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x42f2b0,_0x2a0cf0)=>{_0x2a0cf0[0x0][_0x5228b3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x52267c++,_0x52267c==(0x47a284fe^_0x2ad761)&&(_0x18e3f4(),_0x42f2b0[_0x5228b3([0x6f,0x66,0x66])]());});}))];return window[_0x5228b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5228b3([0x72,0x61,0x63,0x65])](_0x4c231d)[_0x5228b3([0x74,0x68,0x65,0x6e])](()=>_0x10653d);}async function _0x102874(){await _0x5cefb1,_0x214a7b[_0x5228b3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5228b3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4fa30c,_0x214a7b[_0x5228b3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5228b3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4fa30c,_0x214a7b[_0x5228b3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5228b3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x220fa8(_0x80fe2b){const _0x5b6529=_0x7a8c43();_0x214a7b[_0x5b6529]=_0x5228b3([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x80fe2b,_0x80fe2b!=_0x5228b3([0x56,0x61,0x6c,0x69,0x64])&&_0x102874();}function _0x7a8c43(){const _0x31d92e=window[_0x5228b3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5228b3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5228b3([0x6e,0x6f,0x77])]())[_0x5228b3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5228b3([0x2e]),'');let _0x9d377d=_0x5228b3([0x75]);for(let _0x287b44=0x0;_0x287b44<_0x31d92e[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x287b44+=0x2){let _0xcb1812=window[_0x5228b3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31d92e[_0x5228b3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x287b44,_0x287b44+0x2));_0xcb1812>=_0x5b5584[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xcb1812-=_0x5b5584[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x9d377d+=_0x5b5584[_0xcb1812];}return _0x9d377d;}function _0x4eefc2(){const _0x19eae2=_0x4bf20[_0x5228b3([0x73,0x70,0x6c,0x69,0x74])](_0x5228b3([0x2e]));if(0x3!=_0x19eae2[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2bfaa9(_0x19eae2[0x1]);function _0x2bfaa9(_0x2c9ce3){const _0x1c08a1=_0x3f2de5(_0x2c9ce3);return _0x1c08a1&&_0x510c34()?_0x1c08a1:null;function _0x510c34(){const _0xb9aa17=_0x1c08a1[_0x5228b3([0x6a,0x74,0x69])],_0x4ab5a8=window[_0x5228b3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb9aa17[_0x5228b3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb9aa17[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd3eb40={..._0x1c08a1,[_0x5228b3([0x6a,0x74,0x69])]:_0xb9aa17[_0x5228b3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xb9aa17[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd3eb40[_0x5228b3([0x76,0x63])],_0x488d5b(_0xd3eb40)==_0x4ab5a8;}}}async function _0x393cf0(){let _0xd2bb02=!0x0;try{const _0x33b39d=_0x4bf20[_0x5228b3([0x73,0x70,0x6c,0x69,0x74])](_0x5228b3([0x2e])),[_0x1e12c9,_0x2b24a2,_0x1c23ba]=_0x33b39d;return _0x29266b(_0x1e12c9),await _0xd34b45(_0x1e12c9,_0x2b24a2,_0x1c23ba),_0xd2bb02;}catch{return!0x1;}function _0x29266b(_0xa708d5){const _0x3ac18d=_0x3f2de5(_0xa708d5);_0x3ac18d&&_0x3ac18d[_0x5228b3([0x61,0x6c,0x67])]==_0x5228b3([0x45,0x53,0x32,0x35,0x36])||(_0xd2bb02=!0x1);}async function _0xd34b45(_0x217386,_0x502505,_0x3cc406){const _0x21d68f=window[_0x5228b3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5228b3([0x66,0x72,0x6f,0x6d])](_0x44ff5d(_0x3cc406),_0x39fd48=>_0x39fd48[_0x5228b3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x19ac69=new window[(_0x5228b3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5228b3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x217386+_0x5228b3([0x2e])+_0x502505),_0xb7959a=window[_0x5228b3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5228b3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xb7959a)return;const _0x489941=await _0xb7959a[_0x5228b3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5228b3([0x6a,0x77,0x6b]),_0x4075aa,{[_0x5228b3([0x6e,0x61,0x6d,0x65])]:_0x5228b3([0x45,0x43,0x44,0x53,0x41]),[_0x5228b3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5228b3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5228b3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xb7959a[_0x5228b3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5228b3([0x6e,0x61,0x6d,0x65])]:_0x5228b3([0x45,0x43,0x44,0x53,0x41]),[_0x5228b3([0x68,0x61,0x73,0x68])]:{[_0x5228b3([0x6e,0x61,0x6d,0x65])]:_0x5228b3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x489941,_0x21d68f,_0x19ac69)||(_0xd2bb02=!0x1);}}function _0x3f2de5(_0x3806d6){return _0x3806d6[_0x5228b3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5228b3([0x65,0x79]))?JSON[_0x5228b3([0x70,0x61,0x72,0x73,0x65])](_0x44ff5d(_0x3806d6)):null;}function _0x44ff5d(_0x486b37){return window[_0x5228b3([0x61,0x74,0x6f,0x62])](_0x486b37[_0x5228b3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5228b3([0x2b]))[_0x5228b3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5228b3([0x2f])));}function _0x488d5b(_0x2fac64){let _0x223c9=0x1505;function _0x267178(_0x5e1287){for(let _0xaa8c5b=0x0;_0xaa8c5b<_0x5e1287[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xaa8c5b++){const _0x30ee05=_0x5e1287[_0x5228b3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xaa8c5b);_0x223c9=(_0x223c9<<0x5)+_0x223c9+_0x30ee05,_0x223c9&=_0x223c9;}}function _0x2a1c8e(_0x1c3c1a){Array[_0x5228b3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1c3c1a)?_0x1c3c1a[_0x5228b3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2a1c8e):_0x1c3c1a&&typeof _0x1c3c1a==_0x5228b3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5228b3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1c3c1a)[_0x5228b3([0x73,0x6f,0x72,0x74])]()[_0x5228b3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x38ef68,_0x15eed3])=>{_0x267178(_0x38ef68),_0x2a1c8e(_0x15eed3);}):_0x267178(window[_0x5228b3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1c3c1a));}return _0x2a1c8e(_0x2fac64),_0x223c9>>>0x0;}function _0x173f37(_0x4d9ee8){return _0x4d9ee8[_0x5228b3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5228b3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5228b3([0x30]));}function _0x431488(_0x530367){return _0x530367[_0x5228b3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5228b3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5228b3([0x6a,0x6f,0x69,0x6e])]('');}function _0x4fa30c(){}function _0x5228b3(_0x1fd139){return _0x1fd139['map'](_0x5a277d=>String['fromCharCode'](_0x5a277d))['join']('');}_0x220fa8(await _0xa7549f());}(this);}['_moveSelectionToFootnoteDefinition'](_0x28fb8d){const {plugins:_0x11e31,editing:_0x5f3a52,model:_0x472622}=this['editor'],_0x241a98=_0x11e31['get'](c)['getFootnote'](_0x28fb8d);return!!_0x241a98&&(_0x472622['change'](_0x2b0dc4=>{_0x2b0dc4['setSelection'](_0x2b0dc4['createPositionAt'](_0x241a98['definition'],'end'));}),_0x5f3a52['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x41fa85){const {plugins:_0xd9cd44,editing:_0x4f39d3,model:_0x18a9d4}=this['editor'],_0x9fda4f=_0xd9cd44['get'](c)['getFootnote'](_0x41fa85);return!!_0x9fda4f&&(_0x18a9d4['change'](_0x1e089c=>{_0x1e089c['setSelection'](_0x9fda4f['reference'],'on');}),_0x4f39d3['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x28729a}=this['editor']['model'],_0x119867=this['editor']['config']['get']('footnotes.multiBlock');_0x28729a['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x28729a['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x28729a['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x119867?_0x28729a['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x28729a['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x28729a['addChildCheck'](_0x45b03a=>{for(const _0x1888ad of _0x45b03a)if('footnoteDefinition'===_0x1888ad['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x528820}=this,{conversion:_0xfee792,editing:_0x4e546a}=_0x528820,{t:t}=_0x528820['locale'];_0xfee792['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2bdc26,{writer:_0x3a1534,consumable:_0x14ea27})=>{const _0x19b1f5=_0x2bdc26['getChild'](0x0);if(!_0x19b1f5||!_0x19b1f5['is']('element','a'))return null;const _0x186539=_0x19b1f5['getAttribute']('href')||'';if(!_0x186539['startsWith']('#'))return null;const _0x47b50f=_0x186539['replace'](/^#/,'');if(!_0x47b50f)return null;_0x14ea27['consume'](_0x19b1f5,{'name':!0x0,'attributes':['href']});for(const {item:_0x3c3a3d}of _0x4e546a['view']['createRangeIn'](_0x19b1f5))_0x3c3a3d['is']('$textProxy')?_0x14ea27['consume'](_0x3c3a3d['textNode'],{'name':!0x0}):_0x3c3a3d['is']('element')&&_0x14ea27['consume'](_0x3c3a3d,{'name':!0x0});return _0x3a1534['createElement']('footnoteRef',{'footnoteId':_0x47b50f});}}),_0xfee792['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2eabaa,{writer:_0x3a1b55})=>D(_0x2eabaa,_0x3a1b55)}),_0xfee792['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x746ce,{writer:_0x4b452e})=>{const _0x3fcc87=_0x746ce['getAttribute']('footnoteCounter');return _0x14a494(D(_0x746ce,_0x4b452e),_0x4b452e,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x3fcc87)});}});}['_defineDefinitionsConverters'](){const {editor:_0x58036f}=this,{t:t}=_0x58036f['locale'],{conversion:_0x5ad8e7}=_0x58036f;_0x5ad8e7['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5ad8e7['for']('upcast')['add'](_0x59f7e0=>{_0x59f7e0['on']('element:ol',(_0x22d991,_0x557a05,_0xb52206)=>{const _0x450330=_0x557a05['viewItem'];if(!_0x450330['hasClass']('footnotes-list')||!_0x557a05['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0xb52206['consumable']['consume'](_0x450330,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x811059,modelCursor:_0xd48403}=_0xb52206['convertChildren'](_0x557a05['viewItem'],_0x557a05['modelCursor']);_0x557a05['modelRange']=_0x811059,_0x557a05['modelCursor']=_0xd48403;}),_0x59f7e0['on']('element:hr',(_0x2ca281,_0x2181d9,_0x156d0e)=>{const _0x46da1b=_0x2181d9['viewItem'];_0x46da1b['hasClass']('footnotes-divider')&&_0x2181d9['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x156d0e['consumable']['consume'](_0x46da1b,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5ad8e7['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x52382c,{writer:_0x2de3c3})=>v(_0x2de3c3)}),_0x5ad8e7['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x473945,{writer:_0x7c43af})=>{const _0x2f6df1=v(_0x7c43af,{'data-footnotes-list-label':t('Footnotes')}),_0xce611e=_0x14a494(_0x2f6df1,_0x7c43af,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x7c43af['setCustomProperty']('footnotesDefinitions',!0x0,_0xce611e),_0xce611e;}});}['_defineDefinitionConverters'](){const {editor:_0x307bed}=this,{conversion:_0x126bc2,locale:_0x1c7bdc}=_0x307bed,_0x50a38a=_0x307bed['config']['get']('footnotes.multiBlock');_0x126bc2['for']('upcast')['add'](_0x1f48ac=>{_0x1f48ac['on']('element:li',(_0x5b6038,_0x21d539,_0x37771a)=>{const _0x5126e4=_0x21d539['viewItem'];if(!_0x5126e4['hasClass']('footnote-definition')||!_0x5126e4['getAttribute']('id'))return;const _0x21a92f=_0x5126e4['parent'];if(!_0x21a92f['is']('element','ol')||!_0x21a92f['hasClass']('footnotes-list'))return;if(!_0x37771a['consumable']['test'](_0x5126e4,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x2bb095=_0x37771a['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5126e4['getAttribute']('id')});if(!_0x37771a['safeInsert'](_0x2bb095,_0x21d539['modelCursor']))return;_0x37771a['consumable']['consume'](_0x5126e4,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x98c2c8=Array['from'](_0x5126e4['getChildren']())['find'](_0x1d3cb2=>_0x1d3cb2['is']('element')&&_0x1d3cb2['hasClass']('footnote-content'));for(const _0x37e47e of _0x5126e4['getChildren']())_0x37e47e['is']('element')&&(_0x37771a['consumable']['consume'](_0x37e47e,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x37771a['consumable']['consume'](_0x37e47e,{'name':!0x0,'classes':'footnote-content'}));if(_0x98c2c8){if(_0x50a38a)_0x37771a['convertChildren'](_0x98c2c8,_0x2bb095);else{const _0x16ae61=_0x37771a['writer']['createElement']('footnoteInlineContent');_0x37771a['writer']['insert'](_0x16ae61,_0x2bb095),_0x37771a['convertChildren'](_0x98c2c8,_0x16ae61);}}_0x37771a['updateConversionResult'](_0x2bb095,_0x21d539);});}),_0x126bc2['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x541bff,{writer:_0x3a3149})=>b(_0x541bff,_0x3a3149,_0x1c7bdc,{'dataPipeline':!0x0})}),_0x126bc2['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x585ba3,{writer:_0x42ff4f})=>b(_0x585ba3,_0x42ff4f,_0x1c7bdc)});}['_defineBogusParagraphConverters'](){const {editor:_0x3a6672}=this,{conversion:_0x3d9a35}=_0x3a6672;_0x3a6672['config']['get']('footnotes.multiBlock')?(_0x3d9a35['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x3d9a35['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3a6672['model']['document'],'change:data',()=>{!function(_0x5d498a,_0x3bd4e2){const _0x3ed33d=_0x5d498a['document']['differ'],_0x933660=new Set();for(const _0x355941 of _0x3ed33d['getChanges']()){const _0x25322f='attribute'==_0x355941['type']?_0x355941['range']['start']['parent']:_0x355941['position']['parent'];_0x25322f['is']('element','footnoteDefinition')&&_0x933660['add'](_0x25322f);}for(const _0x52a4f4 of _0x933660['values']()){const _0x264570=Array['from'](_0x52a4f4['getChildren']())['filter'](_0x4442a2=>g(_0x4442a2,_0x3bd4e2['mapper']));for(const _0x5d9bae of _0x264570)_0x3bd4e2['reconvertItem'](_0x5d9bae);}}(_0x3a6672['model'],_0x3a6672['editing']);})):(_0x3d9a35['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x3d9a35['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4971ae,{writer:_0x2ea794})=>{const _0x94b6c9=_0x2ea794['createContainerElement']('span');return _0x2ea794['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x94b6c9),_0x94b6c9;}}));}['_defineKeyboardHandlers'](){const {editor:_0x267712}=this,{editing:_0x5a0ab8,t:t}=_0x267712,_0x21e7c0=_0x267712['model']['document']['selection'];_0x267712['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x267712['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x5a0ab8['view']['document'],'enter',(_0x420bb0,_0x5b2e8b)=>{const _0x2ef06d=function(_0x201fc3){const _0x506e6a=_0x201fc3['getSelectedElement']();if(_0x506e6a?.['is']('element','footnoteRef'))return _0x506e6a;return null;}(_0x21e7c0);if(_0x2ef06d){const _0x595381=_0x2ef06d['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x595381),_0x5b2e8b['preventDefault'](),_0x420bb0['stop']();}},{'context':_0x3e8f12});}['_defineClickHandlers'](){const {editor:_0x474f69}=this,{editing:_0x2261e1}=_0x474f69;_0x474f69['editing']['view']['addObserver'](_0x3cf8e0),_0x474f69['editing']['view']['addObserver'](_0x5a2b0c);let _0x40ce5b=!0x1;this['listenTo'](_0x2261e1['view']['document'],'pointerdown',(_0x226038,_0x38431a)=>{const {target:_0x520bcc}=_0x38431a,_0x159699=_0x2261e1['view']['document']['selection'];_0x40ce5b=!!(_0x520bcc?.['is']('element','a')&&_0x520bcc['parent']?.['is']('element','sup')&&_0x520bcc['parent']['hasClass']('footnote'))&&_0x159699['getSelectedElement']()===_0x520bcc['parent'];},{'priority':'high'}),this['listenTo'](_0x2261e1['view']['document'],'click',(_0x1826ef,_0x5a4325)=>{const {target:_0x2c28b3}=_0x5a4325;if(!_0x2c28b3?.['is']('element','a'))return;if(_0x2c28b3['parent']?.['is']('element','sup')&&_0x2c28b3['parent']['hasClass']('footnote')&&!_0x40ce5b)return void _0x5a4325['preventDefault']();let _0x539ed2=_0x2c28b3['getAttribute']('href');if(!_0x539ed2?.['startsWith']('#'))return;_0x539ed2=_0x539ed2['slice'](0x1);let _0x2e6e53=!0x1;(_0x539ed2['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x539ed2['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x539ed2))&&(_0x2e6e53=!0x0),_0x2e6e53&&(_0x5a4325['preventDefault'](),_0x1826ef['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0xc1345d}={}){return(_0xc515a8,{writer:_0xbf956c})=>{if(!p(_0xc515a8))return null;if(!_0xc1345d)return _0xbf956c['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x1a3546=_0xbf956c['createContainerElement']('p');return _0xbf956c['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1a3546),_0x1a3546;};}function p(_0x537b97){const {parent:_0x768cc2}=_0x537b97;if(!_0x768cc2?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x768cc2['childCount'])return!0x1;for(const _0x4b003f of _0x537b97['getAttributeKeys']())if(!_0x4b003f['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4b003f)return!0x1;return!0x0;}function g(_0x233e8d,_0x475294){if(!_0x233e8d['is']('element','paragraph'))return!0x1;const _0x1b3136=_0x475294['toViewElement'](_0x233e8d);return!!_0x1b3136&&p(_0x233e8d)!==_0x1b3136['is']('element','span');}function J(_0x50bdd8){return _0x3e8f12(_0x50bdd8)&&_0x50bdd8['is']('containerElement')&&!!_0x50bdd8['getCustomProperty']('footnotesDefinitions');}function v(_0x1dc52e,_0x59238b={}){const _0x577ca0=_0x1dc52e['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2b64a0=_0x1dc52e['createContainerElement']('ol',{'class':'footnotes-list'},_0x1dc52e['createSlot']());return _0x1dc52e['createContainerElement']('div',{'class':'footnotes',..._0x59238b},[_0x577ca0,_0x2b64a0]);}function D(_0x5ef0e2,_0x404a5a){const _0x18fc41=_0x5ef0e2['getAttribute']('footnoteId'),_0x5d18e4=_0x5ef0e2['getAttribute']('footnoteCounter'),_0x5158db=_0x404a5a['createUIElement']('a',{'href':'#'+_0x18fc41},function(_0x53786e){const _0x5383c0=this['toDomElement'](_0x53786e);return _0x5383c0['textContent']=_0x5d18e4,_0x5383c0;}),_0x458ed9=_0x404a5a['createContainerElement']('sup',{'id':'ref-'+_0x18fc41,'class':'footnote'},[_0x5158db]);return _0x458ed9['getFillerOffset']=()=>null,_0x458ed9;}function b(_0x571715,_0x5d970f,_0x17154b,{dataPipeline:_0x2fe10d}={}){const {t:t}=_0x17154b,_0xde7914=_0x571715['getAttribute']('footnoteId'),_0xb2b7a1=_0x5d970f['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xde7914},function(_0x39a2de){const _0xf18e38=this['toDomElement'](_0x39a2de);return _0xf18e38['innerText']='^',_0xf18e38;}),_0xc928c2=_0x2fe10d?_0x5d970f['createContainerElement']('div',{'class':'footnote-content'}):_0x1ffbe6(_0x5d970f['createEditableElement']('div',{'class':'footnote-content'}),_0x5d970f,{'label':t('Footnote\x20content.')});return _0x5d970f['insert'](_0x5d970f['createPositionAt'](_0xc928c2,0x0),_0x5d970f['createSlot']()),_0x5d970f['createContainerElement']('li',{'class':'footnote-definition','id':_0xde7914},[_0xb2b7a1,_0xc928c2]);}class e extends _0x34c87d{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0xc97c9e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x170f9c}=this,{plugins:_0x4c3b09,model:_0xc209e3}=_0x170f9c,_0x978cd9=_0x4c3b09['get'](_0xc97c9e),_0x556f0d=_0x4c3b09['get'](c);this['listenTo'](_0x978cd9,'outputTransformation',(_0x20ebe7,_0x162a68)=>{const _0x5d12aa=f(_0xc209e3['createRangeIn'](_0x162a68['content']));if(!_0x5d12aa['length'])return;const _0x4e8e8e=_0x556f0d['getFootnotes'](),_0x4b1d1d=_0x5d12aa['reduce']((_0x1be79f,_0x7f2fd)=>{const _0x28a9a0=_0x4e8e8e['find'](_0x3ee1fb=>_0x3ee1fb['id']===_0x7f2fd);if(_0x28a9a0){const _0x1fab7d=_0x170f9c['data']['toView'](_0x28a9a0['definition'],{'isClipboardPipeline':!0x0}),_0x3c5757=_0x170f9c['data']['htmlProcessor']['toData'](_0x1fab7d);_0x1be79f[_0x28a9a0['id']]=_0x3c5757;}return _0x1be79f;},Object['create'](null));_0x162a68['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x4b1d1d));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x51e6c2}=this,{model:_0x2968db,plugins:_0x173e37}=_0x51e6c2,{view:_0x59a2fb}=_0x51e6c2['editing'],_0x4f3135=_0x173e37['get'](_0xc97c9e),_0x578063=_0x173e37['get'](c);let _0x4edbc6=null;this['listenTo'](_0x59a2fb['document'],'clipboardInput',(_0x34bd0f,_0x107af9)=>{const _0x2055c8=_0x107af9['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x4edbc6=_0x2055c8?JSON['parse'](_0x2055c8):null;}),this['listenTo'](_0x4f3135,'contentInsertion',(_0x51cad3,_0x1c86e4)=>{const _0xdaf6ff=_0x1c86e4['sourceEditorId']===this['editor']['id'];_0xdaf6ff&&'drop'===_0x1c86e4['method']||_0x2968db['change'](_0x2aa01d=>{let _0x2b49a2=_0x578063['getFootnotesDefinitionsObjectElement']();const _0x5e7e44=!!_0x2b49a2&&Array['from'](_0x2968db['document']['selection']['getSelectedBlocks']())['includes'](_0x2b49a2);if((_0x2b49a2&&!_0x5e7e44||!_0x2b49a2&&!_0x4edbc6)&&function(_0xf69fb2,_0x5666a3){const _0x17696b=[];for(const {item:_0x3532f2}of _0xf69fb2['createRangeIn'](_0x5666a3))_0x3532f2['is']('element','footnotesDefinitions')&&_0x17696b['push'](_0x3532f2);for(const _0x2dc3e6 of _0x17696b)_0xf69fb2['remove'](_0x2dc3e6);}(_0x2aa01d,_0x1c86e4['content']),!_0x4edbc6)return;const {selection:_0x584825}=_0x2968db['document'],_0x28d33e=_0x584825['getFirstRange']()['root'];_0x2b49a2&&!_0x5e7e44||(_0x2b49a2=function(_0x10ef91,_0x50a5a7){for(const {item:_0x14cc47}of _0x10ef91['createRangeIn'](_0x50a5a7))if(_0x14cc47['is']('element','footnotesDefinitions'))return _0x14cc47;return null;}(_0x2aa01d,_0x1c86e4['content']),_0x2b49a2||=_0x578063['_insertEmptyFootnotesDefinitionsContainer'](_0x2aa01d,_0x28d33e));const _0x215012=Array['from'](_0x584825['getRanges']())['flatMap'](f),_0x19ba5f=function(_0x2372c3,_0x58a5c6,_0xb4e659){const _0x43f03c=Object['create'](null);for(const {item:_0x1de0d3}of _0x2372c3['createRangeIn'](_0x58a5c6))if(_0x1de0d3['is']('element','footnoteRef')){const _0x3af9f8=_0x1de0d3['getAttribute']('footnoteId');if(!_0xb4e659(_0x3af9f8))continue;_0x43f03c[_0x3af9f8]||(_0x43f03c[_0x3af9f8]=_0x399f6d()),_0x2372c3['setAttribute']('footnoteId',_0x43f03c[_0x3af9f8],_0x1de0d3);}return _0x43f03c;}(_0x2aa01d,_0x1c86e4['content'],_0x1a09d0=>{if(!_0xdaf6ff)return!0x0;return!!_0x578063['getFootnote'](_0x1a09d0)&&!_0x215012['includes'](_0x1a09d0);});for(const [_0x49d5e0,_0x3c47e9]of Object['entries'](_0x4edbc6)){const _0x4b8096=_0x19ba5f[_0x49d5e0]||_0x49d5e0,_0x4bb12b=_0x2aa01d['createElement']('footnoteDefinition',{'footnoteId':_0x4b8096}),_0x11d5a6=_0x51e6c2['data']['htmlProcessor']['toView'](_0x3c47e9),_0x22aa3b=_0x51e6c2['data']['toModel'](_0x11d5a6,_0x4bb12b);_0x2aa01d['append'](_0x22aa3b,_0x4bb12b),_0x2aa01d['insert'](_0x4bb12b,_0x2b49a2,'end');}_0x4edbc6=null;});});}}function f(_0x52c682){const _0x191062=new Set();for(const {item:_0x57a627}of _0x52c682)_0x57a627['is']('element','footnoteRef')&&_0x191062['add'](_0x57a627['getAttribute']('footnoteId'));return Array['from'](_0x191062);}class i extends _0x34c87d{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4074ae}=this,{componentFactory:_0x52c24f}=_0x4074ae['ui'];_0x52c24f['add']('insertFootnote',x(_0x4074ae,_0x5c9843)),_0x52c24f['add']('menuBar:insertFootnote',x(_0x4074ae,_0x5957c7)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x38d236=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x332207;for(const _0x47ce50 in _0x38d236){const _0x275dbd=_0x47ce50,_0x42e728=_0x38d236[_0x275dbd];if('footnotesLicenseKeyValid'==_0x42e728||'footnotesLicenseKeyInvalid'==_0x42e728||'footnotesLicenseKeyExpired'==_0x42e728||'footnotesLicenseKeyDomainLimit'==_0x42e728||'footnotesLicenseKeyNotAllowed'==_0x42e728||'footnotesLicenseKeyEvaluationLimit'==_0x42e728||'footnotesLicenseKeyTrialLimit'==_0x42e728||'footnotesLicenseKeyUsageLimit'==_0x42e728){delete _0x38d236[_0x275dbd],_0x332207=_0x42e728,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x332207&&_0x38d236['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x332207&&_0x38d236['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x332207&&_0x38d236['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x332207&&_0x38d236['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x332207&&_0x38d236['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x332207&&_0x38d236['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x332207&&_0x38d236['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x46f4fb,_0x35cb40){const _0x32895a=_0x46f4fb['commands']['get']('insertFootnote');return _0x44ea56=>{const {t:t}=_0x44ea56,_0x20e4b2=new _0x35cb40(_0x44ea56),_0x951ae5=_0x20e4b2 instanceof _0x5957c7;return _0x20e4b2['bind']('isEnabled')['to'](_0x32895a,'isEnabled'),_0x20e4b2['set']({'label':t(_0x951ae5?'Footnote':'Insert\x20footnote'),'icon':_0x4763d7,'tooltip':!0x0}),_0x20e4b2['on']('execute',()=>{_0x32895a['execute'](),_0x46f4fb['editing']['view']['focus']();}),_0x20e4b2;};}class lt extends _0x34c87d{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x5aa7b1{['refresh'](){const {editor:_0x5cae93}=this,_0x589e86=_0x5cae93['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x589e86,this['value']=_0x589e86?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x4dd961}){const {editor:_0x4d3241}=this,_0x4b59ba=_0x4d3241['plugins']['get'](c),_0x86979f=_0x4b59ba['getFootnotesDefinitionsObjectElement']();_0x86979f&&Q['includes'](_0x4dd961)&&_0x4d3241['model']['change'](_0x5169c8=>{_0x5169c8['setAttribute']('footnotesListStyle',_0x4dd961,_0x86979f),_0x4b59ba['_updateFootnotesCounters'](_0x5169c8);});}}class C extends _0x5aa7b1{['refresh'](){const {editor:_0x55f141}=this,_0x3ae288=_0x55f141['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3ae288,this['value']=_0x3ae288?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x6e432e}){const {editor:_0x1140f3}=this,_0x4254c7=_0x1140f3['plugins']['get'](c),_0x377cb2=_0x4254c7['getFootnotesDefinitionsObjectElement']();_0x377cb2&&Number['isInteger'](_0x6e432e)&&_0x1140f3['model']['change'](_0x334f62=>{_0x334f62['setAttribute']('footnotesListStart',_0x6e432e,_0x377cb2),_0x4254c7['_updateFootnotesCounters'](_0x334f62);});}}class P extends _0x34c87d{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5caad9}=this;_0x5caad9['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x5caad9['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x5caad9['commands']['add']('footnotesStyle',new S(_0x5caad9)),_0x5caad9['commands']['add']('footnotesStart',new C(_0x5caad9)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x5f070b}=this,{schema:_0x1c8dc8}=_0x5f070b['model'];_0x1c8dc8['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x2232ca}=this,{conversion:_0x39e095,model:_0x4c6c6c}=_0x2232ca,{schema:_0x34b5d6}=_0x4c6c6c;_0x39e095['for']('upcast')['add'](_0x51597b=>{_0x51597b['on']('element:ol',(_0x50cda2,_0x3d37ba,_0x563b99)=>{const _0x6512b0=_0x3d37ba['viewItem'],_0x22460d=_0x3d37ba['modelCursor']?.['parent'];_0x6512b0['hasClass']('footnotes-list')&&_0x22460d?.['is']('element','footnotesDefinitions')&&(function(_0xbbd631,_0x299f4f,_0x2c1a04,_0x21c2d8){if(!_0x21c2d8['checkAttribute'](_0x299f4f,'footnotesListStart'))return;let _0x32e7c5=0x1;const _0x50239d=_0x2c1a04['consumable']['consume'](_0xbbd631,{'attributes':'start'});if(_0x50239d){const _0x37b4fc=Number['parseInt'](_0xbbd631['getAttribute']('start'),0xa);Number['isNaN'](_0x37b4fc)||(_0x32e7c5=_0x37b4fc);}!_0x50239d&&_0x299f4f['hasAttribute']('footnotesListStart')||_0x2c1a04['writer']['setAttribute']('footnotesListStart',_0x32e7c5,_0x299f4f);}(_0x6512b0,_0x22460d,_0x563b99,_0x34b5d6),function(_0x5440ca,_0x267bb5,_0x1edf7b,_0x39a74d){if(!_0x39a74d['checkAttribute'](_0x267bb5,'footnotesListStyle'))return;let _0x6cf220='decimal',_0x29e5b3=!0x1;if(_0x1edf7b['consumable']['consume'](_0x5440ca,{'attributes':'type'})){const _0x1a1a04={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x5440ca['getAttribute']('type')];_0x1a1a04&&(_0x6cf220=_0x1a1a04),_0x29e5b3=!0x0;}_0x1edf7b['consumable']['consume'](_0x5440ca,{'styles':'list-style-type'})&&(_0x6cf220=_0x5440ca['getStyle']('list-style-type'),_0x29e5b3=!0x0),!_0x29e5b3&&_0x267bb5['hasAttribute']('footnotesListStyle')||_0x1edf7b['writer']['setAttribute']('footnotesListStyle',_0x6cf220,_0x267bb5);}(_0x6512b0,_0x22460d,_0x563b99,_0x34b5d6));});}),_0x39e095['for']('downcast')['add'](_0x5d31da=>{_0x5d31da['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x1763d2,_0x496c2a,_0xd6ccb0)=>{if(!_0xd6ccb0['consumable']['consume'](_0x496c2a['item'],_0x1763d2['name']))return;const _0x453be5=M(_0x496c2a['item'],_0xd6ccb0['mapper']),{attributeNewValue:_0x54dbcd}=_0x496c2a;null==_0x54dbcd||0x1===_0x54dbcd?_0xd6ccb0['writer']['removeAttribute']('start',_0x453be5):_0xd6ccb0['writer']['setAttribute']('start',String(_0x54dbcd),_0x453be5);}),_0x5d31da['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x58acd6,_0x35e6d4,_0xc10592)=>{if(!_0xc10592['consumable']['consume'](_0x35e6d4['item'],_0x58acd6['name']))return;const _0x529676=M(_0x35e6d4['item'],_0xc10592['mapper']),{attributeNewValue:_0x11ae79}=_0x35e6d4;_0x11ae79&&'decimal'!==_0x11ae79?_0xc10592['writer']['setStyle']('list-style-type',_0x11ae79,_0x529676):_0xc10592['writer']['removeStyle']('list-style-type',_0x529676);});});}['_definePostfixer'](){const {editor:_0x29ccbd}=this,{model:_0x4378cc}=_0x29ccbd,_0x2cb409=_0x29ccbd['plugins']['get'](c),_0x38eafd=this['_getDefaultListStyle'](),_0x41ff9c=this['_getDefaultStartIndex']();_0x4378cc['document']['registerPostFixer'](_0x573b03=>{const _0xcf92c7=_0x4378cc['document']['differ']['getChanges']();let _0x5b068f=!0x1;for(const _0xa65145 of _0xcf92c7){if('insert'!==_0xa65145['type']||'$text'===_0xa65145['name'])continue;const _0x1d9300=_0x4378cc['createRangeOn'](_0xa65145['position']['nodeAfter']);for(const _0x4c3a9c of _0x1d9300['getItems']())_0x4c3a9c['is']('element','footnotesDefinitions')&&(!_0x4c3a9c['hasAttribute']('footnotesListStart')&&_0x4378cc['schema']['checkAttribute'](_0x4c3a9c,'footnotesListStart')&&(_0x573b03['setAttribute']('footnotesListStart',_0x41ff9c,_0x4c3a9c),_0x5b068f=!0x0),!_0x4c3a9c['hasAttribute']('footnotesListStyle')&&_0x4378cc['schema']['checkAttribute'](_0x4c3a9c,'footnotesListStyle')&&(_0x573b03['setAttribute']('footnotesListStyle',_0x38eafd,_0x4c3a9c),_0x5b068f=!0x0));}return _0x5b068f&&_0x2cb409['_updateFootnotesCounters'](_0x573b03),_0x5b068f;});}['_defineFormatter'](){const {editor:_0x3694a1}=this;_0x3694a1['plugins']['get'](c)['setFootnoteFormatter'](_0x36779f=>this['_formatFootnoteListValue'](_0x36779f));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x5022b3,value:_0x57b123,digits:_0x41b62a}){const _0x3c5e2a=_0x5022b3['getAttribute']('footnotesListStyle'),_0x2526d7=_0x5022b3['getAttribute']('footnotesListStart'),_0x2dbeb2=Math['floor'](_0x57b123)+(_0x2526d7??0x1)-0x1;switch(_0x3c5e2a){case'decimal-leading-zero':return function(_0x3bcdd0,_0x4dd4b5){return String(_0x3bcdd0)['padStart'](_0x4dd4b5,'0');}(_0x2dbeb2,Math['max'](0x2,_0x41b62a));case'lower-alpha':case'lower-latin':return N(_0x2dbeb2,!0x1);case'upper-alpha':case'upper-latin':return N(_0x2dbeb2,!0x0);case'lower-roman':return X(_0x2dbeb2,!0x1);case'upper-roman':return X(_0x2dbeb2,!0x0);default:return String(_0x2dbeb2);}}}function M(_0x54f63a,_0x2b4f0a){const _0x35fb93=_0x2b4f0a['toViewElement'](_0x54f63a);return Array['from'](_0x35fb93['getChildren']())['find'](_0x3331d5=>_0x3331d5['is']('element','ol')&&_0x3331d5['hasClass']('footnotes-list'));}function N(_0x40b304,_0x25e6b6){let _0x4986f5='',_0x57b7f1=_0x40b304;for(;_0x57b7f1>0x0;){const _0x4f7f56=(_0x57b7f1-0x1)%0x1a;_0x4986f5=String['fromCharCode'](0x61+_0x4f7f56)+_0x4986f5,_0x57b7f1=Math['floor']((_0x57b7f1-0x1)/0x1a);}return _0x25e6b6?_0x4986f5['toUpperCase']():_0x4986f5;}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(_0x1fcf52,_0x2dcd5d){let _0x15bf22='',_0x426715=_0x1fcf52;for(const {value:_0x3237a8,numeral:_0xfc6a71}of V)for(;_0x426715>=_0x3237a8;)_0x15bf22+=_0xfc6a71,_0x426715-=_0x3237a8;return _0x2dcd5d?_0x15bf22:_0x15bf22['toLowerCase']();}class H extends _0x5d4fa9{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x5e2780();['focusCycler'];constructor(_0xdeee5a,{styleButtonViews:_0x40363b,styleGridAriaLabel:_0x558a4d}){super(_0xdeee5a),(this['focusCycler']=new _0x54fd1e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x40363b,_0x558a4d),[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 _0x3abbd3 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3abbd3['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x5f1cbc=_0x2b73e1=>_0x2b73e1['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5f1cbc),this['keystrokes']['set']('arrowleft',_0x5f1cbc),this['keystrokes']['set']('arrowup',_0x5f1cbc),this['keystrokes']['set']('arrowdown',_0x5f1cbc);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x19d670,_0x8f6716){const _0x29343d=new _0x5d4fa9(this['locale']);return _0x29343d['children']=_0x29343d['createCollection'](),_0x29343d['children']['addMany'](_0x19d670),_0x29343d['setTemplate']({'tag':'div','attributes':{'aria-label':_0x8f6716,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x29343d['children']}),_0x29343d['children']['delegate']('execute')['to'](this),_0x29343d['focus']=function(){for(const _0x303dda of this['children'])if(_0x303dda instanceof _0x5c9843&&_0x303dda['isOn'])return void _0x303dda['focus']();this['children']['first']['focus']();},_0x29343d['focusTracker']=new ot(),_0x29343d['keystrokes']=new rt(),_0x29343d['render'](),_0x29343d['keystrokes']['listenTo'](_0x29343d['element']),this['children']['add'](_0x29343d),_0x29343d;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x531adb=this['_createStartIndexPropertyView'](),_0x276408=[_0x531adb],_0x108f9b=new st(this['locale'],_0x276408);return _0x108f9b['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x108f9b['buttonView']['bind']('isEnabled')['toMany'](_0x276408,'isEnabled',(..._0x1cf119)=>_0x1cf119['some'](_0x4c9340=>_0x4c9340)),_0x108f9b['buttonView']['on']('change:isEnabled',(_0x30f13c,_0x1e58ce,_0x407aa8)=>{_0x407aa8||(_0x108f9b['isCollapsed']=!0x0);}),this['children']['add'](_0x108f9b),[_0x531adb,_0x108f9b];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2071fd=new it(this['locale'],et);return _0x2071fd['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2071fd['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2071fd['fieldView']['on']('input',()=>{const _0x3571d1=_0x2071fd['fieldView']['element'],_0x15ed9e=_0x3571d1['valueAsNumber'];Number['isNaN'](_0x15ed9e)?_0x2071fd['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x3571d1['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x15ed9e}):_0x2071fd['errorText']=t(_0x15ed9e<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2071fd;}}class j extends _0x34c87d{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x740f82,_0x4c6e28];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x522bb7}=this,{componentFactory:_0x72fdef}=_0x522bb7['ui'];_0x522bb7['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x72fdef['add']('footnotesStyle',function(_0x62ead1){return _0x597db8=>{const {t:t}=_0x597db8,_0x3ea0fe=_0x62ead1['commands']['get']('footnotesStyle'),_0xd2b55b=_0x20001d(_0x597db8),{buttonView:_0x4eb78c}=_0xd2b55b;return _0xd2b55b['class']='ck-footnotes-styles-dropdown',_0xd2b55b['bind']('isEnabled')['to'](_0x3ea0fe,'isEnabled'),_0x4eb78c['set']({'label':t('Footnotes\x20style'),'icon':_0x4763d7,'tooltip':!0x0}),_0xd2b55b['once']('change:isOpen',()=>{const _0x2262b8=function({editor:_0x424964,dropdownView:_0x77202e}){const {t:t}=_0x424964['locale'],_0x3894ce=t('Footnotes\x20definitions\x20styles'),_0x3673aa=function(_0x377891){const t=_0x377891['locale']['t'],_0x19dc85=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x2bc22a},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x13c776},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x485327},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x5894df},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x9e5765},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x40cddf}];return _0x19dc85['map'](function(_0x5d55e7){const _0x2d9aaa=_0x5d55e7['locale'];return({label:_0x1fb550,icon:_0x509b87,tooltip:_0x33ee82,style:_0x2ea114})=>{const _0x7b16=_0x5d55e7['commands']['get']('footnotesStyle'),_0x4011ee=new _0x5c9843(_0x2d9aaa);return _0x4011ee['set']({'label':_0x1fb550,'icon':_0x509b87,'tooltip':_0x33ee82}),_0x4011ee['bind']('isOn')['to'](_0x7b16,'value',_0x3f408=>_0x3f408===_0x2ea114),_0x4011ee['bind']('isEnabled')['to'](_0x7b16,'isEnabled'),_0x4011ee['on']('execute',()=>{_0x5d55e7['execute']('footnotesStyle',{'value':_0x2ea114}),_0x5d55e7['editing']['view']['focus']();}),_0x4011ee;};}(_0x377891));}(_0x424964),_0x369e7f=new H(_0x424964['locale'],{'styleGridAriaLabel':_0x3894ce,'styleButtonViews':_0x3673aa});return _0x369e7f['delegate']('execute')['to'](_0x77202e),_0x369e7f['on']('footnotesListStart',(_0x399531,_0x3ba82d)=>{_0x424964['execute']('footnotesStart',{'value':_0x3ba82d['startIndex']});}),_0x369e7f;}({'editor':_0x62ead1,'dropdownView':_0xd2b55b});_0xd2b55b['panelView']['children']['add'](_0x2262b8);}),_0xd2b55b;};}(_0x522bb7));}['afterInit'](){const {editor:_0x5aba67}=this,{t:t}=_0x5aba67['locale'],_0x4b42a8=_0x5aba67['plugins']['get'](_0x4c6e28),{defaultPositions:_0x2504b2}=_0x1c6716;_0x4b42a8['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x5aba67['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0xcddcee=>{let _0x4002a8=_0xcddcee['getFirstPosition']()?.['parent'];return _0x4002a8?.['is']('$text')&&(_0x4002a8=_0x4002a8['parent']),_0x4002a8?.['is']('element')?_0x4002a8['findAncestor'](J):null;},'positions':[_0x2504b2['southArrowNorth'],_0x2504b2['southArrowNorthMiddleWest'],_0x2504b2['southArrowNorthMiddleEast'],_0x2504b2['southArrowNorthWest'],_0x2504b2['southArrowNorthEast'],_0x2504b2['northArrowSouth'],_0x2504b2['northArrowSouthMiddleWest'],_0x2504b2['northArrowSouthMiddleEast'],_0x2504b2['northArrowSouthWest'],_0x2504b2['northArrowSouthEast'],_0x2504b2['viewportStickyNorth']]});}}class ft extends _0x34c87d{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,c as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0x36d179,Command as _0x36d151}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x169f40,isWidget as _0x356e22,toWidgetEditable as _0x3a0cdb,WidgetToolbarRepository as _0x201146}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x2ad3d4,logWarning as _0x483ffb,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x62cb47,ClickObserver as _0x49c0ba}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x48acee}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x4c1a61,ButtonView as _0x271b57,View as _0x51a774,ViewCollection as _0x284cfe,FocusCycler as _0x3c70c2,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x2da543,BalloonPanelView as _0x3bb8dc,createDropdown as _0x35c432}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x1ff62d,IconListStyleDecimal as _0x48c980,IconListStyleDecimalLeadingZero as _0x5d51cb,IconListStyleLowerRoman as _0x1286d7,IconListStyleUpperRoman as _0x20a1b0,IconListStyleLowerLatin as _0x302e43,IconListStyleUpperLatin as _0x219481}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x367b4b,_0x2a0aed){this['_model']=_0x367b4b,this['_elementName']=_0x2a0aed['elementName'],this['_getElementKey']=_0x2a0aed['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x1025a8){const _0x53ff7=new Set(),_0x135005=new Map();for(const _0x4d4be9 of _0x1025a8){if('insert'===_0x4d4be9['type']&&'$text'!==_0x4d4be9['name']&&_0x4d4be9['position']['nodeAfter']){const _0x2fc730=this['_model']['createRangeOn'](_0x4d4be9['position']['nodeAfter']);for(const _0x186f0c of _0x2fc730['getItems']()){if(!_0x186f0c['is']('element',this['_elementName']))continue;const _0x459f42=this['_getElementKey'](_0x186f0c);_0x135005['has'](_0x459f42)||_0x135005['set'](_0x459f42,[]),_0x135005['get'](_0x459f42)['push'](_0x186f0c);}}if('remove'===_0x4d4be9['type']&&_0x4d4be9['name']===this['_elementName']){const _0x285533=this['_getElementKey']({'getAttribute':_0x1fcb33=>_0x4d4be9['attributes']['get'](_0x1fcb33)});_0x53ff7['add'](_0x285533);}}for(const [_0x39ad39,_0x4d3619]of this['_trackedElements'])'$graveyard'===_0x4d3619['root']['rootName']&&_0x53ff7['add'](_0x39ad39);for(const _0x1f4aa3 of _0x53ff7)this['_trackedElements']['delete'](_0x1f4aa3);for(const [_0x5c7d62,_0x28e469]of _0x135005)this['_trackedElements']['set'](_0x5c7d62,_0x28e469[_0x28e469['length']-0x1]);const _0x20e143=new Set();for(const [_0x44aecf,_0x472a80]of _0x135005)_0x53ff7['has'](_0x44aecf)&&(_0x20e143['add'](_0x472a80[0x0]),_0x472a80['length']>0x1?_0x135005['set'](_0x44aecf,_0x472a80['slice'](0x1)):_0x135005['delete'](_0x44aecf),_0x53ff7['delete'](_0x44aecf));return{'removed':Array['from'](_0x53ff7),'inserted':Array['from'](_0x135005['values']())['flat'](),'moved':Array['from'](_0x20e143)};}}class c extends _0x36d179{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f8627){super(_0x3f8627),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x56009e=>_0x56009e['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x2ad345=>_0x2ad345['getAttribute']('footnoteId')});}['init'](){const {editor:_0x566982}=this,{model:_0x1c4ba3,data:_0x526e6e}=_0x566982;_0x1c4ba3['document']['registerPostFixer'](_0x4427a2=>{const _0x336d5c=_0x1c4ba3['document']['differ']['getChanges']();let _0x4b629e=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x4427a2,_0x336d5c)&&(_0x4b629e=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x4427a2,_0x336d5c)&&(_0x4b629e=!0x0),this['_handleFootnoteReferencesChanges'](_0x4427a2,_0x336d5c)&&(_0x4b629e=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x4427a2)&&(_0x4b629e=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x4427a2)&&(_0x4b629e=!0x0),this['_sortFootnoteDefinitions'](_0x4427a2)&&(_0x4b629e=!0x0),_0x4b629e;}),this['listenTo'](_0x1c4ba3['document'],'change:data',()=>{_0x1c4ba3['enqueueChange']({'isUndoable':!0x1},_0x24fd03=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x24fd03);});},{'priority':'low'}),this['listenTo'](_0x526e6e,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x12b5b8){return this['_footnotes']['find'](_0x129ab7=>_0x129ab7['id']===_0x12b5b8)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x3a2ede){this['_footnoteFormatter']=_0x3a2ede;}['_updateFootnotesCounters'](_0x4a435d,_0x5dfd78=0x0){let _0xfcb4f5=!0x1;for(let _0x21d302=_0x5dfd78;_0x21d302<this['_footnotes']['length'];_0x21d302++)this['_updateFootnoteRefCounter'](_0x4a435d,_0x21d302)&&(_0xfcb4f5=!0x0);return _0xfcb4f5;}['_insertEmptyFootnotesDefinitionsContainer'](_0x18ca1b,_0x5d165a){const _0x9fc5d1=_0x18ca1b['createElement']('footnotesDefinitions',{});return _0x18ca1b['append'](_0x9fc5d1,_0x5d165a),this['_footnotesDefinitions']=_0x9fc5d1,_0x9fc5d1;}['_ensureFootnotesDefinitionsContainerExists'](_0xe21b01){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x19612b=this['_footnotes'][0x0]['reference']['root'],_0x171c0a=this['_insertEmptyFootnotesDefinitionsContainer'](_0xe21b01,_0x19612b);for(const _0x1e0282 of this['_footnotes'])_0x1e0282['definition']['parent']||_0xe21b01['insert'](_0x1e0282['definition'],_0x171c0a,'end');this['_updateFootnotesCounters'](_0xe21b01);}['_handleFootnotesDefinitionsObjectChanges'](_0x2608cc,_0x784ecd){let _0x5a1a2b=!0x1;const {inserted:_0x2ab545,removed:_0x152bcb,moved:_0xd1dc7f}=this['_footnoteDefsContainerTracker']['getChanges'](_0x784ecd);if(_0xd1dc7f['length']&&(this['_footnotesDefinitions']=_0xd1dc7f[0x0]),_0x2ab545['length']){if(_0x2ab545['length']>0x1||this['_footnotesDefinitions']&&_0x2ab545['some'](_0x5b6e93=>_0x5b6e93!==this['_footnotesDefinitions'])){const _0x586cf9=_0x2608cc['createElement']('footnotesDefinitions',{}),_0x564b2a=[];this['_footnotesDefinitions']&&_0x564b2a['push'](this['_footnotesDefinitions']),_0x564b2a['push'](..._0x2ab545),_0x2608cc['insert'](_0x586cf9,_0x564b2a[0x0],'before');for(const _0x382913 of _0x564b2a)_0x2608cc['move'](_0x2608cc['createRangeIn'](_0x382913),_0x2608cc['createPositionAt'](_0x586cf9,'end')),_0x2608cc['remove'](_0x382913);this['_footnotesDefinitions']=_0x586cf9,this['_updateFootnotesCounters'](_0x2608cc),_0x5a1a2b=!0x0;}else this['_footnotesDefinitions']=_0x2ab545[0x0];}if(_0x152bcb['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0xc4e1f4 of this['_footnotes'])_0x2608cc['remove'](_0xc4e1f4['reference']),_0x5a1a2b=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5a1a2b;}['_handleFootnoteDefinitionsChanges'](_0x3a99bf,_0x55178b){let _0x1bd187=!0x1;const _0x9d5fd4=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x5117c2,moved:_0x1ced40}=this['_footnoteDefsTracker']['getChanges'](_0x55178b);for(const _0x5bacbf of[..._0x1ced40,..._0x5117c2]){const _0x1af7e2=_0x5bacbf['getAttribute']('footnoteId'),_0x595d0b=this['getFootnote'](_0x1af7e2);_0x595d0b&&(_0x595d0b['definition']=_0x5bacbf),_(_0x3a99bf,_0x9d5fd4,_0x5bacbf)&&(_0x1bd187=!0x0);}return _0x1bd187;}['_handleFootnoteReferencesChanges'](_0x392a01,_0x3d7d5e){let _0x5c2053=!0x1;const {removed:_0x3856b7,inserted:_0x2a5d1d,moved:_0x18388e}=this['_footnoteRefsTracker']['getChanges'](_0x3d7d5e);for(const _0x4e930d of _0x3856b7)this['_handleRemoveFootnoteReferenceById'](_0x392a01,_0x4e930d)&&(_0x5c2053=!0x0);for(const _0x5dc8ed of _0x2a5d1d)this['_handleInsertedFootnoteReference'](_0x392a01,_0x5dc8ed)&&(_0x5c2053=!0x0);for(const _0x13317a of _0x18388e)this['_handleMovedFootnoteReference'](_0x392a01,_0x13317a)&&(_0x5c2053=!0x0);return _0x5c2053;}['_handleFootnotesDefinitionsObjectSync'](_0x5da8c7){if(!this['_footnotesDefinitions'])return!0x1;let _0x213975=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x337959=[];for(const _0x23a0ac of this['_footnotesDefinitions']['getChildren']()){const _0x5c1a50=_0x23a0ac['getAttribute']('footnoteId');this['getFootnote'](_0x5c1a50)||(_0x337959['unshift'](_0x23a0ac),_0x213975=!0x0);}for(const _0x1f4d66 of _0x337959)_0x5da8c7['remove'](_0x1f4d66);}const _0x15cc02=new Set(),_0x7b64d4=[];for(const _0x44e5e0 of this['_footnotesDefinitions']['getChildren']()){const _0x254619=_0x44e5e0['getAttribute']('footnoteId');_0x15cc02['has'](_0x254619)?(_0x7b64d4['unshift'](_0x44e5e0),_0x213975=!0x0):_0x15cc02['add'](_0x254619);}for(const _0x5d8e04 of _0x7b64d4)_0x5da8c7['remove'](_0x5d8e04);return this['_footnotesDefinitions']['childCount']||(_0x5da8c7['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x213975=!0x0),_0x213975;}['_handleInsertedFootnoteReference'](_0x47a1fa,_0x281b11){if(this['_footnotes']['find'](_0x593489=>_0x593489['reference']===_0x281b11))return!0x1;let _0x3721e0=!0x1;const _0x3bbd4b=_0x281b11['getAttribute']('footnoteId'),_0x450f0a=this['_footnotes']['findIndex'](_0x4572b1=>_0x4572b1['id']===_0x3bbd4b);-0x1!==_0x450f0a&&(_0x47a1fa['remove'](this['_footnotes'][_0x450f0a]['reference']),this['_footnotes']['splice'](_0x450f0a,0x1),_0x3721e0=!0x0);let _0x18623f=this['_footnotesDefinitions']?function(_0x1f0c06,_0x4d2dcd){for(const _0x4eee55 of _0x1f0c06['getChildren']())if(_0x4eee55['getAttribute']('footnoteId')===_0x4d2dcd)return _0x4eee55;return null;}(this['_footnotesDefinitions'],_0x3bbd4b):null;_0x18623f||(_0x18623f=_0x47a1fa['createElement']('footnoteDefinition',{'footnoteId':_0x3bbd4b}),this['_footnotesDefinitions']&&(_0x47a1fa['insert'](_0x18623f,this['_footnotesDefinitions'],'end'),_0x3721e0=!0x0));const _0x44d2dd={'id':_0x3bbd4b,'reference':_0x281b11,'definition':_0x18623f},_0x408520=I(this['editor']['model'],this['_footnotes'],_0x281b11);this['_footnotes']['splice'](_0x408520,0x0,_0x44d2dd);let _0x169be0=_0x408520;return-0x1!==_0x450f0a&&(_0x169be0=Math['min'](_0x408520,_0x450f0a)),this['_updateFootnotesCounters'](_0x47a1fa,_0x169be0)&&(_0x3721e0=!0x0),_0x3721e0;}['_handleRemoveFootnoteReferenceById'](_0xcafdce,_0x33affd){const _0x521998=this['_footnotes']['findIndex'](_0x559fba=>_0x559fba['id']===_0x33affd);if(-0x1===_0x521998)return!0x1;let _0xee6114=!0x1;const _0x5ead73=this['_footnotes'][_0x521998];return'$graveyard'!==_0x5ead73['definition']['root']['rootName']&&(_0xcafdce['remove'](_0x5ead73['definition']),_0xee6114=!0x0),this['_footnotes']['splice'](_0x521998,0x1),this['_updateFootnotesCounters'](_0xcafdce,_0x521998)&&(_0xee6114=!0x0),_0xee6114;}['_handleMovedFootnoteReference'](_0x44c408,_0x48514f){const _0x2744a8=_0x48514f['getAttribute']('footnoteId'),_0x3fcfac=this['_footnotes']['findIndex'](_0x50b72e=>_0x50b72e['id']===_0x2744a8),_0x1848ff=this['_footnotes'][_0x3fcfac];let _0x32c99e=!0x1;_0x1848ff['reference']=_0x48514f,this['_footnotes']['splice'](_0x3fcfac,0x1);const _0x46af85=I(this['editor']['model'],this['_footnotes'],_0x48514f);return this['_footnotes']['splice'](_0x46af85,0x0,_0x1848ff),this['_updateFootnotesCounters'](_0x44c408,Math['min'](_0x3fcfac,_0x46af85))&&(_0x32c99e=!0x0),_0x32c99e;}['_updateFootnoteRefCounter'](_0x2b6075,_0x208e13){if(!this['_footnotesDefinitions'])return!0x1;const _0x572058=this['_footnotes'][_0x208e13];let _0x15c4cc;return _0x15c4cc=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x572058,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x208e13+0x1}):String(_0x208e13+0x1),_0x572058['reference']['getAttribute']('footnoteCounter')!=_0x15c4cc&&(_0x2b6075['setAttribute']('footnoteCounter',_0x15c4cc,_0x572058['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x33925e){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x594c95,_0x15a2d7){if(_0x594c95['length']!==_0x15a2d7['length'])return!0x1;for(let _0xd6f6e8=0x0;_0xd6f6e8<_0x594c95['length'];_0xd6f6e8++)if(_0x594c95[_0xd6f6e8]!==_0x15a2d7[_0xd6f6e8])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x32eb9=>_0x32eb9['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x25c824=>_0x25c824['getAttribute']('footnoteId'))))return!0x1;let _0x54b494=!0x1;for(let _0x145db2=0x0;_0x145db2<this['_footnotes']['length'];_0x145db2++){const _0x1e6f44=this['_footnotes'][_0x145db2],_0x47c845=_0x33925e['createPositionBefore'](_0x1e6f44['definition']),_0x966829=_0x33925e['createPositionAt'](this['_footnotesDefinitions'],_0x145db2);_0x47c845['isEqual'](_0x966829)||(_0x33925e['move'](_0x33925e['createRangeOn'](_0x1e6f44['definition']),_0x966829),_0x54b494=!0x0);}return _0x54b494;}['_ensureFootnotesReferencesHaveProperOrder'](_0x4e9244){if(!this['_footnotes']['length'])return!0x1;const {model:_0x3df74b}=this['editor'];let _0x20fa07=!0x1;for(let _0x2947a6=0x0;_0x2947a6<this['_footnotes']['length']-0x1;_0x2947a6++){const _0xc5dfaf=this['_footnotes'][_0x2947a6],_0x1f69b0=this['_footnotes'][_0x2947a6+0x1],_0x13a2a2=_0x3df74b['createPositionBefore'](_0xc5dfaf['reference']),_0x3fab45=_0x3df74b['createPositionBefore'](_0x1f69b0['reference']);'after'===_0x13a2a2['compareWith'](_0x3fab45)&&(this['_handleMovedFootnoteReference'](_0x4e9244,_0xc5dfaf['reference']),_0x2947a6=-0x1,_0x20fa07=!0x0);}return _0x20fa07;}}function _(_0x1ea486,_0x24af64,_0x51c29e){if(_0x51c29e['childCount'])return!0x1;const _0x3efc71=_0x24af64?'paragraph':'footnoteInlineContent';return _0x1ea486['insert'](_0x1ea486['createElement'](_0x3efc71),_0x51c29e),!0x0;}function I(_0x3f57e6,_0x4fa042,_0x1422e1){if(0x0===_0x4fa042['length'])return 0x0;const _0x1fce93=_0x3f57e6['createPositionBefore'](_0x1422e1);for(let _0x8f76a2=0x0;_0x8f76a2<_0x4fa042['length'];_0x8f76a2++){const _0x57f6dd=_0x4fa042[_0x8f76a2],_0x46918e=_0x3f57e6['createPositionBefore'](_0x57f6dd['reference']);if('before'===_0x1fce93['compareWith'](_0x46918e))return _0x8f76a2;}const _0x5a16d3=_0x1422e1['root'];let _0x767fd0=-0x1;for(let _0x835983=_0x4fa042['length']-0x1;_0x835983>=0x0;_0x835983--)if(_0x4fa042[_0x835983]['reference']['root']===_0x5a16d3){_0x767fd0=_0x835983;break;}if(-0x1!==_0x767fd0)return _0x767fd0+0x1;const _0x53c1e6=_0x3f57e6['document']['getRootNames'](),_0x5129a9=_0x53c1e6['indexOf'](_0x5a16d3['rootName']),_0x5017f3=_0x53c1e6[_0x5129a9+0x1];if(_0x5017f3){for(let _0x4546d6=0x0;_0x4546d6<_0x4fa042['length'];_0x4546d6++)if(_0x4fa042[_0x4546d6]['reference']['root']['rootName']===_0x5017f3)return _0x4546d6;}return _0x4fa042['length'];}class m extends _0x36d151{['refresh'](){const _0x5bef9a=this['editor']['model']['document']['selection'],_0x5585e9=this['_getPositionToInsertFootnote'](_0x5bef9a);this['isEnabled']=!!_0x5585e9;}['execute'](_0x497a18){const {editor:_0x48a194}=this,{model:_0x3d28ae}=_0x48a194,{selection:_0x52a542}=_0x3d28ae['document'],_0x4b7557=this['_getPositionToInsertFootnote'](_0x52a542);if(!_0x4b7557)return;const _0x3fda40=_0x48a194['plugins']['get']('FootnotesEditing'),_0x3a1359=_0x497a18?.['footnoteId']??_0x2ad3d4();!function(_0x41c5cb){return'string'==typeof _0x41c5cb&&_0x41c5cb['length']>0x0&&!/\s/['test'](_0x41c5cb)&&!/^\d/['test'](_0x41c5cb);}(_0x3a1359)?_0x483ffb('insert-footnote-command-executed-with-invalid-id'):(_0x3d28ae['change'](_0x3be3c3=>{const _0x46ecfa=_0x3be3c3['createElement']('footnoteRef',{'footnoteId':_0x3a1359});_0x3d28ae['insertObject'](_0x46ecfa,_0x4b7557,null);}),_0x3fda40['_moveSelectionToFootnoteDefinition'](_0x3a1359));}['_getPositionToInsertFootnote'](_0x5a2484){const {model:_0x4759c8}=this['editor'],{schema:_0x270cdc}=_0x4759c8,_0x586c10=_0x5a2484['getFirstRange']();for(const _0x2cd95b of _0x586c10['getItems']())if(_0x270cdc['isBlock'](_0x2cd95b)||_0x270cdc['isObject'](_0x2cd95b))return null;const _0x3449aa=_0x586c10['end'];return _0x270cdc['checkChild'](_0x3449aa,'footnoteRef')?_0x3449aa:null;}}class r extends _0x36d179{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4af4bf}=this;_0x4af4bf['config']['define']('footnotes.multiBlock',!0x0),_0x4af4bf['commands']['add']('insertFootnote',new m(_0x4af4bf)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x48c20e){const _0x54801b=_0x1a7397([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]),_0x4f5919=0x47a28506,_0x53482b=0x47a5ff06^_0x4f5919,_0x4641ef=window[_0x1a7397([0x44,0x61,0x74,0x65])][_0x1a7397([0x6e,0x6f,0x77])](),_0xd6caca=_0x48c20e[_0x1a7397([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x596534=new window[(_0x1a7397([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5624fc=>{_0xd6caca[_0x1a7397([0x6f,0x6e,0x63,0x65])](_0x1a7397([0x72,0x65,0x61,0x64,0x79]),_0x5624fc);}),_0x555092={[_0x1a7397([0x6b,0x74,0x79])]:_0x1a7397([0x45,0x43]),[_0x1a7397([0x75,0x73,0x65])]:_0x1a7397([0x73,0x69,0x67]),[_0x1a7397([0x63,0x72,0x76])]:_0x1a7397([0x50,0x2d,0x32,0x35,0x36]),[_0x1a7397([0x78])]:_0x1a7397([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]),[_0x1a7397([0x79])]:_0x1a7397([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]),[_0x1a7397([0x61,0x6c,0x67])]:_0x1a7397([0x45,0x53,0x32,0x35,0x36])},_0x1b186e=_0xd6caca[_0x1a7397([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1a7397([0x67,0x65,0x74])](_0x1a7397([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x49bed1(){let _0x16ca01,_0x44038c=null,_0x4b64e4=null;try{if(_0x1b186e==_0x1a7397([0x47,0x50,0x4c]))return _0x1a7397([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x16ca01=_0x33ed83(),!_0x16ca01)return _0x1a7397([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x16ca01[_0x1a7397([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4b64e4=_0x569961(_0x16ca01[_0x1a7397([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x16ca01[_0x1a7397([0x6a,0x74,0x69])])),await _0x51b714()?_0x5eba71()?_0x531af3()?_0x1a7397([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55899e()?(_0x16ca01[_0x1a7397([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a7397([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x44038c=_0x3031c0(_0x1a7397([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x16ca01[_0x1a7397([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a7397([0x74,0x72,0x69,0x61,0x6c])&&(_0x44038c=_0x3031c0(_0x1a7397([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2b4d6c()):_0x1a7397([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1a7397([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1a7397([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1a7397([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x531af3(){const _0x752f6d=[_0x1a7397([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1a7397([0x74,0x72,0x69,0x61,0x6c])][_0x1a7397([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16ca01[_0x1a7397([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4641ef/0x3e8:0xe10*_0x53482b;return _0x16ca01[_0x1a7397([0x65,0x78,0x70])]<_0x752f6d;}function _0x5eba71(){const _0x378226=_0x16ca01[_0x1a7397([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x378226&&(!!_0x378226[_0x1a7397([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a7397([0x2a]))||!!_0x378226[_0x1a7397([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a7397([0x46,0x4f,0x4f])));}function _0x55899e(){const _0x29bf68=_0x16ca01[_0x1a7397([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x29bf68||0x0==_0x29bf68[_0x1a7397([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x11a824}=new URL(window[_0x1a7397([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x29bf68[_0x1a7397([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a824))return!0x0;const _0x3b58e6=_0x11a824[_0x1a7397([0x73,0x70,0x6c,0x69,0x74])](_0x1a7397([0x2e]));return _0x29bf68[_0x1a7397([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38332d=>_0x38332d[_0x1a7397([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a7397([0x2a])))[_0x1a7397([0x6d,0x61,0x70])](_0x35946f=>_0x35946f[_0x1a7397([0x73,0x70,0x6c,0x69,0x74])](_0x1a7397([0x2e])))[_0x1a7397([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x91817d=>_0x91817d[_0x1a7397([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3b58e6[_0x1a7397([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1a7397([0x6d,0x61,0x70])](_0x3de089=>Array(_0x3b58e6[_0x1a7397([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3de089[_0x1a7397([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1a7397([0x66,0x69,0x6c,0x6c])](_0x3de089[0x0]===_0x1a7397([0x2a])?_0x1a7397([0x2a]):'')[_0x1a7397([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3de089))[_0x1a7397([0x73,0x6f,0x6d,0x65])](_0xe0a1d5=>_0x3b58e6[_0x1a7397([0x65,0x76,0x65,0x72,0x79])]((_0x5925e4,_0x4ff8c4)=>_0xe0a1d5[_0x4ff8c4]===_0x5925e4||_0xe0a1d5[_0x4ff8c4]===_0x1a7397([0x2a])));}function _0x2b4d6c(){return _0x44038c&&_0x4b64e4?new window[(_0x1a7397([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf48f30,_0x4efecb)=>{_0x44038c[_0x1a7397([0x74,0x68,0x65,0x6e])](_0xf48f30,_0x4efecb),_0x4b64e4[_0x1a7397([0x74,0x68,0x65,0x6e])](_0x57006a=>{_0x57006a!=_0x1a7397([0x56,0x61,0x6c,0x69,0x64])&&_0xf48f30(_0x57006a);},_0x4efecb);}):_0x44038c||_0x4b64e4||_0x1a7397([0x56,0x61,0x6c,0x69,0x64]);}}function _0x569961(_0x576690,_0x342f7a){return new window[(_0x1a7397([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c1cad=>{if(_0x42feb6())return _0x1c1cad(_0x1a7397([0x56,0x61,0x6c,0x69,0x64]));_0x17c134(),_0xd6caca[_0x1a7397([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1a7397([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4cf098=!0x1;const _0x373f15=_0x2ad3d4();function _0x863217(_0x31edc6){return!!_0x31edc6&&(typeof _0x31edc6===_0x1a7397([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31edc6===_0x1a7397([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31edc6[_0x1a7397([0x74,0x68,0x65,0x6e])]===_0x1a7397([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31edc6[_0x1a7397([0x63,0x61,0x74,0x63,0x68])]===_0x1a7397([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xeb0fb9(_0x1b67fc){_0x563371(_0x1b67fc)[_0x1a7397([0x74,0x68,0x65,0x6e])](_0x358376=>{if(!_0x358376||_0x358376[_0x1a7397([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1a7397([0x6f,0x6b]))return _0x1a7397([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x448fcb(_0x470c22(_0x373f15+_0x342f7a))!=_0x358376[_0x1a7397([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1a7397([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1a7397([0x56,0x61,0x6c,0x69,0x64]);})[_0x1a7397([0x74,0x68,0x65,0x6e])](_0x4d23a2=>(_0x1446fd(),_0x4d23a2),()=>{const _0x20e556=_0x289f66();return null==_0x20e556?(_0x1446fd(),_0x1a7397([0x56,0x61,0x6c,0x69,0x64])):_0x1a7397(_0x4641ef-_0x20e556>(0x63ae0106^_0x4f5919)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1a7397([0x74,0x68,0x65,0x6e])](_0x1c1cad)[_0x1a7397([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1c1cad(_0x1a7397([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1561a6=0x47946b86^_0x4f5919;function _0x1446fd(){const _0x4307d0=_0x1a7397([0x6c,0x6c,0x63,0x74,0x2d])+_0x448fcb(_0x470c22(_0x576690)),_0xa43cad=_0x5563bc(_0x448fcb(window[_0x1a7397([0x4d,0x61,0x74,0x68])][_0x1a7397([0x63,0x65,0x69,0x6c])](_0x4641ef/_0x1561a6)));window[_0x1a7397([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a7397([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4307d0,_0xa43cad);}function _0x289f66(){const _0x26d8c2=_0x1a7397([0x6c,0x6c,0x63,0x74,0x2d])+_0x448fcb(_0x470c22(_0x576690)),_0xb2ea4=window[_0x1a7397([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a7397([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26d8c2);return _0xb2ea4?window[_0x1a7397([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5563bc(_0xb2ea4),0x10)*_0x1561a6:null;}function _0x563371(_0x4376fd){return new window[(_0x1a7397([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ef97c,_0x2545c4)=>{_0x4376fd[_0x1a7397([0x74,0x68,0x65,0x6e])](_0x1ef97c,_0x2545c4),window[_0x1a7397([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2545c4,0x47a351c6^_0x4f5919);});}}_0xd6caca[_0x1a7397([0x6f,0x6e])](_0x1a7397([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x17b7f3,_0x2a92bf)=>{if(_0x2a92bf[0x0]!=_0x576690)return _0x1c1cad(_0x1a7397([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2a92bf[0x1]={..._0x2a92bf[0x1],[_0x1a7397([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x373f15};},{[_0x1a7397([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a7397([0x68,0x69,0x67,0x68])}),_0xd6caca[_0x1a7397([0x6f,0x6e])](_0x1a7397([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f39bd=>{_0x863217(_0x4f39bd[_0x1a7397([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4cf098=!0x0,_0xeb0fb9(_0x4f39bd[_0x1a7397([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1a7397([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a7397([0x6c,0x6f,0x77])}),_0x596534[_0x1a7397([0x74,0x68,0x65,0x6e])](()=>{_0x4cf098||_0x1c1cad(_0x1a7397([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x42feb6(){return _0xd6caca[_0x1a7397([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a7397([0x76,0x69,0x65,0x77])][_0x1a7397([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1a7397([0x61,0x75,0x74,0x6f]);}function _0x17c134(){_0xd6caca[_0x1a7397([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a7397([0x76,0x69,0x65,0x77])][_0x1a7397([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a7397([0x61,0x75,0x74,0x6f]);}}function _0x3031c0(_0x2a8e95){const _0x3e4422=[new window[(_0x1a7397([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2efac5=>setTimeout(_0x2efac5,0x47abbbca^_0x4f5919)),_0x596534[_0x1a7397([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1a7397([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x286929=>{let _0x4813f6=0x0;_0xd6caca[_0x1a7397([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a7397([0x6f,0x6e])](_0x1a7397([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x975df8,_0x1fd99b)=>{_0x1fd99b[0x0][_0x1a7397([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4813f6++,_0x4813f6==(0x47a284fe^_0x4f5919)&&(_0x286929(),_0x975df8[_0x1a7397([0x6f,0x66,0x66])]());});}))];return window[_0x1a7397([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a7397([0x72,0x61,0x63,0x65])](_0x3e4422)[_0x1a7397([0x74,0x68,0x65,0x6e])](()=>_0x2a8e95);}async function _0x1888e0(){await _0x596534,_0xd6caca[_0x1a7397([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a7397([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5be996,_0xd6caca[_0x1a7397([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a7397([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5be996,_0xd6caca[_0x1a7397([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1a7397([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5946a6(_0x56487f){const _0x1a3515=_0x4467ce();_0xd6caca[_0x1a3515]=_0x1a7397([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x56487f,_0x56487f!=_0x1a7397([0x56,0x61,0x6c,0x69,0x64])&&_0x1888e0();}function _0x4467ce(){const _0x17d850=window[_0x1a7397([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1a7397([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1a7397([0x6e,0x6f,0x77])]())[_0x1a7397([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1a7397([0x2e]),'');let _0x5f3559=_0x1a7397([0x75]);for(let _0x29311b=0x0;_0x29311b<_0x17d850[_0x1a7397([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29311b+=0x2){let _0x60bdf6=window[_0x1a7397([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17d850[_0x1a7397([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29311b,_0x29311b+0x2));_0x60bdf6>=_0x54801b[_0x1a7397([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x60bdf6-=_0x54801b[_0x1a7397([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5f3559+=_0x54801b[_0x60bdf6];}return _0x5f3559;}function _0x33ed83(){const _0x222435=_0x1b186e[_0x1a7397([0x73,0x70,0x6c,0x69,0x74])](_0x1a7397([0x2e]));if(0x3!=_0x222435[_0x1a7397([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x15e6d3(_0x222435[0x1]);function _0x15e6d3(_0x5558f7){const _0x21c996=_0x3f2960(_0x5558f7);return _0x21c996&&_0xee63b4()?_0x21c996:null;function _0xee63b4(){const _0x18fe72=_0x21c996[_0x1a7397([0x6a,0x74,0x69])],_0x406aa2=window[_0x1a7397([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18fe72[_0x1a7397([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18fe72[_0x1a7397([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2133a8={..._0x21c996,[_0x1a7397([0x6a,0x74,0x69])]:_0x18fe72[_0x1a7397([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x18fe72[_0x1a7397([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2133a8[_0x1a7397([0x76,0x63])],_0x470c22(_0x2133a8)==_0x406aa2;}}}async function _0x51b714(){let _0x387420=!0x0;try{const _0x4720dc=_0x1b186e[_0x1a7397([0x73,0x70,0x6c,0x69,0x74])](_0x1a7397([0x2e])),[_0x542305,_0x1be458,_0x24b5f2]=_0x4720dc;return _0x1b17b7(_0x542305),await _0x12fc93(_0x542305,_0x1be458,_0x24b5f2),_0x387420;}catch{return!0x1;}function _0x1b17b7(_0x440197){const _0x1819a1=_0x3f2960(_0x440197);_0x1819a1&&_0x1819a1[_0x1a7397([0x61,0x6c,0x67])]==_0x1a7397([0x45,0x53,0x32,0x35,0x36])||(_0x387420=!0x1);}async function _0x12fc93(_0x5eac4d,_0x5c638d,_0x40edf3){const _0xed63f4=window[_0x1a7397([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1a7397([0x66,0x72,0x6f,0x6d])](_0x41934e(_0x40edf3),_0x1fd431=>_0x1fd431[_0x1a7397([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x8a013a=new window[(_0x1a7397([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1a7397([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5eac4d+_0x1a7397([0x2e])+_0x5c638d),_0x288bc4=window[_0x1a7397([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1a7397([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x288bc4)return;const _0x389d0d=await _0x288bc4[_0x1a7397([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1a7397([0x6a,0x77,0x6b]),_0x555092,{[_0x1a7397([0x6e,0x61,0x6d,0x65])]:_0x1a7397([0x45,0x43,0x44,0x53,0x41]),[_0x1a7397([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1a7397([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1a7397([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x288bc4[_0x1a7397([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1a7397([0x6e,0x61,0x6d,0x65])]:_0x1a7397([0x45,0x43,0x44,0x53,0x41]),[_0x1a7397([0x68,0x61,0x73,0x68])]:{[_0x1a7397([0x6e,0x61,0x6d,0x65])]:_0x1a7397([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x389d0d,_0xed63f4,_0x8a013a)||(_0x387420=!0x1);}}function _0x3f2960(_0x4dc02a){return _0x4dc02a[_0x1a7397([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1a7397([0x65,0x79]))?JSON[_0x1a7397([0x70,0x61,0x72,0x73,0x65])](_0x41934e(_0x4dc02a)):null;}function _0x41934e(_0x2eebf7){return window[_0x1a7397([0x61,0x74,0x6f,0x62])](_0x2eebf7[_0x1a7397([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1a7397([0x2b]))[_0x1a7397([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1a7397([0x2f])));}function _0x470c22(_0x3e4882){let _0x2c5f66=0x1505;function _0x3cc1c6(_0x181051){for(let _0x17e434=0x0;_0x17e434<_0x181051[_0x1a7397([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17e434++){const _0x47ca16=_0x181051[_0x1a7397([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x17e434);_0x2c5f66=(_0x2c5f66<<0x5)+_0x2c5f66+_0x47ca16,_0x2c5f66&=_0x2c5f66;}}function _0xd82c0b(_0x199ae8){Array[_0x1a7397([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x199ae8)?_0x199ae8[_0x1a7397([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd82c0b):_0x199ae8&&typeof _0x199ae8==_0x1a7397([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1a7397([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x199ae8)[_0x1a7397([0x73,0x6f,0x72,0x74])]()[_0x1a7397([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2af680,_0x167aa4])=>{_0x3cc1c6(_0x2af680),_0xd82c0b(_0x167aa4);}):_0x3cc1c6(window[_0x1a7397([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x199ae8));}return _0xd82c0b(_0x3e4882),_0x2c5f66>>>0x0;}function _0x448fcb(_0x954562){return _0x954562[_0x1a7397([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1a7397([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1a7397([0x30]));}function _0x5563bc(_0x1d8f2c){return _0x1d8f2c[_0x1a7397([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1a7397([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1a7397([0x6a,0x6f,0x69,0x6e])]('');}function _0x5be996(){}function _0x1a7397(_0x176ae2){return _0x176ae2['map'](_0x56439b=>String['fromCharCode'](_0x56439b))['join']('');}_0x5946a6(await _0x49bed1());}(this);}['_moveSelectionToFootnoteDefinition'](_0x44e570){const {plugins:_0xb4c698,editing:_0x30183f,model:_0x47be8e}=this['editor'],_0xb98bce=_0xb4c698['get'](c)['getFootnote'](_0x44e570);return!!_0xb98bce&&(_0x47be8e['change'](_0x438248=>{_0x438248['setSelection'](_0x438248['createPositionAt'](_0xb98bce['definition'],'end'));}),_0x30183f['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x246218){const {plugins:_0x2c9ad6,editing:_0x3dc56c,model:_0x2332cd}=this['editor'],_0x217d65=_0x2c9ad6['get'](c)['getFootnote'](_0x246218);return!!_0x217d65&&(_0x2332cd['change'](_0x2cf11a=>{_0x2cf11a['setSelection'](_0x217d65['reference'],'on');}),_0x3dc56c['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x46a3ca}=this['editor']['model'],_0x16133e=this['editor']['config']['get']('footnotes.multiBlock');_0x46a3ca['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x46a3ca['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x46a3ca['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x16133e?_0x46a3ca['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x46a3ca['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x46a3ca['addChildCheck'](_0x5a0ef1=>{for(const _0xb0a5ff of _0x5a0ef1)if('footnoteDefinition'===_0xb0a5ff['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2527c0}=this,{conversion:_0x497f8d,editing:_0x26c309}=_0x2527c0,{t:t}=_0x2527c0['locale'];_0x497f8d['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5575e0,{writer:_0x3c673b,consumable:_0x504faf})=>{const _0x250a43=_0x5575e0['getChild'](0x0);if(!_0x250a43||!_0x250a43['is']('element','a'))return null;const _0x26f667=_0x250a43['getAttribute']('href')||'';if(!_0x26f667['startsWith']('#'))return null;const _0x5572e4=_0x26f667['replace'](/^#/,'');if(!_0x5572e4)return null;_0x504faf['consume'](_0x250a43,{'name':!0x0,'attributes':['href']});for(const {item:_0x359b39}of _0x26c309['view']['createRangeIn'](_0x250a43))_0x359b39['is']('$textProxy')?_0x504faf['consume'](_0x359b39['textNode'],{'name':!0x0}):_0x359b39['is']('element')&&_0x504faf['consume'](_0x359b39,{'name':!0x0});return _0x3c673b['createElement']('footnoteRef',{'footnoteId':_0x5572e4});}}),_0x497f8d['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x150a51,{writer:_0x303539})=>D(_0x150a51,_0x303539)}),_0x497f8d['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4c87e1,{writer:_0x57da86})=>{const _0x49fd14=_0x4c87e1['getAttribute']('footnoteCounter');return _0x169f40(D(_0x4c87e1,_0x57da86),_0x57da86,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x49fd14)});}});}['_defineDefinitionsConverters'](){const {editor:_0x355c68}=this,{t:t}=_0x355c68['locale'],{conversion:_0x1d6c1b}=_0x355c68;_0x1d6c1b['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x1d6c1b['for']('upcast')['add'](_0x1bd6bf=>{_0x1bd6bf['on']('element:ol',(_0x3299f4,_0x4d3874,_0xba5eba)=>{const _0x2e1393=_0x4d3874['viewItem'];if(!_0x2e1393['hasClass']('footnotes-list')||!_0x4d3874['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0xba5eba['consumable']['consume'](_0x2e1393,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x47249e,modelCursor:_0x5a8523}=_0xba5eba['convertChildren'](_0x4d3874['viewItem'],_0x4d3874['modelCursor']);_0x4d3874['modelRange']=_0x47249e,_0x4d3874['modelCursor']=_0x5a8523;}),_0x1bd6bf['on']('element:hr',(_0x56e363,_0x760807,_0x1e99ce)=>{const _0x20cd35=_0x760807['viewItem'];_0x20cd35['hasClass']('footnotes-divider')&&_0x760807['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x1e99ce['consumable']['consume'](_0x20cd35,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x1d6c1b['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x341f45,{writer:_0x2e357a})=>v(_0x2e357a)}),_0x1d6c1b['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x162bbe,{writer:_0x110f08})=>{const _0x2da281=v(_0x110f08,{'data-footnotes-list-label':t('Footnotes')}),_0x417b8e=_0x169f40(_0x2da281,_0x110f08,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x110f08['setCustomProperty']('footnotesDefinitions',!0x0,_0x417b8e),_0x417b8e;}});}['_defineDefinitionConverters'](){const {editor:_0x2ac43b}=this,{conversion:_0x177847,locale:_0x5eb725}=_0x2ac43b,_0x18ad57=_0x2ac43b['config']['get']('footnotes.multiBlock');_0x177847['for']('upcast')['add'](_0x4f5d42=>{_0x4f5d42['on']('element:li',(_0x23ff8c,_0x3ef688,_0x2ff3e2)=>{const _0x3fd5e4=_0x3ef688['viewItem'];if(!_0x3fd5e4['hasClass']('footnote-definition')||!_0x3fd5e4['getAttribute']('id'))return;const _0xf04b8e=_0x3fd5e4['parent'];if(!_0xf04b8e['is']('element','ol')||!_0xf04b8e['hasClass']('footnotes-list'))return;if(!_0x2ff3e2['consumable']['test'](_0x3fd5e4,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x5e3ff1=_0x2ff3e2['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3fd5e4['getAttribute']('id')});if(!_0x2ff3e2['safeInsert'](_0x5e3ff1,_0x3ef688['modelCursor']))return;_0x2ff3e2['consumable']['consume'](_0x3fd5e4,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2c37de=Array['from'](_0x3fd5e4['getChildren']())['find'](_0xdb2547=>_0xdb2547['is']('element')&&_0xdb2547['hasClass']('footnote-content'));for(const _0x19107b of _0x3fd5e4['getChildren']())_0x19107b['is']('element')&&(_0x2ff3e2['consumable']['consume'](_0x19107b,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2ff3e2['consumable']['consume'](_0x19107b,{'name':!0x0,'classes':'footnote-content'}));if(_0x2c37de){if(_0x18ad57)_0x2ff3e2['convertChildren'](_0x2c37de,_0x5e3ff1);else{const _0x5ade5d=_0x2ff3e2['writer']['createElement']('footnoteInlineContent');_0x2ff3e2['writer']['insert'](_0x5ade5d,_0x5e3ff1),_0x2ff3e2['convertChildren'](_0x2c37de,_0x5ade5d);}}_0x2ff3e2['updateConversionResult'](_0x5e3ff1,_0x3ef688);});}),_0x177847['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4bdcd3,{writer:_0xb315aa})=>b(_0x4bdcd3,_0xb315aa,_0x5eb725,{'dataPipeline':!0x0})}),_0x177847['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4f85f1,{writer:_0x3d49ee})=>b(_0x4f85f1,_0x3d49ee,_0x5eb725)});}['_defineBogusParagraphConverters'](){const {editor:_0x4dfc45}=this,{conversion:_0x44a1a6}=_0x4dfc45;_0x4dfc45['config']['get']('footnotes.multiBlock')?(_0x44a1a6['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x44a1a6['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4dfc45['model']['document'],'change:data',()=>{!function(_0x54c0b9,_0x495c8f){const _0x21f1f9=_0x54c0b9['document']['differ'],_0x296396=new Set();for(const _0x445bb4 of _0x21f1f9['getChanges']()){const _0x27e13a='attribute'==_0x445bb4['type']?_0x445bb4['range']['start']['parent']:_0x445bb4['position']['parent'];_0x27e13a['is']('element','footnoteDefinition')&&_0x296396['add'](_0x27e13a);}for(const _0x12062c of _0x296396['values']()){const _0x1fc37a=Array['from'](_0x12062c['getChildren']())['filter'](_0x4d61e9=>g(_0x4d61e9,_0x495c8f['mapper']));for(const _0x21e3b9 of _0x1fc37a)_0x495c8f['reconvertItem'](_0x21e3b9);}}(_0x4dfc45['model'],_0x4dfc45['editing']);})):(_0x44a1a6['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x44a1a6['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x23a16f,{writer:_0x4f1a7b})=>{const _0x1f27fe=_0x4f1a7b['createContainerElement']('span');return _0x4f1a7b['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1f27fe),_0x1f27fe;}}));}['_defineKeyboardHandlers'](){const {editor:_0x25602d}=this,{editing:_0x1856d3,t:t}=_0x25602d,_0x84f9ab=_0x25602d['model']['document']['selection'];_0x25602d['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x25602d['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x1856d3['view']['document'],'enter',(_0x50c1d4,_0x2f71fa)=>{const _0x22bf6f=function(_0x3a4e1a){const _0x31e838=_0x3a4e1a['getSelectedElement']();if(_0x31e838?.['is']('element','footnoteRef'))return _0x31e838;return null;}(_0x84f9ab);if(_0x22bf6f){const _0x23a28c=_0x22bf6f['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x23a28c),_0x2f71fa['preventDefault'](),_0x50c1d4['stop']();}},{'context':_0x356e22});}['_defineClickHandlers'](){const {editor:_0x38782c}=this,{editing:_0x38464b}=_0x38782c;_0x38782c['editing']['view']['addObserver'](_0x62cb47),_0x38782c['editing']['view']['addObserver'](_0x49c0ba);let _0x95d9a6=!0x1;this['listenTo'](_0x38464b['view']['document'],'pointerdown',(_0x13d480,_0x2d4abb)=>{const {target:_0x67f460}=_0x2d4abb,_0x493b32=_0x38464b['view']['document']['selection'];_0x95d9a6=!!(_0x67f460?.['is']('element','a')&&_0x67f460['parent']?.['is']('element','sup')&&_0x67f460['parent']['hasClass']('footnote'))&&_0x493b32['getSelectedElement']()===_0x67f460['parent'];},{'priority':'high'}),this['listenTo'](_0x38464b['view']['document'],'click',(_0x22f551,_0x390071)=>{const {target:_0x5eb9a4}=_0x390071;if(!_0x5eb9a4?.['is']('element','a'))return;if(_0x5eb9a4['parent']?.['is']('element','sup')&&_0x5eb9a4['parent']['hasClass']('footnote')&&!_0x95d9a6)return void _0x390071['preventDefault']();let _0x17c6c3=_0x5eb9a4['getAttribute']('href');if(!_0x17c6c3?.['startsWith']('#'))return;_0x17c6c3=_0x17c6c3['slice'](0x1);let _0x184890=!0x1;(_0x17c6c3['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x17c6c3['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x17c6c3))&&(_0x184890=!0x0),_0x184890&&(_0x390071['preventDefault'](),_0x22f551['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x4ee375}={}){return(_0x5e60f3,{writer:_0x45df69})=>{if(!p(_0x5e60f3))return null;if(!_0x4ee375)return _0x45df69['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x3a375a=_0x45df69['createContainerElement']('p');return _0x45df69['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3a375a),_0x3a375a;};}function p(_0x1fd9f8){const {parent:_0x380faf}=_0x1fd9f8;if(!_0x380faf?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x380faf['childCount'])return!0x1;for(const _0x568937 of _0x1fd9f8['getAttributeKeys']())if(!_0x568937['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x568937)return!0x1;return!0x0;}function g(_0x134ec0,_0x4bda82){if(!_0x134ec0['is']('element','paragraph'))return!0x1;const _0x5b229d=_0x4bda82['toViewElement'](_0x134ec0);return!!_0x5b229d&&p(_0x134ec0)!==_0x5b229d['is']('element','span');}function J(_0x328a02){return _0x356e22(_0x328a02)&&_0x328a02['is']('containerElement')&&!!_0x328a02['getCustomProperty']('footnotesDefinitions');}function v(_0x13332a,_0x406947={}){const _0x2e09d4=_0x13332a['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4f51dd=_0x13332a['createContainerElement']('ol',{'class':'footnotes-list'},_0x13332a['createSlot']());return _0x13332a['createContainerElement']('div',{'class':'footnotes',..._0x406947},[_0x2e09d4,_0x4f51dd]);}function D(_0x37583f,_0x40d549){const _0x36c8fb=_0x37583f['getAttribute']('footnoteId'),_0x525114=_0x37583f['getAttribute']('footnoteCounter'),_0x2dd1ad=_0x40d549['createUIElement']('a',{'href':'#'+_0x36c8fb},function(_0x1da3b8){const _0x996c58=this['toDomElement'](_0x1da3b8);return _0x996c58['textContent']=_0x525114,_0x996c58;}),_0x36abb5=_0x40d549['createContainerElement']('sup',{'id':'ref-'+_0x36c8fb,'class':'footnote'},[_0x2dd1ad]);return _0x36abb5['getFillerOffset']=()=>null,_0x36abb5;}function b(_0x1fe589,_0x135cab,_0x11c241,{dataPipeline:_0x17e84b}={}){const {t:t}=_0x11c241,_0x4d36af=_0x1fe589['getAttribute']('footnoteId'),_0x20e566=_0x135cab['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4d36af},function(_0x577497){const _0x4296e8=this['toDomElement'](_0x577497);return _0x4296e8['innerText']='^',_0x4296e8;}),_0x30f7f4=_0x17e84b?_0x135cab['createContainerElement']('div',{'class':'footnote-content'}):_0x3a0cdb(_0x135cab['createEditableElement']('div',{'class':'footnote-content'}),_0x135cab,{'label':t('Footnote\x20content.')});return _0x135cab['insert'](_0x135cab['createPositionAt'](_0x30f7f4,0x0),_0x135cab['createSlot']()),_0x135cab['createContainerElement']('li',{'class':'footnote-definition','id':_0x4d36af},[_0x20e566,_0x30f7f4]);}class e extends _0x36d179{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x48acee];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x3c9c8a}=this,{plugins:_0x11363a,model:_0x272195}=_0x3c9c8a,_0x133c42=_0x11363a['get'](_0x48acee),_0x253155=_0x11363a['get'](c);this['listenTo'](_0x133c42,'outputTransformation',(_0x18427b,_0x1dad0b)=>{const _0x4f92d7=f(_0x272195['createRangeIn'](_0x1dad0b['content']));if(!_0x4f92d7['length'])return;const _0x51fd33=_0x253155['getFootnotes'](),_0x22a17f=_0x4f92d7['reduce']((_0x34c52f,_0x1be818)=>{const _0x499f88=_0x51fd33['find'](_0x29aac5=>_0x29aac5['id']===_0x1be818);if(_0x499f88){const _0x54e07d=_0x3c9c8a['data']['toView'](_0x499f88['definition'],{'isClipboardPipeline':!0x0}),_0x26914f=_0x3c9c8a['data']['htmlProcessor']['toData'](_0x54e07d);_0x34c52f[_0x499f88['id']]=_0x26914f;}return _0x34c52f;},Object['create'](null));_0x1dad0b['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x22a17f));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x33b039}=this,{model:_0x32826e,plugins:_0xea1b8d}=_0x33b039,{view:_0x403195}=_0x33b039['editing'],_0x5e0d1f=_0xea1b8d['get'](_0x48acee),_0x14e5ef=_0xea1b8d['get'](c);let _0x5527d1=null;this['listenTo'](_0x403195['document'],'clipboardInput',(_0x1f8b81,_0x3b9971)=>{const _0xba888a=_0x3b9971['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x5527d1=_0xba888a?JSON['parse'](_0xba888a):null;}),this['listenTo'](_0x5e0d1f,'contentInsertion',(_0x2abd80,_0x224791)=>{const _0x10e6a0=_0x224791['sourceEditorId']===this['editor']['id'];_0x10e6a0&&'drop'===_0x224791['method']||_0x32826e['change'](_0x28004d=>{let _0x55acbb=_0x14e5ef['getFootnotesDefinitionsObjectElement']();const _0x10d0b8=!!_0x55acbb&&Array['from'](_0x32826e['document']['selection']['getSelectedBlocks']())['includes'](_0x55acbb);if((_0x55acbb&&!_0x10d0b8||!_0x55acbb&&!_0x5527d1)&&function(_0x287b6e,_0xfba917){const _0x14f059=[];for(const {item:_0x581a43}of _0x287b6e['createRangeIn'](_0xfba917))_0x581a43['is']('element','footnotesDefinitions')&&_0x14f059['push'](_0x581a43);for(const _0x3181b7 of _0x14f059)_0x287b6e['remove'](_0x3181b7);}(_0x28004d,_0x224791['content']),!_0x5527d1)return;const {selection:_0x410677}=_0x32826e['document'],_0x5c7e02=_0x410677['getFirstRange']()['root'];_0x55acbb&&!_0x10d0b8||(_0x55acbb=function(_0x3ecde0,_0xc8e220){for(const {item:_0x1f0c95}of _0x3ecde0['createRangeIn'](_0xc8e220))if(_0x1f0c95['is']('element','footnotesDefinitions'))return _0x1f0c95;return null;}(_0x28004d,_0x224791['content']),_0x55acbb||=_0x14e5ef['_insertEmptyFootnotesDefinitionsContainer'](_0x28004d,_0x5c7e02));const _0x231f58=Array['from'](_0x410677['getRanges']())['flatMap'](f),_0x358096=function(_0x585df9,_0x3d445e,_0x2eb5e6){const _0x895feb=Object['create'](null);for(const {item:_0x3563f3}of _0x585df9['createRangeIn'](_0x3d445e))if(_0x3563f3['is']('element','footnoteRef')){const _0xdfbcb0=_0x3563f3['getAttribute']('footnoteId');if(!_0x2eb5e6(_0xdfbcb0))continue;_0x895feb[_0xdfbcb0]||(_0x895feb[_0xdfbcb0]=_0x2ad3d4()),_0x585df9['setAttribute']('footnoteId',_0x895feb[_0xdfbcb0],_0x3563f3);}return _0x895feb;}(_0x28004d,_0x224791['content'],_0x5253d7=>{if(!_0x10e6a0)return!0x0;return!!_0x14e5ef['getFootnote'](_0x5253d7)&&!_0x231f58['includes'](_0x5253d7);});for(const [_0x55bb06,_0x10c547]of Object['entries'](_0x5527d1)){const _0x4ea310=_0x358096[_0x55bb06]||_0x55bb06,_0x2ac8e3=_0x28004d['createElement']('footnoteDefinition',{'footnoteId':_0x4ea310}),_0x1356c7=_0x33b039['data']['htmlProcessor']['toView'](_0x10c547),_0x492472=_0x33b039['data']['toModel'](_0x1356c7,_0x2ac8e3);_0x28004d['append'](_0x492472,_0x2ac8e3),_0x28004d['insert'](_0x2ac8e3,_0x55acbb,'end');}_0x5527d1=null;});});}}function f(_0x2d6cbd){const _0x4655dd=new Set();for(const {item:_0x28c017}of _0x2d6cbd)_0x28c017['is']('element','footnoteRef')&&_0x4655dd['add'](_0x28c017['getAttribute']('footnoteId'));return Array['from'](_0x4655dd);}class i extends _0x36d179{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x235653}=this,{componentFactory:_0x119ece}=_0x235653['ui'];_0x119ece['add']('insertFootnote',x(_0x235653,_0x271b57)),_0x119ece['add']('menuBar:insertFootnote',x(_0x235653,_0x4c1a61)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1aded9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x34397b;for(const _0x9216fb in _0x1aded9){const _0x40ed2f=_0x9216fb,_0xec4917=_0x1aded9[_0x40ed2f];if('footnotesLicenseKeyValid'==_0xec4917||'footnotesLicenseKeyInvalid'==_0xec4917||'footnotesLicenseKeyExpired'==_0xec4917||'footnotesLicenseKeyDomainLimit'==_0xec4917||'footnotesLicenseKeyNotAllowed'==_0xec4917||'footnotesLicenseKeyEvaluationLimit'==_0xec4917||'footnotesLicenseKeyTrialLimit'==_0xec4917||'footnotesLicenseKeyUsageLimit'==_0xec4917){delete _0x1aded9[_0x40ed2f],_0x34397b=_0xec4917,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x34397b&&_0x1aded9['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x34397b&&_0x1aded9['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x34397b&&_0x1aded9['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x34397b&&_0x1aded9['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x34397b&&_0x1aded9['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x34397b&&_0x1aded9['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x34397b&&_0x1aded9['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x1e6f35,_0x48330d){const _0x8140e=_0x1e6f35['commands']['get']('insertFootnote');return _0x13f002=>{const {t:t}=_0x13f002,_0x54966e=new _0x48330d(_0x13f002),_0x182b0f=_0x54966e instanceof _0x4c1a61;return _0x54966e['bind']('isEnabled')['to'](_0x8140e,'isEnabled'),_0x54966e['set']({'label':t(_0x182b0f?'Footnote':'Insert\x20footnote'),'icon':_0x1ff62d,'tooltip':!0x0}),_0x54966e['on']('execute',()=>{_0x8140e['execute'](),_0x1e6f35['editing']['view']['focus']();}),_0x54966e;};}class lt extends _0x36d179{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x36d151{['refresh'](){const {editor:_0x467130}=this,_0x39563a=_0x467130['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x39563a,this['value']=_0x39563a?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x3be138}){const {editor:_0x2b7823}=this,_0x28ce7b=_0x2b7823['plugins']['get'](c),_0x175192=_0x28ce7b['getFootnotesDefinitionsObjectElement']();_0x175192&&Q['includes'](_0x3be138)&&_0x2b7823['model']['change'](_0x4e6d19=>{_0x4e6d19['setAttribute']('footnotesListStyle',_0x3be138,_0x175192),_0x28ce7b['_updateFootnotesCounters'](_0x4e6d19);});}}class C extends _0x36d151{['refresh'](){const {editor:_0x504c96}=this,_0x3c6f80=_0x504c96['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3c6f80,this['value']=_0x3c6f80?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x25d718}){const {editor:_0x57f441}=this,_0xa1ec8e=_0x57f441['plugins']['get'](c),_0x512a83=_0xa1ec8e['getFootnotesDefinitionsObjectElement']();_0x512a83&&Number['isInteger'](_0x25d718)&&_0x57f441['model']['change'](_0x3ac439=>{_0x3ac439['setAttribute']('footnotesListStart',_0x25d718,_0x512a83),_0xa1ec8e['_updateFootnotesCounters'](_0x3ac439);});}}class P extends _0x36d179{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5da29f}=this;_0x5da29f['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x5da29f['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x5da29f['commands']['add']('footnotesStyle',new S(_0x5da29f)),_0x5da29f['commands']['add']('footnotesStart',new C(_0x5da29f)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x35dee5}=this,{schema:_0x647962}=_0x35dee5['model'];_0x647962['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x16a038}=this,{conversion:_0x333fee,model:_0x95d1cb}=_0x16a038,{schema:_0x414221}=_0x95d1cb;_0x333fee['for']('upcast')['add'](_0x4b050f=>{_0x4b050f['on']('element:ol',(_0x4160ca,_0x5bdd67,_0x1166f4)=>{const _0x4da5d6=_0x5bdd67['viewItem'],_0x31514b=_0x5bdd67['modelCursor']?.['parent'];_0x4da5d6['hasClass']('footnotes-list')&&_0x31514b?.['is']('element','footnotesDefinitions')&&(function(_0x509acf,_0x327461,_0x305d1e,_0x159cf7){if(!_0x159cf7['checkAttribute'](_0x327461,'footnotesListStart'))return;let _0x4f35bb=0x1;const _0x3c7d10=_0x305d1e['consumable']['consume'](_0x509acf,{'attributes':'start'});if(_0x3c7d10){const _0x295b5c=Number['parseInt'](_0x509acf['getAttribute']('start'),0xa);Number['isNaN'](_0x295b5c)||(_0x4f35bb=_0x295b5c);}!_0x3c7d10&&_0x327461['hasAttribute']('footnotesListStart')||_0x305d1e['writer']['setAttribute']('footnotesListStart',_0x4f35bb,_0x327461);}(_0x4da5d6,_0x31514b,_0x1166f4,_0x414221),function(_0x8bf140,_0x8e901f,_0x564726,_0x3dbe33){if(!_0x3dbe33['checkAttribute'](_0x8e901f,'footnotesListStyle'))return;let _0x47b58e='decimal',_0x94531e=!0x1;if(_0x564726['consumable']['consume'](_0x8bf140,{'attributes':'type'})){const _0x1e54c6={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x8bf140['getAttribute']('type')];_0x1e54c6&&(_0x47b58e=_0x1e54c6),_0x94531e=!0x0;}_0x564726['consumable']['consume'](_0x8bf140,{'styles':'list-style-type'})&&(_0x47b58e=_0x8bf140['getStyle']('list-style-type'),_0x94531e=!0x0),!_0x94531e&&_0x8e901f['hasAttribute']('footnotesListStyle')||_0x564726['writer']['setAttribute']('footnotesListStyle',_0x47b58e,_0x8e901f);}(_0x4da5d6,_0x31514b,_0x1166f4,_0x414221));});}),_0x333fee['for']('downcast')['add'](_0x5f4da1=>{_0x5f4da1['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x3be10d,_0x160ded,_0xf6bbd2)=>{if(!_0xf6bbd2['consumable']['consume'](_0x160ded['item'],_0x3be10d['name']))return;const _0x2bd0c5=M(_0x160ded['item'],_0xf6bbd2['mapper']),{attributeNewValue:_0x5b8db5}=_0x160ded;null==_0x5b8db5||0x1===_0x5b8db5?_0xf6bbd2['writer']['removeAttribute']('start',_0x2bd0c5):_0xf6bbd2['writer']['setAttribute']('start',String(_0x5b8db5),_0x2bd0c5);}),_0x5f4da1['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x4ae269,_0x5a4d6c,_0xc9a3fe)=>{if(!_0xc9a3fe['consumable']['consume'](_0x5a4d6c['item'],_0x4ae269['name']))return;const _0x10aeb4=M(_0x5a4d6c['item'],_0xc9a3fe['mapper']),{attributeNewValue:_0x39f5e6}=_0x5a4d6c;_0x39f5e6&&'decimal'!==_0x39f5e6?_0xc9a3fe['writer']['setStyle']('list-style-type',_0x39f5e6,_0x10aeb4):_0xc9a3fe['writer']['removeStyle']('list-style-type',_0x10aeb4);});});}['_definePostfixer'](){const {editor:_0x2563c8}=this,{model:_0x4e5e56}=_0x2563c8,_0x200c99=_0x2563c8['plugins']['get'](c),_0x3cca0f=this['_getDefaultListStyle'](),_0x4ef16e=this['_getDefaultStartIndex']();_0x4e5e56['document']['registerPostFixer'](_0xc5cb2c=>{const _0x457eef=_0x4e5e56['document']['differ']['getChanges']();let _0x266b1a=!0x1;for(const _0x35d753 of _0x457eef){if('insert'!==_0x35d753['type']||'$text'===_0x35d753['name'])continue;const _0x360d6e=_0x4e5e56['createRangeOn'](_0x35d753['position']['nodeAfter']);for(const _0x2412bf of _0x360d6e['getItems']())_0x2412bf['is']('element','footnotesDefinitions')&&(!_0x2412bf['hasAttribute']('footnotesListStart')&&_0x4e5e56['schema']['checkAttribute'](_0x2412bf,'footnotesListStart')&&(_0xc5cb2c['setAttribute']('footnotesListStart',_0x4ef16e,_0x2412bf),_0x266b1a=!0x0),!_0x2412bf['hasAttribute']('footnotesListStyle')&&_0x4e5e56['schema']['checkAttribute'](_0x2412bf,'footnotesListStyle')&&(_0xc5cb2c['setAttribute']('footnotesListStyle',_0x3cca0f,_0x2412bf),_0x266b1a=!0x0));}return _0x266b1a&&_0x200c99['_updateFootnotesCounters'](_0xc5cb2c),_0x266b1a;});}['_defineFormatter'](){const {editor:_0x98d9f0}=this;_0x98d9f0['plugins']['get'](c)['setFootnoteFormatter'](_0x2f93f4=>this['_formatFootnoteListValue'](_0x2f93f4));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x48c9ea,value:_0x7162e,digits:_0x553e1a}){const _0x364ebe=_0x48c9ea['getAttribute']('footnotesListStyle'),_0x186d63=_0x48c9ea['getAttribute']('footnotesListStart'),_0xe35ee7=Math['floor'](_0x7162e)+(_0x186d63??0x1)-0x1;switch(_0x364ebe){case'decimal-leading-zero':return function(_0x1ff89a,_0x447dc8){return String(_0x1ff89a)['padStart'](_0x447dc8,'0');}(_0xe35ee7,Math['max'](0x2,_0x553e1a));case'lower-alpha':case'lower-latin':return N(_0xe35ee7,!0x1);case'upper-alpha':case'upper-latin':return N(_0xe35ee7,!0x0);case'lower-roman':return X(_0xe35ee7,!0x1);case'upper-roman':return X(_0xe35ee7,!0x0);default:return String(_0xe35ee7);}}}function M(_0x3ea719,_0x5d08c9){const _0x463261=_0x5d08c9['toViewElement'](_0x3ea719);return Array['from'](_0x463261['getChildren']())['find'](_0x33b160=>_0x33b160['is']('element','ol')&&_0x33b160['hasClass']('footnotes-list'));}function N(_0xa1c643,_0xc1f207){let _0x35581c='',_0x4283c5=_0xa1c643;for(;_0x4283c5>0x0;){const _0x30d67c=(_0x4283c5-0x1)%0x1a;_0x35581c=String['fromCharCode'](0x61+_0x30d67c)+_0x35581c,_0x4283c5=Math['floor']((_0x4283c5-0x1)/0x1a);}return _0xc1f207?_0x35581c['toUpperCase']():_0x35581c;}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(_0x4caa8f,_0x4307f9){let _0x383047='',_0x3d5a30=_0x4caa8f;for(const {value:_0x2f7688,numeral:_0x56bff8}of V)for(;_0x3d5a30>=_0x2f7688;)_0x383047+=_0x56bff8,_0x3d5a30-=_0x2f7688;return _0x4307f9?_0x383047:_0x383047['toLowerCase']();}class H extends _0x51a774{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x284cfe();['focusCycler'];constructor(_0x3481ab,{styleButtonViews:_0x15a48d,styleGridAriaLabel:_0x163e84}){super(_0x3481ab),(this['focusCycler']=new _0x3c70c2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x15a48d,_0x163e84),[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 _0x3f2ba6 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3f2ba6['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x8ec6aa=_0x2ebc4f=>_0x2ebc4f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x8ec6aa),this['keystrokes']['set']('arrowleft',_0x8ec6aa),this['keystrokes']['set']('arrowup',_0x8ec6aa),this['keystrokes']['set']('arrowdown',_0x8ec6aa);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x29f002,_0x313399){const _0x38c403=new _0x51a774(this['locale']);return _0x38c403['children']=_0x38c403['createCollection'](),_0x38c403['children']['addMany'](_0x29f002),_0x38c403['setTemplate']({'tag':'div','attributes':{'aria-label':_0x313399,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x38c403['children']}),_0x38c403['children']['delegate']('execute')['to'](this),_0x38c403['focus']=function(){for(const _0x228887 of this['children'])if(_0x228887 instanceof _0x271b57&&_0x228887['isOn'])return void _0x228887['focus']();this['children']['first']['focus']();},_0x38c403['focusTracker']=new ot(),_0x38c403['keystrokes']=new rt(),_0x38c403['render'](),_0x38c403['keystrokes']['listenTo'](_0x38c403['element']),this['children']['add'](_0x38c403),_0x38c403;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x26df27=this['_createStartIndexPropertyView'](),_0x12c135=[_0x26df27],_0x461353=new st(this['locale'],_0x12c135);return _0x461353['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x461353['buttonView']['bind']('isEnabled')['toMany'](_0x12c135,'isEnabled',(..._0x2caec1)=>_0x2caec1['some'](_0x3ab64b=>_0x3ab64b)),_0x461353['buttonView']['on']('change:isEnabled',(_0x37a2f9,_0x12d1bb,_0x5a1f38)=>{_0x5a1f38||(_0x461353['isCollapsed']=!0x0);}),this['children']['add'](_0x461353),[_0x26df27,_0x461353];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x1effc1=new it(this['locale'],et);return _0x1effc1['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x1effc1['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x1effc1['fieldView']['on']('input',()=>{const _0x1f442e=_0x1effc1['fieldView']['element'],_0x5e9229=_0x1f442e['valueAsNumber'];Number['isNaN'](_0x5e9229)?_0x1effc1['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x1f442e['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x5e9229}):_0x1effc1['errorText']=t(_0x5e9229<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x1effc1;}}class j extends _0x36d179{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x2da543,_0x201146];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5e517d}=this,{componentFactory:_0xe59d17}=_0x5e517d['ui'];_0x5e517d['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0xe59d17['add']('footnotesStyle',function(_0x542ecb){return _0x1e0026=>{const {t:t}=_0x1e0026,_0x495648=_0x542ecb['commands']['get']('footnotesStyle'),_0x193b09=_0x35c432(_0x1e0026),{buttonView:_0x5a8c9a}=_0x193b09;return _0x193b09['class']='ck-footnotes-styles-dropdown',_0x193b09['bind']('isEnabled')['to'](_0x495648,'isEnabled'),_0x5a8c9a['set']({'label':t('Footnotes\x20style'),'icon':_0x1ff62d,'tooltip':!0x0}),_0x193b09['once']('change:isOpen',()=>{const _0x380cdf=function({editor:_0x2d8600,dropdownView:_0x3c9302}){const {t:t}=_0x2d8600['locale'],_0x482e5c=t('Footnotes\x20definitions\x20styles'),_0x444bf4=function(_0x36f428){const t=_0x36f428['locale']['t'],_0x2d74a8=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x48c980},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x5d51cb},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x1286d7},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x20a1b0},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x302e43},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x219481}];return _0x2d74a8['map'](function(_0x4b8c0a){const _0x407287=_0x4b8c0a['locale'];return({label:_0x3bd041,icon:_0x433900,tooltip:_0x480d34,style:_0x5109b1})=>{const _0x12233f=_0x4b8c0a['commands']['get']('footnotesStyle'),_0x6abfbf=new _0x271b57(_0x407287);return _0x6abfbf['set']({'label':_0x3bd041,'icon':_0x433900,'tooltip':_0x480d34}),_0x6abfbf['bind']('isOn')['to'](_0x12233f,'value',_0x4ae0b3=>_0x4ae0b3===_0x5109b1),_0x6abfbf['bind']('isEnabled')['to'](_0x12233f,'isEnabled'),_0x6abfbf['on']('execute',()=>{_0x4b8c0a['execute']('footnotesStyle',{'value':_0x5109b1}),_0x4b8c0a['editing']['view']['focus']();}),_0x6abfbf;};}(_0x36f428));}(_0x2d8600),_0x2ca4cc=new H(_0x2d8600['locale'],{'styleGridAriaLabel':_0x482e5c,'styleButtonViews':_0x444bf4});return _0x2ca4cc['delegate']('execute')['to'](_0x3c9302),_0x2ca4cc['on']('footnotesListStart',(_0xe86b7d,_0x497647)=>{_0x2d8600['execute']('footnotesStart',{'value':_0x497647['startIndex']});}),_0x2ca4cc;}({'editor':_0x542ecb,'dropdownView':_0x193b09});_0x193b09['panelView']['children']['add'](_0x380cdf);}),_0x193b09;};}(_0x5e517d));}['afterInit'](){const {editor:_0x5d01c5}=this,{t:t}=_0x5d01c5['locale'],_0x1dbf55=_0x5d01c5['plugins']['get'](_0x201146),{defaultPositions:_0x14939c}=_0x3bb8dc;_0x1dbf55['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x5d01c5['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x344e4a=>{let _0x150526=_0x344e4a['getFirstPosition']()?.['parent'];return _0x150526?.['is']('$text')&&(_0x150526=_0x150526['parent']),_0x150526?.['is']('element')?_0x150526['findAncestor'](J):null;},'positions':[_0x14939c['southArrowNorth'],_0x14939c['southArrowNorthMiddleWest'],_0x14939c['southArrowNorthMiddleEast'],_0x14939c['southArrowNorthWest'],_0x14939c['southArrowNorthEast'],_0x14939c['northArrowSouth'],_0x14939c['northArrowSouthMiddleWest'],_0x14939c['northArrowSouthMiddleEast'],_0x14939c['northArrowSouthWest'],_0x14939c['northArrowSouthEast'],_0x14939c['viewportStickyNorth']]});}}class ft extends _0x36d179{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,c as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-footnotes",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20251124.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-
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20251124.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251124.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251124.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251124.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251124.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251124.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251124.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251124.0"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (http://cksource.com/)",
|
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x1bb634}from'ckeditor5/src/core.js';import{isWidget as _0x60ae05,toWidget as _0x4efa8f,toWidgetEditable as _0x52e7d2}from'ckeditor5/src/widget.js';import{uid as _0x1c77cf}from'ckeditor5/src/utils.js';import{PointerObserver as _0x106726,ClickObserver as _0x2e0f6e}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x20a908}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x380176}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1bb634{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x20a908];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5bb4c5}=this;_0x5bb4c5['config']['define']('footnotes.multiBlock',!0x0),_0x5bb4c5['commands']['add']('insertFootnote',new _0x380176(_0x5bb4c5)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0xb6fe1d){const _0x2e8f40=_0x34ca58([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]),_0x4ef8e2=0x47a28506,_0x11950d=0x47a5fcd6^_0x4ef8e2,_0x4b6529=window[_0x34ca58([0x44,0x61,0x74,0x65])][_0x34ca58([0x6e,0x6f,0x77])](),_0x41dc54=_0xb6fe1d[_0x34ca58([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe2d545=new window[(_0x34ca58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32b62c=>{_0x41dc54[_0x34ca58([0x6f,0x6e,0x63,0x65])](_0x34ca58([0x72,0x65,0x61,0x64,0x79]),_0x32b62c);}),_0x239196={[_0x34ca58([0x6b,0x74,0x79])]:_0x34ca58([0x45,0x43]),[_0x34ca58([0x75,0x73,0x65])]:_0x34ca58([0x73,0x69,0x67]),[_0x34ca58([0x63,0x72,0x76])]:_0x34ca58([0x50,0x2d,0x32,0x35,0x36]),[_0x34ca58([0x78])]:_0x34ca58([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]),[_0x34ca58([0x79])]:_0x34ca58([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]),[_0x34ca58([0x61,0x6c,0x67])]:_0x34ca58([0x45,0x53,0x32,0x35,0x36])},_0x18cf02=_0x41dc54[_0x34ca58([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x34ca58([0x67,0x65,0x74])](_0x34ca58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x387a0e(){let _0x4116b4,_0x5920b5=null,_0x4ce564=null;try{if(_0x18cf02==_0x34ca58([0x47,0x50,0x4c]))return _0x34ca58([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4116b4=_0x17914d(),!_0x4116b4)return _0x34ca58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4116b4[_0x34ca58([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ce564=_0x451150(_0x4116b4[_0x34ca58([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4116b4[_0x34ca58([0x6a,0x74,0x69])])),await _0x1dc21e()?_0xdbc1a5()?_0x5a7fa3()?_0x34ca58([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x9198d()?(_0x4116b4[_0x34ca58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34ca58([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5920b5=_0x440542(_0x34ca58([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4116b4[_0x34ca58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34ca58([0x74,0x72,0x69,0x61,0x6c])&&(_0x5920b5=_0x440542(_0x34ca58([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2d804e()):_0x34ca58([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x34ca58([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x34ca58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x34ca58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5a7fa3(){const _0x51f321=[_0x34ca58([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x34ca58([0x74,0x72,0x69,0x61,0x6c])][_0x34ca58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4116b4[_0x34ca58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4b6529/0x3e8:0xe10*_0x11950d;return _0x4116b4[_0x34ca58([0x65,0x78,0x70])]<_0x51f321;}function _0xdbc1a5(){const _0x125e43=_0x4116b4[_0x34ca58([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x125e43&&(!!_0x125e43[_0x34ca58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34ca58([0x2a]))||!!_0x125e43[_0x34ca58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34ca58([0x46,0x4f,0x4f])));}function _0x9198d(){const _0x47619e=_0x4116b4[_0x34ca58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x47619e||0x0==_0x47619e[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x304ed4}=new URL(window[_0x34ca58([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x47619e[_0x34ca58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x304ed4))return!0x0;const _0x1f0780=_0x304ed4[_0x34ca58([0x73,0x70,0x6c,0x69,0x74])](_0x34ca58([0x2e]));return _0x47619e[_0x34ca58([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x625569=>_0x625569[_0x34ca58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34ca58([0x2a])))[_0x34ca58([0x6d,0x61,0x70])](_0x4ae088=>_0x4ae088[_0x34ca58([0x73,0x70,0x6c,0x69,0x74])](_0x34ca58([0x2e])))[_0x34ca58([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3073da=>_0x3073da[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1f0780[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34ca58([0x6d,0x61,0x70])](_0x5c3127=>Array(_0x1f0780[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5c3127[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34ca58([0x66,0x69,0x6c,0x6c])](_0x5c3127[0x0]===_0x34ca58([0x2a])?_0x34ca58([0x2a]):'')[_0x34ca58([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5c3127))[_0x34ca58([0x73,0x6f,0x6d,0x65])](_0x22c883=>_0x1f0780[_0x34ca58([0x65,0x76,0x65,0x72,0x79])]((_0x27a6d4,_0x247667)=>_0x22c883[_0x247667]===_0x27a6d4||_0x22c883[_0x247667]===_0x34ca58([0x2a])));}function _0x2d804e(){return _0x5920b5&&_0x4ce564?new window[(_0x34ca58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17ad06,_0x48c342)=>{_0x5920b5[_0x34ca58([0x74,0x68,0x65,0x6e])](_0x17ad06,_0x48c342),_0x4ce564[_0x34ca58([0x74,0x68,0x65,0x6e])](_0x33b3e0=>{_0x33b3e0!=_0x34ca58([0x56,0x61,0x6c,0x69,0x64])&&_0x17ad06(_0x33b3e0);},_0x48c342);}):_0x5920b5||_0x4ce564||_0x34ca58([0x56,0x61,0x6c,0x69,0x64]);}}function _0x451150(_0x139ea1,_0x426ec1){return new window[(_0x34ca58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcd9ba9=>{if(_0x166ae3())return _0xcd9ba9(_0x34ca58([0x56,0x61,0x6c,0x69,0x64]));_0x2e2c38(),_0x41dc54[_0x34ca58([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x34ca58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d81ff=!0x1;const _0x3a4552=_0x1c77cf();function _0x2319e2(_0x48fdee){return!!_0x48fdee&&(typeof _0x48fdee===_0x34ca58([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x48fdee===_0x34ca58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x48fdee[_0x34ca58([0x74,0x68,0x65,0x6e])]===_0x34ca58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x48fdee[_0x34ca58([0x63,0x61,0x74,0x63,0x68])]===_0x34ca58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1387c4(_0x214146){_0x821e02(_0x214146)[_0x34ca58([0x74,0x68,0x65,0x6e])](_0xc6cec3=>{if(!_0xc6cec3||_0xc6cec3[_0x34ca58([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x34ca58([0x6f,0x6b]))return _0x34ca58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2d7565(_0x5930b7(_0x3a4552+_0x426ec1))!=_0xc6cec3[_0x34ca58([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x34ca58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x34ca58([0x56,0x61,0x6c,0x69,0x64]);})[_0x34ca58([0x74,0x68,0x65,0x6e])](_0x14fb8d=>(_0x468904(),_0x14fb8d),()=>{const _0xc4acd0=_0x28df88();return null==_0xc4acd0?(_0x468904(),_0x34ca58([0x56,0x61,0x6c,0x69,0x64])):_0x34ca58(_0x4b6529-_0xc4acd0>(0x63ae0106^_0x4ef8e2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x34ca58([0x74,0x68,0x65,0x6e])](_0xcd9ba9)[_0x34ca58([0x63,0x61,0x74,0x63,0x68])](()=>{_0xcd9ba9(_0x34ca58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x284f4a=0x47946b86^_0x4ef8e2;function _0x468904(){const _0x194ca6=_0x34ca58([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d7565(_0x5930b7(_0x139ea1)),_0x5a89ba=_0x4cd257(_0x2d7565(window[_0x34ca58([0x4d,0x61,0x74,0x68])][_0x34ca58([0x63,0x65,0x69,0x6c])](_0x4b6529/_0x284f4a)));window[_0x34ca58([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34ca58([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x194ca6,_0x5a89ba);}function _0x28df88(){const _0x44c05d=_0x34ca58([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d7565(_0x5930b7(_0x139ea1)),_0x4e0964=window[_0x34ca58([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34ca58([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44c05d);return _0x4e0964?window[_0x34ca58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cd257(_0x4e0964),0x10)*_0x284f4a:null;}function _0x821e02(_0x5d04ce){return new window[(_0x34ca58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e9445,_0x597057)=>{_0x5d04ce[_0x34ca58([0x74,0x68,0x65,0x6e])](_0x5e9445,_0x597057),window[_0x34ca58([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x597057,0x47a351c6^_0x4ef8e2);});}}_0x41dc54[_0x34ca58([0x6f,0x6e])](_0x34ca58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3fe42d,_0xa7698)=>{if(_0xa7698[0x0]!=_0x139ea1)return _0xcd9ba9(_0x34ca58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa7698[0x1]={..._0xa7698[0x1],[_0x34ca58([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3a4552};},{[_0x34ca58([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34ca58([0x68,0x69,0x67,0x68])}),_0x41dc54[_0x34ca58([0x6f,0x6e])](_0x34ca58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ba797=>{_0x2319e2(_0x3ba797[_0x34ca58([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d81ff=!0x0,_0x1387c4(_0x3ba797[_0x34ca58([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x34ca58([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34ca58([0x6c,0x6f,0x77])}),_0xe2d545[_0x34ca58([0x74,0x68,0x65,0x6e])](()=>{_0x4d81ff||_0xcd9ba9(_0x34ca58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x166ae3(){return _0x41dc54[_0x34ca58([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34ca58([0x76,0x69,0x65,0x77])][_0x34ca58([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x34ca58([0x61,0x75,0x74,0x6f]);}function _0x2e2c38(){_0x41dc54[_0x34ca58([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34ca58([0x76,0x69,0x65,0x77])][_0x34ca58([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x34ca58([0x61,0x75,0x74,0x6f]);}}function _0x440542(_0x19bff6){const _0x192da4=[new window[(_0x34ca58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50ff07=>setTimeout(_0x50ff07,0x47abbbca^_0x4ef8e2)),_0xe2d545[_0x34ca58([0x74,0x68,0x65,0x6e])](()=>new window[(_0x34ca58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x115945=>{let _0x4276f5=0x0;_0x41dc54[_0x34ca58([0x6d,0x6f,0x64,0x65,0x6c])][_0x34ca58([0x6f,0x6e])](_0x34ca58([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x48afef,_0xe4b331)=>{_0xe4b331[0x0][_0x34ca58([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4276f5++,_0x4276f5==(0x47a284fe^_0x4ef8e2)&&(_0x115945(),_0x48afef[_0x34ca58([0x6f,0x66,0x66])]());});}))];return window[_0x34ca58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x34ca58([0x72,0x61,0x63,0x65])](_0x192da4)[_0x34ca58([0x74,0x68,0x65,0x6e])](()=>_0x19bff6);}async function _0x2375f9(){await _0xe2d545,_0x41dc54[_0x34ca58([0x6d,0x6f,0x64,0x65,0x6c])][_0x34ca58([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1a24a1,_0x41dc54[_0x34ca58([0x6d,0x6f,0x64,0x65,0x6c])][_0x34ca58([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1a24a1,_0x41dc54[_0x34ca58([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x34ca58([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x526a64(_0x185abc){const _0x93fc4c=_0x59ef00();_0x41dc54[_0x93fc4c]=_0x34ca58([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x185abc,_0x185abc!=_0x34ca58([0x56,0x61,0x6c,0x69,0x64])&&_0x2375f9();}function _0x59ef00(){const _0x6bf24b=window[_0x34ca58([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x34ca58([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x34ca58([0x6e,0x6f,0x77])]())[_0x34ca58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x34ca58([0x2e]),'');let _0xcecd29=_0x34ca58([0x75]);for(let _0x8faae2=0x0;_0x8faae2<_0x6bf24b[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8faae2+=0x2){let _0x135cab=window[_0x34ca58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6bf24b[_0x34ca58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8faae2,_0x8faae2+0x2));_0x135cab>=_0x2e8f40[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x135cab-=_0x2e8f40[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcecd29+=_0x2e8f40[_0x135cab];}return _0xcecd29;}function _0x17914d(){const _0x49bd89=_0x18cf02[_0x34ca58([0x73,0x70,0x6c,0x69,0x74])](_0x34ca58([0x2e]));if(0x3!=_0x49bd89[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x98e71(_0x49bd89[0x1]);function _0x98e71(_0x4ec118){const _0x1782d0=_0x137ffa(_0x4ec118);return _0x1782d0&&_0x1469ea()?_0x1782d0:null;function _0x1469ea(){const _0x553d7b=_0x1782d0[_0x34ca58([0x6a,0x74,0x69])],_0x3abbdd=window[_0x34ca58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x553d7b[_0x34ca58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x553d7b[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2410b6={..._0x1782d0,[_0x34ca58([0x6a,0x74,0x69])]:_0x553d7b[_0x34ca58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x553d7b[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2410b6[_0x34ca58([0x76,0x63])],_0x5930b7(_0x2410b6)==_0x3abbdd;}}}async function _0x1dc21e(){let _0x3f5c17=!0x0;try{const _0x51fccd=_0x18cf02[_0x34ca58([0x73,0x70,0x6c,0x69,0x74])](_0x34ca58([0x2e])),[_0x4e6d08,_0x15f87d,_0x413a0e]=_0x51fccd;return _0x2903da(_0x4e6d08),await _0x17da41(_0x4e6d08,_0x15f87d,_0x413a0e),_0x3f5c17;}catch{return!0x1;}function _0x2903da(_0x41455c){const _0x544381=_0x137ffa(_0x41455c);_0x544381&&_0x544381[_0x34ca58([0x61,0x6c,0x67])]==_0x34ca58([0x45,0x53,0x32,0x35,0x36])||(_0x3f5c17=!0x1);}async function _0x17da41(_0x48c1b1,_0x71e495,_0x25c5dd){const _0x577fe1=window[_0x34ca58([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x34ca58([0x66,0x72,0x6f,0x6d])](_0x5c4793(_0x25c5dd),_0x19c893=>_0x19c893[_0x34ca58([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x126a06=new window[(_0x34ca58([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x34ca58([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x48c1b1+_0x34ca58([0x2e])+_0x71e495),_0x4f9a4c=window[_0x34ca58([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x34ca58([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f9a4c)return;const _0x122180=await _0x4f9a4c[_0x34ca58([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x34ca58([0x6a,0x77,0x6b]),_0x239196,{[_0x34ca58([0x6e,0x61,0x6d,0x65])]:_0x34ca58([0x45,0x43,0x44,0x53,0x41]),[_0x34ca58([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x34ca58([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x34ca58([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f9a4c[_0x34ca58([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x34ca58([0x6e,0x61,0x6d,0x65])]:_0x34ca58([0x45,0x43,0x44,0x53,0x41]),[_0x34ca58([0x68,0x61,0x73,0x68])]:{[_0x34ca58([0x6e,0x61,0x6d,0x65])]:_0x34ca58([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x122180,_0x577fe1,_0x126a06)||(_0x3f5c17=!0x1);}}function _0x137ffa(_0x23d372){return _0x23d372[_0x34ca58([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x34ca58([0x65,0x79]))?JSON[_0x34ca58([0x70,0x61,0x72,0x73,0x65])](_0x5c4793(_0x23d372)):null;}function _0x5c4793(_0x24bc67){return window[_0x34ca58([0x61,0x74,0x6f,0x62])](_0x24bc67[_0x34ca58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x34ca58([0x2b]))[_0x34ca58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x34ca58([0x2f])));}function _0x5930b7(_0x1a5bca){let _0x3352f5=0x1505;function _0xcc55a8(_0x45f519){for(let _0x254cf3=0x0;_0x254cf3<_0x45f519[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x254cf3++){const _0x13a92e=_0x45f519[_0x34ca58([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x254cf3);_0x3352f5=(_0x3352f5<<0x5)+_0x3352f5+_0x13a92e,_0x3352f5&=_0x3352f5;}}function _0x508539(_0x7f3d0e){Array[_0x34ca58([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x7f3d0e)?_0x7f3d0e[_0x34ca58([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x508539):_0x7f3d0e&&typeof _0x7f3d0e==_0x34ca58([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x34ca58([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x7f3d0e)[_0x34ca58([0x73,0x6f,0x72,0x74])]()[_0x34ca58([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x169578,_0x167c63])=>{_0xcc55a8(_0x169578),_0x508539(_0x167c63);}):_0xcc55a8(window[_0x34ca58([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x7f3d0e));}return _0x508539(_0x1a5bca),_0x3352f5>>>0x0;}function _0x2d7565(_0x35727a){return _0x35727a[_0x34ca58([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x34ca58([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x34ca58([0x30]));}function _0x4cd257(_0x10ef12){return _0x10ef12[_0x34ca58([0x73,0x70,0x6c,0x69,0x74])]('')[_0x34ca58([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x34ca58([0x6a,0x6f,0x69,0x6e])]('');}function _0x1a24a1(){}function _0x34ca58(_0x12c85f){return _0x12c85f['map'](_0xca8b3a=>String['fromCharCode'](_0xca8b3a))['join']('');}_0x526a64(await _0x387a0e());}(this);}['_moveSelectionToFootnoteDefinition'](_0xb4d621){const {plugins:_0x19418d,editing:_0x38fadc,model:_0x26bde8}=this['editor'],_0x1628a8=_0x19418d['get'](_0x20a908)['getFootnote'](_0xb4d621);return!!_0x1628a8&&(_0x26bde8['change'](_0x8e606c=>{_0x8e606c['setSelection'](_0x8e606c['createPositionAt'](_0x1628a8['definition'],'end'));}),_0x38fadc['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5e48cc){const {plugins:_0x5c3bd3,editing:_0x50fe0c,model:_0x35daad}=this['editor'],_0x71b3ed=_0x5c3bd3['get'](_0x20a908)['getFootnote'](_0x5e48cc);return!!_0x71b3ed&&(_0x35daad['change'](_0x362651=>{_0x362651['setSelection'](_0x71b3ed['reference'],'on');}),_0x50fe0c['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x314d4e}=this['editor']['model'],_0x1662eb=this['editor']['config']['get']('footnotes.multiBlock');_0x314d4e['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x314d4e['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x314d4e['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x1662eb?_0x314d4e['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x314d4e['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x314d4e['addChildCheck'](_0x3151bc=>{for(const _0xc8c66b of _0x3151bc)if('footnoteDefinition'===_0xc8c66b['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x49d39a}=this,{conversion:_0x4e6e42,editing:_0x39fe41}=_0x49d39a,{t:t}=_0x49d39a['locale'];_0x4e6e42['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5f2e5a,{writer:_0x2716fd,consumable:_0x2f8a24})=>{const _0x1506cb=_0x5f2e5a['getChild'](0x0);if(!_0x1506cb||!_0x1506cb['is']('element','a'))return null;const _0x19bc76=_0x1506cb['getAttribute']('href')||'';if(!_0x19bc76['startsWith']('#'))return null;const _0x251fed=_0x19bc76['replace'](/^#/,'');if(!_0x251fed)return null;_0x2f8a24['consume'](_0x1506cb,{'name':!0x0,'attributes':['href']});for(const {item:_0x123d28}of _0x39fe41['view']['createRangeIn'](_0x1506cb))_0x123d28['is']('$textProxy')?_0x2f8a24['consume'](_0x123d28['textNode'],{'name':!0x0}):_0x123d28['is']('element')&&_0x2f8a24['consume'](_0x123d28,{'name':!0x0});return _0x2716fd['createElement']('footnoteRef',{'footnoteId':_0x251fed});}}),_0x4e6e42['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5c9ea4,{writer:_0x4ce21d})=>D(_0x5c9ea4,_0x4ce21d)}),_0x4e6e42['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1966c5,{writer:_0x4e35d9})=>{const _0xe3bb91=_0x1966c5['getAttribute']('footnoteCounter');return _0x4efa8f(D(_0x1966c5,_0x4e35d9),_0x4e35d9,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0xe3bb91)});}});}['_defineDefinitionsConverters'](){const {editor:_0x570fc0}=this,{t:t}=_0x570fc0['locale'],{conversion:_0x337b38}=_0x570fc0;_0x337b38['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x337b38['for']('upcast')['add'](_0x503eee=>{_0x503eee['on']('element:ol',(_0x3c5f30,_0x18f6c3,_0x28d672)=>{const _0x5b3678=_0x18f6c3['viewItem'];if(!_0x5b3678['hasClass']('footnotes-list')||!_0x18f6c3['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x28d672['consumable']['consume'](_0x5b3678,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x4d2099,modelCursor:_0x5a1da5}=_0x28d672['convertChildren'](_0x18f6c3['viewItem'],_0x18f6c3['modelCursor']);_0x18f6c3['modelRange']=_0x4d2099,_0x18f6c3['modelCursor']=_0x5a1da5;}),_0x503eee['on']('element:hr',(_0x337af7,_0xde97e0,_0x5f2b21)=>{const _0x39ae1d=_0xde97e0['viewItem'];_0x39ae1d['hasClass']('footnotes-divider')&&_0xde97e0['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5f2b21['consumable']['consume'](_0x39ae1d,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x337b38['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4467bd,{writer:_0x1d647d})=>v(_0x1d647d)}),_0x337b38['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x51a716,{writer:_0x40da3f})=>{const _0x278032=v(_0x40da3f,{'data-footnotes-list-label':t('Footnotes')}),_0x440967=_0x4efa8f(_0x278032,_0x40da3f,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x40da3f['setCustomProperty']('footnotesDefinitions',!0x0,_0x440967),_0x440967;}});}['_defineDefinitionConverters'](){const {editor:_0x1a5e8e}=this,{conversion:_0x228eba,locale:_0x348d3d}=_0x1a5e8e,_0x51f423=_0x1a5e8e['config']['get']('footnotes.multiBlock');_0x228eba['for']('upcast')['add'](_0x23dc6e=>{_0x23dc6e['on']('element:li',(_0x5733e5,_0x3a0dc1,_0x264900)=>{const _0x5eea14=_0x3a0dc1['viewItem'];if(!_0x5eea14['hasClass']('footnote-definition')||!_0x5eea14['getAttribute']('id'))return;const _0x152ca2=_0x5eea14['parent'];if(!_0x152ca2['is']('element','ol')||!_0x152ca2['hasClass']('footnotes-list'))return;if(!_0x264900['consumable']['test'](_0x5eea14,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0xa9eb90=_0x264900['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5eea14['getAttribute']('id')});if(!_0x264900['safeInsert'](_0xa9eb90,_0x3a0dc1['modelCursor']))return;_0x264900['consumable']['consume'](_0x5eea14,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x460f30=Array['from'](_0x5eea14['getChildren']())['find'](_0x9b63b4=>_0x9b63b4['is']('element')&&_0x9b63b4['hasClass']('footnote-content'));for(const _0x1bd7e8 of _0x5eea14['getChildren']())_0x1bd7e8['is']('element')&&(_0x264900['consumable']['consume'](_0x1bd7e8,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x264900['consumable']['consume'](_0x1bd7e8,{'name':!0x0,'classes':'footnote-content'}));if(_0x460f30){if(_0x51f423)_0x264900['convertChildren'](_0x460f30,_0xa9eb90);else{const _0x74e3ee=_0x264900['writer']['createElement']('footnoteInlineContent');_0x264900['writer']['insert'](_0x74e3ee,_0xa9eb90),_0x264900['convertChildren'](_0x460f30,_0x74e3ee);}}_0x264900['updateConversionResult'](_0xa9eb90,_0x3a0dc1);});}),_0x228eba['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1caa0a,{writer:_0x590a1e})=>b(_0x1caa0a,_0x590a1e,_0x348d3d,{'dataPipeline':!0x0})}),_0x228eba['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xa093b2,{writer:_0x50098c})=>b(_0xa093b2,_0x50098c,_0x348d3d)});}['_defineBogusParagraphConverters'](){const {editor:_0x312bc3}=this,{conversion:_0x556939}=_0x312bc3;_0x312bc3['config']['get']('footnotes.multiBlock')?(_0x556939['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x556939['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x312bc3['model']['document'],'change:data',()=>{!function(_0x46f0fd,_0x39eefd){const _0x542aec=_0x46f0fd['document']['differ'],_0x214973=new Set();for(const _0x59171e of _0x542aec['getChanges']()){const _0x2fc2ac='attribute'==_0x59171e['type']?_0x59171e['range']['start']['parent']:_0x59171e['position']['parent'];_0x2fc2ac['is']('element','footnoteDefinition')&&_0x214973['add'](_0x2fc2ac);}for(const _0x934183 of _0x214973['values']()){const _0x395c1f=Array['from'](_0x934183['getChildren']())['filter'](_0x487843=>g(_0x487843,_0x39eefd['mapper']));for(const _0x4ca47b of _0x395c1f)_0x39eefd['reconvertItem'](_0x4ca47b);}}(_0x312bc3['model'],_0x312bc3['editing']);})):(_0x556939['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x556939['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x8af466,{writer:_0x1f973f})=>{const _0xb7e41=_0x1f973f['createContainerElement']('span');return _0x1f973f['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xb7e41),_0xb7e41;}}));}['_defineKeyboardHandlers'](){const {editor:_0x1c689a}=this,{editing:_0x202f3a,t:t}=_0x1c689a,_0x1c1e62=_0x1c689a['model']['document']['selection'];_0x1c689a['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x1c689a['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x202f3a['view']['document'],'enter',(_0x5b8084,_0x1e958d)=>{const _0x15f68a=function(_0x35020e){const _0x444b14=_0x35020e['getSelectedElement']();if(_0x444b14?.['is']('element','footnoteRef'))return _0x444b14;return null;}(_0x1c1e62);if(_0x15f68a){const _0xd62b07=_0x15f68a['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0xd62b07),_0x1e958d['preventDefault'](),_0x5b8084['stop']();}},{'context':_0x60ae05});}['_defineClickHandlers'](){const {editor:_0x3e1354}=this,{editing:_0x3c2731}=_0x3e1354;_0x3e1354['editing']['view']['addObserver'](_0x106726),_0x3e1354['editing']['view']['addObserver'](_0x2e0f6e);let _0x40760b=!0x1;this['listenTo'](_0x3c2731['view']['document'],'pointerdown',(_0x22dde0,_0x51eb13)=>{const {target:_0x207abc}=_0x51eb13,_0x7e659e=_0x3c2731['view']['document']['selection'];_0x40760b=!!(_0x207abc?.['is']('element','a')&&_0x207abc['parent']?.['is']('element','sup')&&_0x207abc['parent']['hasClass']('footnote'))&&_0x7e659e['getSelectedElement']()===_0x207abc['parent'];},{'priority':'high'}),this['listenTo'](_0x3c2731['view']['document'],'click',(_0x7d05b8,_0x6d333e)=>{const {target:_0x2d221e}=_0x6d333e;if(!_0x2d221e?.['is']('element','a'))return;if(_0x2d221e['parent']?.['is']('element','sup')&&_0x2d221e['parent']['hasClass']('footnote')&&!_0x40760b)return void _0x6d333e['preventDefault']();let _0x3b573d=_0x2d221e['getAttribute']('href');if(!_0x3b573d?.['startsWith']('#'))return;_0x3b573d=_0x3b573d['slice'](0x1);let _0xf98d95=!0x1;(_0x3b573d['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x3b573d['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x3b573d))&&(_0xf98d95=!0x0),_0xf98d95&&(_0x6d333e['preventDefault'](),_0x7d05b8['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x521f6a}={}){return(_0x430a9c,{writer:_0x37a1e7})=>{if(!p(_0x430a9c))return null;if(!_0x521f6a)return _0x37a1e7['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0xeee3c7=_0x37a1e7['createContainerElement']('p');return _0x37a1e7['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xeee3c7),_0xeee3c7;};}function p(_0x17e2d5){const {parent:_0x2bce7d}=_0x17e2d5;if(!_0x2bce7d?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2bce7d['childCount'])return!0x1;for(const _0x23ac4a of _0x17e2d5['getAttributeKeys']())if(!_0x23ac4a['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x23ac4a)return!0x1;return!0x0;}function g(_0x169c35,_0x20ab23){if(!_0x169c35['is']('element','paragraph'))return!0x1;const _0x2d3b5c=_0x20ab23['toViewElement'](_0x169c35);return!!_0x2d3b5c&&p(_0x169c35)!==_0x2d3b5c['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x568d26){return _0x60ae05(_0x568d26)&&_0x568d26['is']('containerElement')&&!!_0x568d26['getCustomProperty']('footnotesDefinitions');}function v(_0x22af38,_0x562b39={}){const _0x34eb85=_0x22af38['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x496d1f=_0x22af38['createContainerElement']('ol',{'class':'footnotes-list'},_0x22af38['createSlot']());return _0x22af38['createContainerElement']('div',{'class':'footnotes',..._0x562b39},[_0x34eb85,_0x496d1f]);}function D(_0x5d0138,_0x3f7af2){const _0x457087=_0x5d0138['getAttribute']('footnoteId'),_0x48d24b=_0x5d0138['getAttribute']('footnoteCounter'),_0x4f6f6a=_0x3f7af2['createUIElement']('a',{'href':'#'+_0x457087},function(_0x10c588){const _0x32df0f=this['toDomElement'](_0x10c588);return _0x32df0f['textContent']=_0x48d24b,_0x32df0f;}),_0x18ce9a=_0x3f7af2['createContainerElement']('sup',{'id':'ref-'+_0x457087,'class':'footnote'},[_0x4f6f6a]);return _0x18ce9a['getFillerOffset']=()=>null,_0x18ce9a;}function b(_0x46f1dd,_0x176a45,_0x1a71f0,{dataPipeline:_0x4c9597}={}){const {t:t}=_0x1a71f0,_0x40ae15=_0x46f1dd['getAttribute']('footnoteId'),_0x1f5bc0=_0x176a45['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x40ae15},function(_0x69f845){const _0x47029a=this['toDomElement'](_0x69f845);return _0x47029a['innerText']='^',_0x47029a;}),_0x4345fb=_0x4c9597?_0x176a45['createContainerElement']('div',{'class':'footnote-content'}):_0x52e7d2(_0x176a45['createEditableElement']('div',{'class':'footnote-content'}),_0x176a45,{'label':t('Footnote\x20content.')});return _0x176a45['insert'](_0x176a45['createPositionAt'](_0x4345fb,0x0),_0x176a45['createSlot']()),_0x176a45['createContainerElement']('li',{'class':'footnote-definition','id':_0x40ae15},[_0x1f5bc0,_0x4345fb]);}
|
|
23
|
+
import{Plugin as _0xfb9555}from'ckeditor5/src/core.js';import{isWidget as _0x48abf2,toWidget as _0x19eb74,toWidgetEditable as _0x56fcc8}from'ckeditor5/src/widget.js';import{uid as _0x681214}from'ckeditor5/src/utils.js';import{PointerObserver as _0x477948,ClickObserver as _0x3f444f}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x1b1a7e}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x5d42e2}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0xfb9555{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x1b1a7e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xbc0313}=this;_0xbc0313['config']['define']('footnotes.multiBlock',!0x0),_0xbc0313['commands']['add']('insertFootnote',new _0x5d42e2(_0xbc0313)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x51cd3c){const _0x18c6da=_0x2aa80b([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]),_0x22e637=0x47a28506,_0xdf4ac5=0x47a5ff06^_0x22e637,_0x3d25f9=window[_0x2aa80b([0x44,0x61,0x74,0x65])][_0x2aa80b([0x6e,0x6f,0x77])](),_0x13526c=_0x51cd3c[_0x2aa80b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b8993=new window[(_0x2aa80b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdca942=>{_0x13526c[_0x2aa80b([0x6f,0x6e,0x63,0x65])](_0x2aa80b([0x72,0x65,0x61,0x64,0x79]),_0xdca942);}),_0x5030cd={[_0x2aa80b([0x6b,0x74,0x79])]:_0x2aa80b([0x45,0x43]),[_0x2aa80b([0x75,0x73,0x65])]:_0x2aa80b([0x73,0x69,0x67]),[_0x2aa80b([0x63,0x72,0x76])]:_0x2aa80b([0x50,0x2d,0x32,0x35,0x36]),[_0x2aa80b([0x78])]:_0x2aa80b([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]),[_0x2aa80b([0x79])]:_0x2aa80b([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]),[_0x2aa80b([0x61,0x6c,0x67])]:_0x2aa80b([0x45,0x53,0x32,0x35,0x36])},_0x1b79ff=_0x13526c[_0x2aa80b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2aa80b([0x67,0x65,0x74])](_0x2aa80b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x35bf7c(){let _0x11bf5f,_0x180141=null,_0x259078=null;try{if(_0x1b79ff==_0x2aa80b([0x47,0x50,0x4c]))return _0x2aa80b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x11bf5f=_0x49334e(),!_0x11bf5f)return _0x2aa80b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x11bf5f[_0x2aa80b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x259078=_0xb0f299(_0x11bf5f[_0x2aa80b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x11bf5f[_0x2aa80b([0x6a,0x74,0x69])])),await _0x35b4d8()?_0x35169f()?_0x342ff1()?_0x2aa80b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x12536b()?(_0x11bf5f[_0x2aa80b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2aa80b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x180141=_0x3cb738(_0x2aa80b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x11bf5f[_0x2aa80b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2aa80b([0x74,0x72,0x69,0x61,0x6c])&&(_0x180141=_0x3cb738(_0x2aa80b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x11be41()):_0x2aa80b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2aa80b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2aa80b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2aa80b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x342ff1(){const _0x4a7dbb=[_0x2aa80b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2aa80b([0x74,0x72,0x69,0x61,0x6c])][_0x2aa80b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11bf5f[_0x2aa80b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3d25f9/0x3e8:0xe10*_0xdf4ac5;return _0x11bf5f[_0x2aa80b([0x65,0x78,0x70])]<_0x4a7dbb;}function _0x35169f(){const _0x5eeccb=_0x11bf5f[_0x2aa80b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5eeccb&&(!!_0x5eeccb[_0x2aa80b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2aa80b([0x2a]))||!!_0x5eeccb[_0x2aa80b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2aa80b([0x46,0x4f,0x4f])));}function _0x12536b(){const _0xfec048=_0x11bf5f[_0x2aa80b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xfec048||0x0==_0xfec048[_0x2aa80b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30c639}=new URL(window[_0x2aa80b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xfec048[_0x2aa80b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30c639))return!0x0;const _0xc40cbf=_0x30c639[_0x2aa80b([0x73,0x70,0x6c,0x69,0x74])](_0x2aa80b([0x2e]));return _0xfec048[_0x2aa80b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x207c94=>_0x207c94[_0x2aa80b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2aa80b([0x2a])))[_0x2aa80b([0x6d,0x61,0x70])](_0xac8214=>_0xac8214[_0x2aa80b([0x73,0x70,0x6c,0x69,0x74])](_0x2aa80b([0x2e])))[_0x2aa80b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34a6da=>_0x34a6da[_0x2aa80b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xc40cbf[_0x2aa80b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2aa80b([0x6d,0x61,0x70])](_0x2a5829=>Array(_0xc40cbf[_0x2aa80b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2a5829[_0x2aa80b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2aa80b([0x66,0x69,0x6c,0x6c])](_0x2a5829[0x0]===_0x2aa80b([0x2a])?_0x2aa80b([0x2a]):'')[_0x2aa80b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2a5829))[_0x2aa80b([0x73,0x6f,0x6d,0x65])](_0x5f129e=>_0xc40cbf[_0x2aa80b([0x65,0x76,0x65,0x72,0x79])]((_0x3b2ce2,_0x47c62d)=>_0x5f129e[_0x47c62d]===_0x3b2ce2||_0x5f129e[_0x47c62d]===_0x2aa80b([0x2a])));}function _0x11be41(){return _0x180141&&_0x259078?new window[(_0x2aa80b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52c797,_0x2f2304)=>{_0x180141[_0x2aa80b([0x74,0x68,0x65,0x6e])](_0x52c797,_0x2f2304),_0x259078[_0x2aa80b([0x74,0x68,0x65,0x6e])](_0x502fe8=>{_0x502fe8!=_0x2aa80b([0x56,0x61,0x6c,0x69,0x64])&&_0x52c797(_0x502fe8);},_0x2f2304);}):_0x180141||_0x259078||_0x2aa80b([0x56,0x61,0x6c,0x69,0x64]);}}function _0xb0f299(_0x139ed2,_0x59c104){return new window[(_0x2aa80b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4696c2=>{if(_0x2e8bad())return _0x4696c2(_0x2aa80b([0x56,0x61,0x6c,0x69,0x64]));_0x28e77d(),_0x13526c[_0x2aa80b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2aa80b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xaae3b6=!0x1;const _0x19d8df=_0x681214();function _0x466219(_0xd6e0d8){return!!_0xd6e0d8&&(typeof _0xd6e0d8===_0x2aa80b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xd6e0d8===_0x2aa80b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xd6e0d8[_0x2aa80b([0x74,0x68,0x65,0x6e])]===_0x2aa80b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xd6e0d8[_0x2aa80b([0x63,0x61,0x74,0x63,0x68])]===_0x2aa80b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x353045(_0x43f758){_0x21ce47(_0x43f758)[_0x2aa80b([0x74,0x68,0x65,0x6e])](_0x5c819e=>{if(!_0x5c819e||_0x5c819e[_0x2aa80b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2aa80b([0x6f,0x6b]))return _0x2aa80b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf2abd1(_0x207d2b(_0x19d8df+_0x59c104))!=_0x5c819e[_0x2aa80b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2aa80b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2aa80b([0x56,0x61,0x6c,0x69,0x64]);})[_0x2aa80b([0x74,0x68,0x65,0x6e])](_0x4ca0fb=>(_0x44cbab(),_0x4ca0fb),()=>{const _0x8cff32=_0x1f9633();return null==_0x8cff32?(_0x44cbab(),_0x2aa80b([0x56,0x61,0x6c,0x69,0x64])):_0x2aa80b(_0x3d25f9-_0x8cff32>(0x63ae0106^_0x22e637)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2aa80b([0x74,0x68,0x65,0x6e])](_0x4696c2)[_0x2aa80b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4696c2(_0x2aa80b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x20cbe3=0x47946b86^_0x22e637;function _0x44cbab(){const _0x4eb15e=_0x2aa80b([0x6c,0x6c,0x63,0x74,0x2d])+_0xf2abd1(_0x207d2b(_0x139ed2)),_0x225142=_0x46dd15(_0xf2abd1(window[_0x2aa80b([0x4d,0x61,0x74,0x68])][_0x2aa80b([0x63,0x65,0x69,0x6c])](_0x3d25f9/_0x20cbe3)));window[_0x2aa80b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2aa80b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4eb15e,_0x225142);}function _0x1f9633(){const _0x15724f=_0x2aa80b([0x6c,0x6c,0x63,0x74,0x2d])+_0xf2abd1(_0x207d2b(_0x139ed2)),_0x1c8187=window[_0x2aa80b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2aa80b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15724f);return _0x1c8187?window[_0x2aa80b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46dd15(_0x1c8187),0x10)*_0x20cbe3:null;}function _0x21ce47(_0x3f660a){return new window[(_0x2aa80b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cb133,_0x494f12)=>{_0x3f660a[_0x2aa80b([0x74,0x68,0x65,0x6e])](_0x2cb133,_0x494f12),window[_0x2aa80b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x494f12,0x47a351c6^_0x22e637);});}}_0x13526c[_0x2aa80b([0x6f,0x6e])](_0x2aa80b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e28b9,_0x3ade6c)=>{if(_0x3ade6c[0x0]!=_0x139ed2)return _0x4696c2(_0x2aa80b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3ade6c[0x1]={..._0x3ade6c[0x1],[_0x2aa80b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x19d8df};},{[_0x2aa80b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2aa80b([0x68,0x69,0x67,0x68])}),_0x13526c[_0x2aa80b([0x6f,0x6e])](_0x2aa80b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x361ab3=>{_0x466219(_0x361ab3[_0x2aa80b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xaae3b6=!0x0,_0x353045(_0x361ab3[_0x2aa80b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2aa80b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2aa80b([0x6c,0x6f,0x77])}),_0x2b8993[_0x2aa80b([0x74,0x68,0x65,0x6e])](()=>{_0xaae3b6||_0x4696c2(_0x2aa80b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e8bad(){return _0x13526c[_0x2aa80b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2aa80b([0x76,0x69,0x65,0x77])][_0x2aa80b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2aa80b([0x61,0x75,0x74,0x6f]);}function _0x28e77d(){_0x13526c[_0x2aa80b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2aa80b([0x76,0x69,0x65,0x77])][_0x2aa80b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2aa80b([0x61,0x75,0x74,0x6f]);}}function _0x3cb738(_0x3792f4){const _0x289f28=[new window[(_0x2aa80b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34524b=>setTimeout(_0x34524b,0x47abbbca^_0x22e637)),_0x2b8993[_0x2aa80b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2aa80b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cdd91=>{let _0x208929=0x0;_0x13526c[_0x2aa80b([0x6d,0x6f,0x64,0x65,0x6c])][_0x2aa80b([0x6f,0x6e])](_0x2aa80b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5b368f,_0x274374)=>{_0x274374[0x0][_0x2aa80b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x208929++,_0x208929==(0x47a284fe^_0x22e637)&&(_0x3cdd91(),_0x5b368f[_0x2aa80b([0x6f,0x66,0x66])]());});}))];return window[_0x2aa80b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2aa80b([0x72,0x61,0x63,0x65])](_0x289f28)[_0x2aa80b([0x74,0x68,0x65,0x6e])](()=>_0x3792f4);}async function _0x531464(){await _0x2b8993,_0x13526c[_0x2aa80b([0x6d,0x6f,0x64,0x65,0x6c])][_0x2aa80b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x38795a,_0x13526c[_0x2aa80b([0x6d,0x6f,0x64,0x65,0x6c])][_0x2aa80b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x38795a,_0x13526c[_0x2aa80b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2aa80b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8cb778(_0x4e3c35){const _0x4f7471=_0x2eb2a7();_0x13526c[_0x4f7471]=_0x2aa80b([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4e3c35,_0x4e3c35!=_0x2aa80b([0x56,0x61,0x6c,0x69,0x64])&&_0x531464();}function _0x2eb2a7(){const _0x5a5b43=window[_0x2aa80b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2aa80b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2aa80b([0x6e,0x6f,0x77])]())[_0x2aa80b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2aa80b([0x2e]),'');let _0x5600ef=_0x2aa80b([0x75]);for(let _0x4def0d=0x0;_0x4def0d<_0x5a5b43[_0x2aa80b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4def0d+=0x2){let _0x3be730=window[_0x2aa80b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a5b43[_0x2aa80b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4def0d,_0x4def0d+0x2));_0x3be730>=_0x18c6da[_0x2aa80b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3be730-=_0x18c6da[_0x2aa80b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5600ef+=_0x18c6da[_0x3be730];}return _0x5600ef;}function _0x49334e(){const _0x360070=_0x1b79ff[_0x2aa80b([0x73,0x70,0x6c,0x69,0x74])](_0x2aa80b([0x2e]));if(0x3!=_0x360070[_0x2aa80b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x56aeb4(_0x360070[0x1]);function _0x56aeb4(_0x5cfdf3){const _0x2a6d49=_0x25360a(_0x5cfdf3);return _0x2a6d49&&_0x516d41()?_0x2a6d49:null;function _0x516d41(){const _0x1332a4=_0x2a6d49[_0x2aa80b([0x6a,0x74,0x69])],_0x41a955=window[_0x2aa80b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1332a4[_0x2aa80b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1332a4[_0x2aa80b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3ece1b={..._0x2a6d49,[_0x2aa80b([0x6a,0x74,0x69])]:_0x1332a4[_0x2aa80b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1332a4[_0x2aa80b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3ece1b[_0x2aa80b([0x76,0x63])],_0x207d2b(_0x3ece1b)==_0x41a955;}}}async function _0x35b4d8(){let _0xed83cd=!0x0;try{const _0x451d31=_0x1b79ff[_0x2aa80b([0x73,0x70,0x6c,0x69,0x74])](_0x2aa80b([0x2e])),[_0x2f23d1,_0x3941be,_0x3395e8]=_0x451d31;return _0x131b07(_0x2f23d1),await _0x3595e9(_0x2f23d1,_0x3941be,_0x3395e8),_0xed83cd;}catch{return!0x1;}function _0x131b07(_0x25be2f){const _0x59acfa=_0x25360a(_0x25be2f);_0x59acfa&&_0x59acfa[_0x2aa80b([0x61,0x6c,0x67])]==_0x2aa80b([0x45,0x53,0x32,0x35,0x36])||(_0xed83cd=!0x1);}async function _0x3595e9(_0x5b603e,_0x45b647,_0x56aa2c){const _0x210892=window[_0x2aa80b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2aa80b([0x66,0x72,0x6f,0x6d])](_0x56bdf3(_0x56aa2c),_0x5097d5=>_0x5097d5[_0x2aa80b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x29f933=new window[(_0x2aa80b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2aa80b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b603e+_0x2aa80b([0x2e])+_0x45b647),_0x5712d6=window[_0x2aa80b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2aa80b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5712d6)return;const _0xdf6dec=await _0x5712d6[_0x2aa80b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2aa80b([0x6a,0x77,0x6b]),_0x5030cd,{[_0x2aa80b([0x6e,0x61,0x6d,0x65])]:_0x2aa80b([0x45,0x43,0x44,0x53,0x41]),[_0x2aa80b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2aa80b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2aa80b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5712d6[_0x2aa80b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2aa80b([0x6e,0x61,0x6d,0x65])]:_0x2aa80b([0x45,0x43,0x44,0x53,0x41]),[_0x2aa80b([0x68,0x61,0x73,0x68])]:{[_0x2aa80b([0x6e,0x61,0x6d,0x65])]:_0x2aa80b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xdf6dec,_0x210892,_0x29f933)||(_0xed83cd=!0x1);}}function _0x25360a(_0x4a3ffb){return _0x4a3ffb[_0x2aa80b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2aa80b([0x65,0x79]))?JSON[_0x2aa80b([0x70,0x61,0x72,0x73,0x65])](_0x56bdf3(_0x4a3ffb)):null;}function _0x56bdf3(_0x3d10da){return window[_0x2aa80b([0x61,0x74,0x6f,0x62])](_0x3d10da[_0x2aa80b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2aa80b([0x2b]))[_0x2aa80b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2aa80b([0x2f])));}function _0x207d2b(_0x15bdd9){let _0x5d479e=0x1505;function _0x56a103(_0x461223){for(let _0x4b35f2=0x0;_0x4b35f2<_0x461223[_0x2aa80b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b35f2++){const _0x238a4d=_0x461223[_0x2aa80b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4b35f2);_0x5d479e=(_0x5d479e<<0x5)+_0x5d479e+_0x238a4d,_0x5d479e&=_0x5d479e;}}function _0x2a749a(_0x45d23c){Array[_0x2aa80b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x45d23c)?_0x45d23c[_0x2aa80b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2a749a):_0x45d23c&&typeof _0x45d23c==_0x2aa80b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2aa80b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x45d23c)[_0x2aa80b([0x73,0x6f,0x72,0x74])]()[_0x2aa80b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x200ded,_0x399c34])=>{_0x56a103(_0x200ded),_0x2a749a(_0x399c34);}):_0x56a103(window[_0x2aa80b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x45d23c));}return _0x2a749a(_0x15bdd9),_0x5d479e>>>0x0;}function _0xf2abd1(_0x237121){return _0x237121[_0x2aa80b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2aa80b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2aa80b([0x30]));}function _0x46dd15(_0xdd82a4){return _0xdd82a4[_0x2aa80b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2aa80b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2aa80b([0x6a,0x6f,0x69,0x6e])]('');}function _0x38795a(){}function _0x2aa80b(_0x51aa71){return _0x51aa71['map'](_0x2ad9fa=>String['fromCharCode'](_0x2ad9fa))['join']('');}_0x8cb778(await _0x35bf7c());}(this);}['_moveSelectionToFootnoteDefinition'](_0x10eb84){const {plugins:_0x41dc40,editing:_0x24f0a7,model:_0x1ca817}=this['editor'],_0x5569c5=_0x41dc40['get'](_0x1b1a7e)['getFootnote'](_0x10eb84);return!!_0x5569c5&&(_0x1ca817['change'](_0x2cc91b=>{_0x2cc91b['setSelection'](_0x2cc91b['createPositionAt'](_0x5569c5['definition'],'end'));}),_0x24f0a7['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4c3cfc){const {plugins:_0x2a6edf,editing:_0x292d2c,model:_0x2e85fb}=this['editor'],_0xd82f29=_0x2a6edf['get'](_0x1b1a7e)['getFootnote'](_0x4c3cfc);return!!_0xd82f29&&(_0x2e85fb['change'](_0x2fd1a4=>{_0x2fd1a4['setSelection'](_0xd82f29['reference'],'on');}),_0x292d2c['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x16cef7}=this['editor']['model'],_0x4755e0=this['editor']['config']['get']('footnotes.multiBlock');_0x16cef7['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x16cef7['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x16cef7['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x4755e0?_0x16cef7['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x16cef7['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x16cef7['addChildCheck'](_0x5898fb=>{for(const _0x2b0597 of _0x5898fb)if('footnoteDefinition'===_0x2b0597['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x348f85}=this,{conversion:_0x3bca80,editing:_0x2ebf2f}=_0x348f85,{t:t}=_0x348f85['locale'];_0x3bca80['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x158471,{writer:_0x14141d,consumable:_0x56df33})=>{const _0x52be90=_0x158471['getChild'](0x0);if(!_0x52be90||!_0x52be90['is']('element','a'))return null;const _0x2db752=_0x52be90['getAttribute']('href')||'';if(!_0x2db752['startsWith']('#'))return null;const _0x419a8d=_0x2db752['replace'](/^#/,'');if(!_0x419a8d)return null;_0x56df33['consume'](_0x52be90,{'name':!0x0,'attributes':['href']});for(const {item:_0x2ca29b}of _0x2ebf2f['view']['createRangeIn'](_0x52be90))_0x2ca29b['is']('$textProxy')?_0x56df33['consume'](_0x2ca29b['textNode'],{'name':!0x0}):_0x2ca29b['is']('element')&&_0x56df33['consume'](_0x2ca29b,{'name':!0x0});return _0x14141d['createElement']('footnoteRef',{'footnoteId':_0x419a8d});}}),_0x3bca80['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x36e0a0,{writer:_0xe5d516})=>D(_0x36e0a0,_0xe5d516)}),_0x3bca80['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x47b7de,{writer:_0x87585a})=>{const _0x39b7e7=_0x47b7de['getAttribute']('footnoteCounter');return _0x19eb74(D(_0x47b7de,_0x87585a),_0x87585a,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x39b7e7)});}});}['_defineDefinitionsConverters'](){const {editor:_0x1ed7a1}=this,{t:t}=_0x1ed7a1['locale'],{conversion:_0x440eb7}=_0x1ed7a1;_0x440eb7['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x440eb7['for']('upcast')['add'](_0x4fd6ce=>{_0x4fd6ce['on']('element:ol',(_0x4bfea4,_0x39a19b,_0x258954)=>{const _0x27ca88=_0x39a19b['viewItem'];if(!_0x27ca88['hasClass']('footnotes-list')||!_0x39a19b['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x258954['consumable']['consume'](_0x27ca88,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x54c33c,modelCursor:_0x112758}=_0x258954['convertChildren'](_0x39a19b['viewItem'],_0x39a19b['modelCursor']);_0x39a19b['modelRange']=_0x54c33c,_0x39a19b['modelCursor']=_0x112758;}),_0x4fd6ce['on']('element:hr',(_0x5b86f5,_0x4774e9,_0x3e2216)=>{const _0x208b04=_0x4774e9['viewItem'];_0x208b04['hasClass']('footnotes-divider')&&_0x4774e9['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3e2216['consumable']['consume'](_0x208b04,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x440eb7['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4d6d65,{writer:_0x1210f4})=>v(_0x1210f4)}),_0x440eb7['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x323005,{writer:_0x3c8065})=>{const _0x15eade=v(_0x3c8065,{'data-footnotes-list-label':t('Footnotes')}),_0x299183=_0x19eb74(_0x15eade,_0x3c8065,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3c8065['setCustomProperty']('footnotesDefinitions',!0x0,_0x299183),_0x299183;}});}['_defineDefinitionConverters'](){const {editor:_0x133f15}=this,{conversion:_0x2375c5,locale:_0x217ba1}=_0x133f15,_0x40aee1=_0x133f15['config']['get']('footnotes.multiBlock');_0x2375c5['for']('upcast')['add'](_0xe2f541=>{_0xe2f541['on']('element:li',(_0x18aad5,_0x281027,_0x242ece)=>{const _0x397fa2=_0x281027['viewItem'];if(!_0x397fa2['hasClass']('footnote-definition')||!_0x397fa2['getAttribute']('id'))return;const _0x50ee7c=_0x397fa2['parent'];if(!_0x50ee7c['is']('element','ol')||!_0x50ee7c['hasClass']('footnotes-list'))return;if(!_0x242ece['consumable']['test'](_0x397fa2,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x46d5c5=_0x242ece['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x397fa2['getAttribute']('id')});if(!_0x242ece['safeInsert'](_0x46d5c5,_0x281027['modelCursor']))return;_0x242ece['consumable']['consume'](_0x397fa2,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x418f8f=Array['from'](_0x397fa2['getChildren']())['find'](_0x152226=>_0x152226['is']('element')&&_0x152226['hasClass']('footnote-content'));for(const _0x301439 of _0x397fa2['getChildren']())_0x301439['is']('element')&&(_0x242ece['consumable']['consume'](_0x301439,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x242ece['consumable']['consume'](_0x301439,{'name':!0x0,'classes':'footnote-content'}));if(_0x418f8f){if(_0x40aee1)_0x242ece['convertChildren'](_0x418f8f,_0x46d5c5);else{const _0x4d3b1d=_0x242ece['writer']['createElement']('footnoteInlineContent');_0x242ece['writer']['insert'](_0x4d3b1d,_0x46d5c5),_0x242ece['convertChildren'](_0x418f8f,_0x4d3b1d);}}_0x242ece['updateConversionResult'](_0x46d5c5,_0x281027);});}),_0x2375c5['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2fb3f5,{writer:_0x11dd22})=>b(_0x2fb3f5,_0x11dd22,_0x217ba1,{'dataPipeline':!0x0})}),_0x2375c5['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x56e869,{writer:_0x39f327})=>b(_0x56e869,_0x39f327,_0x217ba1)});}['_defineBogusParagraphConverters'](){const {editor:_0x587c3a}=this,{conversion:_0x57b420}=_0x587c3a;_0x587c3a['config']['get']('footnotes.multiBlock')?(_0x57b420['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x57b420['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x587c3a['model']['document'],'change:data',()=>{!function(_0x27980a,_0x21909e){const _0xd7ad88=_0x27980a['document']['differ'],_0x5bf7c1=new Set();for(const _0x393647 of _0xd7ad88['getChanges']()){const _0x3af9ae='attribute'==_0x393647['type']?_0x393647['range']['start']['parent']:_0x393647['position']['parent'];_0x3af9ae['is']('element','footnoteDefinition')&&_0x5bf7c1['add'](_0x3af9ae);}for(const _0x439a93 of _0x5bf7c1['values']()){const _0xcef6b5=Array['from'](_0x439a93['getChildren']())['filter'](_0x1f9a3a=>g(_0x1f9a3a,_0x21909e['mapper']));for(const _0x149436 of _0xcef6b5)_0x21909e['reconvertItem'](_0x149436);}}(_0x587c3a['model'],_0x587c3a['editing']);})):(_0x57b420['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x57b420['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3e04a7,{writer:_0x225af2})=>{const _0x16d267=_0x225af2['createContainerElement']('span');return _0x225af2['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x16d267),_0x16d267;}}));}['_defineKeyboardHandlers'](){const {editor:_0x12a8eb}=this,{editing:_0x5c001f,t:t}=_0x12a8eb,_0x3c2f0b=_0x12a8eb['model']['document']['selection'];_0x12a8eb['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x12a8eb['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x5c001f['view']['document'],'enter',(_0x551059,_0x4404a0)=>{const _0x41b52e=function(_0x22e565){const _0x5abd63=_0x22e565['getSelectedElement']();if(_0x5abd63?.['is']('element','footnoteRef'))return _0x5abd63;return null;}(_0x3c2f0b);if(_0x41b52e){const _0x37832f=_0x41b52e['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x37832f),_0x4404a0['preventDefault'](),_0x551059['stop']();}},{'context':_0x48abf2});}['_defineClickHandlers'](){const {editor:_0x2a0a10}=this,{editing:_0x440cdd}=_0x2a0a10;_0x2a0a10['editing']['view']['addObserver'](_0x477948),_0x2a0a10['editing']['view']['addObserver'](_0x3f444f);let _0x3ed2de=!0x1;this['listenTo'](_0x440cdd['view']['document'],'pointerdown',(_0x519005,_0x538d16)=>{const {target:_0x20e533}=_0x538d16,_0x449dd3=_0x440cdd['view']['document']['selection'];_0x3ed2de=!!(_0x20e533?.['is']('element','a')&&_0x20e533['parent']?.['is']('element','sup')&&_0x20e533['parent']['hasClass']('footnote'))&&_0x449dd3['getSelectedElement']()===_0x20e533['parent'];},{'priority':'high'}),this['listenTo'](_0x440cdd['view']['document'],'click',(_0x51dcc7,_0x455e25)=>{const {target:_0x421264}=_0x455e25;if(!_0x421264?.['is']('element','a'))return;if(_0x421264['parent']?.['is']('element','sup')&&_0x421264['parent']['hasClass']('footnote')&&!_0x3ed2de)return void _0x455e25['preventDefault']();let _0x4f44f3=_0x421264['getAttribute']('href');if(!_0x4f44f3?.['startsWith']('#'))return;_0x4f44f3=_0x4f44f3['slice'](0x1);let _0x4a3f56=!0x1;(_0x4f44f3['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x4f44f3['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x4f44f3))&&(_0x4a3f56=!0x0),_0x4a3f56&&(_0x455e25['preventDefault'](),_0x51dcc7['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x547931}={}){return(_0x20b6fc,{writer:_0x380976})=>{if(!p(_0x20b6fc))return null;if(!_0x547931)return _0x380976['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x2e015c=_0x380976['createContainerElement']('p');return _0x380976['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2e015c),_0x2e015c;};}function p(_0x56afb0){const {parent:_0x111d2f}=_0x56afb0;if(!_0x111d2f?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x111d2f['childCount'])return!0x1;for(const _0x4e8a18 of _0x56afb0['getAttributeKeys']())if(!_0x4e8a18['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4e8a18)return!0x1;return!0x0;}function g(_0x5dc7bd,_0x1d374a){if(!_0x5dc7bd['is']('element','paragraph'))return!0x1;const _0x1f9801=_0x1d374a['toViewElement'](_0x5dc7bd);return!!_0x1f9801&&p(_0x5dc7bd)!==_0x1f9801['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x3af951){return _0x48abf2(_0x3af951)&&_0x3af951['is']('containerElement')&&!!_0x3af951['getCustomProperty']('footnotesDefinitions');}function v(_0x389c8b,_0x511c8f={}){const _0x41bc35=_0x389c8b['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x415998=_0x389c8b['createContainerElement']('ol',{'class':'footnotes-list'},_0x389c8b['createSlot']());return _0x389c8b['createContainerElement']('div',{'class':'footnotes',..._0x511c8f},[_0x41bc35,_0x415998]);}function D(_0x12f03b,_0x13f792){const _0x352dcd=_0x12f03b['getAttribute']('footnoteId'),_0x98f75a=_0x12f03b['getAttribute']('footnoteCounter'),_0x541aca=_0x13f792['createUIElement']('a',{'href':'#'+_0x352dcd},function(_0x4cc4f0){const _0x247778=this['toDomElement'](_0x4cc4f0);return _0x247778['textContent']=_0x98f75a,_0x247778;}),_0x135027=_0x13f792['createContainerElement']('sup',{'id':'ref-'+_0x352dcd,'class':'footnote'},[_0x541aca]);return _0x135027['getFillerOffset']=()=>null,_0x135027;}function b(_0x28f62a,_0x4d4b29,_0x56086a,{dataPipeline:_0x38e448}={}){const {t:t}=_0x56086a,_0x1b0a95=_0x28f62a['getAttribute']('footnoteId'),_0x3c3400=_0x4d4b29['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1b0a95},function(_0x5cfc2f){const _0x120e65=this['toDomElement'](_0x5cfc2f);return _0x120e65['innerText']='^',_0x120e65;}),_0x213972=_0x38e448?_0x4d4b29['createContainerElement']('div',{'class':'footnote-content'}):_0x56fcc8(_0x4d4b29['createEditableElement']('div',{'class':'footnote-content'}),_0x4d4b29,{'label':t('Footnote\x20content.')});return _0x4d4b29['insert'](_0x4d4b29['createPositionAt'](_0x213972,0x0),_0x4d4b29['createSlot']()),_0x4d4b29['createContainerElement']('li',{'class':'footnote-definition','id':_0x1b0a95},[_0x3c3400,_0x213972]);}
|