
管理员
站长
- UID
- 1
- 积分
- 224396
- 余额
- 13 R
- Moe币
- 84877
- 在线时间
- 279 小时
- 注册时间
- 2025-12-28
- 最后登录
- 2026-11-5
|
|
cal)}}function mt(t,n){var e=(0,it.A)(t),r="transform"===e?rt:ft;return this.attrTween(t,"function"===typeof n?(e.local?vt:gt)(e,r,st(this,"attr."+t,n)):null==n?(e.local?pt:_t)(e):(e.local?yt:dt)(e,r,n))}function bt(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function wt(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function xt(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&wt(t,i)),e}return i._value=n,i}function Mt(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&bt(t,i)),e}return i._value=n,i}function kt(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!==typeof n)throw new Error;var r=(0,it.A)(t);return this.tween(e,(r.local?xt:Mt)(r,n))}function At(t,n){return function(){q(this,t).delay=+n.apply(this,arguments)}}function Tt(t,n){return n=+n,function(){q(this,t).delay=n}}function $t(t){var n=this._id;return arguments.length?this.each(("function"===typeof t?At:Tt)(n,t)):X(this.node(),n).delay}function Pt(t,n){return function(){R(this,t).duration=+n.apply(this,arguments)}}function Nt(t,n){return n=+n,function(){R(this,t).duration=n}}function Ot(t){var n=this._id;return arguments.length?this.each(("function"===typeof t?Pt:Nt)(n,t)):X(this.node(),n).duration}function jt(t,n){if("function"!==typeof n)throw new Error;return function(){R(this,t).ease=n}}function St(t){var n=this._id;return arguments.length?this.each(jt(n,t)):X(this.node(),n).ease}function Ct(t,n){return function(){var e=n.apply(this,arguments);if("function"!==typeof e)throw new Error;R(this,t).ease=e}}function Dt(t){if("function"!==typeof t)throw new Error;return this.each(Ct(this._id,t))}Object.defineProperty(ft,"name",{value:"default",configurable:!0}),Object.defineProperty(mt,"name",{value:"default",configurable:!0}),Object.defineProperty(kt,"name",{value:"default",configurable:!0}),Object.defineProperty($t,"name",{value:"default",configurable:!0}),Object.defineProperty(Ot,"name",{value:"default",configurable:!0}),Object.defineProperty(St,"name",{value:"default",configurable:!0}),Object.defineProperty(Dt,"name",{value:"default",configurable:!0});var Et=e(56541);function Ut(t){"function"!==typeof t&&(t=(0,Et.A)(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,s=r[i]=[],c=0;c<a;++c)(o=u[c])&&t.call(o,o.__data__,c,u)&&s.push(o);return new dn(r,this._parents,this._name,this._id)}function zt(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var s,c=n[a],l=e[a],h=c.length,f=u[a]=new Array(h),_=0;_<h;++_)(s=c[_]||l[_])&&(f[_]=s);for(;a<r;++a)u[a]=n[a];return new dn(u,this._parents,this._name,this._id)}function Yt(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}function Ht(t,n,e){var r,i,o=Yt(n)?q:R;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}function Ft(t,n){var e=this._id;return arguments.length<2?X(this.node(),e).on.on(t):this.each(Ht(e,t,n))}function Lt(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function qt(){return this.on("end.remove",Lt(this._id))}Object.defineProperty(Ut,"name",{value:"default",configurable:!0}),Object.defineProperty(zt,"name",{value:"default",configurable:!0}),Object.defineProperty(Ft,"name",{value:"default",configurable:!0}),Object.defineProperty(qt,"name",{value:"default",configurable:!0});var Rt=e(50574);function Xt(t){var n=this._name,e=this._id;"function"!==typeof t&&(t=(0,Rt.A)(t));for(var r=this._groups,i=r.length,o=new Array(i),u=0;u<i;++u)for(var a,s,c=r[u],l=c.length,h=o[u]=new Array(l),f=0;f<l;++f)(a=c[f])&&(s=t.call(a,a.__data__,f,c))&&("__data__"in a&&(s.__data__=a.__data__),h[f]=s,L(h[f],n,e,f,h,X(a,e)));return new dn(o,this._parents,n,e)}Object.defineProperty(Xt,"name",{value:"default",configurable:!0});var Vt=e(3128);function It(t){var n=this._name,e=this._id;"function"!==typeof t&&(t=(0,Vt.A)(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var s,c=r[a],l=c.length,h=0;h<l;++h)if(s=c[h]){for(var f,_=t.call(s,s.__data__,h,c),p=X(s,e),d=0,y=_.length;d<y;++d)(f=_[d])&&L(f,n,e,d,_,p);o.push(_),u.push(s)}return new dn(o,u,n,e)}Object.defineProperty(It,"name",{value:"default",configurable:!0}),Object.defineProperty(Jt,"name",{value:"default",configurable:!0});var Bt=r.Ay.prototype.constructor;function Jt(){return new Bt(this._groups,this._parents)}var Wt=e(23683);function Gt(t,n){var e,r,i;return function(){var o=(0,Wt.j)(this,t),u=(this.style.removeProperty(t),(0,Wt.j)(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}function Zt(t){return function(){this.style.removeProperty(t)}}function Qt(t,n,e){var r,i,o=e+"";return function(){var u=(0,Wt.j)(this,t);return u===o?null:u===r?i:i=n(r=u,e)}}function Kt(t,n,e){var r,i,o;return function(){var u=(0,Wt.j)(this,t),a=e(this),s=a+"";return null==a&&(this.style.removeProperty(t),s=a=(0,Wt.j)(this,t)),u===s?null:u===r&&s===i?o:(i=s,o=n(r=u,a))}}function tn(t,n){var e,r,i,o,u="style."+n,a="end."+u;return function(){var s=R(this,t),c=s.on,l=null==s.value[u]?o||(o=Zt(n)):void 0;c===e&&i===l||(r=(e=c).copy()).on(a,i=l),s.on=r}}function nn(t,n,e){var r="transform"===(t+="")?et:ft;return null==n?this.styleTween(t,Gt(t,r)).on("end.style."+t,Zt(t)):"function"===typeof n?this.styleTween(t,Kt(t,r,st(this,"style."+t,n))).each(tn(this._id,t)):this.styleTween(t,Qt(t,r,n),e).on("end.style."+t,null)}function en(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function rn(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&en(t,o,e)),r}return o._value=n,o}function on(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!==typeof n)throw new Error;return this.tween(r,rn(t,n,null==e?"":e))}function un(t){return function(){this.textContent=t}}function an(t){return function(){var n=t(this);this.textContent=null==n?"":n}}function sn(t){return this.tween("text","function"===typeof t?an(st(this,"text",t)):un(null==t?"":t+""))}function cn(t){return function(n){this.textContent=t.call(this,n)}}function ln(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&cn(r)),n}return r._value=t,r}function hn(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;return this.tween(n,ln(t))}function fn(){for(var t=this._name,n=this._id,e=gn(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,c=0;c<s;++c)if(u=a[c]){var l=X(u,n);L(u,t,e,c,a,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new dn(r,this._parents,t,e)}function _n(){var t,n,e=this,r=e._id,i=e.size();return new Promise((function(o,u){var a={value:u},s={value:function(){0===--i&&o()}};e.each((function(){var e=R(this,r),i=e.on;i!==t&&(n=(t=i).copy(),n._.cancel.push(a),n._.interrupt.push(a),n._.end.push(s)),e.on=n})),0===i&&o()}))}Object.defineProperty(nn,"name",{value:"default",configurable:!0}),Object.defineProperty(on,"name",{value:"default",configurable:!0}),Object.defineProperty(sn,"name",{value:"default",configurable:!0}),Object.defineProperty(hn,"name",{value:"default",configurable:!0}),Object.defineProperty(fn,"name",{value:"default",configurable:!0}),Object.defineProperty(_n,"name",{value:"default",configurable:!0});var pn=0;function dn(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function yn(t){return(0,r.Ay)().transition(t)}function gn(){return++pn}var vn=r.Ay.prototype;function mn(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}dn.prototype=yn.prototype={constructor:dn,select:Xt,selectAll:It,selectChild:vn.selectChild,selectChildren:vn.selectChildren,filter:Ut,merge:zt,selection:Jt,transition:fn,call:vn.call,nodes:vn.nodes,node:vn.node,size:vn.size,empty:vn.empty,each:vn.each,on:Ft,attr:mt,attrTween:kt,style:nn,styleTween:on,text:sn,textTween:hn,remove:qt,tween:at,delay:$t,duration:Ot,ease:St,easeVarying:Dt,end:_n,[Symbol.iterator]:vn[Symbol.iterator]},Object.defineProperty(xn,"name",{value:"default",configurable:!0});var bn={time:null,delay:0,duration:250,ease:mn};function wn(t,n){var e;while(!(e=t.__transition)||!(e=e[n]))if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return e}function xn(t){var n,e;t instanceof dn?(n=t._id,t=t._name):(n=gn(),(e=bn).time=x(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,c=0;c<s;++c)(u=a[c])&&L(u,t,n,c,a,e||wn(u,n));return new dn(r,this._parents,t,n)}r.Ay.prototype.interrupt=B,r.Ay.prototype.transition=xn},76184:function(t,n,e){"use strict";e(48069);function r(t,n,e){this.k=t,this.x=n,this.y=e}r.prototype={constructor:r,scale:function(t){return 1===t?this:new r(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new r(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var i,o,u,a,s,c,l,h,f,_,p,d,y,g=new r(1,0,0);function v(t){while(!t.__zoom)if(!(t=t.parentNode))return g;return t.__zoom}function m(t){return(!t.ctrlKey||"wheel"===t.type)&&!t.button}function b(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function w(){return this.__zoom||_}function x(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function M(){return navigator.maxTouchPoints||"ontouchstart"in this}function k(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],u=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),u>o?(o+u)/2:Math.min(0,o)||Math.max(0,u))}function A(){var t,n,e,r=m,g=b,v=k,A=x,T=M,$=[0,1/0],P=[[-1/0,-1/0],[1/0,1/0]],N=250,O=a,j=i("start","zoom","end"),S=500,C=150,D=0,E=10;function U(t){t.property("__zoom",w).on("wheel.zoom",R,{passive:!1}).on("mousedown.zoom",X).on("dblclick.zoom",V).filter(T).on("touchstart.zoom",I).on("touchmove.zoom",B).on("touchend.zoom touchcancel.zoom",J).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function z(t,n){return n=Math.max($[0],Math.min($[1],n)),n===t.k?t:new p(n,t.x,t.y)}function Y(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new p(t.k,r,i)}function H(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function F(t,n,e,r){t.on("start.zoom",(function(){L(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){L(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,i=arguments,o=L(t,i).event(r),u=g.apply(t,i),a=null==e?H(u):"function"===typeof e?e.apply(t,i):e,s=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),c=t.__zoom,l="function"===typeof n?n.apply(t,i):n,h=O(c.invert(a).concat(s/c.k),l.invert(a).concat(s/l.k));return function(t){if(1===t)t=l;else{var n=h(t),e=s/n[2];t=new p(e,a[0]-n[0]*e,a[1]-n[1]*e)}o.zoom(null,t)}}))}function L(t,n,e){return!e&&t.__zooming||new q(t,n)}function q(t,n){this.that=t,this.args=n,this.active=0,this.sourceEvent=null,this.extent=g.apply(t,n),this.taps=0}function R(t,...n){if(r.apply(this,arguments)){var e=L(this,n).event(t),i=this.__zoom,o=Math.max($[0],Math.min($[1],i.k*Math.pow(2,A.apply(this,arguments)))),u=s(t);if(e.wheel)e.mouse[0][0]===u[0]&&e.mouse[0][1]===u[1]||(e.mouse[1]=i.invert(e.mouse[0]=u)),clearTimeout(e.wheel);else{if(i.k===o)return;e.mouse=[u,i.invert(u)],l(this),e.start()}d(t),e.wheel=setTimeout(a,C),e.zoom("mouse",v(Y(z(i,o),e.mouse[0],e.mouse[1]),e.extent,P))}function a(){e.wheel=null,e.end()}}function X(t,...n){if(!e&&r.apply(this,arguments)){var i=t.currentTarget,a=L(this,n,!0).event(t),h=c(t.view).on("mousemove.zoom",g,!0).on("mouseup.zoom",m,!0),f=s(t,i),_=t.clientX,p=t.clientY;o(t.view),y(t),a.mouse=[f,this.__zoom.invert(f)],l(this),a.start()}function g(t){if(d(t),!a.moved){var n=t.clientX-_,e=t.clientY-p;a.moved=n*n+e*e>D}a.event(t).zoom("mouse",v(Y(a.that.__zoom,a.mouse[0]=s(t,i),a.mouse[1]),a.extent,P))}function m(t){h.on("mousemove.zoom mouseup.zoom",null),u(t.view,a.moved),d(t),a.event(t).end()}}function V(t,...n){if(r.apply(this,arguments)){var e=this.__zoom,i=s(t.changedTouches?t.changedTouches[0]:t,this),o=e.invert(i),u=e.k*(t.shiftKey?.5:2),a=v(Y(z(e,u),i,o),g.apply(this,n),P);d(t),N>0?c(this).transition().duration(N).call(F,a,i,t):c(this).call(U.transform,a,i,t)}}function I(e,...i){if(r.apply(this,arguments)){var o,u,a,c,h=e.touches,f=h.length,_=L(this,i,e.changedTouches.length===f).event(e);for(y(e),u=0;u<f;++u)a=h[u],c=s(a,this),c=[c,this.__zoom.invert(c),a.identifier],_.touch0?_.touch1||_.touch0[2]===c[2]||(_.touch1=c,_.taps=0):(_.touch0=c,o=!0,_.taps=1+!!t);t&&(t=clearTimeout(t)),o&&(_.taps<2&&(n=c[0],t=setTimeout((function(){t=null}),S)),l(this),_.start())}}function B(t,...n){if(this.__zooming){var e,r,i,o,u=L(this,n).event(t),a=t.changedTouches,c=a.length;for(d(t),e=0;e<c;++e)r=a[e],i=s(r,this),u.touch0&&u.touch0[2]===r.identifier?u.touch0[0]=i:u.touch1&&u.touch1[2]===r.identifier&&(u.touch1[0]=i);if(r=u.that.__zoom,u.touch1){var l=u.touch0[0],h=u.touch0[1],f=u.touch1[0],_=u.touch1[1],p=(p=f[0]-l[0])*p+(p=f[1]-l[1])*p,y=(y=_[0]-h[0])*y+(y=_[1]-h[1])*y;r=z(r,Math.sqrt(p/y)),i=[(l[0]+f[0])/2,(l[1]+f[1])/2],o=[(h[0]+_[0])/2,(h[1]+_[1])/2]}else{if(!u.touch0)return;i=u.touch0[0],o=u.touch0[1]}u.zoom("touch",v(Y(r,i,o),u.extent,P))}}function J(t,...r){if(this.__zooming){var i,o,u=L(this,r).event(t),a=t.changedTouches,l=a.length;for(y(t),e&&clearTimeout(e),e=setTimeout((function(){e=null}),S),i=0;i<l;++i)o=a[i],u.touch0&&u.touch0[2]===o.identifier?delete u.touch0:u.touch1&&u.touch1[2]===o.identifier&&delete u.touch1;if(u.touch1&&!u.touch0&&(u.touch0=u.touch1,delete u.touch1),u.touch0)u.touch0[1]=this.__zoom.invert(u.touch0[0]);else if(u.end(),2===u.taps&&(o=s(o,this),Math.hypot(n[0]-o[0],n[1]-o[1])<E)){var h=c(this).on("dblclick.zoom");h&&h.apply(this,arguments)}}}return U.transform=function(t,n,e,r){var i=t.selection?t.selection():t;i.property("__zoom",w),t!==i?F(t,n,e,r):i.interrupt().each((function(){L(this,arguments).event(r).start().zoom(null,"function"===typeof n?n.apply(this,arguments):n).end()}))},U.scaleBy=function(t,n,e,r){U.scaleTo(t,(function(){var t=this.__zoom.k,e="function"===typeof n?n.apply(this,arguments):n;return t*e}),e,r)},U.scaleTo=func |
|