import{createGesture as t}from"./chunk-544df5aa.js";function n(n,e,o,r,i,a){const u=n.ownerDocument.defaultView;return t({el:n,queue:e,gestureName:"goback-swipe",gesturePriority:40,threshold:10,canStart:function(t){return t.startX<=50&&o()},onStart:r,onMove:function(t){i(t.deltaX/u.innerWidth)},onEnd:function(t){const n=u.innerWidth,e=t.deltaX/n,o=t.velocityX,r=o>=0&&(o>.2||t.deltaX>n/2),i=(r?1-e:e)*n;let c=0;if(i>5){const t=i/Math.abs(o);c=Math.min(t,300)}a(r,e,c)}})}export{n as createSwipeBackGesture};