mirror of
https://github.com/vastxie/99AI.git
synced 2025-09-19 18:16:39 +08:00
2 lines
3.7 KiB
JavaScript
2 lines
3.7 KiB
JavaScript
import{K as I,L as b,e as E,r as d,g as P,f as $,n as x,y as S}from"./vue-10b4afc0.js";var f;const y=typeof window<"u";y&&((f=window==null?void 0:window.navigator)!=null&&f.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function L(e){return e}function N(e,n){var t;if(typeof e=="number")return e+n;const u=((t=e.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:t[0])||"",a=e.slice(u.length),i=parseFloat(u)+n;return Number.isNaN(i)?e:i+a}function Q(e){return I()?(b(e),!0):!1}function M(e){return typeof e=="function"?E(e):d(e)}function C(e,n=!0){P()?$(e):n?e():x(e)}const g=y?window:void 0;function T(e,n=!1){const t=d(),u=()=>t.value=!!e();return u(),C(u,n),t}function l(e,n={}){const{window:t=g}=n,u=T(()=>t&&"matchMedia"in t&&typeof t.matchMedia=="function");let a;const i=d(!1),c=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",r):a.removeListener(r))},r=()=>{u.value&&(c(),a=t.matchMedia(M(e).value),i.value=a.matches,"addEventListener"in a?a.addEventListener("change",r):a.addListener(r))};return S(r),Q(()=>c()),i}const B={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};var j=Object.defineProperty,m=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,p=(e,n,t)=>n in e?j(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,W=(e,n)=>{for(var t in n||(n={}))q.call(n,t)&&p(e,t,n[t]);if(m)for(var t of m(n))G.call(n,t)&&p(e,t,n[t]);return e};function F(e,n={}){function t(r,s){let o=e[r];return s!=null&&(o=N(o,s)),typeof o=="number"&&(o=`${o}px`),o}const{window:u=g}=n;function a(r){return u?u.matchMedia(r).matches:!1}const i=r=>l(`(min-width: ${t(r)})`,n),c=Object.keys(e).reduce((r,s)=>(Object.defineProperty(r,s,{get:()=>i(s),enumerable:!0,configurable:!0}),r),{});return W({greater(r){return l(`(min-width: ${t(r,.1)})`,n)},greaterOrEqual:i,smaller(r){return l(`(max-width: ${t(r,-.1)})`,n)},smallerOrEqual(r){return l(`(max-width: ${t(r)})`,n)},between(r,s){return l(`(min-width: ${t(r)}) and (max-width: ${t(s,-.1)})`,n)},isGreater(r){return a(`(min-width: ${t(r,.1)})`)},isGreaterOrEqual(r){return a(`(min-width: ${t(r)})`)},isSmaller(r){return a(`(max-width: ${t(r,-.1)})`)},isSmallerOrEqual(r){return a(`(max-width: ${t(r)})`)},isInBetween(r,s){return a(`(min-width: ${t(r)}) and (max-width: ${t(s,-.1)})`)}},c)}const O=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},w="__vueuse_ssr_handlers__";O[w]=O[w]||{};var v;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(v||(v={}));var R=Object.defineProperty,h=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,_=(e,n,t)=>n in e?R(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,k=(e,n)=>{for(var t in n||(n={}))U.call(n,t)&&_(e,t,n[t]);if(h)for(var t of h(n))V.call(n,t)&&_(e,t,n[t]);return e};const A={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};k({linear:L},A);function K(){const e=F(B),n=e.smaller("sm"),t=e.smaller("md"),u=e.smaller("lg"),a=e.smaller("xl");return{isMobile:n,isSmallMd:t,isSmallLg:u,isSmallXl:a}}export{K as u};
|