14 lines
39 KiB
JavaScript
14 lines
39 KiB
JavaScript
import{i as Bt}from"./Paired-C4wB-ooD.js";var $="http://www.w3.org/1999/xhtml";const lt={svg:"http://www.w3.org/2000/svg",xhtml:$,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function pt(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),lt.hasOwnProperty(e)?{space:lt[e],local:t}:t}function zt(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===$&&e.documentElement.namespaceURI===$?e.createElement(t):e.createElementNS(n,t)}}function Ht(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function dt(t){var e=pt(t);return(e.local?Ht:zt)(e)}function jt(){}function yt(t){return t==null?jt:function(){return this.querySelector(t)}}function qt(t){typeof t!="function"&&(t=yt(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var i=e[o],s=i.length,l=r[o]=new Array(s),f,a,c=0;c<s;++c)(f=i[c])&&(a=t.call(f,f.__data__,c,i))&&("__data__"in f&&(a.__data__=f.__data__),l[c]=a);return new w(r,this._parents)}function Wt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Yt(){return[]}function Xt(t){return t==null?Yt:function(){return this.querySelectorAll(t)}}function Vt(t){return function(){return Wt(t.apply(this,arguments))}}function $t(t){typeof t=="function"?t=Vt(t):t=Xt(t);for(var e=this._groups,n=e.length,r=[],o=[],i=0;i<n;++i)for(var s=e[i],l=s.length,f,a=0;a<l;++a)(f=s[a])&&(r.push(t.call(f,f.__data__,a,s)),o.push(f));return new w(r,o)}function Gt(t){return function(){return this.matches(t)}}function vt(t){return function(e){return e.matches(t)}}var Kt=Array.prototype.find;function Qt(t){return function(){return Kt.call(this.children,t)}}function Jt(){return this.firstElementChild}function Zt(t){return this.select(t==null?Jt:Qt(typeof t=="function"?t:vt(t)))}var te=Array.prototype.filter;function ee(){return Array.from(this.children)}function ne(t){return function(){return te.call(this.children,t)}}function re(t){return this.selectAll(t==null?ee:ne(typeof t=="function"?t:vt(t)))}function ie(t){typeof t!="function"&&(t=Gt(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var i=e[o],s=i.length,l=r[o]=[],f,a=0;a<s;++a)(f=i[a])&&t.call(f,f.__data__,a,i)&&l.push(f);return new w(r,this._parents)}function gt(t){return new Array(t.length)}function oe(){return new w(this._enter||this._groups.map(gt),this._parents)}function B(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}B.prototype={constructor:B,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function se(t){return function(){return t}}function le(t,e,n,r,o,i){for(var s=0,l,f=e.length,a=i.length;s<a;++s)(l=e[s])?(l.__data__=i[s],r[s]=l):n[s]=new B(t,i[s]);for(;s<f;++s)(l=e[s])&&(o[s]=l)}function ue(t,e,n,r,o,i,s){var l,f,a=new Map,c=e.length,u=i.length,h=new Array(c),_;for(l=0;l<c;++l)(f=e[l])&&(h[l]=_=s.call(f,f.__data__,l,e)+"",a.has(_)?o[l]=f:a.set(_,f));for(l=0;l<u;++l)_=s.call(t,i[l],l,i)+"",(f=a.get(_))?(r[l]=f,f.__data__=i[l],a.delete(_)):n[l]=new B(t,i[l]);for(l=0;l<c;++l)(f=e[l])&&a.get(h[l])===f&&(o[l]=f)}function ae(t){return t.__data__}function fe(t,e){if(!arguments.length)return Array.from(this,ae);var n=e?ue:le,r=this._parents,o=this._groups;typeof t!="function"&&(t=se(t));for(var i=o.length,s=new Array(i),l=new Array(i),f=new Array(i),a=0;a<i;++a){var c=r[a],u=o[a],h=u.length,_=ce(t.call(c,c&&c.__data__,a,r)),d=_.length,b=l[a]=new Array(d),v=s[a]=new Array(d),p=f[a]=new Array(h);n(c,u,b,v,p,_,e);for(var y=0,m=0,S,E;y<d;++y)if(S=b[y]){for(y>=m&&(m=y+1);!(E=v[m])&&++m<d;);S._next=E||null}}return s=new w(s,r),s._enter=l,s._exit=f,s}function ce(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function _e(){return new w(this._exit||this._groups.map(gt),this._parents)}function he(t,e,n){var r=this.enter(),o=this,i=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(o=e(o),o&&(o=o.selection())),n==null?i.remove():n(i),r&&o?r.merge(o).order():o}function pe(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,o=n.length,i=r.length,s=Math.min(o,i),l=new Array(o),f=0;f<s;++f)for(var a=n[f],c=r[f],u=a.length,h=l[f]=new Array(u),_,d=0;d<u;++d)(_=a[d]||c[d])&&(h[d]=_);for(;f<o;++f)l[f]=n[f];return new w(l,this._parents)}function de(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],o=r.length-1,i=r[o],s;--o>=0;)(s=r[o])&&(i&&s.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(s,i),i=s);return this}function ye(t){t||(t=ve);function e(u,h){return u&&h?t(u.__data__,h.__data__):!u-!h}for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var s=n[i],l=s.length,f=o[i]=new Array(l),a,c=0;c<l;++c)(a=s[c])&&(f[c]=a);f.sort(e)}return new w(o,this._parents).order()}function ve(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function ge(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function be(){return Array.from(this)}function me(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],o=0,i=r.length;o<i;++o){var s=r[o];if(s)return s}return null}function we(){let t=0;for(const e of this)++t;return t}function Se(){return!this.node()}function ke(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var o=e[n],i=0,s=o.length,l;i<s;++i)(l=o[i])&&t.call(l,l.__data__,i,o);return this}function Ae(t){return function(){this.removeAttribute(t)}}function Ce(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ee(t,e){return function(){this.setAttribute(t,e)}}function Pe(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function xe(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Oe(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Te(t,e){var n=pt(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?Ce:Ae:typeof e=="function"?n.local?Oe:xe:n.local?Pe:Ee)(n,e))}function bt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Ie(t){return function(){this.style.removeProperty(t)}}function Me(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Re(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Ne(t,e,n){return arguments.length>1?this.each((e==null?Ie:typeof e=="function"?Re:Me)(t,e,n??"")):De(this.node(),t)}function De(t,e){return t.style.getPropertyValue(e)||bt(t).getComputedStyle(t,null).getPropertyValue(e)}function Fe(t){return function(){delete this[t]}}function Ue(t,e){return function(){this[t]=e}}function Le(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Be(t,e){return arguments.length>1?this.each((e==null?Fe:typeof e=="function"?Le:Ue)(t,e)):this.node()[t]}function mt(t){return t.trim().split(/^|\s+/)}function et(t){return t.classList||new wt(t)}function wt(t){this._node=t,this._names=mt(t.getAttribute("class")||"")}wt.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function St(t,e){for(var n=et(t),r=-1,o=e.length;++r<o;)n.add(e[r])}function kt(t,e){for(var n=et(t),r=-1,o=e.length;++r<o;)n.remove(e[r])}function ze(t){return function(){St(this,t)}}function He(t){return function(){kt(this,t)}}function je(t,e){return function(){(e.apply(this,arguments)?St:kt)(this,t)}}function qe(t,e){var n=mt(t+"");if(arguments.length<2){for(var r=et(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each((typeof e=="function"?je:e?ze:He)(n,e))}function We(){this.textContent=""}function Ye(t){return function(){this.textContent=t}}function Xe(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Ve(t){return arguments.length?this.each(t==null?We:(typeof t=="function"?Xe:Ye)(t)):this.node().textContent}function $e(){this.innerHTML=""}function Ge(t){return function(){this.innerHTML=t}}function Ke(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Qe(t){return arguments.length?this.each(t==null?$e:(typeof t=="function"?Ke:Ge)(t)):this.node().innerHTML}function Je(){this.nextSibling&&this.parentNode.appendChild(this)}function Ze(){return this.each(Je)}function tn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function en(){return this.each(tn)}function nn(t){var e=typeof t=="function"?t:dt(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function rn(){return null}function on(t,e){var n=typeof t=="function"?t:dt(t),r=e==null?rn:typeof e=="function"?e:yt(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function sn(){var t=this.parentNode;t&&t.removeChild(this)}function ln(){return this.each(sn)}function un(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function an(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function fn(t){return this.select(t?an:un)}function cn(t){return arguments.length?this.property("__data__",t):this.node().__data__}function _n(t){return function(e){t.call(this,e,this.__data__)}}function hn(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function pn(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,o=e.length,i;n<o;++n)i=e[n],(!t.type||i.type===t.type)&&i.name===t.name?this.removeEventListener(i.type,i.listener,i.options):e[++r]=i;++r?e.length=r:delete this.__on}}}function dn(t,e,n){return function(){var r=this.__on,o,i=_n(e);if(r){for(var s=0,l=r.length;s<l;++s)if((o=r[s]).type===t.type&&o.name===t.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=i,o.options=n),o.value=e;return}}this.addEventListener(t.type,i,n),o={type:t.type,name:t.name,value:e,listener:i,options:n},r?r.push(o):this.__on=[o]}}function yn(t,e,n){var r=hn(t+""),o,i=r.length,s;if(arguments.length<2){var l=this.node().__on;if(l){for(var f=0,a=l.length,c;f<a;++f)for(o=0,c=l[f];o<i;++o)if((s=r[o]).type===c.type&&s.name===c.name)return c.value}return}for(l=e?dn:pn,o=0;o<i;++o)this.each(l(r[o],e,n));return this}function At(t,e,n){var r=bt(t),o=r.CustomEvent;typeof o=="function"?o=new o(e,n):(o=r.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function vn(t,e){return function(){return At(this,t,e)}}function gn(t,e){return function(){return At(this,t,e.apply(this,arguments))}}function bn(t,e){return this.each((typeof e=="function"?gn:vn)(t,e))}function*mn(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],o=0,i=r.length,s;o<i;++o)(s=r[o])&&(yield s)}var Ct=[null];function w(t,e){this._groups=t,this._parents=e}function wn(){return new w([[document.documentElement]],Ct)}function Sn(){return this}w.prototype=wn.prototype={constructor:w,select:qt,selectAll:$t,selectChild:Zt,selectChildren:re,filter:ie,data:fe,enter:oe,exit:_e,join:he,merge:pe,selection:Sn,order:de,sort:ye,call:ge,nodes:be,node:me,size:we,empty:Se,each:ke,attr:Te,style:Ne,property:Be,classed:qe,text:Ve,html:Qe,raise:Ze,lower:en,append:nn,insert:on,remove:ln,clone:fn,datum:cn,on:yn,dispatch:bn,[Symbol.iterator]:mn};function kn(t){return typeof t=="string"?new w([[document.querySelector(t)]],[document.documentElement]):new w([[t]],Ct)}function An(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Cn(t,e){if(t=An(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}var I=Object.freeze({Linear:Object.freeze({None:function(t){return t},In:function(t){return t},Out:function(t){return t},InOut:function(t){return t}}),Quadratic:Object.freeze({In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}}),Cubic:Object.freeze({In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}}),Quartic:Object.freeze({In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}}),Quintic:Object.freeze({In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}}),Sinusoidal:Object.freeze({In:function(t){return 1-Math.sin((1-t)*Math.PI/2)},Out:function(t){return Math.sin(t*Math.PI/2)},InOut:function(t){return .5*(1-Math.sin(Math.PI*(.5-t)))}}),Exponential:Object.freeze({In:function(t){return t===0?0:Math.pow(1024,t-1)},Out:function(t){return t===1?1:1-Math.pow(2,-10*t)},InOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)}}),Circular:Object.freeze({In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}}),Elastic:Object.freeze({In:function(t){return t===0?0:t===1?1:-Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI)},Out:function(t){return t===0?0:t===1?1:Math.pow(2,-10*t)*Math.sin((t-.1)*5*Math.PI)+1},InOut:function(t){return t===0?0:t===1?1:(t*=2,t<1?-.5*Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin((t-1.1)*5*Math.PI)+1)}}),Back:Object.freeze({In:function(t){var e=1.70158;return t===1?1:t*t*((e+1)*t-e)},Out:function(t){var e=1.70158;return t===0?0:--t*t*((e+1)*t+e)+1},InOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)}}),Bounce:Object.freeze({In:function(t){return 1-I.Bounce.Out(1-t)},Out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?I.Bounce.In(t*2)*.5:I.Bounce.Out(t*2-1)*.5+.5}}),generatePow:function(t){return t===void 0&&(t=4),t=t<Number.EPSILON?Number.EPSILON:t,t=t>1e4?1e4:t,{In:function(e){return Math.pow(e,t)},Out:function(e){return 1-Math.pow(1-e,t)},InOut:function(e){return e<.5?Math.pow(e*2,t)/2:(1-Math.pow(2-e*2,t))/2+.5}}}}),T=function(){return performance.now()},En=function(){function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._tweens={},this._tweensAddedDuringUpdate={},this.add.apply(this,e)}return t.prototype.getAll=function(){var e=this;return Object.keys(this._tweens).map(function(n){return e._tweens[n]})},t.prototype.removeAll=function(){this._tweens={}},t.prototype.add=function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var o=0,i=n;o<i.length;o++){var s=i[o];(e=s._group)===null||e===void 0||e.remove(s),s._group=this,this._tweens[s.getId()]=s,this._tweensAddedDuringUpdate[s.getId()]=s}},t.prototype.remove=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=0,o=e;r<o.length;r++){var i=o[r];i._group=void 0,delete this._tweens[i.getId()],delete this._tweensAddedDuringUpdate[i.getId()]}},t.prototype.allStopped=function(){return this.getAll().every(function(e){return!e.isPlaying()})},t.prototype.update=function(e,n){e===void 0&&(e=T()),n===void 0&&(n=!0);var r=Object.keys(this._tweens);if(r.length!==0)for(;r.length>0;){this._tweensAddedDuringUpdate={};for(var o=0;o<r.length;o++){var i=this._tweens[r[o]],s=!n;i&&i.update(e,s)===!1&&!n&&this.remove(i)}r=Object.keys(this._tweensAddedDuringUpdate)}},t}(),G={Linear:function(t,e){var n=t.length-1,r=n*e,o=Math.floor(r),i=G.Utils.Linear;return e<0?i(t[0],t[1],r):e>1?i(t[n],t[n-1],n-r):i(t[o],t[o+1>n?n:o+1],r-o)},Utils:{Linear:function(t,e,n){return(e-t)*n+t}}},Et=function(){function t(){}return t.nextId=function(){return t._nextId++},t._nextId=0,t}(),K=new En,Gn=function(){function t(e,n){this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=I.Linear.None,this._interpolationFunction=G.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=Et.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1,this._object=e,typeof n=="object"?(this._group=n,n.add(this)):n===!0&&(this._group=K,K.add(this))}return t.prototype.getId=function(){return this._id},t.prototype.isPlaying=function(){return this._isPlaying},t.prototype.isPaused=function(){return this._isPaused},t.prototype.getDuration=function(){return this._duration},t.prototype.to=function(e,n){if(n===void 0&&(n=1e3),this._isPlaying)throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=e,this._propertiesAreSetUp=!1,this._duration=n<0?0:n,this},t.prototype.duration=function(e){return e===void 0&&(e=1e3),this._duration=e<0?0:e,this},t.prototype.dynamic=function(e){return e===void 0&&(e=!1),this._isDynamic=e,this},t.prototype.start=function(e,n){if(e===void 0&&(e=T()),n===void 0&&(n=!1),this._isPlaying)return this;if(this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var r in this._valuesStartRepeat)this._swapEndStartRepeatValues(r),this._valuesStart[r]=this._valuesStartRepeat[r]}if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=e,this._startTime+=this._delayTime,!this._propertiesAreSetUp||n){if(this._propertiesAreSetUp=!0,!this._isDynamic){var o={};for(var i in this._valuesEnd)o[i]=this._valuesEnd[i];this._valuesEnd=o}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,n)}return this},t.prototype.startFromCurrentValues=function(e){return this.start(e,!0)},t.prototype._setupProperties=function(e,n,r,o,i){for(var s in r){var l=e[s],f=Array.isArray(l),a=f?"array":typeof l,c=!f&&Array.isArray(r[s]);if(!(a==="undefined"||a==="function")){if(c){var u=r[s];if(u.length===0)continue;for(var h=[l],_=0,d=u.length;_<d;_+=1){var b=this._handleRelativeValue(l,u[_]);if(isNaN(b)){c=!1,console.warn("Found invalid interpolation list. Skipping.");break}h.push(b)}c&&(r[s]=h)}if((a==="object"||f)&&l&&!c){n[s]=f?[]:{};var v=l;for(var p in v)n[s][p]=v[p];o[s]=f?[]:{};var u=r[s];if(!this._isDynamic){var y={};for(var p in u)y[p]=u[p];r[s]=u=y}this._setupProperties(v,n[s],u,o[s],i)}else(typeof n[s]>"u"||i)&&(n[s]=l),f||(n[s]*=1),c?o[s]=r[s].slice().reverse():o[s]=n[s]||0}}},t.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},t.prototype.end=function(){return this._goToEnd=!0,this.update(this._startTime+this._duration),this},t.prototype.pause=function(e){return e===void 0&&(e=T()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=e,this)},t.prototype.resume=function(e){return e===void 0&&(e=T()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=e-this._pauseStart,this._pauseStart=0,this)},t.prototype.stopChainedTweens=function(){for(var e=0,n=this._chainedTweens.length;e<n;e++)this._chainedTweens[e].stop();return this},t.prototype.group=function(e){return e?(e.add(this),this):(console.warn("tween.group() without args has been removed, use group.add(tween) instead."),this)},t.prototype.remove=function(){var e;return(e=this._group)===null||e===void 0||e.remove(this),this},t.prototype.delay=function(e){return e===void 0&&(e=0),this._delayTime=e,this},t.prototype.repeat=function(e){return e===void 0&&(e=0),this._initialRepeat=e,this._repeat=e,this},t.prototype.repeatDelay=function(e){return this._repeatDelayTime=e,this},t.prototype.yoyo=function(e){return e===void 0&&(e=!1),this._yoyo=e,this},t.prototype.easing=function(e){return e===void 0&&(e=I.Linear.None),this._easingFunction=e,this},t.prototype.interpolation=function(e){return e===void 0&&(e=G.Linear),this._interpolationFunction=e,this},t.prototype.chain=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this._chainedTweens=e,this},t.prototype.onStart=function(e){return this._onStartCallback=e,this},t.prototype.onEveryStart=function(e){return this._onEveryStartCallback=e,this},t.prototype.onUpdate=function(e){return this._onUpdateCallback=e,this},t.prototype.onRepeat=function(e){return this._onRepeatCallback=e,this},t.prototype.onComplete=function(e){return this._onCompleteCallback=e,this},t.prototype.onStop=function(e){return this._onStopCallback=e,this},t.prototype.update=function(e,n){var r=this,o;if(e===void 0&&(e=T()),n===void 0&&(n=t.autoStartOnUpdate),this._isPaused)return!0;var i;if(!this._goToEnd&&!this._isPlaying)if(n)this.start(e,!0);else return!1;if(this._goToEnd=!1,e<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0);var s=e-this._startTime,l=this._duration+((o=this._repeatDelayTime)!==null&&o!==void 0?o:this._delayTime),f=this._duration+this._repeat*l,a=function(){if(r._duration===0||s>f)return 1;var b=Math.trunc(s/l),v=s-b*l,p=Math.min(v/r._duration,1);return p===0&&s===r._duration?1:p},c=a(),u=this._easingFunction(c);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,u),this._onUpdateCallback&&this._onUpdateCallback(this._object,c),this._duration===0||s>=this._duration)if(this._repeat>0){var h=Math.min(Math.trunc((s-this._duration)/l)+1,this._repeat);isFinite(this._repeat)&&(this._repeat-=h);for(i in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[i]=="string"&&(this._valuesStartRepeat[i]=this._valuesStartRepeat[i]+parseFloat(this._valuesEnd[i])),this._yoyo&&this._swapEndStartRepeatValues(i),this._valuesStart[i]=this._valuesStartRepeat[i];return this._yoyo&&(this._reversed=!this._reversed),this._startTime+=l*h,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var _=0,d=this._chainedTweens.length;_<d;_++)this._chainedTweens[_].start(this._startTime+this._duration,!1);return this._isPlaying=!1,!1}return!0},t.prototype._updateProperties=function(e,n,r,o){for(var i in r)if(n[i]!==void 0){var s=n[i]||0,l=r[i],f=Array.isArray(e[i]),a=Array.isArray(l),c=!f&&a;c?e[i]=this._interpolationFunction(l,o):typeof l=="object"&&l?this._updateProperties(e[i],s,l,o):(l=this._handleRelativeValue(s,l),typeof l=="number"&&(e[i]=s+(l-s)*o))}},t.prototype._handleRelativeValue=function(e,n){return typeof n!="string"?n:n.charAt(0)==="+"||n.charAt(0)==="-"?e+parseFloat(n):parseFloat(n)},t.prototype._swapEndStartRepeatValues=function(e){var n=this._valuesStartRepeat[e],r=this._valuesEnd[e];typeof r=="string"?this._valuesStartRepeat[e]=this._valuesStartRepeat[e]+parseFloat(r):this._valuesStartRepeat[e]=this._valuesEnd[e],this._valuesEnd[e]=n},t.autoStartOnUpdate=!1,t}();Et.nextId;var C=K;C.getAll.bind(C);C.removeAll.bind(C);C.add.bind(C);C.remove.bind(C);C.update.bind(C);var N,g,Pt,xt,P,ut,Ot,Tt,V,U,M,It,nt,Q,J,z={},H=[],Pn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,W=Array.isArray;function A(t,e){for(var n in e)t[n]=e[n];return t}function rt(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function xn(t,e,n){var r,o,i,s={};for(i in e)i=="key"?r=e[i]:i=="ref"?o=e[i]:s[i]=e[i];if(arguments.length>2&&(s.children=arguments.length>3?N.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)s[i]===void 0&&(s[i]=t.defaultProps[i]);return R(t,s,r,o,null)}function R(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++Pt,__i:-1,__u:0};return o==null&&g.vnode!=null&&g.vnode(i),i}function Y(t){return t.children}function L(t,e){this.props=t,this.context=e}function O(t,e){if(e==null)return t.__?O(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?O(t):null}function On(t){if(t.__P&&t.__d){var e=t.__v,n=e.__e,r=[],o=[],i=A({},e);i.__v=e.__v+1,g.vnode&&g.vnode(i),it(t.__P,i,e,t.__n,t.__P.namespaceURI,32&e.__u?[n]:null,r,n??O(e),!!(32&e.__u),o),i.__v=e.__v,i.__.__k[i.__i]=i,Dt(r,i,o),e.__e=e.__=null,i.__e!=n&&Mt(i)}}function Mt(t){if((t=t.__)!=null&&t.__c!=null)return t.__e=t.__c.base=null,t.__k.some(function(e){if(e!=null&&e.__e!=null)return t.__e=t.__c.base=e.__e}),Mt(t)}function at(t){(!t.__d&&(t.__d=!0)&&P.push(t)&&!j.__r++||ut!=g.debounceRendering)&&((ut=g.debounceRendering)||Ot)(j)}function j(){try{for(var t,e=1;P.length;)P.length>e&&P.sort(Tt),t=P.shift(),e=P.length,On(t)}finally{P.length=j.__r=0}}function Rt(t,e,n,r,o,i,s,l,f,a,c){var u,h,_,d,b,v,p,y=r&&r.__k||H,m=e.length;for(f=Tn(n,e,y,f,m),u=0;u<m;u++)(_=n.__k[u])!=null&&(h=_.__i!=-1&&y[_.__i]||z,_.__i=u,v=it(t,_,h,o,i,s,l,f,a,c),d=_.__e,_.ref&&h.ref!=_.ref&&(h.ref&&ot(h.ref,null,_),c.push(_.ref,_.__c||d,_)),b==null&&d!=null&&(b=d),(p=!!(4&_.__u))||h.__k===_.__k?(f=Nt(_,f,t,p),p&&h.__e&&(h.__e=null)):typeof _.type=="function"&&v!==void 0?f=v:d&&(f=d.nextSibling),_.__u&=-7);return n.__e=b,f}function Tn(t,e,n,r,o){var i,s,l,f,a,c=n.length,u=c,h=0;for(t.__k=new Array(o),i=0;i<o;i++)(s=e[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?s=t.__k[i]=R(null,s,null,null,null):W(s)?s=t.__k[i]=R(Y,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?s=t.__k[i]=R(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):t.__k[i]=s,f=i+h,s.__=t,s.__b=t.__b+1,l=null,(a=s.__i=In(s,n,f,u))!=-1&&(u--,(l=n[a])&&(l.__u|=2)),l==null||l.__v==null?(a==-1&&(o>c?h--:o<c&&h++),typeof s.type!="function"&&(s.__u|=4)):a!=f&&(a==f-1?h--:a==f+1?h++:(a>f?h--:h++,s.__u|=4))):t.__k[i]=null;if(u)for(i=0;i<c;i++)(l=n[i])!=null&&!(2&l.__u)&&(l.__e==r&&(r=O(l)),Ut(l,l));return r}function Nt(t,e,n,r){var o,i;if(typeof t.type=="function"){for(o=t.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=t,e=Nt(o[i],e,n,r));return e}t.__e!=e&&(r&&(e&&t.type&&!e.parentNode&&(e=O(t)),n.insertBefore(t.__e,e||null)),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function In(t,e,n,r){var o,i,s,l=t.key,f=t.type,a=e[n],c=a!=null&&(2&a.__u)==0;if(a===null&&l==null||c&&l==a.key&&f==a.type)return n;if(r>(c?1:0)){for(o=n-1,i=n+1;o>=0||i<e.length;)if((a=e[s=o>=0?o--:i++])!=null&&!(2&a.__u)&&l==a.key&&f==a.type)return s}return-1}function ft(t,e,n){e[0]=="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||Pn.test(e)?n:n+"px"}function F(t,e,n,r,o){var i,s;t:if(e=="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||ft(t.style,e,"");if(n)for(e in n)r&&n[e]==r[e]||ft(t.style,e,n[e])}else if(e[0]=="o"&&e[1]=="n")i=e!=(e=e.replace(It,"$1")),s=e.toLowerCase(),e=s in t||e=="onFocusOut"||e=="onFocusIn"?s.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r?n[M]=r[M]:(n[M]=nt,t.addEventListener(e,i?J:Q,i)):t.removeEventListener(e,i?J:Q,i);else{if(o=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=n??"";break t}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&n==1?"":n))}}function ct(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e[U]==null)e[U]=nt++;else if(e[U]<n[M])return;return n(g.event?g.event(e):e)}}}function it(t,e,n,r,o,i,s,l,f,a){var c,u,h,_,d,b,v,p,y,m,S,E,st,D,X,k=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(f=!!(32&n.__u),i=[l=e.__e=n.__e]),(c=g.__b)&&c(e);t:if(typeof k=="function")try{if(p=e.props,y=k.prototype&&k.prototype.render,m=(c=k.contextType)&&r[c.__c],S=c?m?m.props.value:c.__:r,n.__c?v=(u=e.__c=n.__c).__=u.__E:(y?e.__c=u=new k(p,S):(e.__c=u=new L(p,S),u.constructor=k,u.render=Rn),m&&m.sub(u),u.state||(u.state={}),u.__n=r,h=u.__d=!0,u.__h=[],u._sb=[]),y&&u.__s==null&&(u.__s=u.state),y&&k.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=A({},u.__s)),A(u.__s,k.getDerivedStateFromProps(p,u.__s))),_=u.props,d=u.state,u.__v=e,h)y&&k.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),y&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(y&&k.getDerivedStateFromProps==null&&p!==_&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(p,S),e.__v==n.__v||!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(p,u.__s,S)===!1){e.__v!=n.__v&&(u.props=p,u.state=u.__s,u.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(x){x&&(x.__=e)}),H.push.apply(u.__h,u._sb),u._sb=[],u.__h.length&&s.push(u);break t}u.componentWillUpdate!=null&&u.componentWillUpdate(p,u.__s,S),y&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(_,d,b)})}if(u.context=S,u.props=p,u.__P=t,u.__e=!1,E=g.__r,st=0,y)u.state=u.__s,u.__d=!1,E&&E(e),c=u.render(u.props,u.state,u.context),H.push.apply(u.__h,u._sb),u._sb=[];else do u.__d=!1,E&&E(e),c=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++st<25);u.state=u.__s,u.getChildContext!=null&&(r=A(A({},r),u.getChildContext())),y&&!h&&u.getSnapshotBeforeUpdate!=null&&(b=u.getSnapshotBeforeUpdate(_,d)),D=c!=null&&c.type===Y&&c.key==null?Ft(c.props.children):c,l=Rt(t,W(D)?D:[D],e,n,r,o,i,s,l,f,a),u.base=e.__e,e.__u&=-161,u.__h.length&&s.push(u),v&&(u.__E=u.__=null)}catch(x){if(e.__v=null,f||i!=null)if(x.then){for(e.__u|=f?160:128;l&&l.nodeType==8&&l.nextSibling;)l=l.nextSibling;i[i.indexOf(l)]=null,e.__e=l}else{for(X=i.length;X--;)rt(i[X]);Z(e)}else e.__e=n.__e,e.__k=n.__k,x.then||Z(e);g.__e(x,e,n)}else i==null&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):l=e.__e=Mn(n.__e,e,n,r,o,i,s,f,a);return(c=g.diffed)&&c(e),128&e.__u?void 0:l}function Z(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(Z))}function Dt(t,e,n){for(var r=0;r<n.length;r++)ot(n[r],n[++r],n[++r]);g.__c&&g.__c(e,t),t.some(function(o){try{t=o.__h,o.__h=[],t.some(function(i){i.call(o)})}catch(i){g.__e(i,o.__v)}})}function Ft(t){return typeof t!="object"||t==null||t.__b>0?t:W(t)?t.map(Ft):A({},t)}function Mn(t,e,n,r,o,i,s,l,f){var a,c,u,h,_,d,b,v=n.props||z,p=e.props,y=e.type;if(y=="svg"?o="http://www.w3.org/2000/svg":y=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(a=0;a<i.length;a++)if((_=i[a])&&"setAttribute"in _==!!y&&(y?_.localName==y:_.nodeType==3)){t=_,i[a]=null;break}}if(t==null){if(y==null)return document.createTextNode(p);t=document.createElementNS(o,y,p.is&&p),l&&(g.__m&&g.__m(e,i),l=!1),i=null}if(y==null)v===p||l&&t.data==p||(t.data=p);else{if(i=i&&N.call(t.childNodes),!l&&i!=null)for(v={},a=0;a<t.attributes.length;a++)v[(_=t.attributes[a]).name]=_.value;for(a in v)_=v[a],a=="dangerouslySetInnerHTML"?u=_:a=="children"||a in p||a=="value"&&"defaultValue"in p||a=="checked"&&"defaultChecked"in p||F(t,a,null,_,o);for(a in p)_=p[a],a=="children"?h=_:a=="dangerouslySetInnerHTML"?c=_:a=="value"?d=_:a=="checked"?b=_:l&&typeof _!="function"||v[a]===_||F(t,a,_,v[a],o);if(c)l||u&&(c.__html==u.__html||c.__html==t.innerHTML)||(t.innerHTML=c.__html),e.__k=[];else if(u&&(t.innerHTML=""),Rt(e.type=="template"?t.content:t,W(h)?h:[h],e,n,r,y=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&O(n,0),l,f),i!=null)for(a=i.length;a--;)rt(i[a]);l||(a="value",y=="progress"&&d==null?t.removeAttribute("value"):d!=null&&(d!==t[a]||y=="progress"&&!d||y=="option"&&d!=v[a])&&F(t,a,d,v[a],o),a="checked",b!=null&&b!=t[a]&&F(t,a,b,v[a],o))}return t}function ot(t,e,n){try{if(typeof t=="function"){var r=typeof t.__u=="function";r&&t.__u(),r&&e==null||(t.__u=t(e))}else t.current=e}catch(o){g.__e(o,n)}}function Ut(t,e,n){var r,o;if(g.unmount&&g.unmount(t),(r=t.ref)&&(r.current&&r.current!=t.__e||ot(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){g.__e(i,e)}r.base=r.__P=null}if(r=t.__k)for(o=0;o<r.length;o++)r[o]&&Ut(r[o],e,n||typeof t.type!="function");n||rt(t.__e),t.__c=t.__=t.__e=void 0}function Rn(t,e,n){return this.constructor(t,n)}function Nn(t,e,n){var r,o,i,s;e==document&&(e=document.documentElement),g.__&&g.__(t,e),o=(r=!1)?null:e.__k,i=[],s=[],it(e,t=e.__k=xn(Y,null,[t]),o||z,z,e.namespaceURI,o?null:e.firstChild?N.call(e.childNodes):null,i,o?o.__e:e.firstChild,r,s),Dt(i,t,s)}function Lt(t,e,n){var r,o,i,s,l=A({},t.props);for(i in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),e)i=="key"?r=e[i]:i=="ref"?o=e[i]:l[i]=e[i]===void 0&&s!=null?s[i]:e[i];return arguments.length>2&&(l.children=arguments.length>3?N.call(arguments,2):n),R(t.type,l,r||t.key,o||t.ref,null)}N=H.slice,g={__e:function(t,e,n,r){for(var o,i,s;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(t)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(t,r||{}),s=o.__d),s)return o.__E=o}catch(l){t=l}throw t}},Pt=0,xt=function(t){return t!=null&&t.constructor===void 0},L.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=A({},this.state),typeof t=="function"&&(t=t(A({},n),this.props)),t&&A(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),at(this))},L.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),at(this))},L.prototype.render=Y,P=[],Ot=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Tt=function(t,e){return t.__v.__b-e.__v.__b},j.__r=0,V=Math.random().toString(8),U="__d"+V,M="__a"+V,It=/(PointerCapture)$|Capture$/i,nt=0,Q=ct(!1),J=ct(!0);function _t(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Dn(t){if(Array.isArray(t))return t}function Fn(t,e,n){return(e=jn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Un(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,l=[],f=!0,a=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(f=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);f=!0);}catch(c){a=!0,o=c}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(a)throw o}}return l}}function Ln(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ht(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Bn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ht(Object(n),!0).forEach(function(r){Fn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function zn(t,e){return Dn(t)||Un(t,e)||qn(t,e)||Ln()}function Hn(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function jn(t){var e=Hn(t,"string");return typeof e=="symbol"?e:e+""}function q(t){"@babel/helpers - typeof";return q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(t)}function qn(t,e){if(t){if(typeof t=="string")return _t(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_t(t,e):void 0}}var tt=function(e){if(q(e)!=="object")return e;var n=Lt(e);if(n.props){var r;n.props=Bn({},n.props),n!=null&&(r=n.props)!==null&&r!==void 0&&r.children&&(n.props.children=Array.isArray(n.props.children)?n.props.children.map(tt):tt(n.props.children))}return n},Wn=function(e){return xt(Lt(e))},Yn=function(e,n){delete n.__k,Nn(tt(e),n)};function Xn(t,e){e===void 0&&(e={});var n=e.insertAt;if(!(typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}var Vn=`.float-tooltip-kap {
|
|
position: absolute;
|
|
width: max-content; /* prevent shrinking near right edge */
|
|
max-width: max(50%, 150px);
|
|
padding: 3px 5px;
|
|
border-radius: 3px;
|
|
font: 12px sans-serif;
|
|
color: #eee;
|
|
background: rgba(0,0,0,0.6);
|
|
pointer-events: none;
|
|
}
|
|
`;Xn(Vn);var Kn=Bt({props:{content:{default:!1},offsetX:{triggerUpdate:!1},offsetY:{triggerUpdate:!1}},init:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.style,i=o===void 0?{}:o,s=!!e&&q(e)==="object"&&!!e.node&&typeof e.node=="function",l=kn(s?e.node():e);l.style("position")==="static"&&l.style("position","relative"),n.tooltipEl=l.append("div").attr("class","float-tooltip-kap"),Object.entries(i).forEach(function(a){var c=zn(a,2),u=c[0],h=c[1];return n.tooltipEl.style(u,h)}),n.tooltipEl.style("left","-10000px").style("display","none");var f="tooltip-".concat(Math.round(Math.random()*1e12));n.mouseInside=!1,l.on("mousemove.".concat(f),function(a){n.mouseInside=!0;var c=Cn(a),u=l.node(),h=u.offsetWidth,_=u.offsetHeight,d=[n.offsetX===null||n.offsetX===void 0?"-".concat(c[0]/h*100,"%"):typeof n.offsetX=="number"?"calc(-50% + ".concat(n.offsetX,"px)"):n.offsetX,n.offsetY===null||n.offsetY===void 0?_>130&&_-c[1]<100?"calc(-100% - 6px)":"21px":typeof n.offsetY=="number"?n.offsetY<0?"calc(-100% - ".concat(Math.abs(n.offsetY),"px)"):"".concat(n.offsetY,"px"):n.offsetY];n.tooltipEl.style("left",c[0]+"px").style("top",c[1]+"px").style("transform","translate(".concat(d.join(","),")")),n.content&&n.tooltipEl.style("display","inline")}),l.on("mouseover.".concat(f),function(){n.mouseInside=!0,n.content&&n.tooltipEl.style("display","inline")}),l.on("mouseout.".concat(f),function(){n.mouseInside=!1,n.tooltipEl.style("display","none")})},update:function(e){e.tooltipEl.style("display",e.content&&e.mouseInside?"inline":"none"),e.content?e.content instanceof HTMLElement?(e.tooltipEl.text(""),e.tooltipEl.append(function(){return e.content})):typeof e.content=="string"?e.tooltipEl.html(e.content):Wn(e.content)?(e.tooltipEl.text(""),Yn(e.content,e.tooltipEl.node())):(e.tooltipEl.style("display","none"),console.warn("Tooltip content is invalid, skipping.",e.content,e.content.toString())):e.tooltipEl.text("")}});export{I as E,En as G,Gn as T,wn as a,yt as b,Xt as c,De as d,Kn as i,Gt as m,pt as n,Cn as p,kn as s};
|