TanchoToplineCargo/public/target/js/uikit.min.js

3 lines
132 KiB
JavaScript
Raw Normal View History

2024-05-05 04:47:49 +00:00
/*! UIkit 3.15.18 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
(function(de,fe){typeof exports=="object"&&typeof module<"u"?module.exports=fe():typeof define=="function"&&define.amd?define("uikit",fe):(de=typeof globalThis<"u"?globalThis:de||self,de.UIkit=fe())})(this,function(){"use strict";const{hasOwnProperty:de,toString:fe}=Object.prototype;function Bt(t,e){return de.call(t,e)}const mo=/\B([A-Z])/g,Gt=ft(t=>t.replace(mo,"-$1").toLowerCase()),vo=/-(\w)/g,pe=ft(t=>t.replace(vo,ps)),kt=ft(t=>t.length?ps(null,t.charAt(0))+t.slice(1):"");function ps(t,e){return e?e.toUpperCase():""}function lt(t,e){return t==null||t.startsWith==null?void 0:t.startsWith(e)}function Xt(t,e){return t==null||t.endsWith==null?void 0:t.endsWith(e)}function g(t,e){return t==null||t.includes==null?void 0:t.includes(e)}function wt(t,e){return t==null||t.findIndex==null?void 0:t.findIndex(e)}const{isArray:J,from:ki}=Array,{assign:$t}=Object;function dt(t){return typeof t=="function"}function St(t){return t!==null&&typeof t=="object"}function bt(t){return fe.call(t)==="[object Object]"}function Jt(t){return St(t)&&t===t.window}function Ne(t){return Ti(t)===9}function Si(t){return Ti(t)>=1}function Kt(t){return Ti(t)===1}function Ti(t){return!Jt(t)&&St(t)&&t.nodeType}function He(t){return typeof t=="boolean"}function D(t){return typeof t=="string"}function Zt(t){return typeof t=="number"}function Mt(t){return Zt(t)||D(t)&&!isNaN(t-parseFloat(t))}function ge(t){return!(J(t)?t.length:St(t)?Object.keys(t).length:!1)}function j(t){return t===void 0}function Ci(t){return He(t)?t:t==="true"||t==="1"||t===""?!0:t==="false"||t==="0"?!1:t}function Tt(t){const e=Number(t);return isNaN(e)?!1:e}function $(t){return parseFloat(t)||0}function q(t){return y(t)[0]}function y(t){return t&&(Si(t)?[t]:Array.from(t).filter(Si))||[]}function Qt(t){var e;if(Jt(t))return t;t=q(t);const i=Ne(t)?t:(e=t)==null?void 0:e.ownerDocument;return(i==null?void 0:i.defaultView)||window}function me(t,e){return t===e||St(t)&&St(e)&&Object.keys(t).length===Object.keys(e).length&&xt(t,(i,s)=>i===e[s])}function Ii(t,e,i){return t.replace(new RegExp(`${e}|${i}`,"g"),s=>s===e?i:e)}function Ut(t){return t[t.length-1]}function xt(t,e){for(const i in t)if(e(t[i],i)===!1)return!1;return!0}function Fe(t,e){return t.slice().sort(({[e]:i=0},{[e]:s=0})=>i>s?1:s>i?-1:0)}function Dt(t,e){return t.reduce((i,s)=>i+$(dt(e)?e(s):s[e]),0)}function gs(t,e){const i=new Set;return t.filter(({[e]:s})=>i.has(s)?!1:i.add(s))}function K(t,e=0,i=1){return Math.min(Math.max(Tt(t)||0,e),i)}function C(){}function _i(...t){return[["bottom","top"],["right","left"]].every(([e,i])=>Math.min(...t.map(({[e]:s})=>s))-Math.max(...t.map(({[i]:s})=>s))>0)}function Le(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}function Pi(t,e,i){const s=e==="width"?"height":"width";return{[s]:t[e]?Math.round(i*t[s]/t[e]):t[s],[e]:i}}function ms(t,e){t={...t};for(const i in t)t=t[i]>e[i]?Pi(t,i,e[i]):t;return t}function wo(t,e){t=ms(t,e);for(const i in t)t=t[i]<e[i]?Pi(t,i,e[i]):t;return t}const We={ratio:Pi,contain:ms,cover:wo};function Ct(t,e,i=0,s=!1){e=y(e);const{length:n}=e;return n?(t=Mt(t)?Tt(t):t==="next"?i+1:t==="previous"?i-1:e.indexOf(q(t)),s?K(t,0,n-1):(t%=n,t<0?t+n:t)):-1}function ft(t){const e=Object.create(null);return i=>e[i]||(e[i]=t(i))}class Re{constructor(){this.promise=new Promise((e,i)=>{this.reject=i,this.resolve=e})}}function b(t,e,i){if(St(e)){for(const n in e)b(t,n,e[n]);return}if(j(i)){var s;return(s=q(t))==null?void 0:s.getAttribute(e)}else for(const n of y(t))dt(i)&&(i=i.call(n,b(n,e))),i===null?ve(n,e):n.setAttribute(e,i)}function It(t,e){return y(t).some(i=>i.hasAttribute(e))}function ve(t,e){const i=y(t);for(const s of e.split(" "))for(const n of i)n.removeAttribute(s)}function st(t,e){for(const i of[e,`data-${e}`])if(It(t,i))return b(t,i)}const $o={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function Ei(t){return y(t).some(e=>$o[e.tagName.toLowerCase()])}function R(t){return y(t).some(e=>e.offsetWidth||e.offsetHeight||e.getClientRects().length)}const we="input,select,textarea