Changeset 117559 in spip-zone


Ignore:
Timestamp:
Aug 14, 2019, 9:54:42 PM (5 days ago)
Author:
maieul@…
Message:

passage en littlefoot 3.0, qui corrige le bug si on a des url arbo, et donc une url avant l'ancre

Location:
_plugins_/bigfoot/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/bigfoot/trunk/javascript/littlefoot.js

    r115983 r117559  
    1 !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).littlefoot=e()}}(function(){var e=function(e){return e&&e.__esModule?e:{default:e}},t={};Object.defineProperty(t,"__esModule",{value:!0}),t.createCore=function(e,t){var n=function(e,t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.activateDelay,o=t.activateCallback;n.isChanging()||(n.startChanging(),n.activate(o),e.footnotes().forEach(function(e){e.reposition(),e.resize()}),setTimeout(function(){n.ready(),n.stopChanging()},r))}}(e,t),r=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.dismissDelay;t.isChanging()||(t.startChanging(),t.dismiss(),setTimeout(function(){t.remove(),t.stopChanging()},n))}}(t);return{activate:n,dismiss:r,findById:function(t){return e.footnotes().find(function(e){return e.getId()===t})},unmount:e.unmount,dismissAll:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.dismissDelay;e.footnotes().forEach(function(e){return r(e,n)})},repositionAll:function(){e.footnotes().forEach(function(e){return e.reposition()})},resizeAll:function(){e.footnotes().forEach(function(e){return e.resize()})},toggle:function(o){var i=t.allowMultiple;o.isActive()?r(o):(i||e.footnotes().filter(function(e){return e.getId()!==o.getId()}).forEach(r),n(o))},hover:function(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.hoverDelay,a=t.activateOnHover,u=t.allowMultiple;o.startHovering(),a&&!o.isActive()&&(u||e.footnotes().filter(function(e){return e.getId()!==o.getId()}).forEach(r),n(o,i))},unhover:function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.hoverDelay,i=t.dismissOnUnhover;n.stopHovering(),i&&setTimeout(function(){e.footnotes().some(function(e){return e.isHovered()})||e.footnotes().forEach(r)},o)}}};var n={};Object.defineProperty(n,"__esModule",{value:!0}),n.getStyle=function(e,t){var n=(e.ownerDocument&&e.ownerDocument.defaultView||window).getComputedStyle(e);return n.getPropertyValue(t)||n[t]};var r={};Object.defineProperty(r,"__esModule",{value:!0});function o(e){return e?n.getStyle(e,"fontSize")||o(e.parentElement):n.getStyle(window.document.documentElement,"fontSize")}r.pixels=function e(t,n){var r=n&&n.ownerDocument&&n.ownerDocument.defaultView||window,i=r.document.documentElement||r.document.body,a=function(e){var t=e||"0",n=parseFloat(t),r=t.match(/[\d-.]+(\w+)$/);return[n,(r&&r.length>1?r[1]:"").toLowerCase()]}(t),u=a[0];switch(a[1]){case"rem":return u*e(o(window.document.documentElement));case"em":return u*e(o(n),n&&n.parentElement);case"in":return 96*u;case"q":return 96*u/25.4/4;case"mm":return 96*u/25.4;case"cm":return 96*u*10/25.4;case"pt":return 96*u/72;case"pc":return 96*u/6;case"vh":return(u*r.innerHeight||i.clientWidth)/100;case"vw":return(u*r.innerWidth||i.clientHeight)/100;case"vmin":return u*Math.min(r.innerWidth||i.clientWidth,r.innerHeight||i.clientHeight)/100;case"vmax":return u*Math.max(r.innerWidth||i.clientWidth,r.innerHeight||i.clientHeight)/100;default:return u}};var i={};(function(e){var t="Expected a function",n=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,f="object"==typeof e&&e&&e.Object===Object&&e,s="object"==typeof self&&self&&self.Object===Object&&self,d=f||s||Function("return this")(),p=Object.prototype.toString,v=Math.max,h=Math.min,g=function(){return d.Date.now()};function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==r}(e))return n;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var i=u.test(e);return i||c.test(e)?l(e.slice(2),i?2:8):a.test(e)?n:+e}i=function(e,n,r){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(t);return y(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),function(e,n,r){var o,i,a,u,c,l,f=0,s=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(t);function m(t){var n=o,r=i;return o=i=void 0,f=t,u=e.apply(r,n)}function j(e){var t=e-l;return void 0===l||t>=n||t<0||d&&e-f>=a}function w(){var e=g();if(j(e))return O(e);c=setTimeout(w,function(e){var t=n-(e-l);return d?h(t,a-(e-f)):t}(e))}function O(e){return c=void 0,p&&o?m(e):(o=i=void 0,u)}function _(){var e=g(),t=j(e);if(o=arguments,i=this,l=e,t){if(void 0===c)return function(e){return f=e,c=setTimeout(w,n),s?m(e):u}(l);if(d)return c=setTimeout(w,n),m(l)}return void 0===c&&(c=setTimeout(w,n)),u}return n=b(n)||0,y(r)&&(s=!!r.leading,a=(d="maxWait"in r)?v(b(r.maxWait)||0,n):a,p="trailing"in r?!!r.trailing:p),_.cancel=function(){void 0!==c&&clearTimeout(c),f=0,o=l=i=c=void 0},_.flush=function(){return void 0===c?u:O(g())},_}(e,n,{leading:o,maxWait:n,trailing:i})}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var a,u={};a=function(){"use strict";function e(){if(!(this instanceof e))return new e;this.size=0,this.uid=0,this.selectors=[],this.indexes=Object.create(this.indexes),this.activeIndexes=[]}var t=window.document.documentElement,n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.msMatchesSelector;e.prototype.matchesSelector=function(e,t){return n.call(e,t)},e.prototype.querySelectorAll=function(e,t){return t.querySelectorAll(e)},e.prototype.indexes=[];var r=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;e.prototype.indexes.push({name:"ID",selector:function(e){var t;if(t=e.match(r))return t[0].slice(1)},element:function(e){if(e.id)return[e.id]}});var o=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;e.prototype.indexes.push({name:"CLASS",selector:function(e){var t;if(t=e.match(o))return t[0].slice(1)},element:function(e){var t=e.className;if(t){if("string"==typeof t)return t.split(/\s/);if("object"==typeof t&&"baseVal"in t)return t.baseVal.split(/\s/)}}});var i,a=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;e.prototype.indexes.push({name:"TAG",selector:function(e){var t;if(t=e.match(a))return t[0].toUpperCase()},element:function(e){return[e.nodeName.toUpperCase()]}}),e.prototype.indexes.default={name:"UNIVERSAL",selector:function(){return!0},element:function(){return[!0]}},i="function"==typeof window.Map?window.Map:function(){function e(){this.map={}}return e.prototype.get=function(e){return this.map[e+" "]},e.prototype.set=function(e,t){this.map[e+" "]=t},e}();var u=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function c(e,t){var n,r,o,i,a,c,l=(e=e.slice(0).concat(e.default)).length,f=t,s=[];do{if(u.exec(""),(o=u.exec(f))&&(f=o[3],o[2]||!f))for(n=0;n<l;n++)if(a=(c=e[n]).selector(o[1])){for(r=s.length,i=!1;r--;)if(s[r].index===c&&s[r].key===a){i=!0;break}i||s.push({index:c,key:a});break}}while(o);return s}function l(e,t){var n,r,o;for(n=0,r=e.length;n<r;n++)if(o=e[n],t.isPrototypeOf(o))return o}function f(e,t){return e.id-t.id}return e.prototype.logDefaultIndexUsed=function(){},e.prototype.add=function(e,t){var n,r,o,a,u,f,s,d,p=this.activeIndexes,v=this.selectors;if("string"==typeof e){for(n={id:this.uid++,selector:e,data:t},s=c(this.indexes,e),r=0;r<s.length;r++)a=(d=s[r]).key,(u=l(p,o=d.index))||((u=Object.create(o)).map=new i,p.push(u)),o===this.indexes.default&&this.logDefaultIndexUsed(n),(f=u.map.get(a))||(f=[],u.map.set(a,f)),f.push(n);this.size++,v.push(e)}},e.prototype.remove=function(e,t){if("string"==typeof e){var n,r,o,i,a,u,l,f,s=this.activeIndexes,d={},p=1===arguments.length;for(n=c(this.indexes,e),o=0;o<n.length;o++)for(r=n[o],i=s.length;i--;)if(u=s[i],r.index.isPrototypeOf(u)){if(l=u.map.get(r.key))for(a=l.length;a--;)(f=l[a]).selector!==e||!p&&f.data!==t||(l.splice(a,1),d[f.id]=!0);break}this.size-=Object.keys(d).length}},e.prototype.queryAll=function(e){if(!this.selectors.length)return[];var t,n,r,o,i,a,u,c,l={},s=[],d=this.querySelectorAll(this.selectors.join(", "),e);for(t=0,r=d.length;t<r;t++)for(i=d[t],n=0,o=(a=this.matches(i)).length;n<o;n++)l[(c=a[n]).id]?u=l[c.id]:(u={id:c.id,selector:c.selector,data:c.data,elements:[]},l[c.id]=u,s.push(u)),u.elements.push(i);return s.sort(f)},e.prototype.matches=function(e){if(!e)return[];var t,n,r,o,i,a,u,c,l,s,d,p=this.activeIndexes,v={},h=[];for(t=0,o=p.length;t<o;t++)if(c=(u=p[t]).element(e))for(n=0,i=c.length;n<i;n++)if(l=u.map.get(c[n]))for(r=0,a=l.length;r<a;r++)!v[d=(s=l[r]).id]&&this.matchesSelector(e,s.selector)&&(v[d]=!0,h.push(s));return h.sort(f)},e},"object"==typeof u?u=a():this.SelectorSet=a();var c,l,f={exports:{}};c=this,l=function(e,t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var n={},r={},o=new WeakMap,i=new WeakMap,a=new WeakMap,u=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function c(e,t,n){var r=e[t];return e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)},e}function l(){o.set(this,!0)}function f(){o.set(this,!0),i.set(this,!0)}function s(){return a.get(this)||null}function d(e,t){u&&Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:t||u.get})}function p(e){var t=(1===e.eventPhase?r:n)[e.type];if(t){var u=function(e,t,n){var r=[],o=t;do{if(1!==o.nodeType)break;var i=e.matches(o);if(i.length){var a={node:o,observers:i};n?r.unshift(a):r.push(a)}}while(o=o.parentElement);return r}(t,e.target,1===e.eventPhase);if(u.length){c(e,"stopPropagation",l),c(e,"stopImmediatePropagation",f),d(e,s);for(var p=0,v=u.length;p<v&&!o.get(e);p++){var h=u[p];a.set(e,h.node);for(var g=0,y=h.observers.length;g<y&&!i.get(e);g++)h.observers[g].data.call(h.node,e)}a.delete(e),d(e)}}}e.off=function(e,t,o){var i=!!(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).capture,a=i?r:n,u=a[e];u&&(u.remove(t,o),u.size||(delete a[e],document.removeEventListener(e,p,i)))},e.on=function(e,o,i){var a=!!(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).capture,u=a?r:n,c=u[e];c||(c=new t,u[e]=c,document.addEventListener(e,p,a)),c.add(o,i)},Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof f.exports?l(f.exports,u):l((c=c||self)["delegated-events"]={},c.SelectorSet),f=f.exports;var s={};Object.defineProperty(s,"__esModule",{value:!0}),s.bindContentScrollHandler=function(e){var t=(0,d.default)(y);e.addEventListener("mousewheel",t),e.addEventListener("wheel",t)},s.addEventListeners=function(e){var t,n=e.dismissAll,r=e.findById,o=e.hover,i=e.repositionAll,a=e.resizeAll,u=e.toggle,c=e.unhover,l=function(e,t,n){return function(r){var o,i=(o=r.target.closest("[data-footnote-button]"))&&o.dataset.footnoteId,a=i&&e(i);a?t(a):h(r.target)||n()}}(r,u,n),s=(t=n,function(e){return 27===e.keyCode&&t()}),v=(0,d.default)(i),y=(0,d.default)(a),b=g(r,o),m=g(r,c);return document.addEventListener("touchend",l),document.addEventListener("click",l),document.addEventListener("keyup",s),document.addEventListener("gestureend",v),window.addEventListener("scroll",v),window.addEventListener("resize",y),(0,f.on)("mouseover",p,b),(0,f.on)("mouseout",p,m),function(){document.removeEventListener("touchend",l),document.removeEventListener("click",l),document.removeEventListener("keyup",s),document.removeEventListener("gestureend",v),window.removeEventListener("scroll",v),window.removeEventListener("resize",y),(0,f.off)("mouseover",p,b),(0,f.off)("mouseout",p,m)}},s.FOOTNOTE_SELECTOR=void 0;var d=e(i),p="[data-footnote-id]";s.FOOTNOTE_SELECTOR=p;var v="is-fully-scrolled";function h(e){return e.closest("[data-footnote-popover]")}function g(e,t){return function(n){n.preventDefault();var r,o=(r=n.target.closest(p))&&r.dataset.footnoteId,i=o&&e(o);i&&t(i)}}function y(e){var t=e.currentTarget,n=-e.deltaY,r=t.clientHeight,o=h(t);if(o&&n<=0&&n<r+t.scrollTop-t.scrollHeight)return o.classList.add(v),t.scrollTop=t.scrollHeight,void e.preventDefault();o&&n>0&&(o.classList.remove(v),t.scrollTop<n&&(t.scrollTop=0,e.preventDefault()))}var b={};Object.defineProperty(b,"__esModule",{value:!0}),b.getAvailableRoom=function(e){var t=parseFloat((0,n.getStyle)(e,"marginLeft")),r=e.offsetWidth-t,o=e.offsetHeight,i=e.getBoundingClientRect(),a=i.left+r/2,u=i.top+o/2;return{top:u,bottom:window.innerHeight-u,leftRelative:a/window.innerWidth}},b.getAvailableHeight=function(e,t){var r=_(e,t),o=parseInt((0,n.getStyle)(e,"marginTop"),10);return t[r?O:w]-o-15},b.repositionPopover=function(e,t){var n=_(e,t),r=e.dataset.footnotePosition,o=n?O:w;r!==o&&(e.dataset.footnotePosition=o,e.classList.remove("".concat(j).concat(r)),e.classList.add("".concat(j).concat(o)),e.style.transformOrigin="".concat(100*t.leftRelative,"% ").concat(n?"100%":"0"))},b.repositionTooltip=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=e.querySelector("."+m);n&&(n.style.left=100*t+"%")},b.CLASS_WRAPPER=b.CLASS_TOOLTIP=b.CLASS_CONTENT=void 0,b.CLASS_CONTENT="littlefoot-footnote__content";var m="littlefoot-footnote__tooltip";b.CLASS_TOOLTIP=m,b.CLASS_WRAPPER="littlefoot-footnote__wrapper";var j="is-positioned-",w="bottom",O="top";function _(e,t){var r=2*parseInt((0,n.getStyle)(e,"marginTop"),10)+e.offsetHeight;return t.bottom<r&&t.bottom<t.top}var S={};Object.defineProperty(S,"__esModule",{value:!0}),S.createFootnote=function(e){return{getId:function(){return e.id},activate:function(t){e.button.blur(),e.button.setAttribute("aria-expanded","true"),e.button.classList.add(A),e.button.insertAdjacentHTML("afterend",e.content),e.popover=e.button.nextElementSibling,e.popover.dataset.footnotePopover="",e.popover.dataset.footnoteId=e.id;var o=L(e.popover);e.popover.style.maxWidth="".concat(document.body.clientWidth,"px"),(0,s.bindContentScrollHandler)(o);var i=(0,n.getStyle)(o,"maxHeight");e.maxHeight=Math.round((0,r.pixels)(i,o)),"function"==typeof t&&t(e.popover,e.button)},dismiss:function(){e.button.blur(),e.button.setAttribute("aria-expanded","false"),e.button.classList.remove(A)},isActive:function(){return e.button.classList.contains(A)},isChanging:function(){return e.button.classList.contains(x)},isHovered:function(){return e.isHovered},ready:function(){e.popover&&e.popover.classList.add(A)},remove:function(){e.popover&&(e.popover.parentNode.removeChild(e.popover),delete e.popover)},reposition:function(){if(e.popover){var t=(0,b.getAvailableRoom)(e.button),n=L(e.popover),r=Math.min(e.maxHeight,(0,b.getAvailableHeight)(e.popover,t));n.style.maxHeight=r+"px",(0,b.repositionPopover)(e.popover,t),e.popover.offsetHeight<=n.scrollHeight&&e.popover.classList.add(E)}},resize:function(){if(e.popover){var t=(0,b.getAvailableRoom)(e.button),r=L(e.popover).offsetWidth,o=parseInt((0,n.getStyle)(e.button,"marginLeft"),10),i=-t.leftRelative*r+o+e.button.offsetWidth/2,a=e.popover.querySelector("."+b.CLASS_WRAPPER);e.popover.style.left=i+"px",a&&(a.style.maxWidth=r+"px"),(0,b.repositionTooltip)(e.popover,t.leftRelative)}},startChanging:function(){e.button.classList.add(x)},stopChanging:function(){e.button.classList.remove(x)},startHovering:function(){e.isHovered=!0},stopHovering:function(){e.isHovered=!1},unmount:function(){e.host.parentNode.removeChild(e.host)}}};var A="is-active",x="is-changing",E="is-scrollable";function L(e){return e.querySelector("."+b.CLASS_CONTENT)}var T=/<%=([\s\S]+?)%>/g,P={};(function(e){var t,n=1/0,r="[object Null]",o="[object Symbol]",i="[object Undefined]",a=/[&<>"']/g,u=RegExp(a.source),c="object"==typeof e&&e&&e.Object===Object&&e,l="object"==typeof self&&self&&self.Object===Object&&self,f=c||l||Function("return this")(),s=(t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},function(e){return null==t?void 0:t[e]}),d=Object.prototype,p=d.hasOwnProperty,v=d.toString,h=f.Symbol,g=h?h.toStringTag:void 0,y=h?h.prototype:void 0,b=y?y.toString:void 0,m={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:T,variable:"",imports:{_:{escape:function(e){return(e=null==(t=e)?"":j(t))&&u.test(e)?e.replace(a,s):e;var t}}}};function j(e){if("string"==typeof e)return e;if(w(e))return function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(e,j)+"";if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&function(e){return null==e?void 0===e?i:r:g&&g in Object(e)?function(e){var t=p.call(e,g),n=e[g];try{e[g]=void 0;var r=!0}catch(i){}var o=v.call(e);return r&&(t?e[g]=n:delete e[g]),o}(e):function(e){return v.call(e)}(e)}(e)==o}(e))return b?b.call(e):"";var t=e+"";return"0"==t&&1/e==-n?"-0":t}var w=Array.isArray;P=m}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var C={exports:{}};(function(e){var t=1/0,n=9007199254740991,r="[object Arguments]",o="[object AsyncFunction]",i="[object DOMException]",a="[object Error]",u="[object Function]",c="[object GeneratorFunction]",l="[object Null]",f="[object Object]",s="[object Proxy]",d="[object Symbol]",p="[object Undefined]",v=/\b__p \+= '';/g,h=/\b(__p \+=) '' \+/g,g=/(__e\(.*?\)|\b__t\)) \+\n'';/g,y=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,b=/^\[object .+?Constructor\]$/,m=/^(?:0|[1-9]\d*)$/,j=/($^)/,w=/['\n\r\u2028\u2029\\]/g,O={};O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O[r]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object Boolean]"]=O["[object DataView]"]=O["[object Date]"]=O[a]=O[u]=O["[object Map]"]=O["[object Number]"]=O[f]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object WeakMap]"]=!1;var _={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},S="object"==typeof e&&e&&e.Object===Object&&e,A="object"==typeof self&&self&&self.Object===Object&&self,x=S||A||Function("return this")(),E="object"==typeof C.exports&&C.exports&&!C.exports.nodeType&&C.exports,L=E&&C&&!C.nodeType&&C,H=L&&L.exports===E,I=H&&S.process,M=function(){try{return L&&L.require&&L.require("util").types||I&&I.binding&&I.binding("util")}catch(e){}}(),F=M&&M.isTypedArray;function D(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function R(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function W(e){return"\\"+_[e]}function k(e,t){return function(n){return e(t(n))}}var N,$=Function.prototype,U=Object.prototype,q=x["__core-js_shared__"],z=$.toString,B=U.hasOwnProperty,V=(N=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||""))?"Symbol(src)_1."+N:"",G=U.toString,Y=z.call(Object),J=RegExp("^"+z.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),K=H?x.Buffer:void 0,Q=x.Symbol,X=k(Object.getPrototypeOf,Object),Z=U.propertyIsEnumerable,ee=Q?Q.toStringTag:void 0,te=function(){try{var e=function(e){return!(!Ce(e)||(t=e,V&&V in t))&&(Te(e)?J:b).test(function(e){if(null!=e){try{return z.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e));var t}(t=function(e,t){return null==e?void 0:e.defineProperty}(Object))?t:void 0;return e({},"",{}),e}catch(n){}var t}(),ne=K?K.isBuffer:void 0,re=k(Object.keys,Object),oe=Math.max,ie=Date.now,ae=Q?Q.prototype:void 0,ue=ae?ae.toString:void 0;function ce(e,t){var n=Ae(e),r=!n&&Se(e),o=!n&&!r&&Ee(e),i=!n&&!r&&!o&&Me(e),a=n||r||o||i,u=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=u.length;for(var l in e)!t&&!B.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ge(l,c))||u.push(l);return u}function le(e,t,n){var r=e[t];B.call(e,t)&&_e(r,n)&&(void 0!==n||t in e)||fe(e,t,n)}function fe(e,t,n){"__proto__"==t&&te?te(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function se(e){return null==e?void 0===e?p:l:ee&&ee in Object(e)?function(e){var t=B.call(e,ee),n=e[ee];try{e[ee]=void 0;var r=!0}catch(i){}var o=G.call(e);return r&&(t?e[ee]=n:delete e[ee]),o}(e):function(e){return G.call(e)}(e)}function de(e){return He(e)&&se(e)==r}function pe(e,t){return Oe(function(e,t,n){return t=oe(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=oe(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var u=Array(t+1);++o<t;)u[o]=r[o];return u[t]=n(a),D(e,this,u)}}(e,t,Re),e+"")}function ve(e){if("string"==typeof e)return e;if(Ae(e))return R(e,ve)+"";if(function(e){return"symbol"==typeof e||He(e)&&se(e)==d}(e))return ue?ue.call(e):"";var n=e+"";return"0"==n&&1/e==-t?"-0":n}function he(e,t,n,r){return void 0===e||_e(e,U[n])&&!B.call(r,n)?t:e}function ge(e,t){var r=typeof e;return!!(t=null==t?n:t)&&("number"==r||"symbol"!=r&&m.test(e))&&e>-1&&e%1==0&&e<t}function ye(e,t,n){if(!Ce(n))return!1;var r=typeof t;return!!("number"==r?xe(n)&&ge(t,n.length):"string"==r&&t in n)&&_e(n[t],e)}function be(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||U)}var me,je,we,Oe=(me=te?function(e,t){return te(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Re,je=0,we=0,function(){var e=ie(),t=16-(e-we);if(we=e,t>0){if(++je>=800)return arguments[0]}else je=0;return me.apply(void 0,arguments)});function _e(e,t){return e===t||e!=e&&t!=t}var Se=de(function(){return arguments}())?de:function(e){return He(e)&&B.call(e,"callee")&&!Z.call(e,"callee")},Ae=Array.isArray;function xe(e){return null!=e&&Pe(e.length)&&!Te(e)}var Ee=ne||function(){return!1};function Le(e){if(!He(e))return!1;var t=se(e);return t==a||t==i||"string"==typeof e.message&&"string"==typeof e.name&&!function(e){if(!He(e)||se(e)!=f)return!1;var t=X(e);if(null===t)return!0;var n=B.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&z.call(n)==Y}(e)}function Te(e){if(!Ce(e))return!1;var t=se(e);return t==u||t==c||t==o||t==s}function Pe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}function Ce(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function He(e){return null!=e&&"object"==typeof e}var Ie,Me=F?function(e){return function(t){return e(t)}}(F):function(e){return He(e)&&Pe(e.length)&&!!O[se(e)]},Fe=(Ie=function(e,t,n,r){!function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var u=t[i],c=r?r(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),o?fe(n,u,c):le(n,u,c)}}(t,function(e){return xe(e)?ce(e,!0):function(e){if(!Ce(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=be(e),n=[];for(var r in e)("constructor"!=r||!t&&B.call(e,r))&&n.push(r);return n}(e)}(t),e,r)},pe(function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=Ie.length>3&&"function"==typeof o?(r--,o):void 0,i&&ye(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var a=t[n];a&&Ie(e,a,0,o)}return e}));var De=pe(function(e,t){try{return D(e,void 0,t)}catch(n){return Le(n)?n:new Error(n)}});function Re(e){return e}C.exports=function(e,t,n){var r,o=P.imports._.templateSettings||P;n&&ye(e,t,n)&&(t=void 0),e=null==(r=e)?"":ve(r),t=Fe({},t,o,he);var i,a,u,c=Fe({},t.imports,o.imports,he),l=function(e){return xe(e)?ce(e):function(e){if(!be(e))return re(e);var t=[];for(var n in Object(e))B.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}(c),f=(i=c,R(l,function(e){return i[e]})),s=0,d=t.interpolate||j,p="__p += '",b=RegExp((t.escape||j).source+"|"+d.source+"|"+(d===T?y:j).source+"|"+(t.evaluate||j).source+"|$","g"),m=B.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/[\r\n]/g," ")+"\n":"";e.replace(b,function(t,n,r,o,i,c){return r||(r=o),p+=e.slice(s,c).replace(w,W),n&&(a=!0,p+="' +\n__e("+n+") +\n'"),i&&(u=!0,p+="';\n"+i+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),s=c+t.length,t}),p+="';\n";var O=B.call(t,"variable")&&t.variable;O||(p="with (obj) {\n"+p+"\n}\n"),p=(u?p.replace(v,""):p).replace(h,"$1").replace(g,"$1;"),p="function("+(O||"obj")+") {\n"+(O?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var _=De(function(){return Function(l,m+"return "+p).apply(void 0,f)});if(_.source=p,Le(_))throw _;return _}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),C=C.exports;var H={};Object.defineProperty(H,"__esModule",{value:!0}),H.restoreOriginalFootnotes=function(){Array.from(document.querySelectorAll("."+F)).forEach(function(e){return e.classList.remove(F)})},H.createDocumentFootnotes=function(e){var t,n,r,o,i,a,u,c,l,f,d,p=e.buttonTemplate,v=e.contentTemplate,h=e.numberResetSelector,g=(n=(t=document.querySelectorAll(s.FOOTNOTE_SELECTOR)).length?t[t.length-1].dataset.footnoteId:"0",1+parseInt(n,10));return(c=e,l=c.anchorPattern,f=c.scope,d=void 0===f?"":f,Array.from(document.querySelectorAll(d+' a[href^="#"]')).filter(function(e){return(e.href+e.rel).match(l)})).map((r=e,o=r.allowDuplicates,i=r.anchorParentSelector,a=r.footnoteSelector,u=[],function(e){var t="#"+e.href.split("#")[1].replace(/[:.+~*[\]]/g,"\\$&"),n=Array.from(document.querySelectorAll(t)).find(function(e){return o||!u.includes(e)}),r=n&&n.closest(a);if(r)return u.push(r),[e.closest(i)||e,r]})).filter(W).map(U).map($(g)).map(h?N(h):function(e){return e}).map(function(e,t){var n=(0,M.default)(e),r=(0,M.default)(t);return function(e,t){var o=(0,I.default)(e,3),i=o[0],a=o[1],u=o[2],c="".concat(t+1),l={number:u,id:c,content:k(a.innerHTML,i.id),reference:i.id},f=r(l);i.insertAdjacentHTML("beforebegin",'<span class="'.concat(D,'">').concat(n(l),"</span>"));var s=i.previousElementSibling,d=s.firstElementChild;return d.dataset.footnoteButton="",d.dataset.footnoteId=c,d.dataset.footnoteNumber="".concat(u),{id:c,button:d,host:s,content:f,isHovered:!1,maxHeight:0}}}(p,v))};var I=e(function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}),M=e(C),F="footnote-print-only",D="littlefoot-footnote__host",R=function(e){return e.classList.add(F)};function W(e){return void 0!==e}function k(e,t){var n=t.trim().replace(/\s+/g,"|"),r=new RegExp("(\\s|&nbsp;)*<\\s*a[^#<]*#("+n+")[^>]*>(.*?)<\\s*/\\s*a>","g"),o=e.trim().replace(r,"").replace("[]","");return o.startsWith("<")?o:"<p>"+o+"</p>"}var N=function(e){return function(t,n,r){var o=(0,I.default)(t,3),i=o[0],a=o[1],u=o[2],c=u?r[u-1][2]:0;return[i,a,i.closest(e)?1:c+1]}},$=function(e){return function(t,n){var r=(0,I.default)(t,2);return[r[0],r[1],e+n]}};function U(e){var t=(0,I.default)(e,2),n=t[0],r=t[1];return R(n),R(r),function e(t){var n,r,o=(n=t,r=":not(.".concat(F,")"),Array.from(n.children).filter(function(e){return 8!==e.nodeType&&(!r||e.matches(r))})),i=o.filter(function(e){return"HR"===e.tagName});o.length===i.length&&(i.concat(t).forEach(R),e(t.parentNode))}(r.parentElement),[n,r]}var q={};Object.defineProperty(q,"__esModule",{value:!0}),q.createAdapter=function(e){var t=(0,H.createDocumentFootnotes)(e).map(S.createFootnote);return{footnotes:function(){return t},unmount:function(){t.forEach(function(e){return e.unmount()}),(0,H.restoreOriginalFootnotes)()}}};var z={};Object.defineProperty(z,"__esModule",{value:!0}),z.littlefoot=Y,z.default=void 0;var B=e(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e});function V(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n}var G={activateDelay:100,activateOnHover:!1,allowDuplicates:!0,allowMultiple:!1,anchorParentSelector:"sup",anchorPattern:/(fn|footnote|note)[:\-_\d]/gi,dismissDelay:100,dismissOnUnhover:!1,footnoteSelector:"li",hoverDelay:250,contentTemplate:'<aside class="littlefoot-footnote" id="fncontent:<%= id %>" alt="Footnote <%= number %>" aria-live="polite"><div class="'.concat(b.CLASS_WRAPPER,'"><div class="').concat(b.CLASS_CONTENT,'" tabindex="0"><%= content %></div></div><div class="').concat(b.CLASS_TOOLTIP,'"></div></aside>'),buttonTemplate:'<button class="littlefoot-footnote__button littlefoot-footnote__button__ellipsis" id="<%= reference %>" title="See Footnote <%= number %>" aria-controls="fncontent:<%= id %>" aria-expanded="false" aria-label="Footnote <%= number %>" rel="footnote"><svg viewbox="0 0 31 6" preserveAspectRatio="xMidYMid"><circle r="3" cx="3" cy="3" fill="white"></circle><circle r="3" cx="15" cy="3" fill="white"></circle><circle r="3" cx="27" cy="3" fill="white"></circle></svg></button>'};function Y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(n,!0).forEach(function(t){(0,B.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},G,{},e),r=(0,q.createAdapter)(n),o=(0,t.createCore)(r,n),i=(0,s.addEventListeners)(o);return{activate:function(e){var t=o.findById(e);t&&o.activate(t)},dismiss:function(e,t){var n=e&&o.findById(e);n?o.dismiss(n,t):o.dismissAll(t)},unmount:function(){i(),o.unmount()},getSetting:function(e){return n[e]},updateSetting:function(e,t){n[e]=t}}}var J=Y;return z.default=J,z});
     1!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).littlefoot=e()}}(function(){var e=function(e){return e&&e.__esModule?e:{default:e}},t=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},n={getStyle:function(e,t){var n=(e.ownerDocument&&e.ownerDocument.defaultView||window).getComputedStyle(e);return n.getPropertyValue(t)||n[t]}},r={};Object.defineProperty(r,"__esModule",{value:!0}),r.getAvailableRoom=function(e){var t=parseFloat((0,n.getStyle)(e,"marginLeft")),r=e.offsetWidth-t,o=e.offsetHeight,i=e.getBoundingClientRect(),c=i.left+r/2,a=i.top+o/2;return{top:a,bottom:window.innerHeight-a,leftRelative:c/window.innerWidth}},r.getAvailableHeight=function(e,t){var r=u(e,t),o=parseInt((0,n.getStyle)(e,"marginTop"),10);return t[r?a:c]-o-15},r.repositionPopover=function(e,t){var n=u(e,t),r=e.dataset.footnotePosition,o=n?a:c;r!==o&&(e.dataset.footnotePosition=o,e.classList.remove("".concat(i).concat(r)),e.classList.add("".concat(i).concat(o)),e.style.transformOrigin="".concat(100*t.leftRelative,"% ").concat(n?"100%":"0"))},r.repositionTooltip=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=e.querySelector("."+o);n&&(n.style.left=100*t+"%")},r.CLASS_WRAPPER=r.CLASS_TOOLTIP=r.CLASS_CONTENT=void 0,r.CLASS_CONTENT="littlefoot-footnote__content";var o="littlefoot-footnote__tooltip";r.CLASS_TOOLTIP=o,r.CLASS_WRAPPER="littlefoot-footnote__wrapper";var i="is-positioned-",c="bottom",a="top";function u(e,t){var r=2*parseInt((0,n.getStyle)(e,"marginTop"),10)+e.offsetHeight;return t.bottom<r&&t.bottom<t.top}var l={};Object.defineProperty(l,"__esModule",{value:!0}),l.DEFAULT_SETTINGS=void 0;var f={activateDelay:100,activateOnHover:!1,allowDuplicates:!0,allowMultiple:!1,anchorParentSelector:"sup",anchorPattern:/(fn|footnote|note)[:\-_\d]/gi,dismissDelay:100,dismissOnUnhover:!1,footnoteSelector:"li",hoverDelay:250,contentTemplate:'<aside class="littlefoot-footnote" id="fncontent:<%= id %>" alt="Footnote <%= number %>" aria-live="polite"><div class="'.concat(r.CLASS_WRAPPER,'"><div class="').concat(r.CLASS_CONTENT,'" tabindex="0"><%= content %></div></div><div class="').concat(r.CLASS_TOOLTIP,'"></div></aside>'),buttonTemplate:'<button class="littlefoot-footnote__button littlefoot-footnote__button__ellipsis" id="<%= reference %>" title="See Footnote <%= number %>" aria-controls="fncontent:<%= id %>" aria-expanded="false" aria-label="Footnote <%= number %>" rel="footnote"><svg viewbox="0 0 31 6" preserveAspectRatio="xMidYMid"><circle r="3" cx="3" cy="3" fill="white"></circle><circle r="3" cx="15" cy="3" fill="white"></circle><circle r="3" cx="27" cy="3" fill="white"></circle></svg></button>'};l.DEFAULT_SETTINGS=f;var s={};Object.defineProperty(s,"__esModule",{value:!0}),s.createCore=function(e,t){var n=e.setup(t),r=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.activateDelay,r=e.activateCallback;t.isChanging()||(t.activate(r),t.reposition(),t.resize(),setTimeout(function(){t.ready()},n))}}(t),o=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.dismissDelay;t.isChanging()||(t.dismiss(),setTimeout(function(){t.remove()},n))}}(t);function i(e){n.filter(function(t){return t.id!==e.id}).forEach(o)}var c={activate:r,dismiss:o,findById:function(e){return n.find(function(t){return t.id===e})},dismissAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.dismissDelay;n.forEach(function(t){return o(t,e)})},repositionAll:function(){n.forEach(function(e){return e.reposition()})},resizeAll:function(){n.forEach(function(e){return e.resize()})},toggle:function(e){var n=t.allowMultiple;e.isActive()?o(e):(n||i(e),r(e))},hover:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.hoverDelay,o=t.activateOnHover,c=t.allowMultiple;e.startHovering(),o&&!e.isActive()&&(c||i(e),r(e,n))},unhover:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.hoverDelay,i=t.dismissOnUnhover;e.stopHovering(),i&&setTimeout(function(){n.some(function(e){return e.isHovered()})||n.forEach(o)},r)}},a=e.addListeners(c);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(n,!0).forEach(function(t){(0,d.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},c,{unmount:function(){a(),n.forEach(function(e){return e.destroy()}),e.cleanup()}})};var d=e(t);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var v=/<%=([\s\S]+?)%>/g,y={};(function(e){var t,n=1/0,r="[object Null]",o="[object Symbol]",i="[object Undefined]",c=/[&<>"']/g,a=RegExp(c.source),u="object"==typeof e&&e&&e.Object===Object&&e,l="object"==typeof self&&self&&self.Object===Object&&self,f=u||l||Function("return this")(),s=(t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},function(e){return null==t?void 0:t[e]}),d=Object.prototype,p=d.hasOwnProperty,h=d.toString,g=f.Symbol,m=g?g.toStringTag:void 0,b=g?g.prototype:void 0,j=b?b.toString:void 0,w={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:v,variable:"",imports:{_:{escape:function(e){return(e=null==(t=e)?"":O(t))&&a.test(e)?e.replace(c,s):e;var t}}}};function O(e){if("string"==typeof e)return e;if(S(e))return function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(e,O)+"";if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&function(e){return null==e?void 0===e?i:r:m&&m in Object(e)?function(e){var t=p.call(e,m),n=e[m];try{e[m]=void 0;var r=!0}catch(i){}var o=h.call(e);return r&&(t?e[m]=n:delete e[m]),o}(e):function(e){return h.call(e)}(e)}(e)==o}(e))return j?j.call(e):"";var t=e+"";return"0"==t&&1/e==-n?"-0":t}var S=Array.isArray;y=w}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var h={exports:{}};(function(e){var t=1/0,n=9007199254740991,r="[object Arguments]",o="[object AsyncFunction]",i="[object DOMException]",c="[object Error]",a="[object Function]",u="[object GeneratorFunction]",l="[object Null]",f="[object Object]",s="[object Proxy]",d="[object Symbol]",p="[object Undefined]",g=/\b__p \+= '';/g,m=/\b(__p \+=) '' \+/g,b=/(__e\(.*?\)|\b__t\)) \+\n'';/g,j=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,w=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,S=/($^)/,_=/['\n\r\u2028\u2029\\]/g,A={};A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A[r]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object Boolean]"]=A["[object DataView]"]=A["[object Date]"]=A[c]=A[a]=A["[object Map]"]=A["[object Number]"]=A[f]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object WeakMap]"]=!1;var x={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},E="object"==typeof e&&e&&e.Object===Object&&e,L="object"==typeof self&&self&&self.Object===Object&&self,P=E||L||Function("return this")(),T="object"==typeof h.exports&&h.exports&&!h.exports.nodeType&&h.exports,D=T&&h&&!h.nodeType&&h,M=D&&D.exports===T,C=M&&E.process,F=function(){try{return D&&D.require&&D.require("util").types||C&&C.binding&&C.binding("util")}catch(e){}}(),H=F&&F.isTypedArray;function I(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function R(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function k(e){return"\\"+x[e]}function W(e,t){return function(n){return e(t(n))}}var N,U=Function.prototype,$=Object.prototype,z=P["__core-js_shared__"],q=U.toString,B=$.hasOwnProperty,V=(N=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||""))?"Symbol(src)_1."+N:"",G=$.toString,Y=q.call(Object),J=RegExp("^"+q.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),K=M?P.Buffer:void 0,Q=P.Symbol,X=W(Object.getPrototypeOf,Object),Z=$.propertyIsEnumerable,ee=Q?Q.toStringTag:void 0,te=function(){try{var e=function(e){return!(!De(e)||(t=e,V&&V in t))&&(Pe(e)?J:w).test(function(e){if(null!=e){try{return q.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e));var t}(t=function(e,t){return null==e?void 0:e.defineProperty}(Object))?t:void 0;return e({},"",{}),e}catch(n){}var t}(),ne=K?K.isBuffer:void 0,re=W(Object.keys,Object),oe=Math.max,ie=Date.now,ce=Q?Q.prototype:void 0,ae=ce?ce.toString:void 0;function ue(e,t){var n=Ae(e),r=!n&&_e(e),o=!n&&!r&&Ee(e),i=!n&&!r&&!o&&Fe(e),c=n||r||o||i,a=c?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=a.length;for(var l in e)!t&&!B.call(e,l)||c&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||he(l,u))||a.push(l);return a}function le(e,t,n){var r=e[t];B.call(e,t)&&Se(r,n)&&(void 0!==n||t in e)||fe(e,t,n)}function fe(e,t,n){"__proto__"==t&&te?te(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function se(e){return null==e?void 0===e?p:l:ee&&ee in Object(e)?function(e){var t=B.call(e,ee),n=e[ee];try{e[ee]=void 0;var r=!0}catch(i){}var o=G.call(e);return r&&(t?e[ee]=n:delete e[ee]),o}(e):function(e){return G.call(e)}(e)}function de(e){return Me(e)&&se(e)==r}function pe(e,t){return Oe(function(e,t,n){return t=oe(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=oe(r.length-t,0),c=Array(i);++o<i;)c[o]=r[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=r[o];return a[t]=n(c),I(e,this,a)}}(e,t,Re),e+"")}function ve(e){if("string"==typeof e)return e;if(Ae(e))return R(e,ve)+"";if(function(e){return"symbol"==typeof e||Me(e)&&se(e)==d}(e))return ae?ae.call(e):"";var n=e+"";return"0"==n&&1/e==-t?"-0":n}function ye(e,t,n,r){return void 0===e||Se(e,$[n])&&!B.call(r,n)?t:e}function he(e,t){var r=typeof e;return!!(t=null==t?n:t)&&("number"==r||"symbol"!=r&&O.test(e))&&e>-1&&e%1==0&&e<t}function ge(e,t,n){if(!De(n))return!1;var r=typeof t;return!!("number"==r?xe(n)&&he(t,n.length):"string"==r&&t in n)&&Se(n[t],e)}function me(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||$)}var be,je,we,Oe=(be=te?function(e,t){return te(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Re,je=0,we=0,function(){var e=ie(),t=16-(e-we);if(we=e,t>0){if(++je>=800)return arguments[0]}else je=0;return be.apply(void 0,arguments)});function Se(e,t){return e===t||e!=e&&t!=t}var _e=de(function(){return arguments}())?de:function(e){return Me(e)&&B.call(e,"callee")&&!Z.call(e,"callee")},Ae=Array.isArray;function xe(e){return null!=e&&Te(e.length)&&!Pe(e)}var Ee=ne||function(){return!1};function Le(e){if(!Me(e))return!1;var t=se(e);return t==c||t==i||"string"==typeof e.message&&"string"==typeof e.name&&!function(e){if(!Me(e)||se(e)!=f)return!1;var t=X(e);if(null===t)return!0;var n=B.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&q.call(n)==Y}(e)}function Pe(e){if(!De(e))return!1;var t=se(e);return t==a||t==u||t==o||t==s}function Te(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}function De(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Me(e){return null!=e&&"object"==typeof e}var Ce,Fe=H?function(e){return function(t){return e(t)}}(H):function(e){return Me(e)&&Te(e.length)&&!!A[se(e)]},He=(Ce=function(e,t,n,r){!function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,c=t.length;++i<c;){var a=t[i],u=r?r(n[a],e[a],a,n,e):void 0;void 0===u&&(u=e[a]),o?fe(n,a,u):le(n,a,u)}}(t,function(e){return xe(e)?ue(e,!0):function(e){if(!De(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=me(e),n=[];for(var r in e)("constructor"!=r||!t&&B.call(e,r))&&n.push(r);return n}(e)}(t),e,r)},pe(function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=Ce.length>3&&"function"==typeof o?(r--,o):void 0,i&&ge(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var c=t[n];c&&Ce(e,c,0,o)}return e}));var Ie=pe(function(e,t){try{return I(e,void 0,t)}catch(n){return Le(n)?n:new Error(n)}});function Re(e){return e}h.exports=function(e,t,n){var r,o=y.imports._.templateSettings||y;n&&ge(e,t,n)&&(t=void 0),e=null==(r=e)?"":ve(r),t=He({},t,o,ye);var i,c,a,u=He({},t.imports,o.imports,ye),l=function(e){return xe(e)?ue(e):function(e){if(!me(e))return re(e);var t=[];for(var n in Object(e))B.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}(u),f=(i=u,R(l,function(e){return i[e]})),s=0,d=t.interpolate||S,p="__p += '",h=RegExp((t.escape||S).source+"|"+d.source+"|"+(d===v?j:S).source+"|"+(t.evaluate||S).source+"|$","g"),w=B.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/[\r\n]/g," ")+"\n":"";e.replace(h,function(t,n,r,o,i,u){return r||(r=o),p+=e.slice(s,u).replace(_,k),n&&(c=!0,p+="' +\n__e("+n+") +\n'"),i&&(a=!0,p+="';\n"+i+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),s=u+t.length,t}),p+="';\n";var O=B.call(t,"variable")&&t.variable;O||(p="with (obj) {\n"+p+"\n}\n"),p=(a?p.replace(g,""):p).replace(m,"$1").replace(b,"$1;"),p="function("+(O||"obj")+") {\n"+(O?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(c?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var A=Ie(function(){return Function(l,w+"return "+p).apply(void 0,f)});if(A.source=p,Le(A))throw A;return A}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),h=h.exports;var g={};function m(e){return e?n.getStyle(e,"fontSize")||m(e.parentElement):n.getStyle(window.document.documentElement,"fontSize")}g.pixels=function e(t,n){var r=n&&n.ownerDocument&&n.ownerDocument.defaultView||window,o=r.document.documentElement||r.document.body,i=function(e){var t=e||"0",n=parseFloat(t),r=t.match(/[\d-.]+(\w+)$/);return[n,(r&&r.length>1?r[1]:"").toLowerCase()]}(t),c=i[0];switch(i[1]){case"rem":return c*e(m(window.document.documentElement));case"em":return c*e(m(n),n&&n.parentElement);case"in":return 96*c;case"q":return 96*c/25.4/4;case"mm":return 96*c/25.4;case"cm":return 96*c*10/25.4;case"pt":return 96*c/72;case"pc":return 96*c/6;case"vh":return(c*r.innerHeight||o.clientWidth)/100;case"vw":return(c*r.innerWidth||o.clientHeight)/100;case"vmin":return c*Math.min(r.innerWidth||o.clientWidth,r.innerHeight||o.clientHeight)/100;case"vmax":return c*Math.max(r.innerWidth||o.clientWidth,r.innerHeight||o.clientHeight)/100;default:return c}};var b={};Object.defineProperty(b,"__esModule",{value:!0}),b.createFootnote=function(e){var t=e.id,o=e.button,i=e.content,c=e.host,a=e.popover,u=e.wrapper,l=!1,f=0;return{id:t,activate:function(e){o.classList.add(w),o.setAttribute("aria-expanded","true"),o.classList.add(j),o.insertAdjacentElement("afterend",a),a.style.maxWidth="".concat(document.body.clientWidth,"px");var t=(0,n.getStyle)(i,"maxHeight");f=Math.round((0,g.pixels)(t,i)),"function"==typeof e&&e(a,o)},dismiss:function(){o.classList.add(w),o.blur(),o.setAttribute("aria-expanded","false"),o.classList.remove(j)},isActive:function(){return o.classList.contains(j)},isChanging:function(){return o.classList.contains(w)},isHovered:function(){return l},ready:function(){a.classList.add(j),o.classList.remove(w)},remove:function(){S(a),o.classList.remove(w)},reposition:function(){if(a.parentElement){var e=(0,r.getAvailableRoom)(o),t=Math.min(f,(0,r.getAvailableHeight)(a,e));i.style.maxHeight=t+"px",(0,r.repositionPopover)(a,e),a.offsetHeight<=i.scrollHeight&&a.classList.add(O)}},resize:function(){if(a.parentElement){var e=(0,r.getAvailableRoom)(o),t=i.offsetWidth,c=parseInt((0,n.getStyle)(o,"marginLeft"),10),l=-e.leftRelative*t+c+o.offsetWidth/2;a.style.left=l+"px",u.style.maxWidth=t+"px",(0,r.repositionTooltip)(a,e.leftRelative)}},startHovering:function(){l=!0},stopHovering:function(){l=!1},destroy:function(){S(c)}}};var j="is-active",w="is-changing",O="is-scrollable";function S(e){e.parentNode&&e.parentNode.removeChild(e)}var _={};(function(e){var t="Expected a function",n=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,a=/^0o[0-7]+$/i,u=parseInt,l="object"==typeof e&&e&&e.Object===Object&&e,f="object"==typeof self&&self&&self.Object===Object&&self,s=l||f||Function("return this")(),d=Object.prototype.toString,p=Math.max,v=Math.min,y=function(){return s.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&d.call(e)==r}(e))return n;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var l=c.test(e);return l||a.test(e)?u(e.slice(2),l?2:8):i.test(e)?n:+e}_=function(e,n,r){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(t);return h(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),function(e,n,r){var o,i,c,a,u,l,f=0,s=!1,d=!1,m=!0;if("function"!=typeof e)throw new TypeError(t);function b(t){var n=o,r=i;return o=i=void 0,f=t,a=e.apply(r,n)}function j(e){var t=e-l;return void 0===l||t>=n||t<0||d&&e-f>=c}function w(){var e=y();if(j(e))return O(e);u=setTimeout(w,function(e){var t=n-(e-l);return d?v(t,c-(e-f)):t}(e))}function O(e){return u=void 0,m&&o?b(e):(o=i=void 0,a)}function S(){var e=y(),t=j(e);if(o=arguments,i=this,l=e,t){if(void 0===u)return function(e){return f=e,u=setTimeout(w,n),s?b(e):a}(l);if(d)return u=setTimeout(w,n),b(l)}return void 0===u&&(u=setTimeout(w,n)),a}return n=g(n)||0,h(r)&&(s=!!r.leading,c=(d="maxWait"in r)?p(g(r.maxWait)||0,n):c,m="trailing"in r?!!r.trailing:m),S.cancel=function(){void 0!==u&&clearTimeout(u),f=0,o=l=i=u=void 0},S.flush=function(){return void 0===u?a:O(y())},S}(e,n,{leading:o,maxWait:n,trailing:i})}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var A,x={};A=function(){"use strict";function e(){if(!(this instanceof e))return new e;this.size=0,this.uid=0,this.selectors=[],this.indexes=Object.create(this.indexes),this.activeIndexes=[]}var t=window.document.documentElement,n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.msMatchesSelector;e.prototype.matchesSelector=function(e,t){return n.call(e,t)},e.prototype.querySelectorAll=function(e,t){return t.querySelectorAll(e)},e.prototype.indexes=[];var r=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;e.prototype.indexes.push({name:"ID",selector:function(e){var t;if(t=e.match(r))return t[0].slice(1)},element:function(e){if(e.id)return[e.id]}});var o=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;e.prototype.indexes.push({name:"CLASS",selector:function(e){var t;if(t=e.match(o))return t[0].slice(1)},element:function(e){var t=e.className;if(t){if("string"==typeof t)return t.split(/\s/);if("object"==typeof t&&"baseVal"in t)return t.baseVal.split(/\s/)}}});var i,c=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;e.prototype.indexes.push({name:"TAG",selector:function(e){var t;if(t=e.match(c))return t[0].toUpperCase()},element:function(e){return[e.nodeName.toUpperCase()]}}),e.prototype.indexes.default={name:"UNIVERSAL",selector:function(){return!0},element:function(){return[!0]}},i="function"==typeof window.Map?window.Map:function(){function e(){this.map={}}return e.prototype.get=function(e){return this.map[e+" "]},e.prototype.set=function(e,t){this.map[e+" "]=t},e}();var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function u(e,t){var n,r,o,i,c,u,l=(e=e.slice(0).concat(e.default)).length,f=t,s=[];do{if(a.exec(""),(o=a.exec(f))&&(f=o[3],o[2]||!f))for(n=0;n<l;n++)if(c=(u=e[n]).selector(o[1])){for(r=s.length,i=!1;r--;)if(s[r].index===u&&s[r].key===c){i=!0;break}i||s.push({index:u,key:c});break}}while(o);return s}function l(e,t){var n,r,o;for(n=0,r=e.length;n<r;n++)if(o=e[n],t.isPrototypeOf(o))return o}function f(e,t){return e.id-t.id}return e.prototype.logDefaultIndexUsed=function(){},e.prototype.add=function(e,t){var n,r,o,c,a,f,s,d,p=this.activeIndexes,v=this.selectors;if("string"==typeof e){for(n={id:this.uid++,selector:e,data:t},s=u(this.indexes,e),r=0;r<s.length;r++)c=(d=s[r]).key,(a=l(p,o=d.index))||((a=Object.create(o)).map=new i,p.push(a)),o===this.indexes.default&&this.logDefaultIndexUsed(n),(f=a.map.get(c))||(f=[],a.map.set(c,f)),f.push(n);this.size++,v.push(e)}},e.prototype.remove=function(e,t){if("string"==typeof e){var n,r,o,i,c,a,l,f,s=this.activeIndexes,d={},p=1===arguments.length;for(n=u(this.indexes,e),o=0;o<n.length;o++)for(r=n[o],i=s.length;i--;)if(a=s[i],r.index.isPrototypeOf(a)){if(l=a.map.get(r.key))for(c=l.length;c--;)(f=l[c]).selector!==e||!p&&f.data!==t||(l.splice(c,1),d[f.id]=!0);break}this.size-=Object.keys(d).length}},e.prototype.queryAll=function(e){if(!this.selectors.length)return[];var t,n,r,o,i,c,a,u,l={},s=[],d=this.querySelectorAll(this.selectors.join(", "),e);for(t=0,r=d.length;t<r;t++)for(i=d[t],n=0,o=(c=this.matches(i)).length;n<o;n++)l[(u=c[n]).id]?a=l[u.id]:(a={id:u.id,selector:u.selector,data:u.data,elements:[]},l[u.id]=a,s.push(a)),a.elements.push(i);return s.sort(f)},e.prototype.matches=function(e){if(!e)return[];var t,n,r,o,i,c,a,u,l,s,d,p=this.activeIndexes,v={},y=[];for(t=0,o=p.length;t<o;t++)if(u=(a=p[t]).element(e))for(n=0,i=u.length;n<i;n++)if(l=a.map.get(u[n]))for(r=0,c=l.length;r<c;r++)!v[d=(s=l[r]).id]&&this.matchesSelector(e,s.selector)&&(v[d]=!0,y.push(s));return y.sort(f)},e},"object"==typeof x?x=A():this.SelectorSet=A();var E,L,P={exports:{}};E=this,L=function(e,t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var n={},r={},o=new WeakMap,i=new WeakMap,c=new WeakMap,a=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function u(e,t,n){var r=e[t];return e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)},e}function l(){o.set(this,!0)}function f(){o.set(this,!0),i.set(this,!0)}function s(){return c.get(this)||null}function d(e,t){a&&Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:t||a.get})}function p(e){var t=(1===e.eventPhase?r:n)[e.type];if(t){var a=function(e,t,n){var r=[],o=t;do{if(1!==o.nodeType)break;var i=e.matches(o);if(i.length){var c={node:o,observers:i};n?r.unshift(c):r.push(c)}}while(o=o.parentElement);return r}(t,e.target,1===e.eventPhase);if(a.length){u(e,"stopPropagation",l),u(e,"stopImmediatePropagation",f),d(e,s);for(var p=0,v=a.length;p<v&&!o.get(e);p++){var y=a[p];c.set(e,y.node);for(var h=0,g=y.observers.length;h<g&&!i.get(e);h++)y.observers[h].data.call(y.node,e)}c.delete(e),d(e)}}}e.off=function(e,t,o){var i=!!(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).capture,c=i?r:n,a=c[e];a&&(a.remove(t,o),a.size||(delete c[e],document.removeEventListener(e,p,i)))},e.on=function(e,o,i){var c=!!(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).capture,a=c?r:n,u=a[e];u||(u=new t,a[e]=u,document.addEventListener(e,p,c)),u.add(o,i)},Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof P.exports?L(P.exports,x):L((E=E||self)["delegated-events"]={},E.SelectorSet),P=P.exports;var T={};Object.defineProperty(T,"__esModule",{value:!0}),T.bindScrollHandler=function(e,t){var n=(0,D.default)(function(e){return function(t){var n=t.currentTarget,r=-t.deltaY;r>0&&(e.classList.remove(H),n.scrollTop<r&&(n.scrollTop=0,t.preventDefault())),r<=0&&r<n.clientHeight+n.scrollTop-n.scrollHeight&&(e.classList.add(H),n.scrollTop=n.scrollHeight,t.preventDefault())}}(t));e.addEventListener("mousewheel",n),e.addEventListener("wheel",n)},T.addListeners=function(e){var t,n=e.dismissAll,r=e.findById,o=e.hover,i=e.repositionAll,c=e.resizeAll,a=e.toggle,u=e.unhover,l=function(e,t,n){return function(r){var o=R(I(r.target,M)),i=o&&e(o);i?t(i):I(r.target,F)||n()}}(r,a,n),f=(t=n,function(e){return 27===e.keyCode&&t()}),s=(0,D.default)(i),d=(0,D.default)(c),p=k(r,o),v=k(r,u);return document.addEventListener("touchend",l),document.addEventListener("click",l),document.addEventListener("keyup",f),document.addEventListener("gestureend",s),window.addEventListener("scroll",s),window.addEventListener("resize",d),(0,P.on)("mouseover",C,p),(0,P.on)("mouseout",C,v),function(){document.removeEventListener("touchend",l),document.removeEventListener("click",l),document.removeEventListener("keyup",f),document.removeEventListener("gestureend",s),window.removeEventListener("scroll",s),window.removeEventListener("resize",d),(0,P.off)("mouseover",C,p),(0,P.off)("mouseout",C,v)}};var D=e(_),M="[data-footnote-button]",C="[data-footnote-id]",F="[data-footnote-popover]",H="is-fully-scrolled";function I(e,t){return e&&e.closest(t)||void 0}function R(e){return e?e.dataset.footnoteId:void 0}function k(e,t){return function(n){n.preventDefault();var r=R(I(n.target,C)),o=r&&e(r);o&&t(o)}}var W={};Object.defineProperty(W,"__esModule",{value:!0}),W.setup=function(e){var t=e.allowDuplicates,n=e.anchorParentSelector,o=e.anchorPattern,i=e.buttonTemplate,c=e.contentTemplate,a=e.footnoteSelector,u=e.numberResetSelector;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return B(document,t+' a[href*="#"]').filter(function(t){return(t.href+t.rel).match(e)})}(o,e.scope).map(function(e,t,n){var r=[];return function(o){var i="#"+o.href.split("#")[1].replace(/[:.+~*[\]]/g,"\\$&"),c=B(document,i).find(function(t){return e||!r.includes(t)}),a=c&&c.closest(n);if(a)return r.push(a),[o.closest(t)||o,a]}}(t,n,a)).filter(G).map(Q).map(K).map(u?J(u):function(e){return e}).map(function(e,t){var n=(0,U.default)(e),o=(0,U.default)(t);return function(e,t){var i=(0,N.default)(e,3),c=i[0],a=i[1],u=i[2],l="".concat(t+1),f={number:u,id:l,content:Y(a.innerHTML,c.id),reference:c.id};c.insertAdjacentHTML("beforebegin",'<span class="'.concat(z,'">').concat(n(f),"</span>"));var s=c.previousElementSibling,d=s.firstElementChild;d.dataset.footnoteButton="",d.dataset.footnoteId=l,d.dataset.footnoteNumber="".concat(u);var p,v,y=(p=o(f),(v=document.createElement("div")).innerHTML=p,v.firstElementChild);y.dataset.footnotePopover="",y.dataset.footnoteId=l;var h=V(y,r.CLASS_WRAPPER)||y,g=V(y,r.CLASS_CONTENT);return(0,T.bindScrollHandler)(g,y),{id:l,button:d,host:s,popover:y,content:g,wrapper:h}}}(i,c)).map(b.createFootnote)},W.cleanup=function(){B(document,"."+$).forEach(function(e){return e.classList.remove($)})};var N=e(function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}),U=e(h),$="footnote-print-only",z="littlefoot-footnote__host",q=function(e){return e.classList.add($)};function B(e,t){return Array.from(e.querySelectorAll(t))}function V(e,t){return e.querySelector("."+t)}function G(e){return void 0!==e}function Y(e,t){var n=t.trim().replace(/\s+/g,"|"),r=new RegExp("(\\s|&nbsp;)*<\\s*a[^#<]*#("+n+")[^>]*>(.*?)<\\s*/\\s*a>","g"),o=e.trim().replace(r,"").replace("[]","");return o.startsWith("<")?o:"<p>"+o+"</p>"}var J=function(e){return function(t,n,r){var o=(0,N.default)(t,3),i=o[0],c=o[1],a=o[2],u=a?r[a-1][2]:0;return[i,c,i.closest(e)?1:u+1]}},K=function(e,t){var n=(0,N.default)(e,2);return[n[0],n[1],1+t]};function Q(e){var t=(0,N.default)(e,2),n=t[0],r=t[1];return q(n),q(r),function e(t){var n,r,o=(n=t,r=":not(.".concat($,")"),Array.from(n.children).filter(function(e){return 8!==e.nodeType&&(!r||e.matches(r))})),i=o.filter(function(e){return"HR"===e.tagName});o.length===i.length&&(i.concat(t).forEach(q),e(t.parentNode))}(r.parentElement),[n,r]}var X={};Object.defineProperty(X,"__esModule",{value:!0}),X.littlefoot=te,X.default=void 0;var Z=e(t);function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(n,!0).forEach(function(t){(0,Z.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},l.DEFAULT_SETTINGS,{},e),n=(0,s.createCore)({setup:W.setup,addListeners:T.addListeners,cleanup:W.cleanup},t);return{activate:function(e){var t=n.findById(e);t&&n.activate(t)},dismiss:function(e,t){var r=e&&n.findById(e);r?n.dismiss(r,t):n.dismissAll(t)},unmount:function(){n.unmount()},getSetting:function(e){return t[e]},updateSetting:function(e,n){t[e]=n}}}var ne=te;return X.default=ne,X});
  • _plugins_/bigfoot/trunk/javascript/littlefoot.min.js

    r115983 r117559  
    1 !function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).littlefoot=e()}(function(){var e=function(e){return e&&e.__esModule?e:{default:e}},i={};Object.defineProperty(i,"__esModule",{value:!0}),i.createCore=function(o,i){var a=(r=o,u=i,function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:u.activateDelay,n=u.activateCallback;e.isChanging()||(e.startChanging(),e.activate(n),r.footnotes().forEach(function(e){e.reposition(),e.resize()}),setTimeout(function(){e.ready(),e.stopChanging()},t))}),c=(n=i,function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:n.dismissDelay;e.isChanging()||(e.startChanging(),e.dismiss(),setTimeout(function(){e.remove(),e.stopChanging()},t))}),n,r,u;return{activate:a,dismiss:c,findById:function(t){return o.footnotes().find(function(e){return e.getId()===t})},unmount:o.unmount,dismissAll:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:i.dismissDelay;o.footnotes().forEach(function(e){return c(e,t)})},repositionAll:function(){o.footnotes().forEach(function(e){return e.reposition()})},resizeAll:function(){o.footnotes().forEach(function(e){return e.resize()})},toggle:function(t){var e=i.allowMultiple;t.isActive()?c(t):(e||o.footnotes().filter(function(e){return e.getId()!==t.getId()}).forEach(c),a(t))},hover:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:i.hoverDelay,n=i.activateOnHover,r=i.allowMultiple;t.startHovering(),n&&!t.isActive()&&(r||o.footnotes().filter(function(e){return e.getId()!==t.getId()}).forEach(c),a(t,e))},unhover:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:i.hoverDelay,n=i.dismissOnUnhover;e.stopHovering(),n&&setTimeout(function(){o.footnotes().some(function(e){return e.isHovered()})||o.footnotes().forEach(c)},t)}}};var c={};Object.defineProperty(c,"__esModule",{value:!0}),c.getStyle=function(e,t){var n=(e.ownerDocument&&e.ownerDocument.defaultView||window).getComputedStyle(e);return n.getPropertyValue(t)||n[t]};var r={};function f(e){return e?c.getStyle(e,"fontSize")||f(e.parentElement):c.getStyle(window.document.documentElement,"fontSize")}Object.defineProperty(r,"__esModule",{value:!0}),r.pixels=function e(t,n){var r=n&&n.ownerDocument&&n.ownerDocument.defaultView||window,o=r.document.documentElement||r.document.body,i=(u=(c=t)||"0",l=parseFloat(u),s=u.match(/[\d-.]+(\w+)$/),[l,(s&&1<s.length?s[1]:"").toLowerCase()]),a=i[0],c,u,l,s;switch(i[1]){case"rem":return a*e(f(window.document.documentElement));case"em":return a*e(f(n),n&&n.parentElement);case"in":return 96*a;case"q":return 96*a/25.4/4;case"mm":return 96*a/25.4;case"cm":return 96*a*10/25.4;case"pt":return 96*a/72;case"pc":return 96*a/6;case"vh":return(a*r.innerHeight||o.clientWidth)/100;case"vw":return(a*r.innerWidth||o.clientHeight)/100;case"vmin":return a*Math.min(r.innerWidth||o.clientWidth,r.innerHeight||o.clientHeight)/100;case"vmax":return a*Math.max(r.innerWidth||o.clientWidth,r.innerHeight||o.clientHeight)/100;default:return a}};var o={};(function(e){var b="Expected a function",i=NaN,a="[object Symbol]",c=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,f=parseInt,t="object"==typeof e&&e&&e.Object===Object&&e,n="object"==typeof self&&self&&self.Object===Object&&self,r=t||n||Function("return this")(),d=Object.prototype.toString,m=Math.max,j=Math.min,w=function(){return r.Date.now()};function O(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||(n=t)&&"object"==typeof n&&d.call(t)==a)return i;var t,n;if(O(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=O(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(c,"");var o=l.test(e);return o||s.test(e)?f(e.slice(2),o?2:8):u.test(e)?i:+e}o=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(b);return O(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),function(r,o,e){var i,a,c,u,l,s,f=0,d=!1,p=!1,t=!0;if("function"!=typeof r)throw new TypeError(b);function v(e){var t=i,n=a;return i=a=void 0,f=e,u=r.apply(n,t)}function h(e){var t=e-s;return void 0===s||o<=t||t<0||p&&c<=e-f}function g(){var e=w(),t,n;if(h(e))return y(e);l=setTimeout(g,(n=o-((t=e)-s),p?j(n,c-(t-f)):n))}function y(e){return l=void 0,t&&i?v(e):(i=a=void 0,u)}function n(){var e=w(),t=h(e),n;if(i=arguments,a=this,s=e,t){if(void 0===l)return f=n=s,l=setTimeout(g,o),d?v(n):u;if(p)return l=setTimeout(g,o),v(s)}return void 0===l&&(l=setTimeout(g,o)),u}return o=_(o)||0,O(e)&&(d=!!e.leading,c=(p="maxWait"in e)?m(_(e.maxWait)||0,o):c,t="trailing"in e?!!e.trailing:t),n.cancel=function(){void 0!==l&&clearTimeout(l),i=s=a=l=void(f=0)},n.flush=function(){return void 0===l?u:y(w())},n}(e,t,{leading:r,maxWait:t,trailing:o})}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var t,n={};t=function(){"use strict";function e(){if(!(this instanceof e))return new e;this.size=0,this.uid=0,this.selectors=[],this.indexes=Object.create(this.indexes),this.activeIndexes=[]}var t=window.document.documentElement,n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.msMatchesSelector;e.prototype.matchesSelector=function(e,t){return n.call(e,t)},e.prototype.querySelectorAll=function(e,t){return t.querySelectorAll(e)};var r=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;(e.prototype.indexes=[]).push({name:"ID",selector:function(e){var t;if(t=e.match(r))return t[0].slice(1)},element:function(e){if(e.id)return[e.id]}});var o=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;e.prototype.indexes.push({name:"CLASS",selector:function(e){var t;if(t=e.match(o))return t[0].slice(1)},element:function(e){var t=e.className;if(t){if("string"==typeof t)return t.split(/\s/);if("object"==typeof t&&"baseVal"in t)return t.baseVal.split(/\s/)}}});var d,i=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;function a(){this.map={}}e.prototype.indexes.push({name:"TAG",selector:function(e){var t;if(t=e.match(i))return t[0].toUpperCase()},element:function(e){return[e.nodeName.toUpperCase()]}}),e.prototype.indexes.default={name:"UNIVERSAL",selector:function(){return!0},element:function(){return[!0]}},d="function"==typeof window.Map?window.Map:(a.prototype.get=function(e){return this.map[e+" "]},a.prototype.set=function(e,t){this.map[e+" "]=t},a);var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function p(e,t){var n,r,o,i,a,c,u=(e=e.slice(0).concat(e.default)).length,l=t,s=[];do{if(f.exec(""),(o=f.exec(l))&&(l=o[3],o[2]||!l))for(n=0;n<u;n++)if(a=(c=e[n]).selector(o[1])){for(r=s.length,i=!1;r--;)if(s[r].index===c&&s[r].key===a){i=!0;break}i||s.push({index:c,key:a});break}}while(o);return s}function v(e,t){var n,r,o;for(n=0,r=e.length;n<r;n++)if(o=e[n],t.isPrototypeOf(o))return o}function h(e,t){return e.id-t.id}return e.prototype.logDefaultIndexUsed=function(){},e.prototype.add=function(e,t){var n,r,o,i,a,c,u,l,s=this.activeIndexes,f=this.selectors;if("string"==typeof e){for(n={id:this.uid++,selector:e,data:t},u=p(this.indexes,e),r=0;r<u.length;r++)i=(l=u[r]).key,(a=v(s,o=l.index))||((a=Object.create(o)).map=new d,s.push(a)),o===this.indexes.default&&this.logDefaultIndexUsed(n),(c=a.map.get(i))||(c=[],a.map.set(i,c)),c.push(n);this.size++,f.push(e)}},e.prototype.remove=function(e,t){if("string"==typeof e){var n,r,o,i,a,c,u,l,s=this.activeIndexes,f={},d=1===arguments.length;for(n=p(this.indexes,e),o=0;o<n.length;o++)for(r=n[o],i=s.length;i--;)if(c=s[i],r.index.isPrototypeOf(c)){if(u=c.map.get(r.key))for(a=u.length;a--;)(l=u[a]).selector!==e||!d&&l.data!==t||(u.splice(a,1),f[l.id]=!0);break}this.size-=Object.keys(f).length}},e.prototype.queryAll=function(e){if(!this.selectors.length)return[];var t,n,r,o,i,a,c,u,l={},s=[],f=this.querySelectorAll(this.selectors.join(", "),e);for(t=0,r=f.length;t<r;t++)for(i=f[t],n=0,o=(a=this.matches(i)).length;n<o;n++)l[(u=a[n]).id]?c=l[u.id]:(c={id:u.id,selector:u.selector,data:u.data,elements:[]},l[u.id]=c,s.push(c)),c.elements.push(i);return s.sort(h)},e.prototype.matches=function(e){if(!e)return[];var t,n,r,o,i,a,c,u,l,s,f,d=this.activeIndexes,p={},v=[];for(t=0,o=d.length;t<o;t++)if(u=(c=d[t]).element(e))for(n=0,i=u.length;n<i;n++)if(l=c.map.get(u[n]))for(r=0,a=l.length;r<a;r++)!p[f=(s=l[r]).id]&&this.matchesSelector(e,s.selector)&&(p[f]=!0,v.push(s));return v.sort(h)},e},"object"==typeof n?n=t():this.SelectorSet=t();var a,u,b={exports:{}};a=this,u=function(e,a){"use strict";a=a&&a.hasOwnProperty("default")?a.default:a;var u={},l={},s=new WeakMap,f=new WeakMap,d=new WeakMap,n=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function p(e,t,n){var r=e[t];return e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)},e}function v(){s.set(this,!0)}function h(){s.set(this,!0),f.set(this,!0)}function g(){return d.get(this)||null}function y(e,t){n&&Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:t||n.get})}function c(e){var t=(1===e.eventPhase?l:u)[e.type];if(t){var n=function(e,t,n){var r=[],o=t;do{if(1!==o.nodeType)break;var i=e.matches(o);if(i.length){var a={node:o,observers:i};n?r.unshift(a):r.push(a)}}while(o=o.parentElement);return r}(t,e.target,1===e.eventPhase);if(n.length){p(e,"stopPropagation",v),p(e,"stopImmediatePropagation",h),y(e,g);for(var r=0,o=n.length;r<o&&!s.get(e);r++){var i=n[r];d.set(e,i.node);for(var a=0,c=i.observers.length;a<c&&!f.get(e);a++)i.observers[a].data.call(i.node,e)}d.delete(e),y(e)}}}e.off=function(e,t,n){var r=!!(3<arguments.length&&void 0!==arguments[3]?arguments[3]:{}).capture,o=r?l:u,i=o[e];i&&(i.remove(t,n),i.size||(delete o[e],document.removeEventListener(e,c,r)))},e.on=function(e,t,n){var r=!!(3<arguments.length&&void 0!==arguments[3]?arguments[3]:{}).capture,o=r?l:u,i=o[e];i||(i=new a,o[e]=i,document.addEventListener(e,c,r)),i.add(t,n)},Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof b.exports?u(b.exports,n):u((a=a||self)["delegated-events"]={},a.SelectorSet),b=b.exports;var j={};Object.defineProperty(j,"__esModule",{value:!0}),j.bindContentScrollHandler=function(e){var t=(0,m.default)(s);e.addEventListener("mousewheel",t),e.addEventListener("wheel",t)},j.addEventListeners=function(e){var t,n=e.dismissAll,r=e.findById,o=e.hover,i=e.repositionAll,a=e.resizeAll,c=e.toggle,u=e.unhover,l=(h=r,g=c,y=n,function(e){var t,n=(t=e.target.closest("[data-footnote-button]"))&&t.dataset.footnoteId,r=n&&h(n);r?g(r):O(e.target)||y()}),s=(t=n,function(e){return 27===e.keyCode&&t()}),f=(0,m.default)(i),d=(0,m.default)(a),p=_(r,o),v=_(r,u),h,g,y;return document.addEventListener("touchend",l),document.addEventListener("click",l),document.addEventListener("keyup",s),document.addEventListener("gestureend",f),window.addEventListener("scroll",f),window.addEventListener("resize",d),(0,b.on)("mouseover",w,p),(0,b.on)("mouseout",w,v),function(){document.removeEventListener("touchend",l),document.removeEventListener("click",l),document.removeEventListener("keyup",s),document.removeEventListener("gestureend",f),window.removeEventListener("scroll",f),window.removeEventListener("resize",d),(0,b.off)("mouseover",w,p),(0,b.off)("mouseout",w,v)}},j.FOOTNOTE_SELECTOR=void 0;var m=e(o),w="[data-footnote-id]";j.FOOTNOTE_SELECTOR=w;var l="is-fully-scrolled";function O(e){return e.closest("[data-footnote-popover]")}function _(o,i){return function(e){e.preventDefault();var t,n=(t=e.target.closest(w))&&t.dataset.footnoteId,r=n&&o(n);r&&i(r)}}function s(e){var t=e.currentTarget,n=-e.deltaY,r=t.clientHeight,o=O(t);if(o&&n<=0&&n<r+t.scrollTop-t.scrollHeight)return o.classList.add(l),t.scrollTop=t.scrollHeight,void e.preventDefault();o&&0<n&&(o.classList.remove(l),t.scrollTop<n&&(t.scrollTop=0,e.preventDefault()))}var d={};Object.defineProperty(d,"__esModule",{value:!0}),d.getAvailableRoom=function(e){var t=parseFloat((0,c.getStyle)(e,"marginLeft")),n=e.offsetWidth-t,r=e.offsetHeight,o=e.getBoundingClientRect(),i=o.left+n/2,a=o.top+r/2;return{top:a,bottom:window.innerHeight-a,leftRelative:i/window.innerWidth}},d.getAvailableHeight=function(e,t){var n=y(e,t),r=parseInt((0,c.getStyle)(e,"marginTop"),10);return t[n?g:h]-r-15},d.repositionPopover=function(e,t){var n=y(e,t),r=e.dataset.footnotePosition,o=n?g:h;r!==o&&(e.dataset.footnotePosition=o,e.classList.remove("".concat(v).concat(r)),e.classList.add("".concat(v).concat(o)),e.style.transformOrigin="".concat(100*t.leftRelative,"% ").concat(n?"100%":"0"))},d.repositionTooltip=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:.5,n=e.querySelector("."+p);n&&(n.style.left=100*t+"%")},d.CLASS_WRAPPER=d.CLASS_TOOLTIP=d.CLASS_CONTENT=void 0,d.CLASS_CONTENT="littlefoot-footnote__content";var p="littlefoot-footnote__tooltip";d.CLASS_TOOLTIP=p,d.CLASS_WRAPPER="littlefoot-footnote__wrapper";var v="is-positioned-",h="bottom",g="top";function y(e,t){var n=2*parseInt((0,c.getStyle)(e,"marginTop"),10)+e.offsetHeight;return t.bottom<n&&t.bottom<t.top}var S={};Object.defineProperty(S,"__esModule",{value:!0}),S.createFootnote=function(i){return{getId:function(){return i.id},activate:function(e){i.button.blur(),i.button.setAttribute("aria-expanded","true"),i.button.classList.add(A),i.button.insertAdjacentHTML("afterend",i.content),i.popover=i.button.nextElementSibling,i.popover.dataset.footnotePopover="",i.popover.dataset.footnoteId=i.id;var t=L(i.popover);i.popover.style.maxWidth="".concat(document.body.clientWidth,"px"),(0,j.bindContentScrollHandler)(t);var n=(0,c.getStyle)(t,"maxHeight");i.maxHeight=Math.round((0,r.pixels)(n,t)),"function"==typeof e&&e(i.popover,i.button)},dismiss:function(){i.button.blur(),i.button.setAttribute("aria-expanded","false"),i.button.classList.remove(A)},isActive:function(){return i.button.classList.contains(A)},isChanging:function(){return i.button.classList.contains(x)},isHovered:function(){return i.isHovered},ready:function(){i.popover&&i.popover.classList.add(A)},remove:function(){i.popover&&(i.popover.parentNode.removeChild(i.popover),delete i.popover)},reposition:function(){if(i.popover){var e=(0,d.getAvailableRoom)(i.button),t=L(i.popover),n=Math.min(i.maxHeight,(0,d.getAvailableHeight)(i.popover,e));t.style.maxHeight=n+"px",(0,d.repositionPopover)(i.popover,e),i.popover.offsetHeight<=t.scrollHeight&&i.popover.classList.add(E)}},resize:function(){if(i.popover){var e=(0,d.getAvailableRoom)(i.button),t=L(i.popover).offsetWidth,n=parseInt((0,c.getStyle)(i.button,"marginLeft"),10),r=-e.leftRelative*t+n+i.button.offsetWidth/2,o=i.popover.querySelector("."+d.CLASS_WRAPPER);i.popover.style.left=r+"px",o&&(o.style.maxWidth=t+"px"),(0,d.repositionTooltip)(i.popover,e.leftRelative)}},startChanging:function(){i.button.classList.add(x)},stopChanging:function(){i.button.classList.remove(x)},startHovering:function(){i.isHovered=!0},stopHovering:function(){i.isHovered=!1},unmount:function(){i.host.parentNode.removeChild(i.host)}}};var A="is-active",x="is-changing",E="is-scrollable";function L(e){return e.querySelector("."+d.CLASS_CONTENT)}var De=/<%=([\s\S]+?)%>/g,Re={};(function(e){var t,a=1/0,c="[object Null]",u="[object Symbol]",l="[object Undefined]",n=/[&<>"']/g,r=RegExp(n.source),o="object"==typeof e&&e&&e.Object===Object&&e,i="object"==typeof self&&self&&self.Object===Object&&self,s=o||i||Function("return this")(),f=(t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},function(e){return null==t?void 0:t[e]}),d=Object.prototype,p=d.hasOwnProperty,v=d.toString,h=s.Symbol,g=h?h.toStringTag:void 0,y=h?h.prototype:void 0,b=y?y.toString:void 0,m={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:De,variable:"",imports:{_:{escape:function(e){return(e=null==(t=e)?"":j(t))&&r.test(e)?e.replace(n,f):e;var t}}}};function j(e){if("string"==typeof e)return e;if(w(e))return function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(e,j)+"";if("symbol"==typeof(t=e)||null!=(o=t)&&"object"==typeof o&&(null==(n=t)?void 0===n?l:c:g&&g in Object(n)?function(e){var t=p.call(e,g),n=e[g];try{var r=!(e[g]=void 0)}catch(e){}var o=v.call(e);return r&&(t?e[g]=n:delete e[g]),o}(n):(r=n,v.call(r)))==u)return b?b.call(e):"";var t,n,r,o,i=e+"";return"0"==i&&1/e==-a?"-0":i}var w=Array.isArray;Re=m}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var We={exports:{}};(function(e){var r=1/0,o=9007199254740991,t="[object Arguments]",n="[object AsyncFunction]",i="[object DOMException]",a="[object Error]",c="[object Function]",u="[object GeneratorFunction]",l="[object Null]",s="[object Object]",f="[object Proxy]",d="[object Symbol]",p="[object Undefined]",m=/\b__p \+= '';/g,j=/\b(__p \+=) '' \+/g,w=/(__e\(.*?\)|\b__t\)) \+\n'';/g,O=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,v=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,_=/($^)/,S=/['\n\r\u2028\u2029\\]/g,g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g[t]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g[a]=g[c]=g["[object Map]"]=g["[object Number]"]=g[s]=g["[object RegExp]"]=g["[object Set]"]=g["[object String]"]=g["[object WeakMap]"]=!1;var y={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},b="object"==typeof e&&e&&e.Object===Object&&e,A="object"==typeof self&&self&&self.Object===Object&&self,x=b||A||Function("return this")(),E="object"==typeof We.exports&&We.exports&&!We.exports.nodeType&&We.exports,L=E&&We&&!We.nodeType&&We,T=L&&L.exports===E,P=T&&b.process,C=function(){try{return L&&L.require&&L.require("util").types||P&&P.binding&&P.binding("util")}catch(e){}}(),H=C&&C.isTypedArray;function I(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function M(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function F(e){return"\\"+y[e]}function D(t,n){return function(e){return t(n(e))}}var R,W=Function.prototype,k=Object.prototype,N=x["__core-js_shared__"],$=W.toString,U=k.hasOwnProperty,q=(R=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+R:"",z=k.toString,B=$.call(Object),V=RegExp("^"+$.call(U).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=T?x.Buffer:void 0,Y=x.Symbol,J=D(Object.getPrototypeOf,Object),K=k.propertyIsEnumerable,Q=Y?Y.toStringTag:void 0,X=function(){try{var e=(r=Object,!Le(t=i=null==r?void 0:r.defineProperty)||q&&q in(n=t)||!(xe(t)?V:v).test(function(e){if(null!=e){try{return $.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(t))?void 0:i);return e({},"",{}),e}catch(e){}var t,n,r,o,i}(),Z=G?G.isBuffer:void 0,ee=D(Object.keys,Object),te=Math.max,ne=Date.now,re=Y?Y.prototype:void 0,oe=re?re.toString:void 0;function ie(e,t){var n=Oe(e),r=!n&&we(e),o=!n&&!r&&Se(e),i=!n&&!r&&!o&&Ce(e),a=n||r||o||i,c=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=c.length;for(var l in e)!t&&!U.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||pe(l,u))||c.push(l);return c}function ae(e,t,n){var r=e[t];U.call(e,t)&&je(r,n)&&(void 0!==n||t in e)||ce(e,t,n)}function ce(e,t,n){"__proto__"==t&&X?X(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ue(e){return null==e?void 0===e?p:l:Q&&Q in Object(e)?function(e){var t=U.call(e,Q),n=e[Q];try{var r=!(e[Q]=void 0)}catch(e){}var o=z.call(e);return r&&(t?e[Q]=n:delete e[Q]),o}(e):(t=e,z.call(t));var t}function le(e){return Te(e)&&ue(e)==t}function se(e,t){return me((i=e,c=Fe,a=te(void 0===(a=t)?i.length-1:a,0),function(){for(var e=arguments,t=-1,n=te(e.length-a,0),r=Array(n);++t<n;)r[t]=e[a+t];t=-1;for(var o=Array(a+1);++t<a;)o[t]=e[t];return o[a]=c(r),I(i,this,o)}),e+"");var i,a,c}function fe(e){if("string"==typeof e)return e;if(Oe(e))return M(e,fe)+"";if("symbol"==typeof(t=e)||Te(t)&&ue(t)==d)return oe?oe.call(e):"";var t,n=e+"";return"0"==n&&1/e==-r?"-0":n}function de(e,t,n,r){return void 0===e||je(e,k[n])&&!U.call(r,n)?t:e}function pe(e,t){var n=typeof e;return!!(t=null==t?o:t)&&("number"==n||"symbol"!=n&&h.test(e))&&-1<e&&e%1==0&&e<t}function ve(e,t,n){if(!Le(n))return!1;var r=typeof t;return!!("number"==r?_e(n)&&pe(t,n.length):"string"==r&&t in n)&&je(n[t],e)}function he(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||k)}var ge,ye,be,me=(ge=X?function(e,t){return X(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Fe,be=ye=0,function(){var e=ne(),t=16-(e-be);if(be=e,0<t){if(800<=++ye)return arguments[0]}else ye=0;return ge.apply(void 0,arguments)});function je(e,t){return e===t||e!=e&&t!=t}var we=le(function(){return arguments}())?le:function(e){return Te(e)&&U.call(e,"callee")&&!K.call(e,"callee")},Oe=Array.isArray;function _e(e){return null!=e&&Ee(e.length)&&!xe(e)}var Se=Z||function(){return!1};function Ae(e){if(!Te(e))return!1;var t=ue(e);return t==a||t==i||"string"==typeof e.message&&"string"==typeof e.name&&!function(e){if(!Te(e)||ue(e)!=s)return!1;var t=J(e);if(null===t)return!0;var n=U.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&$.call(n)==B}(e)}function xe(e){if(!Le(e))return!1;var t=ue(e);return t==c||t==u||t==n||t==f}function Ee(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=o}function Le(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Te(e){return null!=e&&"object"==typeof e}var Pe,Ce=H?(Ie=H,function(e){return Ie(e)}):function(e){return Te(e)&&Ee(e.length)&&!!g[ue(e)]},He=(Pe=function(e,t,n,r){var o;!function(e,t,n,r){var o=!n;n=n||{};for(var i=-1,a=t.length;++i<a;){var c=t[i],u=r?r(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),o?ce(n,c,u):ae(n,c,u)}}(t,_e(o=t)?ie(o,!0):function(e){if(!Le(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=he(e),n=[];for(var r in e)("constructor"!=r||!t&&U.call(e,r))&&n.push(r);return n}(o),e,r)},se(function(e,t){var n=-1,r=t.length,o=1<r?t[r-1]:void 0,i=2<r?t[2]:void 0;for(o=3<Pe.length&&"function"==typeof o?(r--,o):void 0,i&&ve(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var a=t[n];a&&Pe(e,a,0,o)}return e})),Ie,Me=se(function(e,t){try{return I(e,void 0,t)}catch(e){return Ae(e)?e:new Error(e)}});function Fe(e){return e}We.exports=function(a,e,t){var n,r=Re.imports._.templateSettings||Re;t&&ve(a,e,t)&&(e=void 0),a=null==(n=a)?"":fe(n),e=He({},e,r,de);var o,c,u,i=He({},e.imports,r.imports,de),l=_e(g=i)?ie(g):function(e){if(!he(e))return ee(e);var t=[];for(var n in Object(e))U.call(e,n)&&"constructor"!=n&&t.push(n);return t}(g),s=(o=i,M(l,function(e){return o[e]})),f=0,d=e.interpolate||_,p="__p += '",v=RegExp((e.escape||_).source+"|"+d.source+"|"+(d===De?O:_).source+"|"+(e.evaluate||_).source+"|$","g"),h=U.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/[\r\n]/g," ")+"\n":"",g;a.replace(v,function(e,t,n,r,o,i){return n=n||r,p+=a.slice(f,i).replace(S,F),t&&(c=!0,p+="' +\n__e("+t+") +\n'"),o&&(u=!0,p+="';\n"+o+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),f=i+e.length,e}),p+="';\n";var y=U.call(e,"variable")&&e.variable;y||(p="with (obj) {\n"+p+"\n}\n"),p=(u?p.replace(m,""):p).replace(j,"$1").replace(w,"$1;"),p="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(c?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var b=Me(function(){return Function(l,h+"return "+p).apply(void 0,s)});if(b.source=p,Ae(b))throw b;return b}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),We=We.exports;var T={};Object.defineProperty(T,"__esModule",{value:!0}),T.restoreOriginalFootnotes=function(){Array.from(document.querySelectorAll("."+H)).forEach(function(e){return e.classList.remove(H)})},T.createDocumentFootnotes=function(e){var t,n,r,o,i,a,c,u,l,s,f,d=e.buttonTemplate,p=e.contentTemplate,v=e.numberResetSelector,h=(n=(t=document.querySelectorAll(j.FOOTNOTE_SELECTOR)).length?t[t.length-1].dataset.footnoteId:"0",1+parseInt(n,10)),g,y,b,m;return(l=(u=e).anchorPattern,f=void 0===(s=u.scope)?"":s,Array.from(document.querySelectorAll(f+' a[href^="#"]')).filter(function(e){return(e.href+e.rel).match(l)})).map((o=(r=e).allowDuplicates,i=r.anchorParentSelector,a=r.footnoteSelector,c=[],function(e){var t="#"+e.href.split("#")[1].replace(/[:.+~*[\]]/g,"\\$&"),n=Array.from(document.querySelectorAll(t)).find(function(e){return o||!c.includes(e)}),r=n&&n.closest(a);if(r)return c.push(r),[e.closest(i)||e,r]})).filter(F).map(k).map(W(h)).map(v?R(v):function(e){return e}).map((g=d,y=p,b=(0,C.default)(g),m=(0,C.default)(y),function(e,t){var n=(0,P.default)(e,3),r=n[0],o=n[1],i=n[2],a="".concat(t+1),c={number:i,id:a,content:D(o.innerHTML,r.id),reference:r.id},u=m(c);r.insertAdjacentHTML("beforebegin",'<span class="'.concat(I,'">').concat(b(c),"</span>"));var l=r.previousElementSibling,s=l.firstElementChild;return s.dataset.footnoteButton="",s.dataset.footnoteId=a,s.dataset.footnoteNumber="".concat(i),{id:a,button:s,host:l,content:u,isHovered:!1,maxHeight:0}}))};var P=e(function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}),C=e(We),H="footnote-print-only",I="littlefoot-footnote__host",M=function(e){return e.classList.add(H)};function F(e){return void 0!==e}function D(e,t){var n=t.trim().replace(/\s+/g,"|"),r=new RegExp("(\\s|&nbsp;)*<\\s*a[^#<]*#("+n+")[^>]*>(.*?)<\\s*/\\s*a>","g"),o=e.trim().replace(r,"").replace("[]","");return o.startsWith("<")?o:"<p>"+o+"</p>"}var R=function(u){return function(e,t,n){var r=(0,P.default)(e,3),o=r[0],i=r[1],a=r[2],c=a?n[a-1][2]:0;return[o,i,o.closest(u)?1:c+1]}},W=function(r){return function(e,t){var n=(0,P.default)(e,2);return[n[0],n[1],r+t]}};function k(e){var t=(0,P.default)(e,2),n=t[0],r=t[1];return M(n),M(r),function e(t){var n,r,o=(n=t,r=":not(.".concat(H,")"),Array.from(n.children).filter(function(e){return 8!==e.nodeType&&(!r||e.matches(r))})),i=o.filter(function(e){return"HR"===e.tagName});o.length===i.length&&(i.concat(t).forEach(M),e(t.parentNode))}(r.parentElement),[n,r]}var N={};Object.defineProperty(N,"__esModule",{value:!0}),N.createAdapter=function(e){var t=(0,T.createDocumentFootnotes)(e).map(S.createFootnote);return{footnotes:function(){return t},unmount:function(){t.forEach(function(e){return e.unmount()}),(0,T.restoreOriginalFootnotes)()}}};var $={};Object.defineProperty($,"__esModule",{value:!0}),$.littlefoot=B,$.default=void 0;var U=e(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e});function q(t,e){var n=Object.keys(t);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(t)),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n}var z={activateDelay:100,activateOnHover:!1,allowDuplicates:!0,allowMultiple:!1,anchorParentSelector:"sup",anchorPattern:/(fn|footnote|note)[:\-_\d]/gi,dismissDelay:100,dismissOnUnhover:!1,footnoteSelector:"li",hoverDelay:250,contentTemplate:'<aside class="littlefoot-footnote" id="fncontent:<%= id %>" alt="Footnote <%= number %>" aria-live="polite"><div class="'.concat(d.CLASS_WRAPPER,'"><div class="').concat(d.CLASS_CONTENT,'" tabindex="0"><%= content %></div></div><div class="').concat(d.CLASS_TOOLTIP,'"></div></aside>'),buttonTemplate:'<button class="littlefoot-footnote__button littlefoot-footnote__button__ellipsis" id="<%= reference %>" title="See Footnote <%= number %>" aria-controls="fncontent:<%= id %>" aria-expanded="false" aria-label="Footnote <%= number %>" rel="footnote"><svg viewbox="0 0 31 6" preserveAspectRatio="xMidYMid"><circle r="3" cx="3" cy="3" fill="white"></circle><circle r="3" cx="15" cy="3" fill="white"></circle><circle r="3" cx="27" cy="3" fill="white"></circle></svg></button>'};function B(){var e,n=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?q(n,!0).forEach(function(e){(0,U.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):q(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},z,{},0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}),t=(0,N.createAdapter)(n),r=(0,i.createCore)(t,n),o=(0,j.addEventListeners)(r);return{activate:function(e){var t=r.findById(e);t&&r.activate(t)},dismiss:function(e,t){var n=e&&r.findById(e);n?r.dismiss(n,t):r.dismissAll(t)},unmount:function(){o(),r.unmount()},getSetting:function(e){return n[e]},updateSetting:function(e,t){n[e]=t}}}var V=B;return $.default=V,$});
     1
     2!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).littlefoot=e()}(function(){var e=function(e){return e&&e.__esModule?e:{default:e}},t=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},l={getStyle:function(e,t){var n=(e.ownerDocument&&e.ownerDocument.defaultView||window).getComputedStyle(e);return n.getPropertyValue(t)||n[t]}},g={};Object.defineProperty(g,"__esModule",{value:!0}),g.getAvailableRoom=function(e){var t=parseFloat((0,l.getStyle)(e,"marginLeft")),n=e.offsetWidth-t,r=e.offsetHeight,o=e.getBoundingClientRect(),i=o.left+n/2,a=o.top+r/2;return{top:a,bottom:window.innerHeight-a,leftRelative:i/window.innerWidth}},g.getAvailableHeight=function(e,t){var n=u(e,t),r=parseInt((0,l.getStyle)(e,"marginTop"),10);return t[n?c:a]-r-15},g.repositionPopover=function(e,t){var n=u(e,t),r=e.dataset.footnotePosition,o=n?c:a;r!==o&&(e.dataset.footnotePosition=o,e.classList.remove("".concat(i).concat(r)),e.classList.add("".concat(i).concat(o)),e.style.transformOrigin="".concat(100*t.leftRelative,"% ").concat(n?"100%":"0"))},g.repositionTooltip=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:.5,n=e.querySelector("."+r);n&&(n.style.left=100*t+"%")},g.CLASS_WRAPPER=g.CLASS_TOOLTIP=g.CLASS_CONTENT=void 0,g.CLASS_CONTENT="littlefoot-footnote__content";var r="littlefoot-footnote__tooltip";g.CLASS_TOOLTIP=r,g.CLASS_WRAPPER="littlefoot-footnote__wrapper";var i="is-positioned-",a="bottom",c="top";function u(e,t){var n=2*parseInt((0,l.getStyle)(e,"marginTop"),10)+e.offsetHeight;return t.bottom<n&&t.bottom<t.top}var o={};Object.defineProperty(o,"__esModule",{value:!0});var n={activateDelay:100,activateOnHover:!1,allowDuplicates:!(o.DEFAULT_SETTINGS=void 0),allowMultiple:!1,anchorParentSelector:"sup",anchorPattern:/(fn|footnote|note)[:\-_\d]/gi,dismissDelay:100,dismissOnUnhover:!1,footnoteSelector:"li",hoverDelay:250,contentTemplate:'<aside class="littlefoot-footnote" id="fncontent:<%= id %>" alt="Footnote <%= number %>" aria-live="polite"><div class="'.concat(g.CLASS_WRAPPER,'"><div class="').concat(g.CLASS_CONTENT,'" tabindex="0"><%= content %></div></div><div class="').concat(g.CLASS_TOOLTIP,'"></div></aside>'),buttonTemplate:'<button class="littlefoot-footnote__button littlefoot-footnote__button__ellipsis" id="<%= reference %>" title="See Footnote <%= number %>" aria-controls="fncontent:<%= id %>" aria-expanded="false" aria-label="Footnote <%= number %>" rel="footnote"><svg viewbox="0 0 31 6" preserveAspectRatio="xMidYMid"><circle r="3" cx="3" cy="3" fill="white"></circle><circle r="3" cx="15" cy="3" fill="white"></circle><circle r="3" cx="27" cy="3" fill="white"></circle></svg></button>'};o.DEFAULT_SETTINGS=n;var s={};Object.defineProperty(s,"__esModule",{value:!0}),s.createCore=function(e,o){var r=e.setup(o),i=(c=o,function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:c.activateDelay,n=c.activateCallback;e.isChanging()||(e.activate(n),e.reposition(),e.resize(),setTimeout(function(){e.ready()},t))}),a=(n=o,function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:n.dismissDelay;e.isChanging()||(e.dismiss(),setTimeout(function(){e.remove()},t))}),n,c;function u(t){r.filter(function(e){return e.id!==t.id}).forEach(a)}var t={activate:i,dismiss:a,findById:function(t){return r.find(function(e){return e.id===t})},dismissAll:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:o.dismissDelay;r.forEach(function(e){return a(e,t)})},repositionAll:function(){r.forEach(function(e){return e.reposition()})},resizeAll:function(){r.forEach(function(e){return e.resize()})},toggle:function(e){var t=o.allowMultiple;e.isActive()?a(e):(t||u(e),i(e))},hover:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:o.hoverDelay,n=o.activateOnHover,r=o.allowMultiple;e.startHovering(),n&&!e.isActive()&&(r||u(e),i(e,t))},unhover:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:o.hoverDelay,n=o.dismissOnUnhover;e.stopHovering(),n&&setTimeout(function(){r.some(function(e){return e.isHovered()})||r.forEach(a)},t)}},l=e.addListeners(t);return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(n,!0).forEach(function(e){(0,f.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},t,{unmount:function(){l(),r.forEach(function(e){return e.destroy()}),e.cleanup()}})};var f=e(t);function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var Ie=/<%=([\s\S]+?)%>/g,Re={};(function(e){var t,a=1/0,c="[object Null]",u="[object Symbol]",l="[object Undefined]",n=/[&<>"']/g,r=RegExp(n.source),o="object"==typeof e&&e&&e.Object===Object&&e,i="object"==typeof self&&self&&self.Object===Object&&self,s=o||i||Function("return this")(),f=(t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},function(e){return null==t?void 0:t[e]}),d=Object.prototype,p=d.hasOwnProperty,v=d.toString,y=s.Symbol,h=y?y.toStringTag:void 0,g=y?y.prototype:void 0,m=g?g.toString:void 0,b={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Ie,variable:"",imports:{_:{escape:function(e){return(e=null==(t=e)?"":j(t))&&r.test(e)?e.replace(n,f):e;var t}}}};function j(e){if("string"==typeof e)return e;if(w(e))return function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(e,j)+"";if("symbol"==typeof(t=e)||null!=(o=t)&&"object"==typeof o&&(null==(n=t)?void 0===n?l:c:h&&h in Object(n)?function(e){var t=p.call(e,h),n=e[h];try{var r=!(e[h]=void 0)}catch(e){}var o=v.call(e);return r&&(t?e[h]=n:delete e[h]),o}(n):(r=n,v.call(r)))==u)return m?m.call(e):"";var t,n,r,o,i=e+"";return"0"==i&&1/e==-a?"-0":i}var w=Array.isArray;Re=b}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var ke={exports:{}};(function(e){var r=1/0,o=9007199254740991,t="[object Arguments]",n="[object AsyncFunction]",i="[object DOMException]",a="[object Error]",c="[object Function]",u="[object GeneratorFunction]",l="[object Null]",s="[object Object]",f="[object Proxy]",d="[object Symbol]",p="[object Undefined]",b=/\b__p \+= '';/g,j=/\b(__p \+=) '' \+/g,w=/(__e\(.*?\)|\b__t\)) \+\n'';/g,O=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,v=/^\[object .+?Constructor\]$/,y=/^(?:0|[1-9]\d*)$/,S=/($^)/,_=/['\n\r\u2028\u2029\\]/g,h={};h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h[t]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object Boolean]"]=h["[object DataView]"]=h["[object Date]"]=h[a]=h[c]=h["[object Map]"]=h["[object Number]"]=h[s]=h["[object RegExp]"]=h["[object Set]"]=h["[object String]"]=h["[object WeakMap]"]=!1;var g={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},m="object"==typeof e&&e&&e.Object===Object&&e,A="object"==typeof self&&self&&self.Object===Object&&self,E=m||A||Function("return this")(),x="object"==typeof ke.exports&&ke.exports&&!ke.exports.nodeType&&ke.exports,L=x&&ke&&!ke.nodeType&&ke,P=L&&L.exports===x,T=P&&m.process,D=function(){try{return L&&L.require&&L.require("util").types||T&&T.binding&&T.binding("util")}catch(e){}}(),M=D&&D.isTypedArray;function C(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function F(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function H(e){return"\\"+g[e]}function I(t,n){return function(e){return t(n(e))}}var R,k=Function.prototype,W=Object.prototype,N=E["__core-js_shared__"],U=k.toString,$=W.hasOwnProperty,z=(R=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+R:"",q=W.toString,B=U.call(Object),V=RegExp("^"+U.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=P?E.Buffer:void 0,Y=E.Symbol,J=I(Object.getPrototypeOf,Object),K=W.propertyIsEnumerable,Q=Y?Y.toStringTag:void 0,X=function(){try{var e=(r=Object,!Le(t=i=null==r?void 0:r.defineProperty)||z&&z in(n=t)||!(Ee(t)?V:v).test(function(e){if(null!=e){try{return U.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(t))?void 0:i);return e({},"",{}),e}catch(e){}var t,n,r,o,i}(),Z=G?G.isBuffer:void 0,ee=I(Object.keys,Object),te=Math.max,ne=Date.now,re=Y?Y.prototype:void 0,oe=re?re.toString:void 0;function ie(e,t){var n=Oe(e),r=!n&&we(e),o=!n&&!r&&_e(e),i=!n&&!r&&!o&&De(e),a=n||r||o||i,c=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=c.length;for(var l in e)!t&&!$.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||pe(l,u))||c.push(l);return c}function ae(e,t,n){var r=e[t];$.call(e,t)&&je(r,n)&&(void 0!==n||t in e)||ce(e,t,n)}function ce(e,t,n){"__proto__"==t&&X?X(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ue(e){return null==e?void 0===e?p:l:Q&&Q in Object(e)?function(e){var t=$.call(e,Q),n=e[Q];try{var r=!(e[Q]=void 0)}catch(e){}var o=q.call(e);return r&&(t?e[Q]=n:delete e[Q]),o}(e):(t=e,q.call(t));var t}function le(e){return Pe(e)&&ue(e)==t}function se(e,t){return be((i=e,c=He,a=te(void 0===(a=t)?i.length-1:a,0),function(){for(var e=arguments,t=-1,n=te(e.length-a,0),r=Array(n);++t<n;)r[t]=e[a+t];t=-1;for(var o=Array(a+1);++t<a;)o[t]=e[t];return o[a]=c(r),C(i,this,o)}),e+"");var i,a,c}function fe(e){if("string"==typeof e)return e;if(Oe(e))return F(e,fe)+"";if("symbol"==typeof(t=e)||Pe(t)&&ue(t)==d)return oe?oe.call(e):"";var t,n=e+"";return"0"==n&&1/e==-r?"-0":n}function de(e,t,n,r){return void 0===e||je(e,W[n])&&!$.call(r,n)?t:e}function pe(e,t){var n=typeof e;return!!(t=null==t?o:t)&&("number"==n||"symbol"!=n&&y.test(e))&&-1<e&&e%1==0&&e<t}function ve(e,t,n){if(!Le(n))return!1;var r=typeof t;return!!("number"==r?Se(n)&&pe(t,n.length):"string"==r&&t in n)&&je(n[t],e)}function ye(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||W)}var he,ge,me,be=(he=X?function(e,t){return X(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:He,me=ge=0,function(){var e=ne(),t=16-(e-me);if(me=e,0<t){if(800<=++ge)return arguments[0]}else ge=0;return he.apply(void 0,arguments)});function je(e,t){return e===t||e!=e&&t!=t}var we=le(function(){return arguments}())?le:function(e){return Pe(e)&&$.call(e,"callee")&&!K.call(e,"callee")},Oe=Array.isArray;function Se(e){return null!=e&&xe(e.length)&&!Ee(e)}var _e=Z||function(){return!1};function Ae(e){if(!Pe(e))return!1;var t=ue(e);return t==a||t==i||"string"==typeof e.message&&"string"==typeof e.name&&!function(e){if(!Pe(e)||ue(e)!=s)return!1;var t=J(e);if(null===t)return!0;var n=$.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&U.call(n)==B}(e)}function Ee(e){if(!Le(e))return!1;var t=ue(e);return t==c||t==u||t==n||t==f}function xe(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=o}function Le(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Pe(e){return null!=e&&"object"==typeof e}var Te,De=M?(Ce=M,function(e){return Ce(e)}):function(e){return Pe(e)&&xe(e.length)&&!!h[ue(e)]},Me=(Te=function(e,t,n,r){var o;!function(e,t,n,r){var o=!n;n=n||{};for(var i=-1,a=t.length;++i<a;){var c=t[i],u=r?r(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),o?ce(n,c,u):ae(n,c,u)}}(t,Se(o=t)?ie(o,!0):function(e){if(!Le(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ye(e),n=[];for(var r in e)("constructor"!=r||!t&&$.call(e,r))&&n.push(r);return n}(o),e,r)},se(function(e,t){var n=-1,r=t.length,o=1<r?t[r-1]:void 0,i=2<r?t[2]:void 0;for(o=3<Te.length&&"function"==typeof o?(r--,o):void 0,i&&ve(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var a=t[n];a&&Te(e,a,0,o)}return e})),Ce,Fe=se(function(e,t){try{return C(e,void 0,t)}catch(e){return Ae(e)?e:new Error(e)}});function He(e){return e}ke.exports=function(a,e,t){var n,r=Re.imports._.templateSettings||Re;t&&ve(a,e,t)&&(e=void 0),a=null==(n=a)?"":fe(n),e=Me({},e,r,de);var o,c,u,i=Me({},e.imports,r.imports,de),l=Se(h=i)?ie(h):function(e){if(!ye(e))return ee(e);var t=[];for(var n in Object(e))$.call(e,n)&&"constructor"!=n&&t.push(n);return t}(h),s=(o=i,F(l,function(e){return o[e]})),f=0,d=e.interpolate||S,p="__p += '",v=RegExp((e.escape||S).source+"|"+d.source+"|"+(d===Ie?O:S).source+"|"+(e.evaluate||S).source+"|$","g"),y=$.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/[\r\n]/g," ")+"\n":"",h;a.replace(v,function(e,t,n,r,o,i){return n=n||r,p+=a.slice(f,i).replace(_,H),t&&(c=!0,p+="' +\n__e("+t+") +\n'"),o&&(u=!0,p+="';\n"+o+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),f=i+e.length,e}),p+="';\n";var g=$.call(e,"variable")&&e.variable;g||(p="with (obj) {\n"+p+"\n}\n"),p=(u?p.replace(b,""):p).replace(j,"$1").replace(w,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(c?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m=Fe(function(){return Function(l,y+"return "+p).apply(void 0,s)});if(m.source=p,Ae(m))throw m;return m}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),ke=ke.exports;var p={};function v(e){return e?l.getStyle(e,"fontSize")||v(e.parentElement):l.getStyle(window.document.documentElement,"fontSize")}p.pixels=function e(t,n){var r=n&&n.ownerDocument&&n.ownerDocument.defaultView||window,o=r.document.documentElement||r.document.body,i=(u=(c=t)||"0",l=parseFloat(u),s=u.match(/[\d-.]+(\w+)$/),[l,(s&&1<s.length?s[1]:"").toLowerCase()]),a=i[0],c,u,l,s;switch(i[1]){case"rem":return a*e(v(window.document.documentElement));case"em":return a*e(v(n),n&&n.parentElement);case"in":return 96*a;case"q":return 96*a/25.4/4;case"mm":return 96*a/25.4;case"cm":return 96*a*10/25.4;case"pt":return 96*a/72;case"pc":return 96*a/6;case"vh":return(a*r.innerHeight||o.clientWidth)/100;case"vw":return(a*r.innerWidth||o.clientHeight)/100;case"vmin":return a*Math.min(r.innerWidth||o.clientWidth,r.innerHeight||o.clientHeight)/100;case"vmax":return a*Math.max(r.innerWidth||o.clientWidth,r.innerHeight||o.clientHeight)/100;default:return a}};var m={};Object.defineProperty(m,"__esModule",{value:!0}),m.createFootnote=function(e){var t=e.id,o=e.button,i=e.content,n=e.host,a=e.popover,c=e.wrapper,r=!1,u=0;return{id:t,activate:function(e){o.classList.add(h),o.setAttribute("aria-expanded","true"),o.classList.add(y),o.insertAdjacentElement("afterend",a),a.style.maxWidth="".concat(document.body.clientWidth,"px");var t=(0,l.getStyle)(i,"maxHeight");u=Math.round((0,p.pixels)(t,i)),"function"==typeof e&&e(a,o)},dismiss:function(){o.classList.add(h),o.blur(),o.setAttribute("aria-expanded","false"),o.classList.remove(y)},isActive:function(){return o.classList.contains(y)},isChanging:function(){return o.classList.contains(h)},isHovered:function(){return r},ready:function(){a.classList.add(y),o.classList.remove(h)},remove:function(){j(a),o.classList.remove(h)},reposition:function(){if(a.parentElement){var e=(0,g.getAvailableRoom)(o),t=Math.min(u,(0,g.getAvailableHeight)(a,e));i.style.maxHeight=t+"px",(0,g.repositionPopover)(a,e),a.offsetHeight<=i.scrollHeight&&a.classList.add(b)}},resize:function(){if(a.parentElement){var e=(0,g.getAvailableRoom)(o),t=i.offsetWidth,n=parseInt((0,l.getStyle)(o,"marginLeft"),10),r=-e.leftRelative*t+n+o.offsetWidth/2;a.style.left=r+"px",c.style.maxWidth=t+"px",(0,g.repositionTooltip)(a,e.leftRelative)}},startHovering:function(){r=!0},stopHovering:function(){r=!1},destroy:function(){j(n)}}};var y="is-active",h="is-changing",b="is-scrollable";function j(e){e.parentNode&&e.parentNode.removeChild(e)}var _={};(function(e){var m="Expected a function",i=NaN,a="[object Symbol]",c=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,f=parseInt,t="object"==typeof e&&e&&e.Object===Object&&e,n="object"==typeof self&&self&&self.Object===Object&&self,r=t||n||Function("return this")(),d=Object.prototype.toString,b=Math.max,j=Math.min,w=function(){return r.Date.now()};function O(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function S(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||(n=t)&&"object"==typeof n&&d.call(t)==a)return i;var t,n;if(O(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=O(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(c,"");var o=l.test(e);return o||s.test(e)?f(e.slice(2),o?2:8):u.test(e)?i:+e}_=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(m);return O(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),function(r,o,e){var i,a,c,u,l,s,f=0,d=!1,p=!1,t=!0;if("function"!=typeof r)throw new TypeError(m);function v(e){var t=i,n=a;return i=a=void 0,f=e,u=r.apply(n,t)}function y(e){var t=e-s;return void 0===s||o<=t||t<0||p&&c<=e-f}function h(){var e=w(),t,n;if(y(e))return g(e);l=setTimeout(h,(n=o-((t=e)-s),p?j(n,c-(t-f)):n))}function g(e){return l=void 0,t&&i?v(e):(i=a=void 0,u)}function n(){var e=w(),t=y(e),n;if(i=arguments,a=this,s=e,t){if(void 0===l)return f=n=s,l=setTimeout(h,o),d?v(n):u;if(p)return l=setTimeout(h,o),v(s)}return void 0===l&&(l=setTimeout(h,o)),u}return o=S(o)||0,O(e)&&(d=!!e.leading,c=(p="maxWait"in e)?b(S(e.maxWait)||0,o):c,t="trailing"in e?!!e.trailing:t),n.cancel=function(){void 0!==l&&clearTimeout(l),i=s=a=l=void(f=0)},n.flush=function(){return void 0===l?u:g(w())},n}(e,t,{leading:r,maxWait:t,trailing:o})}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var w,O={};w=function(){"use strict";function e(){if(!(this instanceof e))return new e;this.size=0,this.uid=0,this.selectors=[],this.indexes=Object.create(this.indexes),this.activeIndexes=[]}var t=window.document.documentElement,n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.msMatchesSelector;e.prototype.matchesSelector=function(e,t){return n.call(e,t)},e.prototype.querySelectorAll=function(e,t){return t.querySelectorAll(e)};var r=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;(e.prototype.indexes=[]).push({name:"ID",selector:function(e){var t;if(t=e.match(r))return t[0].slice(1)},element:function(e){if(e.id)return[e.id]}});var o=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;e.prototype.indexes.push({name:"CLASS",selector:function(e){var t;if(t=e.match(o))return t[0].slice(1)},element:function(e){var t=e.className;if(t){if("string"==typeof t)return t.split(/\s/);if("object"==typeof t&&"baseVal"in t)return t.baseVal.split(/\s/)}}});var d,i=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;function a(){this.map={}}e.prototype.indexes.push({name:"TAG",selector:function(e){var t;if(t=e.match(i))return t[0].toUpperCase()},element:function(e){return[e.nodeName.toUpperCase()]}}),e.prototype.indexes.default={name:"UNIVERSAL",selector:function(){return!0},element:function(){return[!0]}},d="function"==typeof window.Map?window.Map:(a.prototype.get=function(e){return this.map[e+" "]},a.prototype.set=function(e,t){this.map[e+" "]=t},a);var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function p(e,t){var n,r,o,i,a,c,u=(e=e.slice(0).concat(e.default)).length,l=t,s=[];do{if(f.exec(""),(o=f.exec(l))&&(l=o[3],o[2]||!l))for(n=0;n<u;n++)if(a=(c=e[n]).selector(o[1])){for(r=s.length,i=!1;r--;)if(s[r].index===c&&s[r].key===a){i=!0;break}i||s.push({index:c,key:a});break}}while(o);return s}function v(e,t){var n,r,o;for(n=0,r=e.length;n<r;n++)if(o=e[n],t.isPrototypeOf(o))return o}function y(e,t){return e.id-t.id}return e.prototype.logDefaultIndexUsed=function(){},e.prototype.add=function(e,t){var n,r,o,i,a,c,u,l,s=this.activeIndexes,f=this.selectors;if("string"==typeof e){for(n={id:this.uid++,selector:e,data:t},u=p(this.indexes,e),r=0;r<u.length;r++)i=(l=u[r]).key,(a=v(s,o=l.index))||((a=Object.create(o)).map=new d,s.push(a)),o===this.indexes.default&&this.logDefaultIndexUsed(n),(c=a.map.get(i))||(c=[],a.map.set(i,c)),c.push(n);this.size++,f.push(e)}},e.prototype.remove=function(e,t){if("string"==typeof e){var n,r,o,i,a,c,u,l,s=this.activeIndexes,f={},d=1===arguments.length;for(n=p(this.indexes,e),o=0;o<n.length;o++)for(r=n[o],i=s.length;i--;)if(c=s[i],r.index.isPrototypeOf(c)){if(u=c.map.get(r.key))for(a=u.length;a--;)(l=u[a]).selector!==e||!d&&l.data!==t||(u.splice(a,1),f[l.id]=!0);break}this.size-=Object.keys(f).length}},e.prototype.queryAll=function(e){if(!this.selectors.length)return[];var t,n,r,o,i,a,c,u,l={},s=[],f=this.querySelectorAll(this.selectors.join(", "),e);for(t=0,r=f.length;t<r;t++)for(i=f[t],n=0,o=(a=this.matches(i)).length;n<o;n++)l[(u=a[n]).id]?c=l[u.id]:(c={id:u.id,selector:u.selector,data:u.data,elements:[]},l[u.id]=c,s.push(c)),c.elements.push(i);return s.sort(y)},e.prototype.matches=function(e){if(!e)return[];var t,n,r,o,i,a,c,u,l,s,f,d=this.activeIndexes,p={},v=[];for(t=0,o=d.length;t<o;t++)if(u=(c=d[t]).element(e))for(n=0,i=u.length;n<i;n++)if(l=c.map.get(u[n]))for(r=0,a=l.length;r<a;r++)!p[f=(s=l[r]).id]&&this.matchesSelector(e,s.selector)&&(p[f]=!0,v.push(s));return v.sort(y)},e},"object"==typeof O?O=w():this.SelectorSet=w();var S,A,E={exports:{}};S=this,A=function(e,a){"use strict";a=a&&a.hasOwnProperty("default")?a.default:a;var u={},l={},s=new WeakMap,f=new WeakMap,d=new WeakMap,n=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function p(e,t,n){var r=e[t];return e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)},e}function v(){s.set(this,!0)}function y(){s.set(this,!0),f.set(this,!0)}function h(){return d.get(this)||null}function g(e,t){n&&Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:t||n.get})}function c(e){var t=(1===e.eventPhase?l:u)[e.type];if(t){var n=function(e,t,n){var r=[],o=t;do{if(1!==o.nodeType)break;var i=e.matches(o);if(i.length){var a={node:o,observers:i};n?r.unshift(a):r.push(a)}}while(o=o.parentElement);return r}(t,e.target,1===e.eventPhase);if(n.length){p(e,"stopPropagation",v),p(e,"stopImmediatePropagation",y),g(e,h);for(var r=0,o=n.length;r<o&&!s.get(e);r++){var i=n[r];d.set(e,i.node);for(var a=0,c=i.observers.length;a<c&&!f.get(e);a++)i.observers[a].data.call(i.node,e)}d.delete(e),g(e)}}}e.off=function(e,t,n){var r=!!(3<arguments.length&&void 0!==arguments[3]?arguments[3]:{}).capture,o=r?l:u,i=o[e];i&&(i.remove(t,n),i.size||(delete o[e],document.removeEventListener(e,c,r)))},e.on=function(e,t,n){var r=!!(3<arguments.length&&void 0!==arguments[3]?arguments[3]:{}).capture,o=r?l:u,i=o[e];i||(i=new a,o[e]=i,document.addEventListener(e,c,r)),i.add(t,n)},Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof E.exports?A(E.exports,O):A((S=S||self)["delegated-events"]={},S.SelectorSet),E=E.exports;var x={};Object.defineProperty(x,"__esModule",{value:!0}),x.bindScrollHandler=function(e,t){var n=(0,L.default)((r=t,function(e){var t=e.currentTarget,n=-e.deltaY;0<n&&(r.classList.remove(M),t.scrollTop<n&&(t.scrollTop=0,e.preventDefault())),n<=0&&n<t.clientHeight+t.scrollTop-t.scrollHeight&&(r.classList.add(M),t.scrollTop=t.scrollHeight,e.preventDefault())})),r;e.addEventListener("mousewheel",n),e.addEventListener("wheel",n)},x.addListeners=function(e){var t,n=e.dismissAll,r=e.findById,o=e.hover,i=e.repositionAll,a=e.resizeAll,c=e.toggle,u=e.unhover,l=(y=r,h=c,g=n,function(e){var t=F(C(e.target,P)),n=t&&y(t);n?h(n):C(e.target,D)||g()}),s=(t=n,function(e){return 27===e.keyCode&&t()}),f=(0,L.default)(i),d=(0,L.default)(a),p=H(r,o),v=H(r,u),y,h,g;return document.addEventListener("touchend",l),document.addEventListener("click",l),document.addEventListener("keyup",s),document.addEventListener("gestureend",f),window.addEventListener("scroll",f),window.addEventListener("resize",d),(0,E.on)("mouseover",T,p),(0,E.on)("mouseout",T,v),function(){document.removeEventListener("touchend",l),document.removeEventListener("click",l),document.removeEventListener("keyup",s),document.removeEventListener("gestureend",f),window.removeEventListener("scroll",f),window.removeEventListener("resize",d),(0,E.off)("mouseover",T,p),(0,E.off)("mouseout",T,v)}};var L=e(_),P="[data-footnote-button]",T="[data-footnote-id]",D="[data-footnote-popover]",M="is-fully-scrolled";function C(e,t){return e&&e.closest(t)||void 0}function F(e){return e?e.dataset.footnoteId:void 0}function H(r,o){return function(e){e.preventDefault();var t=F(C(e.target,T)),n=t&&r(t);n&&o(n)}}var I={};Object.defineProperty(I,"__esModule",{value:!0}),I.setup=function(e){var t=e.allowDuplicates,n=e.anchorParentSelector,r=e.anchorPattern,o=e.buttonTemplate,i=e.contentTemplate,a=e.footnoteSelector,c=e.numberResetSelector,u,l,y,h,s,f,d,p;return function(t,e){var n;return $(document,(1<arguments.length&&void 0!==e?e:"")+' a[href*="#"]').filter(function(e){return(e.href+e.rel).match(t)})}(r,e.scope).map((s=t,f=n,d=a,p=[],function(e){var t="#"+e.href.split("#")[1].replace(/[:.+~*[\]]/g,"\\$&"),n=$(document,t).find(function(e){return s||!p.includes(e)}),r=n&&n.closest(d);if(r)return p.push(r),[e.closest(f)||e,r]})).filter(q).map(Y).map(G).map(c?V(c):function(e){return e}).map((u=o,l=i,y=(0,k.default)(u),h=(0,k.default)(l),function(e,t){var n=(0,R.default)(e,3),r=n[0],o=n[1],i=n[2],a="".concat(t+1),c={number:i,id:a,content:B(o.innerHTML,r.id),reference:r.id};r.insertAdjacentHTML("beforebegin",'<span class="'.concat(N,'">').concat(y(c),"</span>"));var u=r.previousElementSibling,l=u.firstElementChild;l.dataset.footnoteButton="",l.dataset.footnoteId=a,l.dataset.footnoteNumber="".concat(i);var s,f,d=(s=h(c),(f=document.createElement("div")).innerHTML=s,f.firstElementChild);d.dataset.footnotePopover="",d.dataset.footnoteId=a;var p=z(d,g.CLASS_WRAPPER)||d,v=z(d,g.CLASS_CONTENT);return(0,x.bindScrollHandler)(v,d),{id:a,button:l,host:u,popover:d,content:v,wrapper:p}})).map(m.createFootnote)},I.cleanup=function(){$(document,"."+W).forEach(function(e){return e.classList.remove(W)})};var R=e(function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}),k=e(ke),W="footnote-print-only",N="littlefoot-footnote__host",U=function(e){return e.classList.add(W)};function $(e,t){return Array.from(e.querySelectorAll(t))}function z(e,t){return e.querySelector("."+t)}function q(e){return void 0!==e}function B(e,t){var n=t.trim().replace(/\s+/g,"|"),r=new RegExp("(\\s|&nbsp;)*<\\s*a[^#<]*#("+n+")[^>]*>(.*?)<\\s*/\\s*a>","g"),o=e.trim().replace(r,"").replace("[]","");return o.startsWith("<")?o:"<p>"+o+"</p>"}var V=function(u){return function(e,t,n){var r=(0,R.default)(e,3),o=r[0],i=r[1],a=r[2],c=a?n[a-1][2]:0;return[o,i,o.closest(u)?1:c+1]}},G=function(e,t){var n=(0,R.default)(e,2);return[n[0],n[1],1+t]};function Y(e){var t=(0,R.default)(e,2),n=t[0],r=t[1];return U(n),U(r),function e(t){var n,r,o=(n=t,r=":not(.".concat(W,")"),Array.from(n.children).filter(function(e){return 8!==e.nodeType&&(!r||e.matches(r))})),i=o.filter(function(e){return"HR"===e.tagName});o.length===i.length&&(i.concat(t).forEach(U),e(t.parentNode))}(r.parentElement),[n,r]}var J={};Object.defineProperty(J,"__esModule",{value:!0}),J.littlefoot=X,J.default=void 0;var K=e(t);function Q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function X(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Q(n,!0).forEach(function(e){(0,K.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},o.DEFAULT_SETTINGS,{},e),r=(0,s.createCore)({setup:I.setup,addListeners:x.addListeners,cleanup:I.cleanup},n);return{activate:function(e){var t=r.findById(e);t&&r.activate(t)},dismiss:function(e,t){var n=e&&r.findById(e);n?r.dismiss(n,t):r.dismissAll(t)},unmount:function(){r.unmount()},getSetting:function(e){return n[e]},updateSetting:function(e,t){n[e]=t}}}var Z=X;return J.default=Z,J});
  • _plugins_/bigfoot/trunk/paquet.xml

    r115983 r117559  
    22        prefix="bigfoot"
    33        categorie="divers"
    4         version="1.1.1"
     4        version="1.2.0"
    55        etat="stable"
    66        compatibilite="[3.0.0;3.2.*]"
Note: See TracChangeset for help on using the changeset viewer.