multiStoreAdmin/dist/store/assets/@vueuse.e3650918.js

2 lines
17 KiB
JavaScript
Raw Normal View History

2024-08-04 17:55:30 +08:00
import{u as he,g as be,e as Pe,f as fe,i as Se,n as de,j as Ee,r as m,w as S,s as ve,k as pe,l as Q,m as $e,b as N}from"./@vue.340249d8.js";var Fe=Object.defineProperty,je=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,J=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,B=(e,t,r)=>t in e?Fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ne=(e,t)=>{for(var r in t||(t={}))Ce.call(t,r)&&B(e,r,t[r]);if(J)for(var r of J(t))Te.call(t,r)&&B(e,r,t[r]);return e},De=(e,t)=>je(e,Ie(t));function At(e,t){var r;const n=ve();return pe(()=>{n.value=e()},De(Ne({},t),{flush:(r=t==null?void 0:t.flush)!=null?r:"sync"})),Q(n)}var H;const R=typeof window<"u",Re=e=>typeof e<"u",x=e=>typeof e=="function",Ae=e=>typeof e=="string",D=()=>{},xe=R&&((H=window==null?void 0:window.navigator)==null?void 0:H.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function F(e){return typeof e=="function"?e():he(e)}function q(e,t){function r(...n){return new Promise((a,o)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(a).catch(o)})}return r}const me=e=>e();function Me(e,t={}){let r,n,a=D;const o=s=>{clearTimeout(s),a(),a=D};return s=>{const u=F(e),c=F(t.maxWait);return r&&o(r),u<=0||c!==void 0&&c<=0?(n&&(o(n),n=null),Promise.resolve(s())):new Promise((v,p)=>{a=t.rejectOnCancel?p:v,c&&!n&&(n=setTimeout(()=>{r&&o(r),n=null,v(s())},c)),r=setTimeout(()=>{n&&o(n),n=null,v(s())},u)})}}function ke(e,t=!0,r=!0,n=!1){let a=0,o,i=!0,s=D,u;const c=()=>{o&&(clearTimeout(o),o=void 0,s(),s=D)};return p=>{const l=F(e),f=Date.now()-a,d=()=>u=p();return c(),l<=0?(a=Date.now(),d()):(f>l&&(r||!i)?(a=Date.now(),d()):t&&(u=new Promise((g,O)=>{s=n?O:g,o=setTimeout(()=>{a=Date.now(),i=!0,g(d()),c()},Math.max(0,l-f))})),!r&&!o&&(o=setTimeout(()=>i=!0,l)),i=!1,u)}}function Ve(e=me){const t=m(!0);function r(){t.value=!1}function n(){t.value=!0}const a=(...o)=>{t.value&&e(...o)};return{isActive:Q(t),pause:r,resume:n,eventFilter:a}}function Le(e){return e}function ze(e,t){let r,n,a;const o=m(!0),i=()=>{o.value=!0,a()};S(e,i,{flush:"sync"});const s=x(t)?t:t.get,u=x(t)?void 0:t.set,c=$e((v,p)=>(n=v,a=p,{get(){return o.value&&(r=s(),o.value=!1),n(),r},set(l){u==null||u(l)}}));return Object.isExtensible(c)&&(c.trigger=i),c}function A(e){return be()?(Pe(e),!0):!1}function We(e,t=200,r={}){return q(Me(t,r),e)}function xt(e,t=200,r={}){const n=m(e.value),a=We(()=>{n.value=e.value},t,r);return S(e,()=>a()),n}function Mt(e,t=200,r=!1,n=!0,a=!1){return q(ke(t,r,n,a),e)}function Qe(e){return typeof e=="function"?N(e):m(e)}function k(e,t=!0){fe()?Se(e):t?e():de(e)}function kt(e,t,r={}){const{immediate:n=!0}=r,a=m(!1);let o=null;function i(){o&&(clearTimeout(o),o=null)}function s(){a.value=!1,i()}function u(...c){i(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=null,e(...c)},F(t))}return n&&(a.value=!0,R&&u()),A(s),{isPending:Q(a),start:u,stop:s}}function Vt(e=!1,t={}){const{truthyValue:r=!0,falsyValue:n=!1}=t,a=Ee(e),o=m(e);function i(s){if(arguments.length)return o.value=s,o.value;{const u=F(r);return o.value=o.value===u?F(n):u,o.value}}return a?i:[o,i]}var U=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Be=(e,t)=>{var r={};for(var n in e)qe.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&U)for(var n of U(e))t.indexOf(n)<0&&Je.call(e,n)&&(r[n]=e[n]);return r};function He(e,t,r={}){const n=r,{eventFilter:a=me}=n,o=Be(n,["eventFilter"]);return S(e,q(a,t),o)}var Ue=Object.defineProperty,Ge=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,M=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,G=(e,t,r)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xe=(e,t)=>{for(var r in t||(t={}))ge.call(t,r)&&G(e,r,t[r]);if(M)for(var r of M(t))_e.call(t,r)&&G(e,r,t[r]);return e},Ye=(e,t)=>Ge(e,Ke(t)),Ze=(e,t)=>{var r={};for(var n in e)ge.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&M)for(var n of M(e))t.indexOf(n)<0&&_e.call(e,n)&&(r[n]=e[n