openaire-theme/js/uikit.min.js

2 lines
136 KiB
JavaScript
Raw Normal View History

/*! UIkit 3.11.2-dev.4c11be04b | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(Kt,ge){typeof exports=="object"&&typeof module<"u"?modu.exports=ge():typeof define=="function"&&define.amd?define("uikit",ge):(Kt=typeof globalThis<"u"?globalThis:Kt||self,Kt.UIkit=ge())})(this,function(){"use strict";var Kt=Object.prototype,ge=Kt.hasOwnProperty;function At(t,e){return ge.call(t,e)}var ss=/\B([A-Z])/g,zt=pt(function(t){return t.replace(ss,"-$1").toLowerCase()}),os=/-(\w)/g,Xt=pt(function(t){return t.replace(os,pn)}),pe=pt(function(t){return t.length?pn(null,t.charAt(0))+t.slice(1):""});function pn(t,e){return e?e.toUpperCase():""}var Pi=String.prototype,as=Pi.startsWith||function(t){return this.lastIndexOf(t,0)===0};function vt(t,e){return as.call(t,e)}var us=Pi.endsWith||function(t){return this.substr(-t.length)===t};function gt(t,e){return us.call(t,e)}var Ni=Array.prototype,mn=function(t,e){return!!~this.indexOf(t,e)},hs=Pi.includes||mn,cs=Ni.includes||mn;function b(t,e){return t&&(H(t)?hs:cs).call(t,e)}var fs=Ni.findIndex||function(t){for(var e=arguments,i=0;i<this.length;i++)if(t.call(e[1],this[i],i,this))return i;return-1};function Pt(t,e){return fs.call(t,e)}var ht=Array.isArray;function ct(t){return typeof t=="function"}function Tt(t){return t!==null&&typeof t=="object"}var ls=Kt.toString;function Nt(t){return ls.call(t)==="[object Object]"}function me(t){return Tt(t)&&t===t.window}function Jt(t){return Di(t)===9}function Mi(t){return Di(t)>=1}function Ot(t){return Di(t)===1}function Di(t){return!me(t)&&Tt(t)&&t.nodeType}function we(t){return typeof t=="boolean"}function H(t){return typeof t=="string"}function Zt(t){return typeof t=="number"}function Et(t){return Zt(t)||H(t)&&!isNaN(t-parseFloat(t))}function Qt(t){return!(ht(t)?t.length:Tt(t)?Object.keys(t).length:!1)}function Z(t){return t===void 0}function Hi(t){return we(t)?t:t==="true"||t==="1"||t===""?!0:t==="false"||t==="0"?!1:t}function Mt(t){var e=Number(t);return isNaN(e)?!1:e}function x(t){return parseFloat(t)||0}var wn=Array.from||function(t){return Ni.slice.call(t)};function J(t){return E(t)[0]}function E(t){return t&&(Mi(t)?[t]:wn(t).filter(Mi))||[]}function Ft(t){return me(t)?t:(t=J(t),t?(Jt(t)?t:t.ownerDocument).defaultView:window)}function Bi(t){return t?gt(t,"ms")?x(t):x(t)*1e3:0}function qe(t,e){return t===e||Tt(t)&&Tt(e)&&Object.keys(t).length===Object.keys(e).length&&it(t,function(i,n){return i===e[n]})}function zi(t,e,i){return t.replace(new RegExp(e+"|"+i,"g"),function(n){return n===e?i:e})}var k=Object.assign||function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];t=Object(t);for(var n=0;n<e.length;n++){var r=e[n];if(r!==null)for(var s in r)At(r,s)&&(t[s]=r[s])}return t};function be(t){return t[t.length-1]}function it(t,e){for(var i in t)if(e(t[i],i)===!1)return!1;return!0}function $e(t,e){return t.slice().sort(function(i,n){var r=i[e];r===void 0&&(r=0);var s=n[e];return s===void 0&&(s=0),r>s?1:s>r?-1:0})}function bn(t,e){var i=new Set;return t.filter(function(n){var r=n[e];return i.has(r)?!1:i.add(r)||!0})}function $t(t,e,i){return e===void 0&&(e=0),i===void 0&&(i=1),Math.min(Math.max(Mt(t)||0,e),i)}function N(){}function $n(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return[["bottom","top"],["right","left"]].every(function(i){var n=i[0],r=i[1];return Math.min.apply(Math,t.map(function(s){var o=s[n];return o}))-Math.max.apply(Math,t.map(function(s){var o=s[r];return o}))>0})}function Ve(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}var Ut={ratio:function(t,e,i){var n,r=e==="width"?"height":"width";return n={},n[r]=t[e]?Math.round(i*t[r]/t[e]):t[r],n[e]=i,n},contain:function(t,e){var i=this;return t=k({},t),it(t,function(n,r){return t=t[r]>e[r]?i.ratio(t,r,e[r]):t}),t},cover:function(t,e){var i=this;return t=this.contain(t,e),it(t,function(n,r){return t=t[r]<e[r]?i.ratio(t,r,e[r]):t}),t}};function te(t,e,i,n){i===void 0&&(i=0),n===void 0&&(n=!1),e=E(e);var r=e.length;return r?(t=Et(t)?Mt(t):t==="next"?i+1:t==="previous"?i-1:e.indexOf(J(t)),n?$t(t,0,r-1):(t%=r,t<0?