1 |
- System.register(["./index-legacy-e6be1dcb.js"],(function(e,r){"use strict";var t,n,o,i,a,u,l,c,s;return{setters:[e=>{t=e.r,n=e.bu,o=e.w,i=e.bv,a=e.bw,u=e.bx,l=e.e,c=e.aV,s=e.y}],execute:function(){function r(e){return!!i()&&(a(e),!0)}function f(e){return"function"==typeof e?e():u(e)}e({a:function({window:e=g}={}){if(!e)return{x:t(0),y:t(0)};const r=t(e.scrollX),n=t(e.scrollY);return h(e,"scroll",(()=>{r.value=e.scrollX,n.value=e.scrollY}),{capture:!1,passive:!0}),{x:r,y:n}},b:function(e=1e3,r={}){const{controls:n=!1,immediate:o=!0,callback:i}=r,a=t(0),u=()=>a.value+=1,l=()=>{a.value=0},c=y(i?()=>{u(),i(a.value)}:u,e,{immediate:o});return n?A({counter:a,reset:l},c):a},c:y,d:function(e,n,i={}){const a=i,{window:u=g}=a,f=I(a,["window"]);let v;const p=function(e){const r=function(){const e=t(!1);return c()&&s((()=>{e.value=!0})),e}();return l((()=>(r.value,Boolean(e()))))}((()=>u&&"ResizeObserver"in u)),y=()=>{v&&(v.disconnect(),v=void 0)},d=l((()=>Array.isArray(e)?e.map((e=>j(e))):[j(e)])),b=o(d,(e=>{if(y(),p.value&&u){v=new ResizeObserver(n);for(const r of e)r&&v.observe(r,f)}}),{immediate:!0,flush:"post",deep:!0}),m=()=>{y(),b()};return r(m),{isSupported:p,stop:m}},u:h});const v="undefined"!=typeof window,p=()=>{};function y(e,i=1e3,a={}){const{immediate:u=!0,immediateCallback:l=!1}=a;let c=null;const s=t(!1);function p(){c&&(clearInterval(c),c=null)}function y(){s.value=!1,p()}function d(){const r=f(i);r<=0||(s.value=!0,l&&e(),p(),c=setInterval(e,r))}return u&&v&&d(),(n(i)||"function"==typeof i)&&r(o(i,(()=>{s.value&&v&&d()}))),r(y),{isActive:s,pause:y,resume:d}}var d=Object.defineProperty,b=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,O=(e,r,t)=>r in e?d(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,A=(e,r)=>{for(var t in r||(r={}))m.call(r,t)&&O(e,t,r[t]);if(b)for(var t of b(r))w.call(r,t)&&O(e,t,r[t]);return e};function j(e){var r;const t=f(e);return null!=(r=null==t?void 0:t.$el)?r:t}const g=v?window:void 0;function h(...e){let t,n,i,a;if("string"==typeof e[0]||Array.isArray(e[0])?([n,i,a]=e,t=g):[t,n,i,a]=e,!t)return p;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const u=[],l=()=>{u.forEach((e=>e())),u.length=0},c=o((()=>[j(t),f(a)]),(([e,r])=>{l(),e&&u.push(...n.flatMap((t=>i.map((n=>((e,r,t,n)=>(e.addEventListener(r,t,n),()=>e.removeEventListener(r,t,n)))(e,t,n,r))))))}),{immediate:!0,flush:"post"}),s=()=>{c(),l()};return r(s),s}var x=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,I=(e,r)=>{var t={};for(var n in e)E.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&x)for(var n of x(e))r.indexOf(n)<0&&P.call(e,n)&&(t[n]=e[n]);return t}}}}));
|