dnet-openaire-users/src/main/webapp/js/uikit-new.min.js

1 line
123 KiB
JavaScript
Raw Normal View History

/*! UIkit 3.12.0 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("uikit",e):(t="undefined"!=typeof globalThis?globalThis:t||self).UIkit=e()}(this,function(){"use strict";let{hasOwnProperty:t,toString:e}=Object.prototype;function i(e,i){return t.call(e,i)}let s=/\B([A-Z])/g,n=X(t=>t.replace(s,"-$1").toLowerCase()),r=/-(\w)/g,o=X(t=>t.replace(r,a)),l=X(t=>t.length?a(null,t.charAt(0))+t.slice(1):"");function a(t,e){return e?e.toUpperCase():""}function h(t,e){return null==t?void 0:null==t.startsWith?void 0:t.startsWith(e)}function d(t,e){return null==t?void 0:null==t.endsWith?void 0:t.endsWith(e)}function c(t,e){return null==t?void 0:null==t.includes?void 0:t.includes(e)}function u(t,e){return null==t?void 0:null==t.findIndex?void 0:t.findIndex(e)}let{isArray:p,from:f}=Array,{assign:g}=Object;function m(t){return"function"==typeof t}function $(t){return null!==t&&"object"==typeof t}function v(t){return"[object Object]"===e.call(t)}function w(t){return $(t)&&t===t.window}function _(t){return 9===y(t)}function x(t){return y(t)>=1}function b(t){return 1===y(t)}function y(t){return!w(t)&&$(t)&&t.nodeType}function k(t){return"boolean"==typeof t}function I(t){return"string"==typeof t}function C(t){return"number"==typeof t}function E(t){return C(t)||I(t)&&!isNaN(t-parseFloat(t))}function T(t){return!(p(t)?t.length:!!$(t)&&Object.keys(t).length)}function A(t){return void 0===t}function S(t){return k(t)?t:"true"===t||"1"===t||""===t||"false"!==t&&"0"!==t&&t}function z(t){let e=Number(t);return!isNaN(e)&&e}function D(t){return parseFloat(t)||0}function P(t){return H(t)[0]}function H(t){return t&&(x(t)?[t]:Array.from(t).filter(x))||[]}function O(t){var e;if(w(t))return t;t=P(t);let i=_(t)?t:null==(e=t)?void 0:e.ownerDocument;return(null==i?void 0:i.defaultView)||window}function B(t){return t?d(t,"ms")?D(t):1e3*D(t):0}function N(t,e){return t===e||$(t)&&$(e)&&Object.keys(t).length===Object.keys(e).length&&M(t,(t,i)=>t===e[i])}function L(t,e,i){return t.replace(RegExp(e+"|"+i,"g"),t=>t===e?i:e)}function W(t){return t[t.length-1]}function M(t,e){for(let i in t)if(!1===e(t[i],i))return!1;return!0}function F(t,e){return t.slice().sort((t,i)=>{let{[e]:s=0}=t,{[e]:n=0}=i;return s>n?1:n>s?-1:0})}function j(t,e){let i=new Set;return t.filter(t=>{let{[e]:s}=t;return!i.has(s)&&i.add(s)})}function V(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=1),Math.min(Math.max(z(t)||0,e),i)}function R(){}function U(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return[["bottom","top"],["right","left"]].every(t=>{let[i,s]=t;return Math.min(...e.map(t=>{let{[i]:e}=t;return e}))-Math.max(...e.map(t=>{let{[s]:e}=t;return e}))>0})}function q(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}let Y={ratio(t,e,i){let s="width"===e?"height":"width";return{[s]:t[e]?Math.round(i*t[s]/t[e]):t[s],[e]:i}},contain(t,e){return M(t={...t},(i,s)=>t=t[s]>e[s]?this.ratio(t,s,e[s]):t),t},cover(t,e){return M(t=this.contain(t,e),(i,s)=>t=t[s]<e[s]?this.ratio(t,s,e[s]):t),t}};function G(t,e,i,s){void 0===i&&(i=0),void 0===s&&(s=!1),e=H(e);let{length:n}=e;return n?(t=E(t)?z(t):"next"===t?i+1:"previous"===t?i-1:e.indexOf(P(t)),s)?V(t,0,n-1):(t%=n)<0?t+n:t:-1}function X(t){let e=Object.create(null);return i=>e[i]||(e[i]=t(i))}class Z{constructor(){this.promise=new Promise((t,e)=>{this.reject=e,this.resolve=t})}}function K(t,e,i){if($(e)){for(let s in e)K(t,s,e[s]);return}if(A(i)){var n;return null==(n=P(t))?void 0:n.getAttribute(e)}for(let r of H(t))m(i)&&(i=i.call(r,K(r,e))),null===i?Q(r,e):r.setAttribute(e,i)}function J(t,e){return H(t).some(t=>t.hasAttribute(e))}function Q(t,e){let i=H(t);for(let s of e.split(" "))for(let n of i)n.removeAttribute(s)}function tt(t,e){for(let i of[e,"data-"+e])if(J(t,i))return K(t,i)}let te={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function ti(t){return H(t).some(t=>te