1class t{constructor(t,e,s){this.target=t,this.callback=e,this.threshold=s,this.enable()}enable(){this.target.addEventListener("touchstart",this.recordTouchStartValues.bind(this)),this.target.addEventListener("touchend",this.detectSwipeDirection.bind(this))}disable(){this.target.removeEventListener("touchstart",this.recordTouchStartValues.bind(this)),this.target.removeEventListener("touchend",this.detectSwipeDirection.bind(this))}recordTouchStartValues(t){const e=t.changedTouches[0];this.startX=e.pageX,this.startY=e.pageY,this.startTime=(new Date).getTime()}detectSwipeDirection(t){const e=t.changedTouches[0],s=e.pageX-this.startX,i=e.pageY-this.startY,a=Math.abs(s),h=Math.abs(i);if(!((new Date).getTime()-this.startTime>300))switch(!0){case a>=this.threshold&&a>h&&s<0:this.callback("left");break;case a>=this.threshold&&a>h&&s>0:this.callback("right");break;case h>=this.threshold&&h>a&&i<0:this.callback("up");break;case h>=this.threshold&&h>a&&i>0:this.callback("down")}}}function e(e){e.directive("swipe",(e,{value:s,modifiers:i,expression:a},{evaluateLater:h,cleanup:r})=>{const c=a?h(a):()=>{},n=function(e,s,i=150){return new t(e,s,i)}(e,function(t){s&&t!==s||c(()=>{},{scope:{},params:[t]})},"threshold"===i[0]&&(i[1]||"").endsWith("px")&&Number(i[1].replace("px",""))||50);r(()=>{n.disable()})})}document.addEventListener("alpine:init",()=>{window.Alpine.plugin(e)}); 2//# sourceMappingURL=cjs.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.