System.register(["./base-legacy.28cad0e5.js"],(function(t){"use strict";var n,r,e;return{setters:[function(t){n=t.a_,r=t.S,e=t.a$}],execute:function(){t("d",(function(t,n,e){var i,u,o,a,f,c,s=0,p=!1,y=!1,g=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function h(n){var r=i,e=u;return i=u=void 0,s=n,a=t.apply(e,r)}function T(t){return s=t,f=setTimeout(N,n),p?h(t):a}function x(t){var r=t-c;return void 0===c||r>=n||r<0||y&&t-s>=o}function N(){var t=l();if(x(t))return $(t);f=setTimeout(N,function(t){var r=n-(t-c);return y?m(r,o-(t-s)):r}(t))}function $(t){return f=void 0,g&&i?h(t):(i=u=void 0,a)}function b(){var t=l(),r=x(t);if(i=arguments,u=this,c=t,r){if(void 0===f)return T(c);if(y)return clearTimeout(f),f=setTimeout(N,n),h(c)}return void 0===f&&(f=setTimeout(N,n)),a}return n=v(n)||0,r(e)&&(p=!!e.leading,o=(y="maxWait"in e)?d(v(e.maxWait)||0,n):o,g="trailing"in e?!!e.trailing:g),b.cancel=function(){void 0!==f&&clearTimeout(f),s=0,i=c=u=f=void 0},b.flush=function(){return void 0===f?a:$(l())},b}));var i=/\s/,u=/^\s+/;function o(t){return t?t.slice(0,function(t){for(var n=t.length;n--&&i.test(t.charAt(n)););return n}(t)+1).replace(u,""):t}var a=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;function v(t){if("number"==typeof t)return t;if(n(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=o(t);var i=f.test(t);return i||c.test(t)?s(t.slice(2),i?2:8):a.test(t)?NaN:+t}var l=function(){return e.Date.now()},d=Math.max,m=Math.min}}}));
