index-legacy-8aae7957.js 1.9 KB

1
  1. !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}System.register(["./index-legacy-835c2a22.js"],(function(n,r){"use strict";var i,o,u,c,f,a;return{setters:[e=>{i=e.Q,o=e.b6,u=e.S,c=e.b7,f=e.b8,a=e.b9}],execute:function(){function r(e){return!!c()&&(f(e),!0)}function l(e){return"function"==typeof e?e():a(e)}n({a:b,b:l,t:r,u:function(n=1e3,r={}){const{controls:o=!1,immediate:u=!0,callback:c}=r,f=i(0),a=()=>f.value+=1,l=b(c?()=>{a(),c(f.value)}:a,n,{immediate:u});return o?function(n){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?e(Object(i),!0).forEach((function(e){t(n,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))}))}return n}({counter:f,reset:()=>{f.value=0}},l):f}});const s=n("i","undefined"!=typeof window&&"undefined"!=typeof document);function b(e,t=1e3,n={}){const{immediate:c=!0,immediateCallback:f=!1}=n;let a=null;const b=i(!1);function p(){a&&(clearInterval(a),a=null)}function y(){b.value=!1,p()}function m(){const n=l(t);n<=0||(b.value=!0,f&&e(),p(),a=setInterval(e,n))}return c&&s&&m(),(o(t)||"function"==typeof t)&&r(u(t,(()=>{b.value&&s&&m()}))),r(y),{isActive:b,pause:y,resume:m}}}}}))}();