1import{s as S}from"./6GKZDNpu.js";import{e as N}from"./DF97k95f.js";function O(t){let r;for(;r=t.sourceEvent;)t=r;return t}function U(t,r){if(t=O(t),r===void 0&&(r=t.currentTarget),r){var c=r.ownerSVGElement||r;if(c.createSVGPoint){var o=c.createSVGPoint();return o.x=t.clientX,o.y=t.clientY,o=o.matrixTransform(r.getScreenCTM().inverse()),[o.x,o.y]}if(r.getBoundingClientRect){var s=r.getBoundingClientRect();return[t.clientX-s.left-r.clientLeft,t.clientY-s.top-r.clientTop]}}return[t.pageX,t.pageY]}const A={passive:!1},v={capture:!0,passive:!1};function D(t){t.stopImmediatePropagation()}function y(t){t.preventDefault(),t.stopImmediatePropagation()}function H(t){var r=t.document.documentElement,c=S(t).on("dragstart.drag",y,v);"onselectstart"in r?c.on("selectstart.drag",y,v):(r.__noselect=r.style.MozUserSelect,r.style.MozUserSelect="none")}function J(t,r){var c=t.document.documentElement,o=S(t).on("dragstart.drag",null);r&&(o.on("click.drag",y,v),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in c?o.on("selectstart.drag",null):(c.style.MozUserSelect=c.__noselect,delete c.__noselect)}const E=t=>()=>t;function M(t,{sourceEvent:r,subject:c,target:o,identifier:s,active:m,x:h,y:x,dx:w,dy:b,dispatch:d}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},subject:{value:c,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:m,enumerable:!0,configurable:!0},x:{value:h,enumerable:!0,configurable:!0},y:{value:x,enumerable:!0,configurable:!0},dx:{value:w,enumerable:!0,configurable:!0},dy:{value:b,enumerable:!0,configurable:!0},_:{value:d}})}M.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function Q(t){return!t.ctrlKey&&!t.button}function W(){return this.parentNode}function Z(t,r){return r??{x:t.x,y:t.y}}function _(){return navigator.maxTouchPoints||"ontouchstart"in this}function te(){var t=Q,r=W,c=Z,o=_,s={},m=N("start","drag","end"),h=0,x,w,b,d,k=0;function i(e){e.on("mousedown.drag",V).filter(o).on("touchstart.drag",R).on("touchmove.drag",q,A).on("touchend.drag touchcancel.drag",F).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function V(e,n){if(!(d||!t.call(this,e,n))){var u=X(this,r.call(this,e,n),e,n,"mouse");u&&(S(e.view).on("mousemove.drag",B,v).on("mouseup.drag",I,v),H(e.view),D(e),b=!1,x=e.clientX,w=e.clientY,u("start",e))}}function B(e){if(y(e),!b){var n=e.clientX-x,u=e.clientY-w;b=n*n+u*u>k}s.mouse("drag",e)}function I(e){S(e.view).on("mousemove.drag mouseup.drag",null),J(e.view,b),y(e),s.mouse("end",e)}function R(e,n){if(t.call(this,e,n)){var u=e.changedTouches,a=r.call(this,e,n),l=u.length,g,p;for(g=0;g<l;++g)(p=X(this,a,e,n,u[g].identifier,u[g]))&&(D(e),p("start",e,u[g]))}}function q(e){var n=e.changedTouches,u=n.length,a,l;for(a=0;a<u;++a)(l=s[n[a].identifier])&&(y(e),l("drag",e,n[a]))}function F(e){var n=e.changedTouches,u=n.length,a,l;for(d&&clearTimeout(d),d=setTimeout(function(){d=null},500),a=0;a<u;++a)(l=s[n[a].identifier])&&(D(e),l("end",e,n[a]))}function X(e,n,u,a,l,g){var p=m.copy(),f=U(g||u,n),Y,C,T;if((T=c.call(e,new M("beforestart",{sourceEvent:u,target:i,identifier:l,active:h,x:f[0],y:f[1],dx:0,dy:0,dispatch:p}),a))!=null)return Y=T.x-f[0]||0,C=T.y-f[1]||0,function K(j,z,L){var G=f,P;switch(j){case"start":s[l]=K,P=h++;break;case"end":delete s[l],--h;case"drag":f=U(L||z,n),P=h;break}p.call(j,e,new M(j,{sourceEvent:z,subject:T,target:i,identifier:l,active:P,x:f[0]+Y,y:f[1]+C,dx:f[0]-G[0],dy:f[1]-G[1],dispatch:p}),a)}}return i.filter=function(e){return arguments.length?(t=typeof e=="function"?e:E(!!e),i):t},i.container=function(e){return arguments.length?(r=typeof e=="function"?e:E(e),i):r},i.subject=function(e){return arguments.length?(c=typeof e=="function"?e:E(e),i):c},i.touchable=function(e){return arguments.length?(o=typeof e=="function"?e:E(!!e),i):o},i.on=function(){var e=m.on.apply(m,arguments);return e===m?i:e},i.clickDistance=function(e){return arguments.length?(k=(e=+e)*e,i):Math.sqrt(k)},i}export{U as a,te as d};
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.