!function(){function e(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(u){l=!0,a=u}finally{try{o||null==n.return||n.return()}finally{if(l)throw a}}return i}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&y.isVertical()&&(f(t),w((a=r.value,i=+(e.pullDistance||e.headHeight),a>i&&(a=a<2*i?i+(a-i)/2:1.5*i+(a-2*i)/4),Math.round(a))))}var a,i},V=function(){n&&y.deltaY.value&&D()&&(m.duration=+e.animationDuration,"loosing"===m.status?(w(+e.headHeight,!0),r("update:modelValue",!0),v((function(){return r("refresh")}))):w(0))};return c((function(){return e.modelValue}),(function(t){m.duration=+e.animationDuration,t?w(+e.headHeight,!0):a.success||e.successText?(m.status="success",setTimeout((function(){w(0)}),+e.successDuration)):w(0,!1)})),function(){var e,t={transitionDuration:"".concat(m.duration,"ms"),transform:m.distance?"translate3d(0,".concat(m.distance,"px, 0)"):""};return d("div",{ref:i,class:x()},[d("div",{class:x("track"),style:t,onTouchstart:A,onTouchmove:j,onTouchend:V,onTouchcancel:V},[d("div",{class:x("head"),style:S()},[_()]),null==(e=a.default)?void 0:e.call(a)])])}}});t("P",g(D))}}}))}();