diff --git a/dist/unipept-visualizations.js b/dist/unipept-visualizations.js index 530850e..5220e7f 100644 --- a/dist/unipept-visualizations.js +++ b/dist/unipept-visualizations.js @@ -1,2 +1,2 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.UnipeptVisualizations=e():t.UnipeptVisualizations=e()}(this,(function(){return(()=>{var t={9348:(t,e,n)=>{"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.r(e),n.d(e,{ColorPalette:()=>Ho,ColorUtils:()=>sa,DataNode:()=>i,Heatmap:()=>qo,HeatmapSettings:()=>po,StringUtils:()=>Yo,Sunburst:()=>pa,SunburstSettings:()=>Jo,Transition:()=>oo,Treemap:()=>Ea,TreemapSettings:()=>ba,Treeview:()=>Ja,TreeviewSettings:()=>ja});var i=function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};r(this,t),this.id=e,this.name=n,this.children=i,this.count=o,this.selfCount=a,this.extra=s};function o(){}function a(t){return null==t?o:function(){return this.querySelector(t)}}function s(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function u(){return[]}function c(t){return null==t?u:function(){return this.querySelectorAll(t)}}function l(t){return function(){return this.matches(t)}}function f(t){return function(e){return e.matches(t)}}var h=Array.prototype.find;function p(){return this.firstElementChild}var d=Array.prototype.filter;function v(){return this.children}function g(t){return new Array(t.length)}function y(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function m(t){return function(){return t}}function b(t,e,n,r,i,o){for(var a,s=0,u=e.length,c=o.length;se?1:t>=e?0:NaN}y.prototype={constructor:y,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)}};var _="http://www.w3.org/1999/xhtml";const A={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 M(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),A.hasOwnProperty(e)?{space:A[e],local:t}:t}function T(t){return function(){this.removeAttribute(t)}}function E(t){return function(){this.removeAttributeNS(t.space,t.local)}}function k(t,e){return function(){this.setAttribute(t,e)}}function O(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function P(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function C(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function R(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function I(t){return function(){this.style.removeProperty(t)}}function j(t,e,n){return function(){this.style.setProperty(t,e,n)}}function N(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function L(t,e){return t.style.getPropertyValue(e)||R(t).getComputedStyle(t,null).getPropertyValue(e)}function z(t){return function(){delete this[t]}}function D(t,e){return function(){this[t]=e}}function F(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function U(t){return t.trim().split(/^|\s+/)}function B(t){return t.classList||new q(t)}function q(t){this._node=t,this._names=U(t.getAttribute("class")||"")}function V(t,e){for(var n=B(t),r=-1,i=e.length;++r=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function lt(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var vt=[null];function gt(t,e){this._groups=t,this._parents=e}function yt(){return new gt([[document.documentElement]],vt)}gt.prototype=yt.prototype={constructor:gt,select:function(t){"function"!=typeof t&&(t=a(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=T&&(T=M+1);!(A=y[T])&&++T=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=S);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?I:"function"==typeof e?N:j)(t,e,null==n?"":n)):L(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?z:"function"==typeof e?F:D)(t,e)):this.node()[t]},classed:function(t,e){var n=U(t+"");if(arguments.length<2){for(var r=B(this.node()),i=-1,o=n.length;++i{}};function xt(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function _t(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),o=0;o=0&&e._call.call(null,t),e=e._next;--kt}()}finally{kt=0,function(){for(var t,e,n=Tt,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Tt=e);Et=t,qt(r)}(),Rt=0}}function Bt(){var t=jt.now(),e=t-Ct;e>1e3&&(It-=e,Ct=t)}function qt(t){kt||(Ot&&(Ot=clearTimeout(Ot)),t-Rt>24?(t<1/0&&(Ot=setTimeout(Ut,t-jt.now()-It)),Pt&&(Pt=clearInterval(Pt))):(Pt||(Ct=jt.now(),Pt=setInterval(Bt,1e3)),kt=1,Nt(Ut)))}function Vt(t,e,n){var r=new Dt;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}Dt.prototype=Ft.prototype={constructor:Dt,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Lt():+n)+(null==e?0:+e),this._next||Et===this||(Et?Et._next=this:Tt=this,Et=this),this._call=t,this._time=n,qt()},stop:function(){this._call&&(this._call=null,this._time=1/0,qt())}};var Ht=Mt("start","end","cancel","interrupt"),Wt=[];function Yt(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(u){var c,l,f,h;if(1!==n.state)return s();for(c in i)if((h=i[c]).name===n.name){if(3===h.state)return Vt(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[c]):+c0)throw new Error("too late; already scheduled");return n}function Gt(t,e){var n=$t(t,e);if(n.state>3)throw new Error("too late; already running");return n}function $t(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Zt(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}function Kt(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var Jt,Qt=180/Math.PI,te={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ee(t,e,n,r,i,o){var a,s,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Kt(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,s,u),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Kt(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,s,u),function(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Kt(t,n)},{i:s-2,x:Kt(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(t){for(var e,n=-1,r=u.length;++n>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ke(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ke(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=ye.exec(t))?new Ce(e[1],e[2],e[3],1):(e=me.exec(t))?new Ce(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=be.exec(t))?ke(e[1],e[2],e[3],e[4]):(e=xe.exec(t))?ke(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=we.exec(t))?Ne(e[1],e[2]/100,e[3]/100,1):(e=Se.exec(t))?Ne(e[1],e[2]/100,e[3]/100,e[4]):_e.hasOwnProperty(t)?Ee(_e[t]):"transparent"===t?new Ce(NaN,NaN,NaN,0):null}function Ee(t){return new Ce(t>>16&255,t>>8&255,255&t,1)}function ke(t,e,n,r){return r<=0&&(t=e=n=NaN),new Ce(t,e,n,r)}function Oe(t){return t instanceof le||(t=Te(t)),t?new Ce((t=t.rgb()).r,t.g,t.b,t.opacity):new Ce}function Pe(t,e,n,r){return 1===arguments.length?Oe(t):new Ce(t,e,n,null==r?1:r)}function Ce(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Re(){return"#"+je(this.r)+je(this.g)+je(this.b)}function Ie(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function je(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ne(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new De(t,e,n,r)}function Le(t){if(t instanceof De)return new De(t.h,t.s,t.l,t.opacity);if(t instanceof le||(t=Te(t)),!t)return new De;if(t instanceof De)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n0&&u<1?0:a,new De(a,s,u,t.opacity)}function ze(t,e,n,r){return 1===arguments.length?Le(t):new De(t,e,n,null==r?1:r)}function De(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Fe(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Ue(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}ue(le,Te,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ae,formatHex:Ae,formatHsl:function(){return Le(this).formatHsl()},formatRgb:Me,toString:Me}),ue(Ce,Pe,ce(le,{brighter:function(t){return t=null==t?he:Math.pow(he,t),new Ce(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?fe:Math.pow(fe,t),new Ce(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Re,formatHex:Re,formatRgb:Ie,toString:Ie})),ue(De,ze,ce(le,{brighter:function(t){return t=null==t?he:Math.pow(he,t),new De(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?fe:Math.pow(fe,t),new De(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Ce(Fe(t>=240?t-240:t+120,i,r),Fe(t,i,r),Fe(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const Be=t=>()=>t;function qe(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Be(isNaN(t)?e:t)}const Ve=function t(e){var n=function(t){return 1==(t=+t)?qe:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Be(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Pe(t)).r,(e=Pe(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=qe(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function He(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=ro&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Kt(n,r)})),o=Ye.lastIndex;return o=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Xt:Gt;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var hn=mt.prototype.constructor;function pn(t){return function(){this.style.removeProperty(t)}}function dn(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function vn(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&dn(t,o,n)),r}return o._value=e,o}function gn(t){return function(e){this.textContent=t.call(this,e)}}function yn(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&gn(r)),e}return r._value=t,r}var mn=0;function bn(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function xn(){return++mn}var wn=mt.prototype;bn.prototype=function(t){return mt().transition(t)}.prototype={constructor:bn,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=a(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s.008856451679035631?Math.pow(t,1/3):t/jn+Rn}function Fn(t){return t>In?t*t*t:jn*(t-Rn)}function Un(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Bn(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function qn(t){if(t instanceof Vn)return new Vn(t.h,t.c,t.l,t.opacity);if(t instanceof zn||(t=Nn(t)),0===t.a&&0===t.b)return new Vn(NaN,0=0;)e+=n[r].value;else e=1;t.value=e}function Yn(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=Gn)):void 0===e&&(e=Xn);for(var n,r,i,o,a,s=new Kn(t),u=[s];n=u.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)u.push(r=i[o]=new Kn(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Zn)}function Xn(t){return t.children}function Gn(t){return Array.isArray(t)?t[1]:null}function $n(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Zn(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Kn(t){this.data=t,this.depth=this.height=0,this.parent=null}function Jn(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Qn(t,e,n,r,i){for(var o,a=t.children,s=-1,u=a.length,c=t.value&&(r-e)/t.value;++s=0;--i)s.push(n=e.children[i]=new ar(r[i],i)),n.parent=e;return(a.parent=new ar(null,0)).children=[a],a}(i);if(u.eachAfter(o),u.parent.m=-u.z,u.eachBefore(a),r)i.eachBefore(s);else{var c=i,l=i,f=i;i.eachBefore((function(t){t.xl.x&&(l=t),t.depth>f.depth&&(f=t)}));var h=c===l?1:t(c,l)/2,p=h-c.x,d=e/(l.x+h+p),v=n/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*d,t.y=t.depth*v}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,s=n,u=o.parent.children[0],c=o.m,l=a.m,f=s.m,h=u.m;s=rr(s),o=nr(o),s&&o;)u=nr(u),(a=rr(a)).a=e,(i=s.z+f-o.z-c+t(s._,o._))>0&&(ir(or(s,e,r),e,i),c+=i,l+=i),f+=s.m,c+=o.m,h+=u.m,l+=a.m;s&&!rr(a)&&(a.t=s,a.m+=f-l),o&&!nr(u)&&(u.t=o,u.m+=c-h,r=e)}return r}(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function ur(t,e,n,r,i){for(var o,a=t.children,s=-1,u=a.length,c=t.value&&(i-n)/t.value;++s=0;--r)o.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return Yn(this).eachBefore($n)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;nh&&(h=s),g=l*l*v,(p=Math.max(h/g,g/f))>d){l-=s;break}d=p}y.push(a={value:l,dice:u1?e:1)},n}((1+Math.sqrt(5))/2);function lr(t){if("function"!=typeof t)throw new Error;return t}function fr(){return 0}function hr(t){return function(){return t}}function pr(){var t=cr,e=!1,n=1,r=1,i=[0],o=fr,a=fr,s=fr,u=fr,c=fr;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(f),i=[0],e&&t.eachBefore(Jn),t}function f(e){var n=i[e.depth],r=e.x0+n,l=e.y0+n,f=e.x1-n,h=e.y1-n;f=0?(o>=xr?10:o>=wr?5:o>=Sr?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=xr?10:o>=wr?5:o>=Sr?2:1)}function Ar(t,e){return te?1:t>=e?0:NaN}function Mr(t){let e=t,n=t;function r(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)<0?r=o+1:i=o}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>Ar(t(e),n)}(t)),{left:r,center:function(t,n,i,o){null==i&&(i=0),null==o&&(o=t.length);const a=r(t,n,i,o-1);return a>i&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)>0?i=o:r=o+1}return r}}}const Tr=Mr(Ar),Er=Tr.right,kr=(Tr.left,Mr((function(t){return null===t?NaN:+t})).center,Er);function Or(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Pr(t){return+t}var Cr=[0,1];function Rr(t){return t}function Ir(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function jr(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return ie&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=u>2?Nr:jr,i=o=null,f}function f(e){return isNaN(e=+e)?n:(i||(i=r(a.map(t),s,u)))(t(c(e)))}return f.invert=function(n){return c(e((o||(o=r(s,a.map(t),Kt)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Pr),l()):a.slice()},f.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},f.rangeRound=function(t){return s=Array.from(t),u=Or,l()},f.clamp=function(t){return arguments.length?(c=!!t||Rr,l()):c!==Rr},f.interpolate=function(t){return arguments.length?(u=t,l()):u},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,l()}}()(Rr,Rr)}function Dr(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Fr,Ur=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Br(t){if(!(e=Ur.exec(t)))throw new Error("invalid format: "+t);var e;return new qr({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function qr(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Vr(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Hr(t){return(t=Vr(Math.abs(t)))?t[1]:NaN}function Wr(t,e){var n=Vr(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}Br.prototype=qr.prototype,qr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Yr={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Wr(100*t,e),r:Wr,s:function(t,e){var n=Vr(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Fr=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Vr(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Xr(t){return t}var Gr,$r,Zr,Kr=Array.prototype.map,Jr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Qr(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s=xr?i*=10:o>=wr?i*=5:o>=Sr&&(i*=2),e0;){if((i=_r(u,c,n))===r)return o[a]=u,o[s]=c,e(o);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function ti(){var t=zr();return t.copy=function(){return Lr(t,ti())},Dr.apply(t,arguments),Qr(t)}Gr=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Xr:(e=Kr.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?Xr:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Kr.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=Br(t)).fill,n=t.align,f=t.sign,h=t.symbol,p=t.zero,d=t.width,v=t.comma,g=t.precision,y=t.trim,m=t.type;"n"===m?(v=!0,m="g"):Yr[m]||(void 0===g&&(g=12),y=!0,m="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",x="$"===h?o:/[%p]/.test(m)?u:"",w=Yr[m],S=/[defgprs%]/.test(m);function _(t){var i,o,u,h=b,_=x;if("c"===m)_=w(t)+_,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:w(Math.abs(t),g),y&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),A&&0==+t&&"+"!==f&&(A=!1),h=(A?"("===f?f:c:"-"===f||"("===f?"":f)+h,_=("s"===m?Jr[8+Fr/3]:"")+_+(A&&"("===f?")":""),S)for(i=-1,o=t.length;++i(u=t.charCodeAt(i))||u>57){_=(46===u?a+t.slice(i+1):t.slice(i))+_,t=t.slice(0,i);break}}v&&!p&&(t=r(t,1/0));var M=h.length+t.length+_.length,T=M>1)+h+t+_+T.slice(M);break;default:t=T+h+t+_}return s(t)}return g=void 0===g?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),_.toString=function(){return t+""},_}return{format:f,formatPrefix:function(t,e){var n=f(((t=Br(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Hr(e)/3))),i=Math.pow(10,-r),o=Jr[8+r/3];return function(t){return n(i*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),$r=Gr.format,Zr=Gr.formatPrefix;const ei=Symbol("implicit");function ni(){var t,e=0,n=1,r=1,i=[.5],o=[0,1];function a(e){return e<=e?o[kr(i,e,0,r)]:t}function s(){var t=-1;for(i=new Array(r);++t=r?[i[r-1],n]:[i[a-1],i[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return ni().domain([e,n]).range(o).unknown(t)},Dr.apply(Qr(a),arguments)}const ri=function(t){for(var e=t.length/6|0,n=new Array(e),r=0;rsi)if(Math.abs(l*s-u*c)>si&&i){var h=n-o,p=r-a,d=s*s+u*u,v=h*h+p*p,g=Math.sqrt(d),y=Math.sqrt(f),m=i*Math.tan((oi-Math.acos((d+f-v)/(2*g*y)))/2),b=m/y,x=m/g;Math.abs(b-1)>si&&(this._+="L"+(t+b*c)+","+(e+b*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>c*p)+","+(this._x1=t+x*s)+","+(this._y1=e+x*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,i,o){t=+t,e=+e,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),u=t+a,c=e+s,l=1^o,f=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+c:(Math.abs(this._x1-u)>si||Math.abs(this._y1-c)>si)&&(this._+="L"+u+","+c),n&&(f<0&&(f=f%ai+ai),f>ui?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):f>si&&(this._+="A"+n+","+n+",0,"+ +(f>=oi)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const fi=li;function hi(t){return function(){return t}}var pi=Math.abs,di=Math.atan2,vi=Math.cos,gi=Math.max,yi=Math.min,mi=Math.sin,bi=Math.sqrt,xi=1e-12,wi=Math.PI,Si=wi/2,_i=2*wi;function Ai(t){return t>1?0:t<-1?wi:Math.acos(t)}function Mi(t){return t>=1?Si:t<=-1?-Si:Math.asin(t)}function Ti(t){return t.innerRadius}function Ei(t){return t.outerRadius}function ki(t){return t.startAngle}function Oi(t){return t.endAngle}function Pi(t){return t&&t.padAngle}function Ci(t,e,n,r,i,o,a,s){var u=n-t,c=r-e,l=a-i,f=s-o,h=f*u-l*c;if(!(h*hP*P+C*C&&(A=T,M=E),{cx:A,cy:M,x01:-l,y01:-f,x11:A*(i/w-1),y11:M*(i/w-1)}}function Ii(){var t=Ti,e=Ei,n=hi(0),r=null,i=ki,o=Oi,a=Pi,s=null;function u(){var u,c,l=+t.apply(this,arguments),f=+e.apply(this,arguments),h=i.apply(this,arguments)-Si,p=o.apply(this,arguments)-Si,d=pi(p-h),v=p>h;if(s||(s=u=fi()),fxi)if(d>_i-xi)s.moveTo(f*vi(h),f*mi(h)),s.arc(0,0,f,h,p,!v),l>xi&&(s.moveTo(l*vi(p),l*mi(p)),s.arc(0,0,l,p,h,v));else{var g,y,m=h,b=p,x=h,w=p,S=d,_=d,A=a.apply(this,arguments)/2,M=A>xi&&(r?+r.apply(this,arguments):bi(l*l+f*f)),T=yi(pi(f-l)/2,+n.apply(this,arguments)),E=T,k=T;if(M>xi){var O=Mi(M/l*mi(A)),P=Mi(M/f*mi(A));(S-=2*O)>xi?(x+=O*=v?1:-1,w-=O):(S=0,x=w=(h+p)/2),(_-=2*P)>xi?(m+=P*=v?1:-1,b-=P):(_=0,m=b=(h+p)/2)}var C=f*vi(m),R=f*mi(m),I=l*vi(w),j=l*mi(w);if(T>xi){var N,L=f*vi(b),z=f*mi(b),D=l*vi(x),F=l*mi(x);if(dxi?k>xi?(g=Ri(D,F,C,R,f,k,v),y=Ri(L,z,I,j,f,k,v),s.moveTo(g.cx+g.x01,g.cy+g.y01),kxi&&S>xi?E>xi?(g=Ri(I,j,L,z,l,-E,v),y=Ri(C,R,D,F,l,-E,v),s.lineTo(g.cx+g.x01,g.cy+g.y01),E()=>t;function Xi(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Gi(t,e,n){this.k=t,this.x=e,this.y=n}Gi.prototype={constructor:Gi,scale:function(t){return 1===t?this:new Gi(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Gi(this.k,this.x+this.k*t,this.y+this.k*e)},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=new Gi(1,0,0);function Zi(t){t.stopImmediatePropagation()}function Ki(t){t.preventDefault(),t.stopImmediatePropagation()}function Ji(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function Qi(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).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 to(){return this.__zoom||$i}function eo(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function no(){return navigator.maxTouchPoints||"ontouchstart"in this}function ro(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function io(){var t,e,n,r=Ji,i=Qi,o=ro,a=eo,s=no,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,f=Hi,h=Mt("start","zoom","end"),p=500,d=0,v=10;function g(t){t.property("__zoom",to).on("wheel.zoom",_).on("mousedown.zoom",A).on("dblclick.zoom",M).filter(s).on("touchstart.zoom",T).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",k).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(t,e){return(e=Math.max(u[0],Math.min(u[1],e)))===t.k?t:new Gi(e,t.x,t.y)}function m(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new Gi(t.k,r,i)}function b(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function x(t,e,n,r){t.on("start.zoom",(function(){w(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){w(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,o=arguments,a=w(t,o).event(r),s=i.apply(t,o),u=null==n?b(s):"function"==typeof n?n.apply(t,o):n,c=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),l=t.__zoom,h="function"==typeof e?e.apply(t,o):e,p=f(l.invert(u).concat(c/l.k),h.invert(u).concat(c/h.k));return function(t){if(1===t)t=h;else{var e=p(t),n=c/e[2];t=new Gi(n,u[0]-e[0]*n,u[1]-e[1]*n)}a.zoom(null,t)}}))}function w(t,e,n){return!n&&t.__zooming||new S(t,e)}function S(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,e),this.taps=0}function _(t,...e){if(r.apply(this,arguments)){var n=w(this,e).event(t),i=this.__zoom,s=Math.max(u[0],Math.min(u[1],i.k*Math.pow(2,a.apply(this,arguments)))),l=Wi(t);if(n.wheel)n.mouse[0][0]===l[0]&&n.mouse[0][1]===l[1]||(n.mouse[1]=i.invert(n.mouse[0]=l)),clearTimeout(n.wheel);else{if(i.k===s)return;n.mouse=[l,i.invert(l)],Zt(this),n.start()}Ki(t),n.wheel=setTimeout(f,150),n.zoom("mouse",o(m(y(i,s),n.mouse[0],n.mouse[1]),n.extent,c))}function f(){n.wheel=null,n.end()}}function A(t,...e){if(!n&&r.apply(this,arguments)){var i=w(this,e,!0).event(t),a=ii(t.view).on("mousemove.zoom",h,!0).on("mouseup.zoom",p,!0),s=Wi(t,u),u=t.currentTarget,l=t.clientX,f=t.clientY;Bi(t.view),Zi(t),i.mouse=[s,this.__zoom.invert(s)],Zt(this),i.start()}function h(t){if(Ki(t),!i.moved){var e=t.clientX-l,n=t.clientY-f;i.moved=e*e+n*n>d}i.event(t).zoom("mouse",o(m(i.that.__zoom,i.mouse[0]=Wi(t,u),i.mouse[1]),i.extent,c))}function p(t){a.on("mousemove.zoom mouseup.zoom",null),qi(t.view,i.moved),Ki(t),i.event(t).end()}}function M(t,...e){if(r.apply(this,arguments)){var n=this.__zoom,a=Wi(t.changedTouches?t.changedTouches[0]:t,this),s=n.invert(a),u=n.k*(t.shiftKey?.5:2),f=o(m(y(n,u),a,s),i.apply(this,e),c);Ki(t),l>0?ii(this).transition().duration(l).call(x,f,a,t):ii(this).call(g.transform,f,a,t)}}function T(n,...i){if(r.apply(this,arguments)){var o,a,s,u,c=n.touches,l=c.length,f=w(this,i,n.changedTouches.length===l).event(n);for(Zi(n),a=0;a\n .tooltip {\n padding: 10px;\n border-radius: 5px; \n background: rgba(0, 0, 0, 0.8); \n color: #fff;\n }\n \n .tooltip div,a {\n font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;\n }\n \n .tooltip div {\n font-weight: bold;\n }\n \n
\n
\n ".concat(t.getTooltipTitle(e,n,r),"\n
\n \n ").concat(t.getTooltipText(e),"\n \n
\n ")},t.getTooltipTitle=function(t,e,n){return"".concat(n.name?n.name:"").concat(n.name?" and ":"").concat(e.name?e.name:"")},t.getTooltipText=function(t){return"Similarity: ".concat((100*t.value).toFixed(2),"%")},t}return i}(so);function vo(t,e){for(var n=0;n0&&(e=o.shift());)e.leftChild||e.rightChild?r+=" ".concat(e.id,' [label="').concat(e.id,'"];\n'):r+=" ".concat(e.id,' [label="').concat(t(e.values[0].id),'"];\n'),e.leftChild&&(i+=" ".concat(e.id," -> ").concat(e.leftChild.id,";\n"),o.push(e.leftChild)),e.rightChild&&(i+=" ".concat(e.id," -> ").concat(e.rightChild.id,";\n"),o.push(e.rightChild));return n+(r+i+"}")}},{key:"parent",get:function(){return this._parent},set:function(t){this._parent=t}},{key:"leftChild",get:function(){return this._leftChild},set:function(t){this._leftChild=t}},{key:"rightChild",get:function(){return this._rightChild},set:function(t){this._rightChild=t}}])&&vo(e.prototype,n),t}();function yo(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function wo(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nv&&o[p][v]c?o[S][c]:o[c][S];var A;A=S>l?o[S][l]:o[l][S];var M=(g.elements.length*_+y.elements.length*A)/(g.elements.length+y.elements.length);S>c?x[S][c]=M:x[c][S]=M}}}catch(t){w.e(t)}finally{w.f()}o=x,g.merge(y,m),e.delete(l),++a}return e.values().next().value.treeNode}},{key:"copyDistanceMatrix",value:function(t){for(var e=[],n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Lo(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||zo(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zo(t,e){if(t){if("string"==typeof t)return Do(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Do(t,e):void 0}}function Do(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n4&&void 0!==arguments[4]?arguments[4]:new po;Fo(this,t),this.tooltip=null,this.highlightedRow=-1,this.highlightedColumn=-1,this.animatingRows=!1,this.animatingCols=!1,this.clusteredHorizontal=!1,this.clusteredVertical=!1,this.lastZoomStatus={k:1,x:0,y:0},this.settings=this.fillOptions(a),this.element=e,this.element.id="U_HEATMAP_"+Math.floor(Math.random()*Math.pow(2,16));var s=new Ro;this.rows=s.preprocessFeatures(r),this.columns=s.preprocessFeatures(i),this.values=s.preprocessValues(n,this.settings.minColor,this.settings.maxColor,this.settings.colorBuckets),this.valuesPerColor=s.orderPerColor(this.values),this.settings.enableTooltips&&(this.tooltip=this.initTooltip()),this.pixelRatio=window.devicePixelRatio||1,this.originalViewPort={xTop:0,yTop:0,xBottom:a.width,yBottom:a.height},this.currentViewPort=this.originalViewPort,this.textWidth=this.settings.initialTextWidth,this.textHeight=this.settings.initialTextHeight,this.element.innerHTML="",this.visElement=ii("#"+this.element.id).append("canvas").attr("width",this.pixelRatio*this.settings.width).attr("height",this.pixelRatio*this.settings.height).attr("style","width: ".concat(this.settings.width,"px; height: ").concat(this.settings.height,"px")).on("mouseover",(function(t){return o.tooltipMove(t)})).on("mousemove",(function(t){return o.tooltipMove(t)})).on("mouseout",(function(t){return o.tooltipMove(t)})).on("click",(function(t){return o.click(t)})),this.context=this.visElement.node().getContext("2d"),this.context.scale(this.pixelRatio,this.pixelRatio);var u=io().extent([[0,0],[this.settings.width,this.settings.height]]).scaleExtent([.25,12]).on("zoom",(function(t){o.zoomed(t.transform)}));this.visElement.call(u),this.computeClusterRoots(),this.redraw()}var e,n;return e=t,(n=[{key:"fillOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=new po;return Object.assign(e,t)}},{key:"reset",value:function(){this.redraw()}},{key:"cluster",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all";return Bo(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r,i,o,a,s,u,c,l,f,h,p,d,v,g,y,m,b,x,w,S,_,A,M,T,E,k,O,P,C,R,I,j,N,L,z,D,F,U,B=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.settings.animationsEnabled?this.settings.animationDuration/2:0,r=function(t,e){return new Promise((function(r){var i;requestAnimationFrame((function o(a){void 0===i&&(i=a);var s=a-i,u=B.settings.transition(s/n);B.redraw(t,e,u),s0&&void 0!==arguments[0]?arguments[0]:14,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,o=n,a="",s=No(this.valuesPerColor);try{for(s.s();!(t=s.n()).done;){var u,c=Lo(t.value,2),l=c[0],f=c[1],h=No(f);try{for(h.s();!(u=h.n()).done;){var p=Lo(u.value,2),d=p[0],v=p[1],g=v*(o+r),y=d*(o+r);a+='\n \n ')}}catch(t){h.e(t)}finally{h.f()}}}catch(t){s.e(t)}finally{s.f()}var m=new OffscreenCanvas(1,1),b=m.getContext("2d");b.font="".concat(e,"px 'Helvetica Neue', Helvetica, Arial, sans-serif");for(var x=o*this.columns.length+r*(this.columns.length-1)+i,w=Math.max((o-e)/2,0),S=x,_=0;_\n ').concat(this.rows[_].name,"\n \n ");var M=b.measureText(this.rows[_].name).width+x;M>S&&(S=M)}for(var T=o*this.rows.length+r*(this.rows.length-1)+i,E=T,k=0;k\n ').concat(this.columns[k].name,"\n \n ");var P=b.measureText(this.columns[k].name).width+T;P>E&&(E=P)}return'\n \n ').concat(a,"\n \n ")}},{key:"determineOrder",value:function(t){return t.values.map((function(t){return t.id}))}},{key:"determineSquareWidth",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.currentViewPort,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.textWidth,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.textHeight,r=this.determineDendrogramWidth(),i=t.xBottom-t.xTop-r-this.columns.length*this.settings.squarePadding-e,o=t.yBottom-t.yTop-r-this.rows.length*this.settings.squarePadding-n,a=Math.max(1,i/this.columns.length),s=Math.max(1,o/this.rows.length);return Math.min(a,s)}},{key:"determineDendrogramWidth",value:function(){return this.settings.dendrogramEnabled?this.settings.dendrogramWidth*this.lastZoomStatus.k:0}},{key:"computeTextStartX",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.currentViewPort,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.textWidth,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.textHeight;return t.xTop+this.determineDendrogramWidth()+this.determineSquareWidth(t,e,n)*this.columns.length+this.settings.squarePadding*(this.columns.length-1)+this.settings.visualizationTextPadding}},{key:"computeTextStartY",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.currentViewPort,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.textWidth,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.textHeight;return t.yTop+this.determineDendrogramWidth()+this.determineSquareWidth(t,e,n)*this.rows.length+this.settings.squarePadding*(this.rows.length-1)+this.settings.visualizationTextPadding}},{key:"zoomed",value:function(t){var e=t.k,n=t.x,r=t.y;this.lastZoomStatus={k:e,x:n,y:r};var i=n+this.computeTextStartX(this.originalViewPort,this.settings.initialTextWidth,this.settings.initialTextHeight)*e,o=r+this.computeTextStartY(this.originalViewPort,this.settings.initialTextWidth,this.settings.initialTextHeight)*e,a=function(t,n){return t>n?n:e>=1?Math.min(t,n):Math.max(t,n)};this.currentViewPort={xTop:n+this.originalViewPort.xTop*e,yTop:r+this.originalViewPort.yTop*e,xBottom:a(n+this.originalViewPort.xBottom*e,this.originalViewPort.xBottom),yBottom:a(r+this.originalViewPort.yBottom*e,this.originalViewPort.yBottom)},this.textWidth=this.currentViewPort.xBottom-i,this.textHeight=this.currentViewPort.yBottom-o,this.redraw()}},{key:"redraw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Array.from(Array(this.rows.length).keys()),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Array.from(Array(this.columns.length).keys()),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;this.redrawGrid(t,e,n),this.redrawRowTitles(t,n),this.redrawColumnTitles(e,n),this.redrawDendrogram(n)}},{key:"redrawGrid",value:function(t,e,n){-1===n&&(n=0);var r=this.determineSquareWidth(),i=this.determineDendrogramWidth();this.context.clearRect(0,0,this.settings.width,this.settings.height);var o,a=No(this.valuesPerColor);try{for(a.s();!(o=a.n()).done;){var s=Lo(o.value,2),u=s[0],c=s[1];this.context.beginPath(),this.context.fillStyle=u;var l,f=No(c);try{for(f.s();!(l=f.n()).done;){var h=Lo(l.value,2),p=h[0],d=h[1],v=this.currentViewPort.xTop+i+d*(r+this.settings.squarePadding),g=this.currentViewPort.yTop+i+p*(r+this.settings.squarePadding),y=this.currentViewPort.xTop+i+e[d]*(r+this.settings.squarePadding),m=this.currentViewPort.yTop+i+t[p]*(r+this.settings.squarePadding),b=v+(y-v)*n,x=g+(m-g)*n,w=b+(r+this.settings.squarePadding),S=x+(r+this.settings.squarePadding);w<0||b>this.settings.width||S<0||x>this.settings.height||(this.settings.highlightSelection&&p==this.highlightedRow&&d==this.highlightedColumn&&(this.context.save(),this.context.fillStyle=this.settings.maxColor,this.context.fillRect(b-this.settings.squarePadding,x-this.settings.squarePadding,r+2*this.settings.squarePadding,r+2*this.settings.squarePadding),this.context.restore()),this.context.fillRect(b,x,r,r))}}catch(t){f.e(t)}finally{f.f()}this.context.closePath()}}catch(t){a.e(t)}finally{a.f()}}},{key:"ellipsizeString",value:function(t,e){if(this.context.measureText(t).width>e){for(var n=t.length,r=t.substr(0,n)+"...";this.context.measureText(r).width>e&&n>0;)n--,r=t.substr(0,n)+"...";return 0===n?"":r}return t}},{key:"redrawRowTitles",value:function(t,e){-1===e&&(e=0);var n=this.determineSquareWidth(),r=this.determineDendrogramWidth(),i=Math.max(Math.floor((this.settings.fontSize+12)/(n+this.settings.squarePadding)),1),o=this.computeTextStartX(),a=Math.max((n-this.settings.fontSize)/2,0);this.context.save(),this.context.fillStyle=this.settings.labelColor,this.context.textBaseline="top",this.context.textAlign="start",this.context.font="".concat(this.settings.fontSize,"px 'Helvetica Neue', Helvetica, Arial, sans-serif");for(var s=0;s0;){var r=Lo(n.shift(),2),i=r[0],o=r[1];e.length<=o&&e.push([]),e[o].push(i),i.leftChild&&n.push([i.leftChild,o+1]),i.rightChild&&n.push([i.rightChild,o+1])}return e}},{key:"redrawDendrogram",value:function(t){this.settings.dendrogramEnabled&&(this.redrawHorizontalDendrogram(t),this.redrawVerticalDendrogram(t))}},{key:"computeDendrogramColor",value:function(t,e,n){return-1!==n&&e?br(Ln("#d3d3d3"),Ln(this.settings.dendrogramColor))(n):t?this.settings.dendrogramColor:"#d3d3d3"}},{key:"redrawVerticalDendrogram",value:function(t){this.context.save();for(var e=this.computeDendrogramColor(this.clusteredVertical,this.animatingRows,t),n=this.determineSquareWidth(),r=this.settings.dendrogramWidth*this.lastZoomStatus.k,i=new jo(this.context),o=this.currentViewPort.yTop+r+n/2,a=new Map,s=this.determineOrder(this.rowClusterRoot),u=0;u0;f--)for(var h=0;h0;f--)for(var h=0;h=this.rows.length||i<0||i>=this.columns.length)return this.settings.enableTooltips&&this.tooltip&&this.tooltip.style("visibility","hidden"),this.highlightedRow=-1,this.highlightedColumn=-1,void(this.settings.highlightSelection&&this.redraw());this.highlightedRow=r,this.highlightedColumn=i,this.settings.highlightSelection&&this.redraw(),this.settings.enableTooltips&&this.tooltip&&this.tooltip.html(this.settings.getTooltip(this.values[r][i],this.rows[r],this.columns[i])).style("top",t.pageY+10+"px").style("left",t.pageX+10+"px").style("visibility","visible")}},{key:"click",value:function(t){if(this.settings.dendrogramEnabled){var e=this.determineDendrogramWidth(),n=this.determineSquareWidth(),r=t.target.getBoundingClientRect(),i=t.clientX-r.left,o=t.clientY-r.top;i>=this.currentViewPort.xTop&&i<=this.currentViewPort.xTop+e&&o>=this.currentViewPort.yTop+e&&o<=this.currentViewPort.yTop+e+this.rows.length*(n+this.settings.squarePadding)?this.cluster("rows"):i>=this.currentViewPort.xTop+e&&i<=this.currentViewPort.xTop+e+this.columns.length*(n+this.settings.squarePadding)&&o>=this.currentViewPort.yTop&&o<=this.currentViewPort.yTop+e&&this.cluster("columns")}}}])&&Uo(e.prototype,n),t}(),Vo=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.width=800,this.height=800,this.enableTooltips=!0},Ho=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)};function Wo(t,e){for(var n=0;n\n .tooltip {\n padding: 10px;\n border-radius: 5px; \n background: rgba(0, 0, 0, 0.8); \n color: #fff;\n }\n \n .tooltip div,a {\n font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;\n }\n \n .tooltip div {\n font-weight: bold;\n }\n \n
\n
\n ".concat(t.getTooltipTitle(e),"\n
\n \n ").concat(t.getTooltipText(e),"\n \n
\n ")},t.getTooltipTitle=function(t){return t.name},t.getTooltipText=function(t){return"".concat(t.count," hits")},t.getLabel=function(t){return"empty"===t.name?"":t.name},t.getTitleText=t.getLabel,t}return i}(Vo);function Qo(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e.children);try{for(o.s();!(r=o.n()).done;){var a=r.value;n.push(this.preprocessData(a))}}catch(t){o.e(t)}finally{o.f()}}return n.length>0&&0!==e.count&&n.push(new i(-1,"empty",[],e.count,e.selfCount)),new i(e.id||++t.idCounter,e.name||"",n,e.count,e.selfCount,e.extra)}}])&&ta(e.prototype,n),t}();function na(t,e){for(var n=0;n=r)&&(e===n||!!e.children&&e.children.some((function(e){return t.isParentOf(e,n,r)})))}}],null&&ia(e.prototype,null),n&&ia(e,n),t}();function aa(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:new Jo;la(this,t),this.element=e,this.colorCounter=-1,this.currentMaxLevel=4,this.arcData=[],this.textData=[],this.previousRoot=null,this.previousMaxLevel=this.currentMaxLevel,this.settings=this.fillOptions(i),this.element.id="U_SUNBURST_"+Math.floor(Math.random()*Math.pow(2,16));var o=new ea,a=o.preprocessData(n);this.settings.enableTooltips&&(this.tooltip=ra.initTooltip(this.element.id)),this.currentMaxLevel=this.settings.levels,this.xScale=ti().range([0,2*Math.PI]),this.yScale=ti().domain([0,1]).range([0,this.settings.radius]);var s=Yn(a);s.sum((function(t){return t.children.length>0?0:t.selfCount}));var u=tr();this.data=u(s).descendants(),this.arc=Ii().startAngle((function(t){return Math.max(0,Math.min(2*Math.PI,r.xScale(t.x0)))})).endAngle((function(t){return Math.max(0,Math.min(2*Math.PI,r.xScale(t.x1)))})).innerRadius((function(t){return Math.max(0,t.y0?r.yScale(t.y0):t.y0)})).outerRadius((function(t){return Math.max(0,r.yScale(t.y1)+1)})),this.initCss(),this.element.innerHTML="",this.breadCrumbs=ii("#"+this.element.id).append("div").attr("id",this.element.id+"-breadcrumbs").attr("class","sunburst-breadcrumbs").append("ul");var c=ii("#"+this.element.id).append("svg").attr("version","1.1").attr("xmlns","http://www.w3.org/2000/svg").attr("viewBox","0 0 ".concat(this.settings.width," ").concat(this.settings.height)).attr("width",this.settings.width).attr("height",this.settings.height).attr("overflow","hidden").style("font-family","'Helvetica Neue', Helvetica, Arial, sans-serif");c.append("style").attr("type","text/css").html(".hidden{ visibility: hidden;}"),this.visGElement=c.append("g").attr("transform","translate("+this.settings.radius+","+this.settings.radius+")"),this.reset()}var e,n;return e=t,(n=[{key:"reset",value:function(){this.click(this.data[0])}},{key:"fillOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=new Jo;return Object.assign(e,t)}},{key:"maxY",value:function(t){var e=this;return t.children?Math.max.apply(Math,ua(t.children.map((function(t){return e.maxY(t)})))):t.y1}},{key:"color",value:function(t){var e=this;if("empty"===t.name)return"white";if(this.settings.useFixedColors)return this.settings.fixedColorPalette[Math.abs(this.settings.fixedColorHash(t))%this.settings.fixedColorPalette.length];if(t.children.length>0){var n=t.children.map((function(t){return e.color(t)})),r=ze(n[0]),i=ze(n[1]);return 1===t.children.length||"empty"===t.children[1].name?ze(r.h,r.s,.98*r.l):ze((r.h+i.h)/2,(r.s+i.s)/2,(r.l+i.l)/2)}return t.extra.color||(t.extra.color=this.getColor()),t.extra.color}},{key:"getColor",value:function(){return this.colorCounter=(this.colorCounter+1)%this.settings.colorPalette.length,this.settings.colorPalette[this.colorCounter]}},{key:"initCss",value:function(){var t=this.settings.className;this.element.className+=" "+t;var e=document.createElement("style");e.appendChild(document.createTextNode("\n.".concat(t," {\n font-family: Roboto,'Helvetica Neue',Helvetica,Arial,sans-serif;\n width: ").concat(this.settings.width+this.settings.breadcrumbWidth,"px;\n}\n.").concat(t," .sunburst-breadcrumbs {\n width: 176px;\n float: right;\n margin-right: 15px;\n margin-top: 10px;\n padding-left: 5px;\n}\n.").concat(t," .sunburst-breadcrumbs ul {\n padding-left: 0;\n list-style: none;\n}\n.").concat(t," .sunburst-breadcrumbs .crumb {\n margin-bottom: 5px;\n cursor: pointer;\n}\n.").concat(t," .sunburst-breadcrumbs .crumb svg {\n float: left;\n margin-right: 3px;\n}\n.").concat(t," .sunburst-breadcrumbs .crumb p {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n margin: 0;\n font-size: 14px;\n}\n.").concat(t," .sunburst-breadcrumbs .crumb .percentage {\n font-size: 11px;\n}"))),document.head.appendChild(e)}},{key:"arcTween",value:function(t,e){var n=Math.min(this.maxY(t),t.y0+e.settings.levels*(t.y1-t.y0)),r=mr(e.xScale.domain(),[t.x0,t.x1]),i=mr(e.yScale.domain(),[t.y0,n]),o=mr(e.yScale.range(),[t.y0?20:0,e.settings.radius]);return function(t){return function(n){return e.xScale.domain(r(n)),e.yScale.domain(i(n)).range(o(n)),e.arc(t)}}}},{key:"tooltipIn",value:function(t,e){this.settings.enableTooltips&&this.tooltip&&e.depth=a.previousMaxLevel?.2:1})).on("click",(function(t,e){e.depth=a.currentMaxLevel?"arc toHide":"arc"})).attr("fill-opacity",(function(t){return t.depth>=a.currentMaxLevel?.2:1})).on("end",(function(){e()}))}));case 8:this.previousMaxLevel=this.currentMaxLevel,this.arcData=r;case 10:case"end":return e.stop()}}),e,this)})))}},{key:"renderText",value:function(t){return ha(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r,i,o,a,s,u,c,l=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.data.filter((function(e){return oa.isParentOf(t,e,l.currentMaxLevel)})),i=r.filter((function(t){return!l.textData.includes(t)})),o=(n=this.textData).concat.apply(n,ua(i)),t.parent&&o.splice(o.indexOf(t.parent),1),a=this,(s="undefined"!=typeof OffscreenCanvas)&&(c=new OffscreenCanvas(1,1),(u=c.getContext("2d")).font=u.font="16px 'Helvetica Neue', Helvetica, Arial, sans-serif"),this.visGElement.selectAll("text").data([]).exit().remove(),this.text=this.visGElement.selectAll("text").data(o).enter().append("text").style("fill",(function(t){return sa.getReadableColorFor(l.color(t.data))})).style("fill-opacity",0).style("font-family","font-family: Helvetica, 'Super Sans', sans-serif").style("pointer-events","none").attr("dy",".2em").text((function(t){return l.settings.getLabel(t.data)})).style("font-size",(function(t){var e=s?u.measureText(this.textContent).width:this.getComputedTextLength();return Math.floor(Math.min(a.settings.radius/a.settings.levels/e*10+1,12))+"px"})),e.next=11,new Promise((function(e){l.text.transition().duration(l.settings.animationDuration).attrTween("text-anchor",(function(t){return function(e){return l.xScale(t.x0+(t.x1-t.x0)/2)>Math.PI?"end":"start"}})).attrTween("dx",(function(t){return function(e){return l.xScale(t.x0+(t.x1-t.x0)/2)>Math.PI?"-4px":"4px"}})).attrTween("transform",(function(t){return function(e){var n=180*l.xScale(t.x0+(t.x1-t.x0)/2)/Math.PI-90;return"rotate(".concat(n,")translate(").concat(l.yScale(t.y0),")rotate(").concat(n>90?-180:0,")")}})).styleTween("fill-opacity",(function(t){var e=Number.parseInt(ii(this).style("font-size").replace("px",""));return function(n){return a.computeAvailableSpace(t)>e?n.toString():"0"}})).on("end",(function(n){var r=a.computeAvailableSpace(n),i=ii(this);i.style("visibility",r>Number.parseInt(i.style("font-size").replace("px",""))&&oa.isParentOf(t,n,a.currentMaxLevel)?"visible":"hidden"),e()}))}));case 11:this.textData=r;case 12:case"end":return e.stop()}}),e,this)})))}},{key:"setBreadcrumbs",value:function(t){for(var e=this,n=[],r=t;r;)n.push(r),r=r.parent;n.reverse().shift();var i=Ii().innerRadius(0).outerRadius(15).startAngle(0).endAngle((function(t){return 2*Math.PI*t.data.count/t.parent.data.count}));this.breadCrumbs.selectAll(".crumb").data(n).enter().append("li").on("click",(function(t,n){e.click(n.parent)})).attr("class","crumb").style("opacity","0").attr("title",(function(t){return e.settings.getTitleText(t.data)})).html((function(t){var e;return"\n

".concat(t.data.name,"

\n

").concat(Math.round(100*t.data.count/t.parent.data.count),"% of ").concat(null===(e=t.parent)||void 0===e?void 0:e.data.name,"

")})).insert("svg",":first-child").attr("width",30).attr("height",30).append("path").attr("d",i).attr("transform","translate(15, 15)").attr("fill",(function(t){return e.color(t.data)})),this.breadCrumbs.selectAll(".crumb").transition().duration(this.settings.animationDuration).style("opacity","1"),this.breadCrumbs.selectAll(".crumb").data(n).exit().transition().duration(this.settings.animationDuration).style("opacity","0").remove()}}])&&fa(e.prototype,n),t}();function da(t){return(da="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function va(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ga(t,e){return(ga=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ya(t,e){return!e||"object"!==da(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ma(t){return(ma=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ba=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ga(t,e)}(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ma(e);if(n){var i=ma(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return ya(this,t)});function i(){var t;return va(this,i),(t=r.apply(this,arguments)).className="treemap",t.levels=void 0,t.labelHeight=10,t.colorRoot="#104B7D",t.colorLeaf="#fdffcc",t.colorBreadcrumbs="#FF8F00",t.rerootCallback=function(){},t.getBreadcrumbTooltip=function(t){return t.name},t.getTooltip=function(e){return"\n \n
\n
\n ".concat(t.getTooltipTitle(e),"\n
\n \n ").concat(t.getTooltipText(e),"\n \n
\n ")},t.getTooltipTitle=function(t){return t.name},t.getTooltipText=function(t){return"".concat(t.count," hits")},t.getLabel=function(t){return t.name},t.getLevel=function(t){return t.depth},t}return i}(Vo);function xa(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e.children);try{for(o.s();!(r=o.n()).done;){var a=r.value;n.push(this.preprocessData(a))}}catch(t){o.e(t)}finally{o.f()}}return new i(e.id||++t.idCounter,e.name||"",n,e.count,e.selfCount,e.extra)}}])&&wa(e.prototype,n),t}();function _a(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Aa(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Aa(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Aa(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:new ba;Ma(this,t),this.element=e,this.childParentRelations=new Map,this.nodeId=0,this.settings=this.fillOptions(i),this.element.id="U_TREEMAP_"+Math.floor(Math.random()*Math.pow(2,16)),this.settings.enableTooltips&&(this.tooltip=ra.initTooltip(this.element.id)),this.initCss();var o=new Sa,a=Yn(o.preprocessData(n));a.sum((function(t){return t.children.length>0?0:t.count})),a.sort((function(t,e){return e.value-t.value})),this.partition=pr(),this.partition.size([this.settings.width+1,this.settings.height+1]).paddingTop(this.settings.labelHeight),this.data=this.partition(a).descendants(),this.settings.levels||(this.settings.levels=this.data[0].height);var s,u=_a(this.data);try{for(u.s();!(s=u.n()).done;){var c=s.value;this.childParentRelations.set(c.data,null===(r=c.parent)||void 0===r?void 0:r.data)}}catch(t){u.e(t)}finally{u.f()}this.currentRoot=this.data[0],this.colorScale=ti().domain([0,this.settings.levels]).range([this.settings.colorRoot,this.settings.colorLeaf]).interpolate(br),this.breadCrumbs=ii("#"+this.element.id).append("div").attr("class","breadcrumbs").style("position","relative").style("width",this.settings.width+"px").style("height","20px").style("background-color",this.settings.colorBreadcrumbs),this.treemap=ii(this.element).append("div").style("position","relative").style("width",this.settings.width+"px").style("height",this.settings.height+"px"),this.render(this.currentRoot)}var e,n;return e=t,(n=[{key:"resize",value:function(t,e){this.settings.width=t,this.settings.height=e,this.partition.size([t+1,e+1]),this.breadCrumbs.style("width",this.settings.width+"px"),this.treemap.style("width",this.settings.width+"px"),this.treemap.style("height",this.settings.height+"px"),this.render(this.currentRoot,!1)}},{key:"fillOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=new ba;return Object.assign(e,t)}},{key:"initCss",value:function(){var t=this.settings.className;this.element.className+=" "+t;var e=document.createElement("style");e.appendChild(document.createTextNode("\n .".concat(t," {\n font-family: Roboto,'Helvetica Neue',Helvetica,Arial,sans-serif;\n }\n .").concat(t," .node {\n font-size: 9px;\n line-height: 10px;\n overflow: hidden;\n position: absolute;\n text-indent: 2px;\n text-align: center;\n text-overflow: ellipsis;\n cursor: pointer;\n }\n .").concat(t," .node:hover {\n outline: 1px solid white;\n }\n .").concat(t," .breadcrumbs {\n font-size: 11px;\n line-height: 20px;\n padding-left: 5px;\n font-weight: bold;\n color: white;\n box-sizing: border-box;\n }\n .full-screen .").concat(t," .breadcrumbs {\n width: 100% !important;\n }\n .").concat(t," .crumb {\n cursor: pointer;\n }\n .").concat(t," .crumb .link:hover {\n text-decoration: underline;\n }\n .").concat(t,' .breadcrumbs .crumb + .crumb::before {\n content: " > ";\n cursor: default;\n }\n '))),document.head.append(e)}},{key:"render",value:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.currentRoot=t,this.setBreadcrumbs();var r=Yn(t.data);r.sum((function(t){return t.children.length>0?0:t.count})),r.sort((function(t,e){return e.value-t.value}));var i=this.treemap.selectAll(".node").data(this.partition(r).descendants(),(function(t){return t.data.id||(t.data.id=++e.nodeId)})),o=i.enter().append("div").attr("class","node").style("background",(function(t){return e.colorScale(e.settings.getLevel(t))})).style("color",(function(t){return sa.getReadableColorFor(e.colorScale(e.settings.getLevel(t)).toString())})).style("left","0px").style("top","0px").style("width","0px").style("height","0px").text((function(t){return e.settings.getLabel(t.data)})).on("click",(function(t,n){return e.render(n)})).on("contextmenu",(function(t,n){t.preventDefault(),e.currentRoot.parent&&e.render(e.currentRoot.parent)})).on("mouseover",(function(t,n){return e.tooltipIn(t,n)})).on("mousemove",(function(t,n){return e.tooltipMove(t,n)})).on("mouseout",(function(t,n){return e.tooltipOut(t,n)}));o.merge(i).order().transition().call((function(t){t.style("left",(function(t){return t.x0+"px"})),t.style("top",(function(t){return t.y0+"px"})),t.style("width",(function(t){return Math.max(0,t.x1-t.x0-1)+"px"})),t.style("height",(function(t){return Math.max(0,t.y1-t.y0-1)+"px"}))})),i.exit().remove(),n&&this.settings.rerootCallback(this.currentRoot.data)}},{key:"setBreadcrumbs",value:function(){for(var t=this,e=[],n=this.currentRoot.data;n;)e.push(n),n=this.childParentRelations.get(n);e.reverse(),this.breadCrumbs.html(""),this.breadCrumbs.selectAll(".crumb").data(e).enter().append("span").attr("class","crumb").attr("title",(function(e){return t.settings.getBreadcrumbTooltip(e)})).html((function(t){return"".concat(t.name,"")})).on("click",(function(e,n){t.render(t.data.filter((function(t){return t.data.id===n.id}))[0])}))}},{key:"tooltipIn",value:function(t,e){this.settings.enableTooltips&&this.tooltip&&this.tooltip.html(this.settings.getTooltip(e.data)).style("top",t.pageY+10+"px").style("left",t.pageX+10+"px").style("visibility","visible")}},{key:"tooltipMove",value:function(t,e){this.settings.enableTooltips&&this.tooltip&&this.tooltip.style("top",t.pageY+10+"px").style("left",t.pageX+10+"px")}},{key:"tooltipOut",value:function(t,e){this.settings.enableTooltips&&this.tooltip&&this.tooltip.style("visibility","hidden")}}])&&Ta(e.prototype,n),t}();function ka(t){return(ka="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Oa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pa(t,e){return(Pa=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ca(t,e){return!e||"object"!==ka(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ra(t){return(Ra=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ia=function t(){var e=new Map,n=[],r=[],i=ei;function o(t){var o=t+"",a=e.get(o);if(!a){if(i!==ei)return i;e.set(o,a=n.push(t))}return r[(a-1)%r.length]}return o.domain=function(t){if(!arguments.length)return n.slice();n=[],e=new Map;for(const r of t){const t=r+"";e.has(t)||e.set(t,n.push(r))}return o},o.range=function(t){return arguments.length?(r=Array.from(t),o):r.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return t(n,r).unknown(i)},Dr.apply(o,arguments),o}(ri),ja=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Pa(t,e)}(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=Ra(e);if(n){var i=Ra(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return Ca(this,t)});function i(){var t;return Oa(this,i),(t=r.apply(this,arguments)).minNodeSize=2,t.maxNodeSize=105,t.enableExpandOnClick=!0,t.enableAutoExpand=!1,t.autoExpandValue=.8,t.levelsToExpand=2,t.enableRightClick=!0,t.enableInnerArcs=!0,t.enableLabels=!0,t.nodeDistance=180,t.animationDuration=500,t.nodeFillColor=function(t){return t.isSelected()?t.children.length>0?t.getColor()||"#aaa":"#fff":"#aaa"},t.nodeStrokeColor=function(t){return t.isSelected()&&t.getColor()||"#aaa"},t.linkStrokeColor=function(t){return t.source.data.isSelected()?t.target.data.getColor():"#aaa"},t.colorProvider=function(t){return Ia(t.name)},t.getLabel=function(t){return t.name},t.getTooltip=function(e){return"\n \n
\n
\n ".concat(t.getTooltipTitle(e),"\n
\n \n ").concat(t.getTooltipText(e),"\n \n
\n ")},t.getTooltipTitle=function(t){return t.name},t.getTooltipText=function(t){return"".concat(t.count," hits")},t}return i}(Vo);function Na(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function La(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;Na(this,t),this.data=e,this.comparator=n,this.heapify()}var e,n;return e=t,(n=[{key:"add",value:function(t){this.data.push(t),this.bubbleUp(this.data.length-1)}},{key:"peek",value:function(){return this.data[0]}},{key:"remove",value:function(){var t=this.data[0];return this.data.length>1?(this.data[0]=this.data.pop(),this.sink(0)):this.data.pop(),t}},{key:"clear",value:function(){this.data.splice(0,this.data.length)}},{key:"size",value:function(){return this.data.length}},{key:"heapify",value:function(){for(var t=Math.floor((this.data.length-2)/2);t>=0;t--)this.sink(t)}},{key:"bubbleUp",value:function(t){for(var e=this.data[t];t>0;){var n=Math.floor((t-1)/2),r=this.data[n];if(!(this.comparator(e,r)<0))break;this.data[t]=r,t=n}return this.data[t]=e,t}},{key:"sink",value:function(t){for(var e=this.data[t],n=this.data.length;2*t+1=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ua(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&this.children.length>0){var e,n=Fa(this.children);try{for(n.s();!(e=n.n()).done;){var r=e.value;r.setCollapsed(!1),r.expand(t-1)}}catch(t){n.e(t)}finally{n.f()}}}},{key:"setColor",value:function(t){this.color=t;var e,n=Fa(this.children);try{for(n.s();!(e=n.n()).done;)e.value.setColor(t)}catch(t){n.e(t)}finally{n.f()}}}])&&qa(e.prototype,n),a}(i);function Xa(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e.children);try{for(i.s();!(r=i.n()).done;){var o=r.value;n.push(this.preprocessData(o))}}catch(t){i.e(t)}finally{i.f()}}return new Ya(e.id||++t.idCounter,e.name||"",n,e.count,e.selfCount,e.extra)}}])&&Ga(e.prototype,n),t}();function Za(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ka(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:new ja;Za(this,t),this.element=e,this.nodeId=0,this.zoomScale=1,this.settings=this.fillOptions(i),this.element.id="U_TREEVIEW_"+Math.floor(Math.random()*Math.pow(2,16)),this.settings.enableTooltips&&(this.tooltip=ra.initTooltip(this.element.id));var o=new $a,a=o.preprocessData(n),s=Yn(a);s.sum((function(t){return t.children.length>0?0:t.count})),this.widthScale=ti().range([this.settings.minNodeSize,this.settings.maxNodeSize]),this.treeLayout=sr().nodeSize([2,10]).separation((function(t,e){if(t.data.isCollapsed()||e.data.isCollapsed())return 0;var n=(r.computeNodeSize(t)+r.computeNodeSize(e))/2+4;return t.parent===e.parent?n:n+4})),this.data=this.treeLayout(s).descendants(),this.root=this.data[0],this.element.innerHTML="",this.svg=ii("#"+this.element.id).append("svg").attr("version","1.1").attr("xmlns","http://www.w3.org/2000/svg").attr("viewBox","0 0 ".concat(this.settings.width," ").concat(this.settings.height)).attr("width",this.settings.width).attr("height",this.settings.height).style("font-family","'Helvetica Neue', Helvetica, Arial, sans-serif"),this.zoomListener=io().extent([[0,0],[this.settings.width,this.settings.height]]).scaleExtent([.1,3]).on("zoom",(function(t){r.zoomScale=t.transform.k,r.visElement.attr("transform",t.transform.toString())})),this.visElement=this.svg.call(this.zoomListener).append("g"),this.render(this.root)}var e,n;return e=t,(n=[{key:"fillOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=new ja;return Object.assign(e,t)}},{key:"render",value:function(t){var e,n=this;this.widthScale.domain([0,t.data.count]),this.root=t,this.root.x=this.settings.height/2,this.root.y=0,this.root.data.setSelected(!0),null===(e=this.root.children)||void 0===e||e.forEach((function(t,e){t.data.setColor(n.settings.colorProvider(t.data))})),this.settings.enableExpandOnClick?(this.root.data.collapseAll(),this.initialExpand(this.root)):this.root.data.expandAll(),this.update(t),this.centerRoot(t)}},{key:"centerRoot",value:function(t){var e=this,n=[-t.y,-t.x],r=n[0],i=n[1];r=r*this.zoomScale+this.settings.width/4,i=i*this.zoomScale+this.settings.height/2,this.visElement.transition().duration(this.settings.animationDuration).attr("transform","translate(".concat(r,",").concat(i,")scale(").concat(this.zoomScale,")")).on("end",(function(){return e.zoomListener.transform(e.svg,$i.translate(r,i).scale(e.zoomScale))}))}},{key:"initialExpand",value:function(t){var e,n=this;this.settings.enableAutoExpand?function(){t.data.expand(1);for(var r=t.data.count*(n.settings.enableAutoExpand?n.settings.autoExpandValue:.8),i=new za(t.children,(function(t,e){return e.data.count-t.data.count}));r>0&&i.size()>0;){var o=i.remove();r-=o.data.count,o.data.expand(1),null===(e=o.children)||void 0===e||e.forEach((function(t,e){return i.add(t)}))}}():t.data.expand(this.settings.levelsToExpand)}},{key:"update",value:function(t){var e=this,n=this.treeLayout(this.root),r=n.descendants().reverse().filter((function(t){return!t.data.isCollapsed()})),i=n.links().filter((function(t){return!t.target.data.isCollapsed()&&!t.source.data.isCollapsed()}));r.forEach((function(t){return t.y=t.depth*e.settings.nodeDistance}));var o=this.visElement.selectAll("g.node").data(r,(function(t){return t.data.id||(t.data.id=++e.nodeId)})),a=o.enter().append("g").attr("class","node").style("cursor","pointer").attr("transform","translate(".concat(t.y||0,",").concat(t.data.previousPosition.x||0,")")).on("click",(function(t,n){return e.click(t,n)})).on("mouseover",(function(t,n){return e.tooltipIn(t,n)})).on("mouseout",(function(t,n){return e.tooltipOut(t,n)})).on("contextmenu",(function(t,n){return e.rightClick(t,n)})).merge(o);a.append("circle").attr("r",1e-6).style("stroke-width","1.5px").style("stroke",(function(t){return e.settings.nodeStrokeColor(t.data)})).style("fill",(function(t){return e.settings.nodeFillColor(t.data)}));var s=ti().range([0,2*Math.PI]),u=Ii().innerRadius(0).outerRadius((function(t){return e.computeNodeSize(t)})).startAngle(0).endAngle((function(t){return s(t.data.selfCount/t.data.count)||0}));this.settings.enableInnerArcs&&a.append("path").attr("class","innerArc").attr("d",u).style("fill",(function(t){return e.settings.nodeStrokeColor(t.data)})).style("fill-opacity",0),this.settings.enableLabels&&a.append("text").attr("x",(function(t){return t.children?-10:10})).attr("dy",".35em").attr("text-anchor",(function(t){return t.children?"end":"start"})).text((function(t){return e.settings.getLabel(t.data)})).style("font","10px sans-serif").style("fill-opacity",1e-6);var c=a.transition().duration(this.settings.animationDuration).attr("transform",(function(t){return"translate(".concat(t.y,", ").concat(t.x,")")}));c.select("circle").attr("r",(function(t){return e.computeNodeSize(t)})).style("fill-opacity",(function(t){return t.data.isCollapsed()?1:0})).style("stroke",(function(t){return e.settings.nodeStrokeColor(t.data)})).style("fill",(function(t){return e.settings.nodeFillColor(t.data)})),this.settings.enableInnerArcs&&c.select(".innerArc").style("fill-opacity",1),this.settings.enableLabels&&c.select("text").style("fill-opacity",1);var l=o.exit().transition().duration(this.settings.animationDuration).attr("transform",(function(e){return"translate(".concat(t.y,",").concat(t.x,")")})).remove();l.select("circle").attr("r",1e-6),l.select("path").style("fill-opacity",1e-6),l.select("text").style("fill-opacity",1e-6);var f=this.visElement.selectAll("path.link").data(i,(function(t){return t.target.data.id})),h=function(t){var e=zi,n=Di,r=Ni,i=Li,o=null;function a(){var a,s=ji.call(arguments),u=e.apply(this,s),c=n.apply(this,s);if(o||(o=a=fi()),t(o,+r.apply(this,(s[0]=u,s)),+i.apply(this,s),+r.apply(this,(s[0]=c,s)),+i.apply(this,s)),a)return o=null,a+""||null}return a.source=function(t){return arguments.length?(e=t,a):e},a.target=function(t){return arguments.length?(n=t,a):n},a.x=function(t){return arguments.length?(r="function"==typeof t?t:hi(+t),a):r},a.y=function(t){return arguments.length?(i="function"==typeof t?t:hi(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}(Fi).x((function(t){return t.y})).y((function(t){return t.x}));f.enter().insert("path","g").attr("class","link").style("fill","none").style("stroke-opacity","0.5").style("stroke-linecap","round").style("stroke",(function(t){return e.settings.linkStrokeColor(t)})).style("stroke-width",1e-6).attr("d",(function(e){var n={x:t.data.previousPosition.x,y:t.data.previousPosition.y};return h({source:n,target:n})})).merge(f).transition().duration(this.settings.animationDuration).attr("d",h).style("stroke",this.settings.linkStrokeColor).style("stroke-width",(function(t){return t.source.data.isSelected()?e.widthScale(t.target.data.count)+"px":"4px"})),f.exit().transition().duration(this.settings.animationDuration).style("stroke-width",1e-6).attr("d",(function(e){var n={x:t.x,y:t.y};return h({source:n,target:n})})).remove(),r.forEach((function(t){t.data.previousPosition={x:t.x,y:t.y}}))}},{key:"computeNodeSize",value:function(t){return t.data.isSelected()?this.widthScale(t.data.count)/2:2}},{key:"click",value:function(t,e){this.settings.enableExpandOnClick&&(t.defaultPrevented||(t.shiftKey?e.data.expandAll():e.children&&e.children.some((function(t){return!t.data.isCollapsed()}))?e.data.collapseAll():e.data.expand(this.settings.levelsToExpand),this.update(e),this.centerRoot(e)))}},{key:"tooltipIn",value:function(t,e){var n=this;this.settings.enableTooltips&&this.tooltip&&(this.tooltip.html(this.settings.getTooltip(e.data)).style("top",t.pageY+10+"px").style("left",t.pageX+10+"px"),this.tooltipTimer=window.setTimeout((function(){return n.tooltip.style("visibility","visible")}),1e3))}},{key:"tooltipOut",value:function(t,e){this.settings.enableTooltips&&this.tooltip&&(clearTimeout(this.tooltipTimer),this.tooltip.style("visibility","hidden"))}},{key:"rightClick",value:function(t,e){this.settings.enableRightClick&&this.render(e)}}])&&Ka(e.prototype,n),t}()},1926:(t,e,n)=>{n(2526),n(2443),n(1817),n(2401),n(8722),n(2165),n(9007),n(6066),n(3510),n(1840),n(6982),n(2159),n(6649),n(9341),n(543),n(9170),n(1038),n(9753),n(6572),n(2222),n(545),n(6541),n(3290),n(7327),n(9826),n(4553),n(4944),n(6535),n(9554),n(6699),n(2772),n(9600),n(4986),n(1249),n(5827),n(6644),n(5069),n(7042),n(5212),n(2707),n(561),n(8706),n(3792),n(9244),n(6992),n(4812),n(8309),n(4855),n(5837),n(9601),n(8011),n(9070),n(3321),n(9720),n(3371),n(8559),n(5003),n(9337),n(6210),n(489),n(3304),n(1825),n(8410),n(2200),n(7941),n(7227),n(514),n(8304),n(6833),n(1539),n(9595),n(5500),n(4869),n(3952),n(4953),n(8992),n(9841),n(7852),n(2023),n(4723),n(6373),n(6528),n(3112),n(2481),n(5306),n(4765),n(3123),n(6755),n(3210),n(5674),n(8702),n(8783),n(5218),n(4475),n(7929),n(915),n(9253),n(2125),n(8830),n(8734),n(9254),n(7268),n(7397),n(86),n(623),n(8757),n(4603),n(4916),n(2087),n(8386),n(7601),n(9714),n(1058),n(4678),n(9653),n(3299),n(5192),n(3161),n(4048),n(8285),n(4363),n(5994),n(1874),n(9494),n(6977),n(5147),n(9752),n(2376),n(3181),n(3484),n(2388),n(8621),n(403),n(4755),n(5438),n(332),n(658),n(197),n(4914),n(2420),n(160),n(970),n(2703),n(3689),n(3843),n(5735),n(8733),n(3710),n(6078),n(8862),n(3706),n(8674),n(7922),n(4668),n(7727),n(1532),n(189),n(4129),n(8478),n(8264),n(6938),n(9575),n(6716),n(7145),n(2472),n(9743),n(5109),n(8255),n(5125),n(9135),n(4197),n(6495),n(8145),n(5206),n(2990),n(8927),n(3105),n(5035),n(4345),n(7174),n(2846),n(4731),n(7209),n(6319),n(8867),n(7789),n(3739),n(9368),n(4483),n(2056),n(3462),n(678),n(7462),n(3824),n(5021),n(2974),n(5016),n(224),n(2419),n(9596),n(2586),n(4819),n(5683),n(9361),n(1037),n(5898),n(7556),n(4361),n(3593),n(9532),n(1299);var r=n(857);t.exports=r},3099:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},6077:(t,e,n)=>{var r=n(111);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},1223:(t,e,n)=>{var r=n(5112),i=n(30),o=n(3070),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},1530:(t,e,n)=>{"use strict";var r=n(8710).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},5787:t=>{t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},9670:(t,e,n)=>{var r=n(111);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},4019:t=>{t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},260:(t,e,n)=>{"use strict";var r,i=n(4019),o=n(9781),a=n(7854),s=n(111),u=n(6656),c=n(648),l=n(8880),f=n(1320),h=n(3070).f,p=n(9518),d=n(7674),v=n(5112),g=n(9711),y=a.Int8Array,m=y&&y.prototype,b=a.Uint8ClampedArray,x=b&&b.prototype,w=y&&p(y),S=m&&p(m),_=Object.prototype,A=_.isPrototypeOf,M=v("toStringTag"),T=g("TYPED_ARRAY_TAG"),E=i&&!!d&&"Opera"!==c(a.opera),k=!1,O={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},P={BigInt64Array:8,BigUint64Array:8},C=function(t){if(!s(t))return!1;var e=c(t);return u(O,e)||u(P,e)};for(r in O)a[r]||(E=!1);if((!E||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},E))for(r in O)a[r]&&d(a[r],w);if((!E||!S||S===_)&&(S=w.prototype,E))for(r in O)a[r]&&d(a[r].prototype,S);if(E&&p(x)!==S&&d(x,S),o&&!u(S,M))for(r in k=!0,h(S,M,{get:function(){return s(this)?this[T]:void 0}}),O)a[r]&&l(a[r],T,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:E,TYPED_ARRAY_TAG:k&&T,aTypedArray:function(t){if(C(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(d){if(A.call(w,t))return t}else for(var e in O)if(u(O,r)){var n=a[e];if(n&&(t===n||A.call(n,t)))return t}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n){if(o){if(n)for(var r in O){var i=a[r];i&&u(i.prototype,t)&&delete i.prototype[t]}S[t]&&!n||f(S,t,n?e:E&&m[t]||e)}},exportTypedArrayStaticMethod:function(t,e,n){var r,i;if(o){if(d){if(n)for(r in O)(i=a[r])&&u(i,t)&&delete i[t];if(w[t]&&!n)return;try{return f(w,t,n?e:E&&y[t]||e)}catch(t){}}for(r in O)!(i=a[r])||i[t]&&!n||f(i,t,e)}},isView:function(t){if(!s(t))return!1;var e=c(t);return"DataView"===e||u(O,e)||u(P,e)},isTypedArray:C,TypedArray:w,TypedArrayPrototype:S}},3331:(t,e,n)=>{"use strict";var r=n(7854),i=n(9781),o=n(4019),a=n(8880),s=n(2248),u=n(7293),c=n(5787),l=n(9958),f=n(7466),h=n(7067),p=n(1179),d=n(9518),v=n(7674),g=n(8006).f,y=n(3070).f,m=n(1285),b=n(8003),x=n(9909),w=x.get,S=x.set,_="ArrayBuffer",A="DataView",M="Wrong index",T=r.ArrayBuffer,E=T,k=r.DataView,O=k&&k.prototype,P=Object.prototype,C=r.RangeError,R=p.pack,I=p.unpack,j=function(t){return[255&t]},N=function(t){return[255&t,t>>8&255]},L=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},z=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},D=function(t){return R(t,23,4)},F=function(t){return R(t,52,8)},U=function(t,e){y(t.prototype,e,{get:function(){return w(this)[e]}})},B=function(t,e,n,r){var i=h(n),o=w(t);if(i+e>o.byteLength)throw C(M);var a=w(o.buffer).bytes,s=i+o.byteOffset,u=a.slice(s,s+e);return r?u:u.reverse()},q=function(t,e,n,r,i,o){var a=h(n),s=w(t);if(a+e>s.byteLength)throw C(M);for(var u=w(s.buffer).bytes,c=a+s.byteOffset,l=r(+i),f=0;fY;)(V=W[Y++])in E||a(E,V,T[V]);H.constructor=E}v&&d(O)!==P&&v(O,P);var X=new k(new E(2)),G=O.setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||s(O,{setInt8:function(t,e){G.call(this,t,e<<24>>24)},setUint8:function(t,e){G.call(this,t,e<<24>>24)}},{unsafe:!0})}else E=function(t){c(this,E,_);var e=h(t);S(this,{bytes:m.call(new Array(e),0),byteLength:e}),i||(this.byteLength=e)},k=function(t,e,n){c(this,k,A),c(t,E,A);var r=w(t).byteLength,o=l(e);if(o<0||o>r)throw C("Wrong offset");if(o+(n=void 0===n?r-o:f(n))>r)throw C("Wrong length");S(this,{buffer:t,byteLength:n,byteOffset:o}),i||(this.buffer=t,this.byteLength=n,this.byteOffset=o)},i&&(U(E,"byteLength"),U(k,"buffer"),U(k,"byteLength"),U(k,"byteOffset")),s(k.prototype,{getInt8:function(t){return B(this,1,t)[0]<<24>>24},getUint8:function(t){return B(this,1,t)[0]},getInt16:function(t){var e=B(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=B(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return z(B(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return z(B(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return I(B(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return I(B(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){q(this,1,t,j,e)},setUint8:function(t,e){q(this,1,t,j,e)},setInt16:function(t,e){q(this,2,t,N,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){q(this,2,t,N,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){q(this,4,t,L,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){q(this,4,t,L,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){q(this,4,t,D,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){q(this,8,t,F,e,arguments.length>2?arguments[2]:void 0)}});b(E,_),b(k,A),t.exports={ArrayBuffer:E,DataView:k}},1048:(t,e,n)=>{"use strict";var r=n(7908),i=n(1400),o=n(7466),a=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),s=o(n.length),u=i(t,s),c=i(e,s),l=arguments.length>2?arguments[2]:void 0,f=a((void 0===l?s:i(l,s))-c,s-u),h=1;for(c0;)c in n?n[u]=n[c]:delete n[u],u+=h,c+=h;return n}},1285:(t,e,n)=>{"use strict";var r=n(7908),i=n(1400),o=n(7466);t.exports=function(t){for(var e=r(this),n=o(e.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)e[s++]=t;return e}},8533:(t,e,n)=>{"use strict";var r=n(2092).forEach,i=n(2133),o=n(9207),a=i("forEach"),s=o("forEach");t.exports=a&&s?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},8457:(t,e,n)=>{"use strict";var r=n(9974),i=n(7908),o=n(3411),a=n(7659),s=n(7466),u=n(6135),c=n(1246);t.exports=function(t){var e,n,l,f,h,p,d=i(t),v="function"==typeof this?this:Array,g=arguments.length,y=g>1?arguments[1]:void 0,m=void 0!==y,b=c(d),x=0;if(m&&(y=r(y,g>2?arguments[2]:void 0,2)),null==b||v==Array&&a(b))for(n=new v(e=s(d.length));e>x;x++)p=m?y(d[x],x):d[x],u(n,x,p);else for(h=(f=b.call(d)).next,n=new v;!(l=h.call(f)).done;x++)p=m?o(f,y,[l.value,x],!0):l.value,u(n,x,p);return n.length=x,n}},1318:(t,e,n)=>{var r=n(5656),i=n(7466),o=n(1400),a=function(t){return function(e,n,a){var s,u=r(e),c=i(u.length),l=o(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2092:(t,e,n)=>{var r=n(9974),i=n(8361),o=n(7908),a=n(7466),s=n(5417),u=[].push,c=function(t){var e=1==t,n=2==t,c=3==t,l=4==t,f=6==t,h=7==t,p=5==t||f;return function(d,v,g,y){for(var m,b,x=o(d),w=i(x),S=r(v,g,3),_=a(w.length),A=0,M=y||s,T=e?M(d,_):n||h?M(d,0):void 0;_>A;A++)if((p||A in w)&&(b=S(m=w[A],A,x),t))if(e)T[A]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return A;case 2:u.call(T,m)}else switch(t){case 4:return!1;case 7:u.call(T,m)}return f?-1:c||l?l:T}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},6583:(t,e,n)=>{"use strict";var r=n(5656),i=n(9958),o=n(7466),a=n(2133),s=n(9207),u=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,f=a("lastIndexOf"),h=s("indexOf",{ACCESSORS:!0,1:0}),p=l||!f||!h;t.exports=p?function(t){if(l)return c.apply(this,arguments)||0;var e=r(this),n=o(e.length),a=n-1;for(arguments.length>1&&(a=u(a,i(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}:c},1194:(t,e,n)=>{var r=n(7293),i=n(5112),o=n(7392),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},2133:(t,e,n)=>{"use strict";var r=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},9207:(t,e,n)=>{var r=n(9781),i=n(7293),o=n(6656),a=Object.defineProperty,s={},u=function(t){throw t};t.exports=function(t,e){if(o(s,t))return s[t];e||(e={});var n=[][t],c=!!o(e,"ACCESSORS")&&e.ACCESSORS,l=o(e,0)?e[0]:u,f=o(e,1)?e[1]:void 0;return s[t]=!!n&&!i((function(){if(c&&!r)return!0;var t={length:-1};c?a(t,1,{enumerable:!0,get:u}):t[1]=1,n.call(t,l,f)}))}},3671:(t,e,n)=>{var r=n(3099),i=n(7908),o=n(8361),a=n(7466),s=function(t){return function(e,n,s,u){r(n);var c=i(e),l=o(c),f=a(c.length),h=t?f-1:0,p=t?-1:1;if(s<2)for(;;){if(h in l){u=l[h],h+=p;break}if(h+=p,t?h<0:f<=h)throw TypeError("Reduce of empty array with no initial value")}for(;t?h>=0:f>h;h+=p)h in l&&(u=n(u,l[h],h,c));return u}};t.exports={left:s(!1),right:s(!0)}},5417:(t,e,n)=>{var r=n(111),i=n(3157),o=n(5112)("species");t.exports=function(t,e){var n;return i(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},3411:(t,e,n)=>{var r=n(9670),i=n(9212);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){throw i(t),e}}},7072:(t,e,n)=>{var r=n(5112)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},4326:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},648:(t,e,n)=>{var r=n(1694),i=n(4326),o=n(5112)("toStringTag"),a="Arguments"==i(function(){return arguments}());t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:a?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},5631:(t,e,n)=>{"use strict";var r=n(3070).f,i=n(30),o=n(2248),a=n(9974),s=n(5787),u=n(408),c=n(654),l=n(6340),f=n(9781),h=n(2423).fastKey,p=n(9909),d=p.set,v=p.getterFor;t.exports={getConstructor:function(t,e,n,c){var l=t((function(t,r){s(t,l,e),d(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),f||(t.size=0),null!=r&&u(r,t[c],{that:t,AS_ENTRIES:n})})),p=v(e),g=function(t,e,n){var r,i,o=p(t),a=y(t,e);return a?a.value=n:(o.last=a={index:i=h(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),f?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},y=function(t,e){var n,r=p(t),i=h(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return o(l.prototype,{clear:function(){for(var t=p(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,f?t.size=0:this.size=0},delete:function(t){var e=this,n=p(e),r=y(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),f?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=p(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!y(this,t)}}),o(l.prototype,n?{get:function(t){var e=y(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),f&&r(l.prototype,"size",{get:function(){return p(this).size}}),l},setStrong:function(t,e,n){var r=e+" Iterator",i=v(e),o=v(r);c(t,e,(function(t,e){d(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(e)}}},9320:(t,e,n)=>{"use strict";var r=n(2248),i=n(2423).getWeakData,o=n(9670),a=n(111),s=n(5787),u=n(408),c=n(2092),l=n(6656),f=n(9909),h=f.set,p=f.getterFor,d=c.find,v=c.findIndex,g=0,y=function(t){return t.frozen||(t.frozen=new m)},m=function(){this.entries=[]},b=function(t,e){return d(t.entries,(function(t){return t[0]===e}))};m.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var n=b(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=v(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,c){var f=t((function(t,r){s(t,f,e),h(t,{type:e,id:g++,frozen:void 0}),null!=r&&u(r,t[c],{that:t,AS_ENTRIES:n})})),d=p(e),v=function(t,e,n){var r=d(t),a=i(o(e),!0);return!0===a?y(r).set(e,n):a[r.id]=n,t};return r(f.prototype,{delete:function(t){var e=d(this);if(!a(t))return!1;var n=i(t);return!0===n?y(e).delete(t):n&&l(n,e.id)&&delete n[e.id]},has:function(t){var e=d(this);if(!a(t))return!1;var n=i(t);return!0===n?y(e).has(t):n&&l(n,e.id)}}),r(f.prototype,n?{get:function(t){var e=d(this);if(a(t)){var n=i(t);return!0===n?y(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return v(this,t,e)}}:{add:function(t){return v(this,t,!0)}}),f}}},7710:(t,e,n)=>{"use strict";var r=n(2109),i=n(7854),o=n(4705),a=n(1320),s=n(2423),u=n(408),c=n(5787),l=n(111),f=n(7293),h=n(7072),p=n(8003),d=n(9587);t.exports=function(t,e,n){var v=-1!==t.indexOf("Map"),g=-1!==t.indexOf("Weak"),y=v?"set":"add",m=i[t],b=m&&m.prototype,x=m,w={},S=function(t){var e=b[t];a(b,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(g&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!l(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!l(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(o(t,"function"!=typeof m||!(g||b.forEach&&!f((function(){(new m).entries().next()})))))x=n.getConstructor(e,t,v,y),s.REQUIRED=!0;else if(o(t,!0)){var _=new x,A=_[y](g?{}:-0,1)!=_,M=f((function(){_.has(1)})),T=h((function(t){new m(t)})),E=!g&&f((function(){for(var t=new m,e=5;e--;)t[y](e,e);return!t.has(-0)}));T||((x=e((function(e,n){c(e,x,t);var r=d(new m,e,x);return null!=n&&u(n,r[y],{that:r,AS_ENTRIES:v}),r}))).prototype=b,b.constructor=x),(M||E)&&(S("delete"),S("has"),v&&S("get")),(E||A)&&S(y),g&&b.clear&&delete b.clear}return w[t]=x,r({global:!0,forced:x!=m},w),p(x,t),g||n.setStrong(x,t,v),x}},9920:(t,e,n)=>{var r=n(6656),i=n(3887),o=n(1236),a=n(3070);t.exports=function(t,e){for(var n=i(e),s=a.f,u=o.f,c=0;c{var r=n(5112)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},8544:(t,e,n)=>{var r=n(7293);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4230:(t,e,n)=>{var r=n(4488),i=/"/g;t.exports=function(t,e,n,o){var a=String(r(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(o).replace(i,""")+'"'),s+">"+a+""}},4994:(t,e,n)=>{"use strict";var r=n(3383).IteratorPrototype,i=n(30),o=n(9114),a=n(8003),s=n(7497),u=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,c,!1,!0),s[c]=u,t}},8880:(t,e,n)=>{var r=n(9781),i=n(3070),o=n(9114);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9114:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:(t,e,n)=>{"use strict";var r=n(7593),i=n(3070),o=n(9114);t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},5573:(t,e,n)=>{"use strict";var r=n(7293),i=n(6650).start,o=Math.abs,a=Date.prototype,s=a.getTime,u=a.toISOString;t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=u.call(new Date(-50000000000001))}))||!r((function(){u.call(new Date(NaN))}))?function(){if(!isFinite(s.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+i(o(e),r?6:4,0)+"-"+i(t.getUTCMonth()+1,2,0)+"-"+i(t.getUTCDate(),2,0)+"T"+i(t.getUTCHours(),2,0)+":"+i(t.getUTCMinutes(),2,0)+":"+i(t.getUTCSeconds(),2,0)+"."+i(n,3,0)+"Z"}:u},8709:(t,e,n)=>{"use strict";var r=n(9670),i=n(7593);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),"number"!==t)}},654:(t,e,n)=>{"use strict";var r=n(2109),i=n(4994),o=n(9518),a=n(7674),s=n(8003),u=n(8880),c=n(1320),l=n(5112),f=n(1913),h=n(7497),p=n(3383),d=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,g=l("iterator"),y="keys",m="values",b="entries",x=function(){return this};t.exports=function(t,e,n,l,p,w,S){i(n,e,l);var _,A,M,T=function(t){if(t===p&&C)return C;if(!v&&t in O)return O[t];switch(t){case y:case m:case b:return function(){return new n(this,t)}}return function(){return new n(this)}},E=e+" Iterator",k=!1,O=t.prototype,P=O[g]||O["@@iterator"]||p&&O[p],C=!v&&P||T(p),R="Array"==e&&O.entries||P;if(R&&(_=o(R.call(new t)),d!==Object.prototype&&_.next&&(f||o(_)===d||(a?a(_,d):"function"!=typeof _[g]&&u(_,g,x)),s(_,E,!0,!0),f&&(h[E]=x))),p==m&&P&&P.name!==m&&(k=!0,C=function(){return P.call(this)}),f&&!S||O[g]===C||u(O,g,C),h[e]=C,p)if(A={values:T(m),keys:w?C:T(y),entries:T(b)},S)for(M in A)(v||k||!(M in O))&&c(O,M,A[M]);else r({target:e,proto:!0,forced:v||k},A);return A}},7235:(t,e,n)=>{var r=n(857),i=n(6656),o=n(6061),a=n(3070).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},9781:(t,e,n)=>{var r=n(7293);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(t,e,n)=>{var r=n(7854),i=n(111),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},8324:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8334:(t,e,n)=>{var r=n(8113);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},5268:(t,e,n)=>{var r=n(4326),i=n(7854);t.exports="process"==r(i.process)},1036:(t,e,n)=>{var r=n(8113);t.exports=/web0s(?!.*chrome)/i.test(r)},8113:(t,e,n)=>{var r=n(5005);t.exports=r("navigator","userAgent")||""},7392:(t,e,n)=>{var r,i,o=n(7854),a=n(8113),s=o.process,u=s&&s.versions,c=u&&u.v8;c?i=(r=c.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),t.exports=i&&+i},748:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(t,e,n)=>{var r=n(7854),i=n(1236).f,o=n(8880),a=n(1320),s=n(3505),u=n(9920),c=n(4705);t.exports=function(t,e){var n,l,f,h,p,d=t.target,v=t.global,g=t.stat;if(n=v?r:g?r[d]||s(d,{}):(r[d]||{}).prototype)for(l in e){if(h=e[l],f=t.noTargetGet?(p=i(n,l))&&p.value:n[l],!c(v?l:d+(g?".":"#")+l,t.forced)&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(t.sham||f&&f.sham)&&o(h,"sham",!0),a(n,l,h,t)}}},7293:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:(t,e,n)=>{"use strict";n(4916);var r=n(1320),i=n(7293),o=n(5112),a=n(2261),s=n(8880),u=o("species"),c=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),l="$0"==="a".replace(/./,"$0"),f=o("replace"),h=!!/./[f]&&""===/./[f]("a","$0"),p=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,f){var d=o(t),v=!i((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),g=v&&!i((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return e=!0,null},n[d](""),!e}));if(!v||!g||"replace"===t&&(!c||!l||h)||"split"===t&&!p){var y=/./[d],m=n(d,""[t],(function(t,e,n,r,i){return e.exec===a?v&&!i?{done:!0,value:y.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),b=m[0],x=m[1];r(String.prototype,t,b),r(RegExp.prototype,d,2==e?function(t,e){return x.call(t,this,e)}:function(t){return x.call(t,this)})}f&&s(RegExp.prototype[d],"sham",!0)}},6790:(t,e,n)=>{"use strict";var r=n(3157),i=n(7466),o=n(9974),a=function(t,e,n,s,u,c,l,f){for(var h,p=u,d=0,v=!!l&&o(l,f,3);d0&&r(h))p=a(t,e,h,i(h.length),p,c-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[p]=h}p++}d++}return p};t.exports=a},6677:(t,e,n)=>{var r=n(7293);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},9974:(t,e,n)=>{var r=n(3099);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},7065:(t,e,n)=>{"use strict";var r=n(3099),i=n(111),o=[].slice,a={},s=function(t,e,n){if(!(e in a)){for(var r=[],i=0;i{var r=n(857),i=n(7854),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},1246:(t,e,n)=>{var r=n(648),i=n(7497),o=n(5112)("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},8554:(t,e,n)=>{var r=n(9670),i=n(1246);t.exports=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return r(e.call(t))}},647:(t,e,n)=>{var r=n(7908),i=Math.floor,o="".replace,a=/\$([$&'`]|\d\d?|<[^>]*>)/g,s=/\$([$&'`]|\d\d?)/g;t.exports=function(t,e,n,u,c,l){var f=n+t.length,h=u.length,p=s;return void 0!==c&&(c=r(c),p=a),o.call(l,p,(function(r,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(f);case"<":a=c[o.slice(1,-1)];break;default:var s=+o;if(0===s)return r;if(s>h){var l=i(s/10);return 0===l?r:l<=h?void 0===u[l-1]?o.charAt(1):u[l-1]+o.charAt(1):r}a=u[s-1]}return void 0===a?"":a}))}},7854:(t,e,n)=>{var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},6656:t=>{var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},3501:t=>{t.exports={}},842:(t,e,n)=>{var r=n(7854);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},490:(t,e,n)=>{var r=n(5005);t.exports=r("document","documentElement")},4664:(t,e,n)=>{var r=n(9781),i=n(7293),o=n(317);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},1179:t=>{var e=1/0,n=Math.abs,r=Math.pow,i=Math.floor,o=Math.log,a=Math.LN2;t.exports={pack:function(t,s,u){var c,l,f,h=new Array(u),p=8*u-s-1,d=(1<>1,g=23===s?r(2,-24)-r(2,-77):0,y=t<0||0===t&&1/t<0?1:0,m=0;for((t=n(t))!=t||t===e?(l=t!=t?1:0,c=d):(c=i(o(t)/a),t*(f=r(2,-c))<1&&(c--,f*=2),(t+=c+v>=1?g/f:g*r(2,1-v))*f>=2&&(c++,f/=2),c+v>=d?(l=0,c=d):c+v>=1?(l=(t*f-1)*r(2,s),c+=v):(l=t*r(2,v-1)*r(2,s),c=0));s>=8;h[m++]=255&l,l/=256,s-=8);for(c=c<0;h[m++]=255&c,c/=256,p-=8);return h[--m]|=128*y,h},unpack:function(t,n){var i,o=t.length,a=8*o-n-1,s=(1<>1,c=a-7,l=o-1,f=t[l--],h=127&f;for(f>>=7;c>0;h=256*h+t[l],l--,c-=8);for(i=h&(1<<-c)-1,h>>=-c,c+=n;c>0;i=256*i+t[l],l--,c-=8);if(0===h)h=1-u;else{if(h===s)return i?NaN:f?-1/0:e;i+=r(2,n),h-=u}return(f?-1:1)*i*r(2,h-n)}}},8361:(t,e,n)=>{var r=n(7293),i=n(4326),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},9587:(t,e,n)=>{var r=n(111),i=n(7674);t.exports=function(t,e,n){var o,a;return i&&"function"==typeof(o=e.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(t,a),t}},2788:(t,e,n)=>{var r=n(5465),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},2423:(t,e,n)=>{var r=n(3501),i=n(111),o=n(6656),a=n(3070).f,s=n(9711),u=n(6677),c=s("meta"),l=0,f=Object.isExtensible||function(){return!0},h=function(t){a(t,c,{value:{objectID:"O"+ ++l,weakData:{}}})},p=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,c)){if(!f(t))return"F";if(!e)return"E";h(t)}return t[c].objectID},getWeakData:function(t,e){if(!o(t,c)){if(!f(t))return!0;if(!e)return!1;h(t)}return t[c].weakData},onFreeze:function(t){return u&&p.REQUIRED&&f(t)&&!o(t,c)&&h(t),t}};r[c]=!0},9909:(t,e,n)=>{var r,i,o,a=n(8536),s=n(7854),u=n(111),c=n(8880),l=n(6656),f=n(5465),h=n(6200),p=n(3501),d=s.WeakMap;if(a){var v=f.state||(f.state=new d),g=v.get,y=v.has,m=v.set;r=function(t,e){return e.facade=t,m.call(v,t,e),e},i=function(t){return g.call(v,t)||{}},o=function(t){return y.call(v,t)}}else{var b=h("state");p[b]=!0,r=function(t,e){return e.facade=t,c(t,b,e),e},i=function(t){return l(t,b)?t[b]:{}},o=function(t){return l(t,b)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},7659:(t,e,n)=>{var r=n(5112),i=n(7497),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},3157:(t,e,n)=>{var r=n(4326);t.exports=Array.isArray||function(t){return"Array"==r(t)}},4705:(t,e,n)=>{var r=n(7293),i=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==c||n!=u&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},8730:(t,e,n)=>{var r=n(111),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},111:t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},1913:t=>{t.exports=!1},7850:(t,e,n)=>{var r=n(111),i=n(4326),o=n(5112)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},408:(t,e,n)=>{var r=n(9670),i=n(7659),o=n(7466),a=n(9974),s=n(1246),u=n(9212),c=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var l,f,h,p,d,v,g,y=n&&n.that,m=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),x=!(!n||!n.INTERRUPTED),w=a(e,y,1+m+x),S=function(t){return l&&u(l),new c(!0,t)},_=function(t){return m?(r(t),x?w(t[0],t[1],S):w(t[0],t[1])):x?w(t,S):w(t)};if(b)l=t;else{if("function"!=typeof(f=s(t)))throw TypeError("Target is not iterable");if(i(f)){for(h=0,p=o(t.length);p>h;h++)if((d=_(t[h]))&&d instanceof c)return d;return new c(!1)}l=f.call(t)}for(v=l.next;!(g=v.call(l)).done;){try{d=_(g.value)}catch(t){throw u(l),t}if("object"==typeof d&&d&&d instanceof c)return d}return new c(!1)}},9212:(t,e,n)=>{var r=n(9670);t.exports=function(t){var e=t.return;if(void 0!==e)return r(e.call(t)).value}},3383:(t,e,n)=>{"use strict";var r,i,o,a=n(7293),s=n(9518),u=n(8880),c=n(6656),l=n(5112),f=n(1913),h=l("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=s(s(o)))!==Object.prototype&&(r=i):p=!0);var d=null==r||a((function(){var t={};return r[h].call(t)!==t}));d&&(r={}),f&&!d||c(r,h)||u(r,h,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},7497:t=>{t.exports={}},6736:t=>{var e=Math.expm1,n=Math.exp;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}:e},6130:(t,e,n)=>{var r=n(4310),i=Math.abs,o=Math.pow,a=o(2,-52),s=o(2,-23),u=o(2,127)*(2-s),c=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=i(t),l=r(t);return ou||n!=n?l*(1/0):l*n}},6513:t=>{var e=Math.log;t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:e(1+t)}},4310:t=>{t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},5948:(t,e,n)=>{var r,i,o,a,s,u,c,l,f=n(7854),h=n(1236).f,p=n(261).set,d=n(8334),v=n(1036),g=n(5268),y=f.MutationObserver||f.WebKitMutationObserver,m=f.document,b=f.process,x=f.Promise,w=h(f,"queueMicrotask"),S=w&&w.value;S||(r=function(){var t,e;for(g&&(t=b.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},d||g||v||!y||!m?x&&x.resolve?(c=x.resolve(void 0),l=c.then,a=function(){l.call(c,r)}):a=g?function(){b.nextTick(r)}:function(){p.call(f,r)}:(s=!0,u=m.createTextNode(""),new y(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s})),t.exports=S||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},3366:(t,e,n)=>{var r=n(7854);t.exports=r.Promise},133:(t,e,n)=>{var r=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},590:(t,e,n)=>{var r=n(7293),i=n(5112),o=n(1913),a=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},8536:(t,e,n)=>{var r=n(7854),i=n(2788),o=r.WeakMap;t.exports="function"==typeof o&&/native code/.test(i(o))},8523:(t,e,n)=>{"use strict";var r=n(3099),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},3929:(t,e,n)=>{var r=n(7850);t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},7023:(t,e,n)=>{var r=n(7854).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},2814:(t,e,n)=>{var r=n(7854),i=n(3111).trim,o=n(1361),a=r.parseFloat,s=1/a(o+"-0")!=-1/0;t.exports=s?function(t){var e=i(String(t)),n=a(e);return 0===n&&"-"==e.charAt(0)?-0:n}:a},3009:(t,e,n)=>{var r=n(7854),i=n(3111).trim,o=n(1361),a=r.parseInt,s=/^[+-]?0[Xx]/,u=8!==a(o+"08")||22!==a(o+"0x16");t.exports=u?function(t,e){var n=i(String(t));return a(n,e>>>0||(s.test(n)?16:10))}:a},1574:(t,e,n)=>{"use strict";var r=n(9781),i=n(7293),o=n(1956),a=n(5181),s=n(5296),u=n(7908),c=n(8361),l=Object.assign,f=Object.defineProperty;t.exports=!l||i((function(){if(r&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||o(l({},e)).join("")!=i}))?function(t,e){for(var n=u(t),i=arguments.length,l=1,f=a.f,h=s.f;i>l;)for(var p,d=c(arguments[l++]),v=f?o(d).concat(f(d)):o(d),g=v.length,y=0;g>y;)p=v[y++],r&&!h.call(d,p)||(n[p]=d[p]);return n}:l},30:(t,e,n)=>{var r,i=n(9670),o=n(6048),a=n(748),s=n(3501),u=n(490),c=n(317),l=n(6200)("IE_PROTO"),f=function(){},h=function(t){return"