apexsankey 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # ApexSankey - Installation and Getting started
1
+ # ApexSankey
2
2
 
3
- The ApexSankey is a javascript library built on SVG that helps to create organizational or hierarchical charts.
3
+ A JavaScript library to create Sankey diagrams built on SVG
4
4
 
5
- <img width="811" alt="Screenshot 2023-12-17 at 10 28 04 PM" src="https://github.com/apexcharts/tree/assets/17950663/e09212ec-6322-4c68-ac12-9afc524d2abd">
5
+ <img width="752" alt="apex-sankey-chart" src="https://github.com/apexcharts/projects/assets/17950663/51e00ff0-79d1-45eb-8815-f8d11e2dd981">
6
6
 
7
7
 
8
8
  ## Installation
@@ -16024,7 +16024,6 @@ function neighbourPositions(G2, order, i, j, u, includeLoops = false) {
16024
16024
  thisRank.forEach((n, i2) => {
16025
16025
  if (G2.nodeEdges(n, u).length > 0) {
16026
16026
  positions.push(i2 + 0.5);
16027
- console.log(" ", n, i2);
16028
16027
  }
16029
16028
  });
16030
16029
  }
@@ -16543,10 +16542,8 @@ function sankey(options) {
16543
16542
  assignRanks(graph2, data2.rankSets || []);
16544
16543
  addDummyNodes(graph2);
16545
16544
  order = ordering(graph2);
16546
- console.log("order", order, data2.order);
16547
16545
  } else {
16548
16546
  order = data2.order;
16549
- console.log("order", order, data2.order);
16550
16547
  if (order.length > 0 && order[0].length > 0 && !lodashExports.isArray(order[0][0])) {
16551
16548
  order = order.map((rank) => [rank]);
16552
16549
  }
@@ -16695,7 +16692,7 @@ function drawGroup(x2 = 0, y2 = 0, id, parent) {
16695
16692
  group.attr({ transform: `translate(${x2}, ${y2})`, "data-self": id, "data-parent": parent });
16696
16693
  return group;
16697
16694
  }
16698
- function drawPath(pathString, { id = "", edgeColor = "none", opacity = 1 } = {}) {
16695
+ function drawPath(pathString, { id = "", edgeColor, opacity = 1 } = {}) {
16699
16696
  const path = new Path({ d: pathString });
16700
16697
  path.id(id);
16701
16698
  path.fill(edgeColor).opacity(opacity);
@@ -16742,6 +16739,7 @@ function renderNodeText(graphNode, fontColor) {
16742
16739
  return text;
16743
16740
  }
16744
16741
  function renderNode(graphNode, options) {
16742
+ var _a, _b;
16745
16743
  const { x: x2, y: y2, dy: dy2 } = graphNode;
16746
16744
  const { nodeWidth, nodeBorderWidth, nodeBorderColor, onNodeClick, fontColor } = options;
16747
16745
  const group = new G({ class: "node" });
@@ -16751,19 +16749,21 @@ function renderNode(graphNode, options) {
16751
16749
  width: nodeWidth,
16752
16750
  height: dy2
16753
16751
  });
16754
- body.fill(graphNode.data.color);
16752
+ body.fill((_a = graphNode.data) == null ? void 0 : _a.color);
16755
16753
  body.stroke({
16756
16754
  width: nodeBorderWidth,
16757
- color: nodeBorderColor ?? graphNode.data.color
16755
+ color: nodeBorderColor ?? ((_b = graphNode.data) == null ? void 0 : _b.color)
16758
16756
  });
16759
16757
  body.on("click", () => {
16760
16758
  if (typeof onNodeClick === "function") {
16761
16759
  onNodeClick(graphNode);
16762
16760
  }
16763
16761
  });
16764
- const text = renderNodeText(graphNode, fontColor);
16765
16762
  group.add(body);
16766
- group.add(text);
16763
+ if (graphNode.data) {
16764
+ const text = renderNodeText(graphNode, fontColor);
16765
+ group.add(text);
16766
+ }
16767
16767
  return group;
16768
16768
  }
16769
16769
  const DefaultPalette = [
@@ -16783,7 +16783,7 @@ const DefaultPalette = [
16783
16783
  "#14A14D",
16784
16784
  "#C5114D"
16785
16785
  ];
16786
- const getTooltip = (tooltipId = "apextree-tooltip-container") => {
16786
+ const getTooltip = (tooltipId = "apexsankey-tooltip-container") => {
16787
16787
  const tooltipElement = document.getElementById(tooltipId) || document.createElement("div");
16788
16788
  tooltipElement.id = tooltipId;
16789
16789
  return tooltipElement;
@@ -16846,9 +16846,7 @@ class SankeyGraph extends Paper {
16846
16846
  colorIndex
16847
16847
  };
16848
16848
  });
16849
- console.log("construct", data2.nodes, updatedNodes);
16850
16849
  const graph2 = layout(data2.edges, updatedNodes, data2.options);
16851
- console.log("graph", graph2);
16852
16850
  this.graph = graph2;
16853
16851
  }
16854
16852
  renderEdge(edgeObj, group) {
@@ -16858,33 +16856,44 @@ class SankeyGraph extends Paper {
16858
16856
  tooltipBGColor,
16859
16857
  tooltipBorderColor,
16860
16858
  edgeOpacity,
16859
+ edgeGradientFill,
16861
16860
  tooltipTemplate
16862
16861
  } = this.options;
16863
16862
  const edgeLabel = this.graph.edge(edgeObj.v, edgeObj.w, edgeObj.name);
16864
16863
  const sourceNode = this.graph.node(edgeObj.v);
16865
16864
  const targetNode = this.graph.node(edgeObj.w);
16866
16865
  const edge = generatePath(edgeLabel);
16866
+ const edgeColor = this.canvas.gradient("linear", function(add) {
16867
+ var _a, _b, _c;
16868
+ add.stop(0, (_a = sourceNode.data) == null ? void 0 : _a.color);
16869
+ add.stop(1, edgeGradientFill ? (_b = targetNode.data) == null ? void 0 : _b.color : (_c = sourceNode.data) == null ? void 0 : _c.color);
16870
+ });
16867
16871
  const path = drawPath(edge, {
16868
- edgeColor: sourceNode.data.color,
16872
+ id: `${edgeObj.v}-${edgeObj.w}`,
16873
+ edgeColor,
16869
16874
  opacity: edgeOpacity
16870
16875
  });
16871
- if (enableTooltip) {
16876
+ if (enableTooltip && sourceNode.data && targetNode.data) {
16872
16877
  const tooltipContent = tooltipTemplate ? tooltipTemplate({
16873
16878
  source: sourceNode.data,
16874
16879
  target: targetNode.data,
16875
16880
  value: edgeLabel.value
16876
16881
  }) : null;
16877
16882
  path.on("mousemove", function(e) {
16883
+ var _a;
16878
16884
  const styles = getTooltipStyles(
16879
16885
  e.pageX,
16880
16886
  e.pageY,
16881
16887
  tooltipBorderColor,
16882
16888
  tooltipBGColor
16883
16889
  );
16890
+ (_a = SVG(`[id="${e.target.id}"]`)) == null ? void 0 : _a.front().opacity(1);
16884
16891
  updateTooltip(tooltipId, styles.join(" "), tooltipContent);
16885
16892
  });
16886
- path.on("mouseout", function() {
16893
+ path.on("mouseout", function(e) {
16894
+ var _a;
16887
16895
  updateTooltip(tooltipId);
16896
+ (_a = SVG(`[id="${e.target.id}"]`)) == null ? void 0 : _a.front().opacity(edgeOpacity);
16888
16897
  });
16889
16898
  }
16890
16899
  group.add(path);
@@ -16955,6 +16964,7 @@ const DefaultOptions = {
16955
16964
  nodeBorderColor: null,
16956
16965
  onNodeClick: void 0,
16957
16966
  edgeOpacity: 0.4,
16967
+ edgeGradientFill: true,
16958
16968
  fontSize: "14px",
16959
16969
  fontFamily: "",
16960
16970
  fontWeight: 400,
@@ -16980,11 +16990,11 @@ class ApexSankey {
16980
16990
  constructor(element, options) {
16981
16991
  this.element = element;
16982
16992
  this.options = { ...DefaultOptions, ...options };
16983
- const treeWrapper = document.createElement("div");
16984
- treeWrapper.id = "apexTreeWrapper";
16985
- treeWrapper.style.position = "relative";
16986
- this.graph = new SankeyGraph(treeWrapper, this.options);
16987
- this.element.append(treeWrapper);
16993
+ const sankeyWrapper = document.createElement("div");
16994
+ sankeyWrapper.id = "apexSankeyWrapper";
16995
+ sankeyWrapper.style.position = "relative";
16996
+ this.graph = new SankeyGraph(sankeyWrapper, this.options);
16997
+ this.element.append(sankeyWrapper);
16988
16998
  }
16989
16999
  render(data2) {
16990
17000
  if (!this.element) {
package/apexsankey.min.js CHANGED
@@ -6,4 +6,4 @@
6
6
  * Released under MIT license <https://lodash.com/license>
7
7
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
8
8
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
9
- */Qf=Kf,Jf=Kf.exports,function(){var t,n="Expected a function",e="__lodash_hash_undefined__",r="__lodash_placeholder__",i=16,o=32,u=64,s=128,a=256,c=1/0,h=9007199254740991,f=NaN,l=4294967295,d=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",i],["flip",512],["partial",o],["partialRight",u],["rearg",a]],p="[object Arguments]",v="[object Array]",g="[object Boolean]",y="[object Date]",_="[object Error]",m="[object Function]",w="[object GeneratorFunction]",b="[object Map]",x="[object Number]",E="[object Object]",j="[object Promise]",A="[object RegExp]",O="[object Set]",M="[object String]",S="[object Symbol]",k="[object WeakMap]",C="[object ArrayBuffer]",T="[object DataView]",I="[object Float32Array]",N="[object Float64Array]",R="[object Int8Array]",z="[object Int16Array]",P="[object Int32Array]",D="[object Uint8Array]",L="[object Uint8ClampedArray]",F="[object Uint16Array]",B="[object Uint32Array]",$=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,X=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,q=RegExp(Y.source),W=RegExp(U.source),G=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,H=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,K=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tt=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(tt.source),et=/^\s+/,rt=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,ut=/,? & /,st=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,at=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,lt=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,pt=/^\[object .+?Constructor\]$/,vt=/^0o[0-7]+$/i,gt=/^(?:0|[1-9]\d*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_t=/($^)/,mt=/['\n\r\u2028\u2029\\]/g,wt="\\ud800-\\udfff",bt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xt="\\u2700-\\u27bf",Et="a-z\\xdf-\\xf6\\xf8-\\xff",jt="A-Z\\xc0-\\xd6\\xd8-\\xde",At="\\ufe0e\\ufe0f",Ot="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Mt="['’]",St="["+wt+"]",kt="["+Ot+"]",Ct="["+bt+"]",Tt="\\d+",It="["+xt+"]",Nt="["+Et+"]",Rt="[^"+wt+Ot+Tt+xt+Et+jt+"]",zt="\\ud83c[\\udffb-\\udfff]",Pt="[^"+wt+"]",Dt="(?:\\ud83c[\\udde6-\\uddff]){2}",Lt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ft="["+jt+"]",Bt="\\u200d",$t="(?:"+Nt+"|"+Rt+")",Vt="(?:"+Ft+"|"+Rt+")",Xt="(?:['’](?:d|ll|m|re|s|t|ve))?",Yt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ut="(?:"+Ct+"|"+zt+")?",qt="["+At+"]?",Wt=qt+Ut+"(?:"+Bt+"(?:"+[Pt,Dt,Lt].join("|")+")"+qt+Ut+")*",Gt="(?:"+[It,Dt,Lt].join("|")+")"+Wt,Zt="(?:"+[Pt+Ct+"?",Ct,Dt,Lt,St].join("|")+")",Ht=RegExp(Mt,"g"),Qt=RegExp(Ct,"g"),Jt=RegExp(zt+"(?="+zt+")|"+Zt+Wt,"g"),Kt=RegExp([Ft+"?"+Nt+"+"+Xt+"(?="+[kt,Ft,"$"].join("|")+")",Vt+"+"+Yt+"(?="+[kt,Ft+$t,"$"].join("|")+")",Ft+"?"+$t+"+"+Xt,Ft+"+"+Yt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tt,Gt].join("|"),"g"),tn=RegExp("["+Bt+wt+bt+At+"]"),nn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,en=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rn=-1,on={};on[I]=on[N]=on[R]=on[z]=on[P]=on[D]=on[L]=on[F]=on[B]=!0,on[p]=on[v]=on[C]=on[g]=on[T]=on[y]=on[_]=on[m]=on[b]=on[x]=on[E]=on[A]=on[O]=on[M]=on[k]=!1;var un={};un[p]=un[v]=un[C]=un[T]=un[g]=un[y]=un[I]=un[N]=un[R]=un[z]=un[P]=un[b]=un[x]=un[E]=un[A]=un[O]=un[M]=un[S]=un[D]=un[L]=un[F]=un[B]=!0,un[_]=un[m]=un[k]=!1;var sn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},an=parseFloat,cn=parseInt,hn="object"==typeof ni&&ni&&ni.Object===Object&&ni,fn="object"==typeof self&&self&&self.Object===Object&&self,ln=hn||fn||Function("return this")(),dn=Jf&&!Jf.nodeType&&Jf,pn=dn&&Qf&&!Qf.nodeType&&Qf,vn=pn&&pn.exports===dn,gn=vn&&hn.process,yn=function(){try{var t=pn&&pn.require&&pn.require("util").types;return t||gn&&gn.binding&&gn.binding("util")}catch(Fl){}}(),_n=yn&&yn.isArrayBuffer,mn=yn&&yn.isDate,wn=yn&&yn.isMap,bn=yn&&yn.isRegExp,xn=yn&&yn.isSet,En=yn&&yn.isTypedArray;function jn(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function An(t,n,e,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var u=t[i];n(r,u,e(u),t)}return r}function On(t,n){for(var e=-1,r=null==t?0:t.length;++e<r&&!1!==n(t[e],e,t););return t}function Mn(t,n){for(var e=null==t?0:t.length;e--&&!1!==n(t[e],e,t););return t}function Sn(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(!n(t[e],e,t))return!1;return!0}function kn(t,n){for(var e=-1,r=null==t?0:t.length,i=0,o=[];++e<r;){var u=t[e];n(u,e,t)&&(o[i++]=u)}return o}function Cn(t,n){return!(null==t||!t.length)&&Bn(t,n,0)>-1}function Tn(t,n,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(e(n,t[r]))return!0;return!1}function In(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}function Nn(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}function Rn(t,n,e,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(e=t[++i]);++i<o;)e=n(e,t[i],i,t);return e}function zn(t,n,e,r){var i=null==t?0:t.length;for(r&&i&&(e=t[--i]);i--;)e=n(e,t[i],i,t);return e}function Pn(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}var Dn=Yn("length");function Ln(t,n,e){var r;return e(t,(function(t,e,i){if(n(t,e,i))return r=e,!1})),r}function Fn(t,n,e,r){for(var i=t.length,o=e+(r?1:-1);r?o--:++o<i;)if(n(t[o],o,t))return o;return-1}function Bn(t,n,e){return n==n?function(t,n,e){for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}(t,n,e):Fn(t,Vn,e)}function $n(t,n,e,r){for(var i=e-1,o=t.length;++i<o;)if(r(t[i],n))return i;return-1}function Vn(t){return t!=t}function Xn(t,n){var e=null==t?0:t.length;return e?Wn(t,n)/e:f}function Yn(n){return function(e){return null==e?t:e[n]}}function Un(n){return function(e){return null==n?t:n[e]}}function qn(t,n,e,r,i){return i(t,(function(t,i,o){e=r?(r=!1,t):n(e,t,i,o)})),e}function Wn(n,e){for(var r,i=-1,o=n.length;++i<o;){var u=e(n[i]);u!==t&&(r=r===t?u:r+u)}return r}function Gn(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}function Zn(t){return t?t.slice(0,fe(t)+1).replace(et,""):t}function Hn(t){return function(n){return t(n)}}function Qn(t,n){return In(n,(function(n){return t[n]}))}function Jn(t,n){return t.has(n)}function Kn(t,n){for(var e=-1,r=t.length;++e<r&&Bn(n,t[e],0)>-1;);return e}function te(t,n){for(var e=t.length;e--&&Bn(n,t[e],0)>-1;);return e}var ne=Un({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),ee=Un({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function re(t){return"\\"+sn[t]}function ie(t){return tn.test(t)}function oe(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}function ue(t,n){return function(e){return t(n(e))}}function se(t,n){for(var e=-1,i=t.length,o=0,u=[];++e<i;){var s=t[e];s!==n&&s!==r||(t[e]=r,u[o++]=e)}return u}function ae(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=t})),e}function ce(t){return ie(t)?function(t){for(var n=Jt.lastIndex=0;Jt.test(t);)++n;return n}(t):Dn(t)}function he(t){return ie(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.split("")}(t)}function fe(t){for(var n=t.length;n--&&rt.test(t.charAt(n)););return n}var le=Un({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),de=function rt(wt){var bt,xt=(wt=null==wt?ln:de.defaults(ln.Object(),wt,de.pick(ln,en))).Array,Et=wt.Date,jt=wt.Error,At=wt.Function,Ot=wt.Math,Mt=wt.Object,St=wt.RegExp,kt=wt.String,Ct=wt.TypeError,Tt=xt.prototype,It=At.prototype,Nt=Mt.prototype,Rt=wt["__core-js_shared__"],zt=It.toString,Pt=Nt.hasOwnProperty,Dt=0,Lt=(bt=/[^.]+$/.exec(Rt&&Rt.keys&&Rt.keys.IE_PROTO||""))?"Symbol(src)_1."+bt:"",Ft=Nt.toString,Bt=zt.call(Mt),$t=ln._,Vt=St("^"+zt.call(Pt).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xt=vn?wt.Buffer:t,Yt=wt.Symbol,Ut=wt.Uint8Array,qt=Xt?Xt.allocUnsafe:t,Wt=ue(Mt.getPrototypeOf,Mt),Gt=Mt.create,Zt=Nt.propertyIsEnumerable,Jt=Tt.splice,tn=Yt?Yt.isConcatSpreadable:t,sn=Yt?Yt.iterator:t,hn=Yt?Yt.toStringTag:t,fn=function(){try{var t=fo(Mt,"defineProperty");return t({},"",{}),t}catch(Fl){}}(),dn=wt.clearTimeout!==ln.clearTimeout&&wt.clearTimeout,pn=Et&&Et.now!==ln.Date.now&&Et.now,gn=wt.setTimeout!==ln.setTimeout&&wt.setTimeout,yn=Ot.ceil,Dn=Ot.floor,Un=Mt.getOwnPropertySymbols,pe=Xt?Xt.isBuffer:t,ve=wt.isFinite,ge=Tt.join,ye=ue(Mt.keys,Mt),_e=Ot.max,me=Ot.min,we=Et.now,be=wt.parseInt,xe=Ot.random,Ee=Tt.reverse,je=fo(wt,"DataView"),Ae=fo(wt,"Map"),Oe=fo(wt,"Promise"),Me=fo(wt,"Set"),Se=fo(wt,"WeakMap"),ke=fo(Mt,"create"),Ce=Se&&new Se,Te={},Ie=$o(je),Ne=$o(Ae),Re=$o(Oe),ze=$o(Me),Pe=$o(Se),De=Yt?Yt.prototype:t,Le=De?De.valueOf:t,Fe=De?De.toString:t;function Be(t){if(is(t)&&!Wu(t)&&!(t instanceof Ye)){if(t instanceof Xe)return t;if(Pt.call(t,"__wrapped__"))return Vo(t)}return new Xe(t)}var $e=function(){function n(){}return function(e){if(!rs(e))return{};if(Gt)return Gt(e);n.prototype=e;var r=new n;return n.prototype=t,r}}();function Ve(){}function Xe(n,e){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=t}function Ye(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=l,this.__views__=[]}function Ue(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function qe(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function We(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function Ge(t){var n=-1,e=null==t?0:t.length;for(this.__data__=new We;++n<e;)this.add(t[n])}function Ze(t){var n=this.__data__=new qe(t);this.size=n.size}function He(t,n){var e=Wu(t),r=!e&&qu(t),i=!e&&!r&&Qu(t),o=!e&&!r&&!i&&ls(t),u=e||r||i||o,s=u?Gn(t.length,kt):[],a=s.length;for(var c in t)!n&&!Pt.call(t,c)||u&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||mo(c,a))||s.push(c);return s}function Qe(n){var e=n.length;return e?n[Gr(0,e-1)]:t}function Je(t,n){return zo(ki(t),sr(n,0,t.length))}function Ke(t){return zo(ki(t))}function tr(n,e,r){(r!==t&&!Xu(n[e],r)||r===t&&!(e in n))&&or(n,e,r)}function nr(n,e,r){var i=n[e];Pt.call(n,e)&&Xu(i,r)&&(r!==t||e in n)||or(n,e,r)}function er(t,n){for(var e=t.length;e--;)if(Xu(t[e][0],n))return e;return-1}function rr(t,n,e,r){return lr(t,(function(t,i,o){n(r,t,e(t),o)})),r}function ir(t,n){return t&&Ci(n,Rs(n),t)}function or(t,n,e){"__proto__"==n&&fn?fn(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}function ur(n,e){for(var r=-1,i=e.length,o=xt(i),u=null==n;++r<i;)o[r]=u?t:ks(n,e[r]);return o}function sr(n,e,r){return n==n&&(r!==t&&(n=n<=r?n:r),e!==t&&(n=n>=e?n:e)),n}function ar(n,e,r,i,o,u){var s,a=1&e,c=2&e,h=4&e;if(r&&(s=o?r(n,i,o,u):r(n)),s!==t)return s;if(!rs(n))return n;var f=Wu(n);if(f){if(s=function(t){var n=t.length,e=new t.constructor(n);return n&&"string"==typeof t[0]&&Pt.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(n),!a)return ki(n,s)}else{var l=vo(n),d=l==m||l==w;if(Qu(n))return Ei(n,a);if(l==E||l==p||d&&!o){if(s=c||d?{}:yo(n),!a)return c?function(t,n){return Ci(t,po(t),n)}(n,function(t,n){return t&&Ci(n,zs(n),t)}(s,n)):function(t,n){return Ci(t,lo(t),n)}(n,ir(s,n))}else{if(!un[l])return o?n:{};s=function(t,n,e){var r,i=t.constructor;switch(n){case C:return ji(t);case g:case y:return new i(+t);case T:return function(t,n){var e=n?ji(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case I:case N:case R:case z:case P:case D:case L:case F:case B:return Ai(t,e);case b:return new i;case x:case M:return new i(t);case A:return function(t){var n=new t.constructor(t.source,ft.exec(t));return n.lastIndex=t.lastIndex,n}(t);case O:return new i;case S:return r=t,Le?Mt(Le.call(r)):{}}}(n,l,a)}}u||(u=new Ze);var v=u.get(n);if(v)return v;u.set(n,s),cs(n)?n.forEach((function(t){s.add(ar(t,e,r,t,n,u))})):os(n)&&n.forEach((function(t,i){s.set(i,ar(t,e,r,i,n,u))}));var _=f?t:(h?c?io:ro:c?zs:Rs)(n);return On(_||n,(function(t,i){_&&(t=n[i=t]),nr(s,i,ar(t,e,r,i,n,u))})),s}function cr(n,e,r){var i=r.length;if(null==n)return!i;for(n=Mt(n);i--;){var o=r[i],u=e[o],s=n[o];if(s===t&&!(o in n)||!u(s))return!1}return!0}function hr(e,r,i){if("function"!=typeof e)throw new Ct(n);return To((function(){e.apply(t,i)}),r)}function fr(t,n,e,r){var i=-1,o=Cn,u=!0,s=t.length,a=[],c=n.length;if(!s)return a;e&&(n=In(n,Hn(e))),r?(o=Tn,u=!1):n.length>=200&&(o=Jn,u=!1,n=new Ge(n));t:for(;++i<s;){var h=t[i],f=null==e?h:e(h);if(h=r||0!==h?h:0,u&&f==f){for(var l=c;l--;)if(n[l]===f)continue t;a.push(h)}else o(n,f,r)||a.push(h)}return a}Be.templateSettings={escape:G,evaluate:Z,interpolate:H,variable:"",imports:{_:Be}},Be.prototype=Ve.prototype,Be.prototype.constructor=Be,Xe.prototype=$e(Ve.prototype),Xe.prototype.constructor=Xe,Ye.prototype=$e(Ve.prototype),Ye.prototype.constructor=Ye,Ue.prototype.clear=function(){this.__data__=ke?ke(null):{},this.size=0},Ue.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},Ue.prototype.get=function(n){var r=this.__data__;if(ke){var i=r[n];return i===e?t:i}return Pt.call(r,n)?r[n]:t},Ue.prototype.has=function(n){var e=this.__data__;return ke?e[n]!==t:Pt.call(e,n)},Ue.prototype.set=function(n,r){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=ke&&r===t?e:r,this},qe.prototype.clear=function(){this.__data__=[],this.size=0},qe.prototype.delete=function(t){var n=this.__data__,e=er(n,t);return!(e<0||(e==n.length-1?n.pop():Jt.call(n,e,1),--this.size,0))},qe.prototype.get=function(n){var e=this.__data__,r=er(e,n);return r<0?t:e[r][1]},qe.prototype.has=function(t){return er(this.__data__,t)>-1},qe.prototype.set=function(t,n){var e=this.__data__,r=er(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},We.prototype.clear=function(){this.size=0,this.__data__={hash:new Ue,map:new(Ae||qe),string:new Ue}},We.prototype.delete=function(t){var n=co(this,t).delete(t);return this.size-=n?1:0,n},We.prototype.get=function(t){return co(this,t).get(t)},We.prototype.has=function(t){return co(this,t).has(t)},We.prototype.set=function(t,n){var e=co(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},Ge.prototype.add=Ge.prototype.push=function(t){return this.__data__.set(t,e),this},Ge.prototype.has=function(t){return this.__data__.has(t)},Ze.prototype.clear=function(){this.__data__=new qe,this.size=0},Ze.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Ze.prototype.get=function(t){return this.__data__.get(t)},Ze.prototype.has=function(t){return this.__data__.has(t)},Ze.prototype.set=function(t,n){var e=this.__data__;if(e instanceof qe){var r=e.__data__;if(!Ae||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new We(r)}return e.set(t,n),this.size=e.size,this};var lr=Ni(wr),dr=Ni(br,!0);function pr(t,n){var e=!0;return lr(t,(function(t,r,i){return e=!!n(t,r,i)})),e}function vr(n,e,r){for(var i=-1,o=n.length;++i<o;){var u=n[i],s=e(u);if(null!=s&&(a===t?s==s&&!fs(s):r(s,a)))var a=s,c=u}return c}function gr(t,n){var e=[];return lr(t,(function(t,r,i){n(t,r,i)&&e.push(t)})),e}function yr(t,n,e,r,i){var o=-1,u=t.length;for(e||(e=_o),i||(i=[]);++o<u;){var s=t[o];n>0&&e(s)?n>1?yr(s,n-1,e,r,i):Nn(i,s):r||(i[i.length]=s)}return i}var _r=Ri(),mr=Ri(!0);function wr(t,n){return t&&_r(t,n,Rs)}function br(t,n){return t&&mr(t,n,Rs)}function xr(t,n){return kn(n,(function(n){return ts(t[n])}))}function Er(n,e){for(var r=0,i=(e=mi(e,n)).length;null!=n&&r<i;)n=n[Bo(e[r++])];return r&&r==i?n:t}function jr(t,n,e){var r=n(t);return Wu(t)?r:Nn(r,e(t))}function Ar(n){return null==n?n===t?"[object Undefined]":"[object Null]":hn&&hn in Mt(n)?function(n){var e=Pt.call(n,hn),r=n[hn];try{n[hn]=t;var i=!0}catch(Fl){}var o=Ft.call(n);return i&&(e?n[hn]=r:delete n[hn]),o}(n):function(t){return Ft.call(t)}(n)}function Or(t,n){return t>n}function Mr(t,n){return null!=t&&Pt.call(t,n)}function Sr(t,n){return null!=t&&n in Mt(t)}function kr(n,e,r){for(var i=r?Tn:Cn,o=n[0].length,u=n.length,s=u,a=xt(u),c=1/0,h=[];s--;){var f=n[s];s&&e&&(f=In(f,Hn(e))),c=me(f.length,c),a[s]=!r&&(e||o>=120&&f.length>=120)?new Ge(s&&f):t}f=n[0];var l=-1,d=a[0];t:for(;++l<o&&h.length<c;){var p=f[l],v=e?e(p):p;if(p=r||0!==p?p:0,!(d?Jn(d,v):i(h,v,r))){for(s=u;--s;){var g=a[s];if(!(g?Jn(g,v):i(n[s],v,r)))continue t}d&&d.push(v),h.push(p)}}return h}function Cr(n,e,r){var i=null==(n=So(n,e=mi(e,n)))?n:n[Bo(Ko(e))];return null==i?t:jn(i,n,r)}function Tr(t){return is(t)&&Ar(t)==p}function Ir(n,e,r,i,o){return n===e||(null==n||null==e||!is(n)&&!is(e)?n!=n&&e!=e:function(n,e,r,i,o,u){var s=Wu(n),a=Wu(e),c=s?v:vo(n),h=a?v:vo(e),f=(c=c==p?E:c)==E,l=(h=h==p?E:h)==E,d=c==h;if(d&&Qu(n)){if(!Qu(e))return!1;s=!0,f=!1}if(d&&!f)return u||(u=new Ze),s||ls(n)?no(n,e,r,i,o,u):function(t,n,e,r,i,o,u){switch(e){case T:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case C:return!(t.byteLength!=n.byteLength||!o(new Ut(t),new Ut(n)));case g:case y:case x:return Xu(+t,+n);case _:return t.name==n.name&&t.message==n.message;case A:case M:return t==n+"";case b:var s=oe;case O:var a=1&r;if(s||(s=ae),t.size!=n.size&&!a)return!1;var c=u.get(t);if(c)return c==n;r|=2,u.set(t,n);var h=no(s(t),s(n),r,i,o,u);return u.delete(t),h;case S:if(Le)return Le.call(t)==Le.call(n)}return!1}(n,e,c,r,i,o,u);if(!(1&r)){var m=f&&Pt.call(n,"__wrapped__"),w=l&&Pt.call(e,"__wrapped__");if(m||w){var j=m?n.value():n,k=w?e.value():e;return u||(u=new Ze),o(j,k,r,i,u)}}return!!d&&(u||(u=new Ze),function(n,e,r,i,o,u){var s=1&r,a=ro(n),c=a.length,h=ro(e),f=h.length;if(c!=f&&!s)return!1;for(var l=c;l--;){var d=a[l];if(!(s?d in e:Pt.call(e,d)))return!1}var p=u.get(n),v=u.get(e);if(p&&v)return p==e&&v==n;var g=!0;u.set(n,e),u.set(e,n);for(var y=s;++l<c;){var _=n[d=a[l]],m=e[d];if(i)var w=s?i(m,_,d,e,n,u):i(_,m,d,n,e,u);if(!(w===t?_===m||o(_,m,r,i,u):w)){g=!1;break}y||(y="constructor"==d)}if(g&&!y){var b=n.constructor,x=e.constructor;b==x||!("constructor"in n)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(g=!1)}return u.delete(n),u.delete(e),g}(n,e,r,i,o,u))}(n,e,r,i,Ir,o))}function Nr(n,e,r,i){var o=r.length,u=o,s=!i;if(null==n)return!u;for(n=Mt(n);o--;){var a=r[o];if(s&&a[2]?a[1]!==n[a[0]]:!(a[0]in n))return!1}for(;++o<u;){var c=(a=r[o])[0],h=n[c],f=a[1];if(s&&a[2]){if(h===t&&!(c in n))return!1}else{var l=new Ze;if(i)var d=i(h,f,c,n,e,l);if(!(d===t?Ir(f,h,3,i,l):d))return!1}}return!0}function Rr(t){return!(!rs(t)||(n=t,Lt&&Lt in n))&&(ts(t)?Vt:pt).test($o(t));var n}function zr(t){return"function"==typeof t?t:null==t?ua:"object"==typeof t?Wu(t)?$r(t[0],t[1]):Br(t):va(t)}function Pr(t){if(!jo(t))return ye(t);var n=[];for(var e in Mt(t))Pt.call(t,e)&&"constructor"!=e&&n.push(e);return n}function Dr(t){if(!rs(t))return function(t){var n=[];if(null!=t)for(var e in Mt(t))n.push(e);return n}(t);var n=jo(t),e=[];for(var r in t)("constructor"!=r||!n&&Pt.call(t,r))&&e.push(r);return e}function Lr(t,n){return t<n}function Fr(t,n){var e=-1,r=Zu(t)?xt(t.length):[];return lr(t,(function(t,i,o){r[++e]=n(t,i,o)})),r}function Br(t){var n=ho(t);return 1==n.length&&n[0][2]?Oo(n[0][0],n[0][1]):function(e){return e===t||Nr(e,t,n)}}function $r(n,e){return bo(n)&&Ao(e)?Oo(Bo(n),e):function(r){var i=ks(r,n);return i===t&&i===e?Cs(r,n):Ir(e,i,3)}}function Vr(n,e,r,i,o){n!==e&&_r(e,(function(u,s){if(o||(o=new Ze),rs(u))!function(n,e,r,i,o,u,s){var a=ko(n,r),c=ko(e,r),h=s.get(c);if(h)tr(n,r,h);else{var f=u?u(a,c,r+"",n,e,s):t,l=f===t;if(l){var d=Wu(c),p=!d&&Qu(c),v=!d&&!p&&ls(c);f=c,d||p||v?Wu(a)?f=a:Hu(a)?f=ki(a):p?(l=!1,f=Ei(c,!0)):v?(l=!1,f=Ai(c,!0)):f=[]:ss(c)||qu(c)?(f=a,qu(a)?f=ws(a):rs(a)&&!ts(a)||(f=yo(c))):l=!1}l&&(s.set(c,f),o(f,c,i,u,s),s.delete(c)),tr(n,r,f)}}(n,e,s,r,Vr,i,o);else{var a=i?i(ko(n,s),u,s+"",n,e,o):t;a===t&&(a=u),tr(n,s,a)}}),zs)}function Xr(n,e){var r=n.length;if(r)return mo(e+=e<0?r:0,r)?n[e]:t}function Yr(t,n,e){n=n.length?In(n,(function(t){return Wu(t)?function(n){return Er(n,1===t.length?t[0]:t)}:t})):[ua];var r=-1;return n=In(n,Hn(ao())),function(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}(Fr(t,(function(t,e,i){return{criteria:In(n,(function(n){return n(t)})),index:++r,value:t}})),(function(t,n){return function(t,n,e){for(var r=-1,i=t.criteria,o=n.criteria,u=i.length,s=e.length;++r<u;){var a=Oi(i[r],o[r]);if(a)return r>=s?a:a*("desc"==e[r]?-1:1)}return t.index-n.index}(t,n,e)}))}function Ur(t,n,e){for(var r=-1,i=n.length,o={};++r<i;){var u=n[r],s=Er(t,u);e(s,u)&&Kr(o,mi(u,t),s)}return o}function qr(t,n,e,r){var i=r?$n:Bn,o=-1,u=n.length,s=t;for(t===n&&(n=ki(n)),e&&(s=In(t,Hn(e)));++o<u;)for(var a=0,c=n[o],h=e?e(c):c;(a=i(s,h,a,r))>-1;)s!==t&&Jt.call(s,a,1),Jt.call(t,a,1);return t}function Wr(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==o){var o=i;mo(i)?Jt.call(t,i,1):fi(t,i)}}return t}function Gr(t,n){return t+Dn(xe()*(n-t+1))}function Zr(t,n){var e="";if(!t||n<1||n>h)return e;do{n%2&&(e+=t),(n=Dn(n/2))&&(t+=t)}while(n);return e}function Hr(t,n){return Io(Mo(t,n,ua),t+"")}function Qr(t){return Qe(Xs(t))}function Jr(t,n){var e=Xs(t);return zo(e,sr(n,0,e.length))}function Kr(n,e,r,i){if(!rs(n))return n;for(var o=-1,u=(e=mi(e,n)).length,s=u-1,a=n;null!=a&&++o<u;){var c=Bo(e[o]),h=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return n;if(o!=s){var f=a[c];(h=i?i(f,c,a):t)===t&&(h=rs(f)?f:mo(e[o+1])?[]:{})}nr(a,c,h),a=a[c]}return n}var ti=Ce?function(t,n){return Ce.set(t,n),t}:ua,ni=fn?function(t,n){return fn(t,"toString",{configurable:!0,enumerable:!1,value:ra(n),writable:!0})}:ua;function ei(t){return zo(Xs(t))}function ri(t,n,e){var r=-1,i=t.length;n<0&&(n=-n>i?0:i+n),(e=e>i?i:e)<0&&(e+=i),i=n>e?0:e-n>>>0,n>>>=0;for(var o=xt(i);++r<i;)o[r]=t[r+n];return o}function ii(t,n){var e;return lr(t,(function(t,r,i){return!(e=n(t,r,i))})),!!e}function oi(t,n,e){var r=0,i=null==t?r:t.length;if("number"==typeof n&&n==n&&i<=2147483647){for(;r<i;){var o=r+i>>>1,u=t[o];null!==u&&!fs(u)&&(e?u<=n:u<n)?r=o+1:i=o}return i}return ui(t,n,ua,e)}function ui(n,e,r,i){var o=0,u=null==n?0:n.length;if(0===u)return 0;for(var s=(e=r(e))!=e,a=null===e,c=fs(e),h=e===t;o<u;){var f=Dn((o+u)/2),l=r(n[f]),d=l!==t,p=null===l,v=l==l,g=fs(l);if(s)var y=i||v;else y=h?v&&(i||d):a?v&&d&&(i||!p):c?v&&d&&!p&&(i||!g):!p&&!g&&(i?l<=e:l<e);y?o=f+1:u=f}return me(u,4294967294)}function si(t,n){for(var e=-1,r=t.length,i=0,o=[];++e<r;){var u=t[e],s=n?n(u):u;if(!e||!Xu(s,a)){var a=s;o[i++]=0===u?0:u}}return o}function ai(t){return"number"==typeof t?t:fs(t)?f:+t}function ci(t){if("string"==typeof t)return t;if(Wu(t))return In(t,ci)+"";if(fs(t))return Fe?Fe.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function hi(t,n,e){var r=-1,i=Cn,o=t.length,u=!0,s=[],a=s;if(e)u=!1,i=Tn;else if(o>=200){var c=n?null:Zi(t);if(c)return ae(c);u=!1,i=Jn,a=new Ge}else a=n?[]:s;t:for(;++r<o;){var h=t[r],f=n?n(h):h;if(h=e||0!==h?h:0,u&&f==f){for(var l=a.length;l--;)if(a[l]===f)continue t;n&&a.push(f),s.push(h)}else i(a,f,e)||(a!==s&&a.push(f),s.push(h))}return s}function fi(t,n){return null==(t=So(t,n=mi(n,t)))||delete t[Bo(Ko(n))]}function li(t,n,e,r){return Kr(t,n,e(Er(t,n)),r)}function di(t,n,e,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&n(t[o],o,t););return e?ri(t,r?0:o,r?o+1:i):ri(t,r?o+1:0,r?i:o)}function pi(t,n){var e=t;return e instanceof Ye&&(e=e.value()),Rn(n,(function(t,n){return n.func.apply(n.thisArg,Nn([t],n.args))}),e)}function vi(t,n,e){var r=t.length;if(r<2)return r?hi(t[0]):[];for(var i=-1,o=xt(r);++i<r;)for(var u=t[i],s=-1;++s<r;)s!=i&&(o[i]=fr(o[i]||u,t[s],n,e));return hi(yr(o,1),n,e)}function gi(n,e,r){for(var i=-1,o=n.length,u=e.length,s={};++i<o;){var a=i<u?e[i]:t;r(s,n[i],a)}return s}function yi(t){return Hu(t)?t:[]}function _i(t){return"function"==typeof t?t:ua}function mi(t,n){return Wu(t)?t:bo(t,n)?[t]:Fo(bs(t))}var wi=Hr;function bi(n,e,r){var i=n.length;return r=r===t?i:r,!e&&r>=i?n:ri(n,e,r)}var xi=dn||function(t){return ln.clearTimeout(t)};function Ei(t,n){if(n)return t.slice();var e=t.length,r=qt?qt(e):new t.constructor(e);return t.copy(r),r}function ji(t){var n=new t.constructor(t.byteLength);return new Ut(n).set(new Ut(t)),n}function Ai(t,n){var e=n?ji(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function Oi(n,e){if(n!==e){var r=n!==t,i=null===n,o=n==n,u=fs(n),s=e!==t,a=null===e,c=e==e,h=fs(e);if(!a&&!h&&!u&&n>e||u&&s&&c&&!a&&!h||i&&s&&c||!r&&c||!o)return 1;if(!i&&!u&&!h&&n<e||h&&r&&o&&!i&&!u||a&&r&&o||!s&&o||!c)return-1}return 0}function Mi(t,n,e,r){for(var i=-1,o=t.length,u=e.length,s=-1,a=n.length,c=_e(o-u,0),h=xt(a+c),f=!r;++s<a;)h[s]=n[s];for(;++i<u;)(f||i<o)&&(h[e[i]]=t[i]);for(;c--;)h[s++]=t[i++];return h}function Si(t,n,e,r){for(var i=-1,o=t.length,u=-1,s=e.length,a=-1,c=n.length,h=_e(o-s,0),f=xt(h+c),l=!r;++i<h;)f[i]=t[i];for(var d=i;++a<c;)f[d+a]=n[a];for(;++u<s;)(l||i<o)&&(f[d+e[u]]=t[i++]);return f}function ki(t,n){var e=-1,r=t.length;for(n||(n=xt(r));++e<r;)n[e]=t[e];return n}function Ci(n,e,r,i){var o=!r;r||(r={});for(var u=-1,s=e.length;++u<s;){var a=e[u],c=i?i(r[a],n[a],a,r,n):t;c===t&&(c=n[a]),o?or(r,a,c):nr(r,a,c)}return r}function Ti(t,n){return function(e,r){var i=Wu(e)?An:rr,o=n?n():{};return i(e,t,ao(r,2),o)}}function Ii(n){return Hr((function(e,r){var i=-1,o=r.length,u=o>1?r[o-1]:t,s=o>2?r[2]:t;for(u=n.length>3&&"function"==typeof u?(o--,u):t,s&&wo(r[0],r[1],s)&&(u=o<3?t:u,o=1),e=Mt(e);++i<o;){var a=r[i];a&&n(e,a,i,u)}return e}))}function Ni(t,n){return function(e,r){if(null==e)return e;if(!Zu(e))return t(e,r);for(var i=e.length,o=n?i:-1,u=Mt(e);(n?o--:++o<i)&&!1!==r(u[o],o,u););return e}}function Ri(t){return function(n,e,r){for(var i=-1,o=Mt(n),u=r(n),s=u.length;s--;){var a=u[t?s:++i];if(!1===e(o[a],a,o))break}return n}}function zi(n){return function(e){var r=ie(e=bs(e))?he(e):t,i=r?r[0]:e.charAt(0),o=r?bi(r,1).join(""):e.slice(1);return i[n]()+o}}function Pi(t){return function(n){return Rn(ta(qs(n).replace(Ht,"")),t,"")}}function Di(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var e=$e(t.prototype),r=t.apply(e,n);return rs(r)?r:e}}function Li(n){return function(e,r,i){var o=Mt(e);if(!Zu(e)){var u=ao(r,3);e=Rs(e),r=function(t){return u(o[t],t,o)}}var s=n(e,r,i);return s>-1?o[u?e[s]:s]:t}}function Fi(e){return eo((function(r){var i=r.length,o=i,u=Xe.prototype.thru;for(e&&r.reverse();o--;){var s=r[o];if("function"!=typeof s)throw new Ct(n);if(u&&!a&&"wrapper"==uo(s))var a=new Xe([],!0)}for(o=a?o:i;++o<i;){var c=uo(s=r[o]),h="wrapper"==c?oo(s):t;a=h&&xo(h[0])&&424==h[1]&&!h[4].length&&1==h[9]?a[uo(h[0])].apply(a,h[3]):1==s.length&&xo(s)?a[c]():a.thru(s)}return function(){var t=arguments,n=t[0];if(a&&1==t.length&&Wu(n))return a.plant(n).value();for(var e=0,o=i?r[e].apply(this,t):n;++e<i;)o=r[e].call(this,o);return o}}))}function Bi(n,e,r,i,o,u,a,c,h,f){var l=e&s,d=1&e,p=2&e,v=24&e,g=512&e,y=p?t:Di(n);return function s(){for(var _=arguments.length,m=xt(_),w=_;w--;)m[w]=arguments[w];if(v)var b=so(s),x=function(t,n){for(var e=t.length,r=0;e--;)t[e]===n&&++r;return r}(m,b);if(i&&(m=Mi(m,i,o,v)),u&&(m=Si(m,u,a,v)),_-=x,v&&_<f){var E=se(m,b);return Wi(n,e,Bi,s.placeholder,r,m,E,c,h,f-_)}var j=d?r:this,A=p?j[n]:n;return _=m.length,c?m=function(n,e){for(var r=n.length,i=me(e.length,r),o=ki(n);i--;){var u=e[i];n[i]=mo(u,r)?o[u]:t}return n}(m,c):g&&_>1&&m.reverse(),l&&h<_&&(m.length=h),this&&this!==ln&&this instanceof s&&(A=y||Di(A)),A.apply(j,m)}}function $i(t,n){return function(e,r){return function(t,n,e,r){return wr(t,(function(t,i,o){n(r,e(t),i,o)})),r}(e,t,n(r),{})}}function Vi(n,e){return function(r,i){var o;if(r===t&&i===t)return e;if(r!==t&&(o=r),i!==t){if(o===t)return i;"string"==typeof r||"string"==typeof i?(r=ci(r),i=ci(i)):(r=ai(r),i=ai(i)),o=n(r,i)}return o}}function Xi(t){return eo((function(n){return n=In(n,Hn(ao())),Hr((function(e){var r=this;return t(n,(function(t){return jn(t,r,e)}))}))}))}function Yi(n,e){var r=(e=e===t?" ":ci(e)).length;if(r<2)return r?Zr(e,n):e;var i=Zr(e,yn(n/ce(e)));return ie(e)?bi(he(i),0,n).join(""):i.slice(0,n)}function Ui(n){return function(e,r,i){return i&&"number"!=typeof i&&wo(e,r,i)&&(r=i=t),e=gs(e),r===t?(r=e,e=0):r=gs(r),function(t,n,e,r){for(var i=-1,o=_e(yn((n-t)/(e||1)),0),u=xt(o);o--;)u[r?o:++i]=t,t+=e;return u}(e,r,i=i===t?e<r?1:-1:gs(i),n)}}function qi(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=ms(n),e=ms(e)),t(n,e)}}function Wi(n,e,r,i,s,a,c,h,f,l){var d=8&e;e|=d?o:u,4&(e&=~(d?u:o))||(e&=-4);var p=[n,e,s,d?a:t,d?c:t,d?t:a,d?t:c,h,f,l],v=r.apply(t,p);return xo(n)&&Co(v,p),v.placeholder=i,No(v,n,e)}function Gi(t){var n=Ot[t];return function(t,e){if(t=ms(t),(e=null==e?0:me(ys(e),292))&&ve(t)){var r=(bs(t)+"e").split("e");return+((r=(bs(n(r[0]+"e"+(+r[1]+e)))+"e").split("e"))[0]+"e"+(+r[1]-e))}return n(t)}}var Zi=Me&&1/ae(new Me([,-0]))[1]==c?function(t){return new Me(t)}:fa;function Hi(t){return function(n){var e=vo(n);return e==b?oe(n):e==O?function(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=[t,t]})),e}(n):function(t,n){return In(n,(function(n){return[n,t[n]]}))}(n,t(n))}}function Qi(e,c,h,f,l,d,p,v){var g=2&c;if(!g&&"function"!=typeof e)throw new Ct(n);var y=f?f.length:0;if(y||(c&=-97,f=l=t),p=p===t?p:_e(ys(p),0),v=v===t?v:ys(v),y-=l?l.length:0,c&u){var _=f,m=l;f=l=t}var w=g?t:oo(e),b=[e,c,h,f,l,_,m,d,p,v];if(w&&function(t,n){var e=t[1],i=n[1],o=e|i,u=o<131,c=i==s&&8==e||i==s&&e==a&&t[7].length<=n[8]||384==i&&n[7].length<=n[8]&&8==e;if(!u&&!c)return t;1&i&&(t[2]=n[2],o|=1&e?0:4);var h=n[3];if(h){var f=t[3];t[3]=f?Mi(f,h,n[4]):h,t[4]=f?se(t[3],r):n[4]}(h=n[5])&&(f=t[5],t[5]=f?Si(f,h,n[6]):h,t[6]=f?se(t[5],r):n[6]),(h=n[7])&&(t[7]=h),i&s&&(t[8]=null==t[8]?n[8]:me(t[8],n[8])),null==t[9]&&(t[9]=n[9]),t[0]=n[0],t[1]=o}(b,w),e=b[0],c=b[1],h=b[2],f=b[3],l=b[4],!(v=b[9]=b[9]===t?g?0:e.length:_e(b[9]-y,0))&&24&c&&(c&=-25),c&&1!=c)x=8==c||c==i?function(n,e,r){var i=Di(n);return function o(){for(var u=arguments.length,s=xt(u),a=u,c=so(o);a--;)s[a]=arguments[a];var h=u<3&&s[0]!==c&&s[u-1]!==c?[]:se(s,c);return(u-=h.length)<r?Wi(n,e,Bi,o.placeholder,t,s,h,t,t,r-u):jn(this&&this!==ln&&this instanceof o?i:n,this,s)}}(e,c,v):c!=o&&33!=c||l.length?Bi.apply(t,b):function(t,n,e,r){var i=1&n,o=Di(t);return function n(){for(var u=-1,s=arguments.length,a=-1,c=r.length,h=xt(c+s),f=this&&this!==ln&&this instanceof n?o:t;++a<c;)h[a]=r[a];for(;s--;)h[a++]=arguments[++u];return jn(f,i?e:this,h)}}(e,c,h,f);else var x=function(t,n,e){var r=1&n,i=Di(t);return function n(){return(this&&this!==ln&&this instanceof n?i:t).apply(r?e:this,arguments)}}(e,c,h);return No((w?ti:Co)(x,b),e,c)}function Ji(n,e,r,i){return n===t||Xu(n,Nt[r])&&!Pt.call(i,r)?e:n}function Ki(n,e,r,i,o,u){return rs(n)&&rs(e)&&(u.set(e,n),Vr(n,e,t,Ki,u),u.delete(e)),n}function to(n){return ss(n)?t:n}function no(n,e,r,i,o,u){var s=1&r,a=n.length,c=e.length;if(a!=c&&!(s&&c>a))return!1;var h=u.get(n),f=u.get(e);if(h&&f)return h==e&&f==n;var l=-1,d=!0,p=2&r?new Ge:t;for(u.set(n,e),u.set(e,n);++l<a;){var v=n[l],g=e[l];if(i)var y=s?i(g,v,l,e,n,u):i(v,g,l,n,e,u);if(y!==t){if(y)continue;d=!1;break}if(p){if(!Pn(e,(function(t,n){if(!Jn(p,n)&&(v===t||o(v,t,r,i,u)))return p.push(n)}))){d=!1;break}}else if(v!==g&&!o(v,g,r,i,u)){d=!1;break}}return u.delete(n),u.delete(e),d}function eo(n){return Io(Mo(n,t,Go),n+"")}function ro(t){return jr(t,Rs,lo)}function io(t){return jr(t,zs,po)}var oo=Ce?function(t){return Ce.get(t)}:fa;function uo(t){for(var n=t.name+"",e=Te[n],r=Pt.call(Te,n)?e.length:0;r--;){var i=e[r],o=i.func;if(null==o||o==t)return i.name}return n}function so(t){return(Pt.call(Be,"placeholder")?Be:t).placeholder}function ao(){var t=Be.iteratee||sa;return t=t===sa?zr:t,arguments.length?t(arguments[0],arguments[1]):t}function co(t,n){var e,r,i=t.__data__;return("string"==(r=typeof(e=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?i["string"==typeof n?"string":"hash"]:i.map}function ho(t){for(var n=Rs(t),e=n.length;e--;){var r=n[e],i=t[r];n[e]=[r,i,Ao(i)]}return n}function fo(n,e){var r=function(n,e){return null==n?t:n[e]}(n,e);return Rr(r)?r:t}var lo=Un?function(t){return null==t?[]:(t=Mt(t),kn(Un(t),(function(n){return Zt.call(t,n)})))}:_a,po=Un?function(t){for(var n=[];t;)Nn(n,lo(t)),t=Wt(t);return n}:_a,vo=Ar;function go(t,n,e){for(var r=-1,i=(n=mi(n,t)).length,o=!1;++r<i;){var u=Bo(n[r]);if(!(o=null!=t&&e(t,u)))break;t=t[u]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&es(i)&&mo(u,i)&&(Wu(t)||qu(t))}function yo(t){return"function"!=typeof t.constructor||jo(t)?{}:$e(Wt(t))}function _o(t){return Wu(t)||qu(t)||!!(tn&&t&&t[tn])}function mo(t,n){var e=typeof t;return!!(n=null==n?h:n)&&("number"==e||"symbol"!=e&&gt.test(t))&&t>-1&&t%1==0&&t<n}function wo(t,n,e){if(!rs(e))return!1;var r=typeof n;return!!("number"==r?Zu(e)&&mo(n,e.length):"string"==r&&n in e)&&Xu(e[n],t)}function bo(t,n){if(Wu(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!fs(t))||J.test(t)||!Q.test(t)||null!=n&&t in Mt(n)}function xo(t){var n=uo(t),e=Be[n];if("function"!=typeof e||!(n in Ye.prototype))return!1;if(t===e)return!0;var r=oo(e);return!!r&&t===r[0]}(je&&vo(new je(new ArrayBuffer(1)))!=T||Ae&&vo(new Ae)!=b||Oe&&vo(Oe.resolve())!=j||Me&&vo(new Me)!=O||Se&&vo(new Se)!=k)&&(vo=function(n){var e=Ar(n),r=e==E?n.constructor:t,i=r?$o(r):"";if(i)switch(i){case Ie:return T;case Ne:return b;case Re:return j;case ze:return O;case Pe:return k}return e});var Eo=Rt?ts:ma;function jo(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||Nt)}function Ao(t){return t==t&&!rs(t)}function Oo(n,e){return function(r){return null!=r&&r[n]===e&&(e!==t||n in Mt(r))}}function Mo(n,e,r){return e=_e(e===t?n.length-1:e,0),function(){for(var t=arguments,i=-1,o=_e(t.length-e,0),u=xt(o);++i<o;)u[i]=t[e+i];i=-1;for(var s=xt(e+1);++i<e;)s[i]=t[i];return s[e]=r(u),jn(n,this,s)}}function So(t,n){return n.length<2?t:Er(t,ri(n,0,-1))}function ko(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}var Co=Ro(ti),To=gn||function(t,n){return ln.setTimeout(t,n)},Io=Ro(ni);function No(t,n,e){var r=n+"";return Io(t,function(t,n){var e=n.length;if(!e)return t;var r=e-1;return n[r]=(e>1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(it,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return On(d,(function(e){var r="_."+e[0];n&e[1]&&!Cn(t,r)&&t.push(r)})),t.sort()}(function(t){var n=t.match(ot);return n?n[1].split(ut):[]}(r),e)))}function Ro(n){var e=0,r=0;return function(){var i=we(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return n.apply(t,arguments)}}function zo(n,e){var r=-1,i=n.length,o=i-1;for(e=e===t?i:e;++r<e;){var u=Gr(r,o),s=n[u];n[u]=n[r],n[r]=s}return n.length=e,n}var Po,Do,Lo,Fo=(Po=function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(K,(function(t,e,r,i){n.push(r?i.replace(ct,"$1"):e||t)})),n},Do=Du(Po,(function(t){return 500===Lo.size&&Lo.clear(),t})),Lo=Do.cache,Do);function Bo(t){if("string"==typeof t||fs(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function $o(t){if(null!=t){try{return zt.call(t)}catch(Fl){}try{return t+""}catch(Fl){}}return""}function Vo(t){if(t instanceof Ye)return t.clone();var n=new Xe(t.__wrapped__,t.__chain__);return n.__actions__=ki(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}var Xo=Hr((function(t,n){return Hu(t)?fr(t,yr(n,1,Hu,!0)):[]})),Yo=Hr((function(n,e){var r=Ko(e);return Hu(r)&&(r=t),Hu(n)?fr(n,yr(e,1,Hu,!0),ao(r,2)):[]})),Uo=Hr((function(n,e){var r=Ko(e);return Hu(r)&&(r=t),Hu(n)?fr(n,yr(e,1,Hu,!0),t,r):[]}));function qo(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:ys(e);return i<0&&(i=_e(r+i,0)),Fn(t,ao(n,3),i)}function Wo(n,e,r){var i=null==n?0:n.length;if(!i)return-1;var o=i-1;return r!==t&&(o=ys(r),o=r<0?_e(i+o,0):me(o,i-1)),Fn(n,ao(e,3),o,!0)}function Go(t){return null!=t&&t.length?yr(t,1):[]}function Zo(n){return n&&n.length?n[0]:t}var Ho=Hr((function(t){var n=In(t,yi);return n.length&&n[0]===t[0]?kr(n):[]})),Qo=Hr((function(n){var e=Ko(n),r=In(n,yi);return e===Ko(r)?e=t:r.pop(),r.length&&r[0]===n[0]?kr(r,ao(e,2)):[]})),Jo=Hr((function(n){var e=Ko(n),r=In(n,yi);return(e="function"==typeof e?e:t)&&r.pop(),r.length&&r[0]===n[0]?kr(r,t,e):[]}));function Ko(n){var e=null==n?0:n.length;return e?n[e-1]:t}var tu=Hr(nu);function nu(t,n){return t&&t.length&&n&&n.length?qr(t,n):t}var eu=eo((function(t,n){var e=null==t?0:t.length,r=ur(t,n);return Wr(t,In(n,(function(t){return mo(t,e)?+t:t})).sort(Oi)),r}));function ru(t){return null==t?t:Ee.call(t)}var iu=Hr((function(t){return hi(yr(t,1,Hu,!0))})),ou=Hr((function(n){var e=Ko(n);return Hu(e)&&(e=t),hi(yr(n,1,Hu,!0),ao(e,2))})),uu=Hr((function(n){var e=Ko(n);return e="function"==typeof e?e:t,hi(yr(n,1,Hu,!0),t,e)}));function su(t){if(!t||!t.length)return[];var n=0;return t=kn(t,(function(t){if(Hu(t))return n=_e(t.length,n),!0})),Gn(n,(function(n){return In(t,Yn(n))}))}function au(n,e){if(!n||!n.length)return[];var r=su(n);return null==e?r:In(r,(function(n){return jn(e,t,n)}))}var cu=Hr((function(t,n){return Hu(t)?fr(t,n):[]})),hu=Hr((function(t){return vi(kn(t,Hu))})),fu=Hr((function(n){var e=Ko(n);return Hu(e)&&(e=t),vi(kn(n,Hu),ao(e,2))})),lu=Hr((function(n){var e=Ko(n);return e="function"==typeof e?e:t,vi(kn(n,Hu),t,e)})),du=Hr(su),pu=Hr((function(n){var e=n.length,r=e>1?n[e-1]:t;return r="function"==typeof r?(n.pop(),r):t,au(n,r)}));function vu(t){var n=Be(t);return n.__chain__=!0,n}function gu(t,n){return n(t)}var yu=eo((function(n){var e=n.length,r=e?n[0]:0,i=this.__wrapped__,o=function(t){return ur(t,n)};return!(e>1||this.__actions__.length)&&i instanceof Ye&&mo(r)?((i=i.slice(r,+r+(e?1:0))).__actions__.push({func:gu,args:[o],thisArg:t}),new Xe(i,this.__chain__).thru((function(n){return e&&!n.length&&n.push(t),n}))):this.thru(o)})),_u=Ti((function(t,n,e){Pt.call(t,e)?++t[e]:or(t,e,1)})),mu=Li(qo),wu=Li(Wo);function bu(t,n){return(Wu(t)?On:lr)(t,ao(n,3))}function xu(t,n){return(Wu(t)?Mn:dr)(t,ao(n,3))}var Eu=Ti((function(t,n,e){Pt.call(t,e)?t[e].push(n):or(t,e,[n])})),ju=Hr((function(t,n,e){var r=-1,i="function"==typeof n,o=Zu(t)?xt(t.length):[];return lr(t,(function(t){o[++r]=i?jn(n,t,e):Cr(t,n,e)})),o})),Au=Ti((function(t,n,e){or(t,e,n)}));function Ou(t,n){return(Wu(t)?In:Fr)(t,ao(n,3))}var Mu=Ti((function(t,n,e){t[e?0:1].push(n)}),(function(){return[[],[]]})),Su=Hr((function(t,n){if(null==t)return[];var e=n.length;return e>1&&wo(t,n[0],n[1])?n=[]:e>2&&wo(n[0],n[1],n[2])&&(n=[n[0]]),Yr(t,yr(n,1),[])})),ku=pn||function(){return ln.Date.now()};function Cu(n,e,r){return e=r?t:e,e=n&&null==e?n.length:e,Qi(n,s,t,t,t,t,e)}function Tu(e,r){var i;if("function"!=typeof r)throw new Ct(n);return e=ys(e),function(){return--e>0&&(i=r.apply(this,arguments)),e<=1&&(r=t),i}}var Iu=Hr((function(t,n,e){var r=1;if(e.length){var i=se(e,so(Iu));r|=o}return Qi(t,r,n,e,i)})),Nu=Hr((function(t,n,e){var r=3;if(e.length){var i=se(e,so(Nu));r|=o}return Qi(n,r,t,e,i)}));function Ru(e,r,i){var o,u,s,a,c,h,f=0,l=!1,d=!1,p=!0;if("function"!=typeof e)throw new Ct(n);function v(n){var r=o,i=u;return o=u=t,f=n,a=e.apply(i,r)}function g(n){var e=n-h;return h===t||e>=r||e<0||d&&n-f>=s}function y(){var t=ku();if(g(t))return _(t);c=To(y,function(t){var n=r-(t-h);return d?me(n,s-(t-f)):n}(t))}function _(n){return c=t,p&&o?v(n):(o=u=t,a)}function m(){var n=ku(),e=g(n);if(o=arguments,u=this,h=n,e){if(c===t)return function(t){return f=t,c=To(y,r),l?v(t):a}(h);if(d)return xi(c),c=To(y,r),v(h)}return c===t&&(c=To(y,r)),a}return r=ms(r)||0,rs(i)&&(l=!!i.leading,s=(d="maxWait"in i)?_e(ms(i.maxWait)||0,r):s,p="trailing"in i?!!i.trailing:p),m.cancel=function(){c!==t&&xi(c),f=0,o=h=u=c=t},m.flush=function(){return c===t?a:_(ku())},m}var zu=Hr((function(t,n){return hr(t,1,n)})),Pu=Hr((function(t,n,e){return hr(t,ms(n)||0,e)}));function Du(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Ct(n);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var u=t.apply(this,n);return r.cache=o.set(i,u)||o,u};return r.cache=new(Du.Cache||We),r}function Lu(t){if("function"!=typeof t)throw new Ct(n);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}Du.Cache=We;var Fu=wi((function(t,n){var e=(n=1==n.length&&Wu(n[0])?In(n[0],Hn(ao())):In(yr(n,1),Hn(ao()))).length;return Hr((function(r){for(var i=-1,o=me(r.length,e);++i<o;)r[i]=n[i].call(this,r[i]);return jn(t,this,r)}))})),Bu=Hr((function(n,e){var r=se(e,so(Bu));return Qi(n,o,t,e,r)})),$u=Hr((function(n,e){var r=se(e,so($u));return Qi(n,u,t,e,r)})),Vu=eo((function(n,e){return Qi(n,a,t,t,t,e)}));function Xu(t,n){return t===n||t!=t&&n!=n}var Yu=qi(Or),Uu=qi((function(t,n){return t>=n})),qu=Tr(function(){return arguments}())?Tr:function(t){return is(t)&&Pt.call(t,"callee")&&!Zt.call(t,"callee")},Wu=xt.isArray,Gu=_n?Hn(_n):function(t){return is(t)&&Ar(t)==C};function Zu(t){return null!=t&&es(t.length)&&!ts(t)}function Hu(t){return is(t)&&Zu(t)}var Qu=pe||ma,Ju=mn?Hn(mn):function(t){return is(t)&&Ar(t)==y};function Ku(t){if(!is(t))return!1;var n=Ar(t);return n==_||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!ss(t)}function ts(t){if(!rs(t))return!1;var n=Ar(t);return n==m||n==w||"[object AsyncFunction]"==n||"[object Proxy]"==n}function ns(t){return"number"==typeof t&&t==ys(t)}function es(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=h}function rs(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function is(t){return null!=t&&"object"==typeof t}var os=wn?Hn(wn):function(t){return is(t)&&vo(t)==b};function us(t){return"number"==typeof t||is(t)&&Ar(t)==x}function ss(t){if(!is(t)||Ar(t)!=E)return!1;var n=Wt(t);if(null===n)return!0;var e=Pt.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&zt.call(e)==Bt}var as=bn?Hn(bn):function(t){return is(t)&&Ar(t)==A},cs=xn?Hn(xn):function(t){return is(t)&&vo(t)==O};function hs(t){return"string"==typeof t||!Wu(t)&&is(t)&&Ar(t)==M}function fs(t){return"symbol"==typeof t||is(t)&&Ar(t)==S}var ls=En?Hn(En):function(t){return is(t)&&es(t.length)&&!!on[Ar(t)]},ds=qi(Lr),ps=qi((function(t,n){return t<=n}));function vs(t){if(!t)return[];if(Zu(t))return hs(t)?he(t):ki(t);if(sn&&t[sn])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[sn]());var n=vo(t);return(n==b?oe:n==O?ae:Xs)(t)}function gs(t){return t?(t=ms(t))===c||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ys(t){var n=gs(t),e=n%1;return n==n?e?n-e:n:0}function _s(t){return t?sr(ys(t),0,l):0}function ms(t){if("number"==typeof t)return t;if(fs(t))return f;if(rs(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=rs(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=Zn(t);var e=dt.test(t);return e||vt.test(t)?cn(t.slice(2),e?2:8):lt.test(t)?f:+t}function ws(t){return Ci(t,zs(t))}function bs(t){return null==t?"":ci(t)}var xs=Ii((function(t,n){if(jo(n)||Zu(n))Ci(n,Rs(n),t);else for(var e in n)Pt.call(n,e)&&nr(t,e,n[e])})),Es=Ii((function(t,n){Ci(n,zs(n),t)})),js=Ii((function(t,n,e,r){Ci(n,zs(n),t,r)})),As=Ii((function(t,n,e,r){Ci(n,Rs(n),t,r)})),Os=eo(ur),Ms=Hr((function(n,e){n=Mt(n);var r=-1,i=e.length,o=i>2?e[2]:t;for(o&&wo(e[0],e[1],o)&&(i=1);++r<i;)for(var u=e[r],s=zs(u),a=-1,c=s.length;++a<c;){var h=s[a],f=n[h];(f===t||Xu(f,Nt[h])&&!Pt.call(n,h))&&(n[h]=u[h])}return n})),Ss=Hr((function(n){return n.push(t,Ki),jn(Ds,t,n)}));function ks(n,e,r){var i=null==n?t:Er(n,e);return i===t?r:i}function Cs(t,n){return null!=t&&go(t,n,Sr)}var Ts=$i((function(t,n,e){null!=n&&"function"!=typeof n.toString&&(n=Ft.call(n)),t[n]=e}),ra(ua)),Is=$i((function(t,n,e){null!=n&&"function"!=typeof n.toString&&(n=Ft.call(n)),Pt.call(t,n)?t[n].push(e):t[n]=[e]}),ao),Ns=Hr(Cr);function Rs(t){return Zu(t)?He(t):Pr(t)}function zs(t){return Zu(t)?He(t,!0):Dr(t)}var Ps=Ii((function(t,n,e){Vr(t,n,e)})),Ds=Ii((function(t,n,e,r){Vr(t,n,e,r)})),Ls=eo((function(t,n){var e={};if(null==t)return e;var r=!1;n=In(n,(function(n){return n=mi(n,t),r||(r=n.length>1),n})),Ci(t,io(t),e),r&&(e=ar(e,7,to));for(var i=n.length;i--;)fi(e,n[i]);return e})),Fs=eo((function(t,n){return null==t?{}:function(t,n){return Ur(t,n,(function(n,e){return Cs(t,e)}))}(t,n)}));function Bs(t,n){if(null==t)return{};var e=In(io(t),(function(t){return[t]}));return n=ao(n),Ur(t,e,(function(t,e){return n(t,e[0])}))}var $s=Hi(Rs),Vs=Hi(zs);function Xs(t){return null==t?[]:Qn(t,Rs(t))}var Ys=Pi((function(t,n,e){return n=n.toLowerCase(),t+(e?Us(n):n)}));function Us(t){return Ks(bs(t).toLowerCase())}function qs(t){return(t=bs(t))&&t.replace(yt,ne).replace(Qt,"")}var Ws=Pi((function(t,n,e){return t+(e?"-":"")+n.toLowerCase()})),Gs=Pi((function(t,n,e){return t+(e?" ":"")+n.toLowerCase()})),Zs=zi("toLowerCase"),Hs=Pi((function(t,n,e){return t+(e?"_":"")+n.toLowerCase()})),Qs=Pi((function(t,n,e){return t+(e?" ":"")+Ks(n)})),Js=Pi((function(t,n,e){return t+(e?" ":"")+n.toUpperCase()})),Ks=zi("toUpperCase");function ta(n,e,r){return n=bs(n),(e=r?t:e)===t?function(t){return nn.test(t)}(n)?function(t){return t.match(Kt)||[]}(n):function(t){return t.match(st)||[]}(n):n.match(e)||[]}var na=Hr((function(n,e){try{return jn(n,t,e)}catch(Fl){return Ku(Fl)?Fl:new jt(Fl)}})),ea=eo((function(t,n){return On(n,(function(n){n=Bo(n),or(t,n,Iu(t[n],t))})),t}));function ra(t){return function(){return t}}var ia=Fi(),oa=Fi(!0);function ua(t){return t}function sa(t){return zr("function"==typeof t?t:ar(t,1))}var aa=Hr((function(t,n){return function(e){return Cr(e,t,n)}})),ca=Hr((function(t,n){return function(e){return Cr(t,e,n)}}));function ha(t,n,e){var r=Rs(n),i=xr(n,r);null!=e||rs(n)&&(i.length||!r.length)||(e=n,n=t,t=this,i=xr(n,Rs(n)));var o=!(rs(e)&&"chain"in e&&!e.chain),u=ts(t);return On(i,(function(e){var r=n[e];t[e]=r,u&&(t.prototype[e]=function(){var n=this.__chain__;if(o||n){var e=t(this.__wrapped__);return(e.__actions__=ki(this.__actions__)).push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,Nn([this.value()],arguments))})})),t}function fa(){}var la=Xi(In),da=Xi(Sn),pa=Xi(Pn);function va(t){return bo(t)?Yn(Bo(t)):function(t){return function(n){return Er(n,t)}}(t)}var ga=Ui(),ya=Ui(!0);function _a(){return[]}function ma(){return!1}var wa,ba=Vi((function(t,n){return t+n}),0),xa=Gi("ceil"),Ea=Vi((function(t,n){return t/n}),1),ja=Gi("floor"),Aa=Vi((function(t,n){return t*n}),1),Oa=Gi("round"),Ma=Vi((function(t,n){return t-n}),0);return Be.after=function(t,e){if("function"!=typeof e)throw new Ct(n);return t=ys(t),function(){if(--t<1)return e.apply(this,arguments)}},Be.ary=Cu,Be.assign=xs,Be.assignIn=Es,Be.assignInWith=js,Be.assignWith=As,Be.at=Os,Be.before=Tu,Be.bind=Iu,Be.bindAll=ea,Be.bindKey=Nu,Be.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Wu(t)?t:[t]},Be.chain=vu,Be.chunk=function(n,e,r){e=(r?wo(n,e,r):e===t)?1:_e(ys(e),0);var i=null==n?0:n.length;if(!i||e<1)return[];for(var o=0,u=0,s=xt(yn(i/e));o<i;)s[u++]=ri(n,o,o+=e);return s},Be.compact=function(t){for(var n=-1,e=null==t?0:t.length,r=0,i=[];++n<e;){var o=t[n];o&&(i[r++]=o)}return i},Be.concat=function(){var t=arguments.length;if(!t)return[];for(var n=xt(t-1),e=arguments[0],r=t;r--;)n[r-1]=arguments[r];return Nn(Wu(e)?ki(e):[e],yr(n,1))},Be.cond=function(t){var e=null==t?0:t.length,r=ao();return t=e?In(t,(function(t){if("function"!=typeof t[1])throw new Ct(n);return[r(t[0]),t[1]]})):[],Hr((function(n){for(var r=-1;++r<e;){var i=t[r];if(jn(i[0],this,n))return jn(i[1],this,n)}}))},Be.conforms=function(t){return function(t){var n=Rs(t);return function(e){return cr(e,t,n)}}(ar(t,1))},Be.constant=ra,Be.countBy=_u,Be.create=function(t,n){var e=$e(t);return null==n?e:ir(e,n)},Be.curry=function n(e,r,i){var o=Qi(e,8,t,t,t,t,t,r=i?t:r);return o.placeholder=n.placeholder,o},Be.curryRight=function n(e,r,o){var u=Qi(e,i,t,t,t,t,t,r=o?t:r);return u.placeholder=n.placeholder,u},Be.debounce=Ru,Be.defaults=Ms,Be.defaultsDeep=Ss,Be.defer=zu,Be.delay=Pu,Be.difference=Xo,Be.differenceBy=Yo,Be.differenceWith=Uo,Be.drop=function(n,e,r){var i=null==n?0:n.length;return i?ri(n,(e=r||e===t?1:ys(e))<0?0:e,i):[]},Be.dropRight=function(n,e,r){var i=null==n?0:n.length;return i?ri(n,0,(e=i-(e=r||e===t?1:ys(e)))<0?0:e):[]},Be.dropRightWhile=function(t,n){return t&&t.length?di(t,ao(n,3),!0,!0):[]},Be.dropWhile=function(t,n){return t&&t.length?di(t,ao(n,3),!0):[]},Be.fill=function(n,e,r,i){var o=null==n?0:n.length;return o?(r&&"number"!=typeof r&&wo(n,e,r)&&(r=0,i=o),function(n,e,r,i){var o=n.length;for((r=ys(r))<0&&(r=-r>o?0:o+r),(i=i===t||i>o?o:ys(i))<0&&(i+=o),i=r>i?0:_s(i);r<i;)n[r++]=e;return n}(n,e,r,i)):[]},Be.filter=function(t,n){return(Wu(t)?kn:gr)(t,ao(n,3))},Be.flatMap=function(t,n){return yr(Ou(t,n),1)},Be.flatMapDeep=function(t,n){return yr(Ou(t,n),c)},Be.flatMapDepth=function(n,e,r){return r=r===t?1:ys(r),yr(Ou(n,e),r)},Be.flatten=Go,Be.flattenDeep=function(t){return null!=t&&t.length?yr(t,c):[]},Be.flattenDepth=function(n,e){return null!=n&&n.length?yr(n,e=e===t?1:ys(e)):[]},Be.flip=function(t){return Qi(t,512)},Be.flow=ia,Be.flowRight=oa,Be.fromPairs=function(t){for(var n=-1,e=null==t?0:t.length,r={};++n<e;){var i=t[n];r[i[0]]=i[1]}return r},Be.functions=function(t){return null==t?[]:xr(t,Rs(t))},Be.functionsIn=function(t){return null==t?[]:xr(t,zs(t))},Be.groupBy=Eu,Be.initial=function(t){return null!=t&&t.length?ri(t,0,-1):[]},Be.intersection=Ho,Be.intersectionBy=Qo,Be.intersectionWith=Jo,Be.invert=Ts,Be.invertBy=Is,Be.invokeMap=ju,Be.iteratee=sa,Be.keyBy=Au,Be.keys=Rs,Be.keysIn=zs,Be.map=Ou,Be.mapKeys=function(t,n){var e={};return n=ao(n,3),wr(t,(function(t,r,i){or(e,n(t,r,i),t)})),e},Be.mapValues=function(t,n){var e={};return n=ao(n,3),wr(t,(function(t,r,i){or(e,r,n(t,r,i))})),e},Be.matches=function(t){return Br(ar(t,1))},Be.matchesProperty=function(t,n){return $r(t,ar(n,1))},Be.memoize=Du,Be.merge=Ps,Be.mergeWith=Ds,Be.method=aa,Be.methodOf=ca,Be.mixin=ha,Be.negate=Lu,Be.nthArg=function(t){return t=ys(t),Hr((function(n){return Xr(n,t)}))},Be.omit=Ls,Be.omitBy=function(t,n){return Bs(t,Lu(ao(n)))},Be.once=function(t){return Tu(2,t)},Be.orderBy=function(n,e,r,i){return null==n?[]:(Wu(e)||(e=null==e?[]:[e]),Wu(r=i?t:r)||(r=null==r?[]:[r]),Yr(n,e,r))},Be.over=la,Be.overArgs=Fu,Be.overEvery=da,Be.overSome=pa,Be.partial=Bu,Be.partialRight=$u,Be.partition=Mu,Be.pick=Fs,Be.pickBy=Bs,Be.property=va,Be.propertyOf=function(n){return function(e){return null==n?t:Er(n,e)}},Be.pull=tu,Be.pullAll=nu,Be.pullAllBy=function(t,n,e){return t&&t.length&&n&&n.length?qr(t,n,ao(e,2)):t},Be.pullAllWith=function(n,e,r){return n&&n.length&&e&&e.length?qr(n,e,t,r):n},Be.pullAt=eu,Be.range=ga,Be.rangeRight=ya,Be.rearg=Vu,Be.reject=function(t,n){return(Wu(t)?kn:gr)(t,Lu(ao(n,3)))},Be.remove=function(t,n){var e=[];if(!t||!t.length)return e;var r=-1,i=[],o=t.length;for(n=ao(n,3);++r<o;){var u=t[r];n(u,r,t)&&(e.push(u),i.push(r))}return Wr(t,i),e},Be.rest=function(e,r){if("function"!=typeof e)throw new Ct(n);return Hr(e,r=r===t?r:ys(r))},Be.reverse=ru,Be.sampleSize=function(n,e,r){return e=(r?wo(n,e,r):e===t)?1:ys(e),(Wu(n)?Je:Jr)(n,e)},Be.set=function(t,n,e){return null==t?t:Kr(t,n,e)},Be.setWith=function(n,e,r,i){return i="function"==typeof i?i:t,null==n?n:Kr(n,e,r,i)},Be.shuffle=function(t){return(Wu(t)?Ke:ei)(t)},Be.slice=function(n,e,r){var i=null==n?0:n.length;return i?(r&&"number"!=typeof r&&wo(n,e,r)?(e=0,r=i):(e=null==e?0:ys(e),r=r===t?i:ys(r)),ri(n,e,r)):[]},Be.sortBy=Su,Be.sortedUniq=function(t){return t&&t.length?si(t):[]},Be.sortedUniqBy=function(t,n){return t&&t.length?si(t,ao(n,2)):[]},Be.split=function(n,e,r){return r&&"number"!=typeof r&&wo(n,e,r)&&(e=r=t),(r=r===t?l:r>>>0)?(n=bs(n))&&("string"==typeof e||null!=e&&!as(e))&&!(e=ci(e))&&ie(n)?bi(he(n),0,r):n.split(e,r):[]},Be.spread=function(t,e){if("function"!=typeof t)throw new Ct(n);return e=null==e?0:_e(ys(e),0),Hr((function(n){var r=n[e],i=bi(n,0,e);return r&&Nn(i,r),jn(t,this,i)}))},Be.tail=function(t){var n=null==t?0:t.length;return n?ri(t,1,n):[]},Be.take=function(n,e,r){return n&&n.length?ri(n,0,(e=r||e===t?1:ys(e))<0?0:e):[]},Be.takeRight=function(n,e,r){var i=null==n?0:n.length;return i?ri(n,(e=i-(e=r||e===t?1:ys(e)))<0?0:e,i):[]},Be.takeRightWhile=function(t,n){return t&&t.length?di(t,ao(n,3),!1,!0):[]},Be.takeWhile=function(t,n){return t&&t.length?di(t,ao(n,3)):[]},Be.tap=function(t,n){return n(t),t},Be.throttle=function(t,e,r){var i=!0,o=!0;if("function"!=typeof t)throw new Ct(n);return rs(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),Ru(t,e,{leading:i,maxWait:e,trailing:o})},Be.thru=gu,Be.toArray=vs,Be.toPairs=$s,Be.toPairsIn=Vs,Be.toPath=function(t){return Wu(t)?In(t,Bo):fs(t)?[t]:ki(Fo(bs(t)))},Be.toPlainObject=ws,Be.transform=function(t,n,e){var r=Wu(t),i=r||Qu(t)||ls(t);if(n=ao(n,4),null==e){var o=t&&t.constructor;e=i?r?new o:[]:rs(t)&&ts(o)?$e(Wt(t)):{}}return(i?On:wr)(t,(function(t,r,i){return n(e,t,r,i)})),e},Be.unary=function(t){return Cu(t,1)},Be.union=iu,Be.unionBy=ou,Be.unionWith=uu,Be.uniq=function(t){return t&&t.length?hi(t):[]},Be.uniqBy=function(t,n){return t&&t.length?hi(t,ao(n,2)):[]},Be.uniqWith=function(n,e){return e="function"==typeof e?e:t,n&&n.length?hi(n,t,e):[]},Be.unset=function(t,n){return null==t||fi(t,n)},Be.unzip=su,Be.unzipWith=au,Be.update=function(t,n,e){return null==t?t:li(t,n,_i(e))},Be.updateWith=function(n,e,r,i){return i="function"==typeof i?i:t,null==n?n:li(n,e,_i(r),i)},Be.values=Xs,Be.valuesIn=function(t){return null==t?[]:Qn(t,zs(t))},Be.without=cu,Be.words=ta,Be.wrap=function(t,n){return Bu(_i(n),t)},Be.xor=hu,Be.xorBy=fu,Be.xorWith=lu,Be.zip=du,Be.zipObject=function(t,n){return gi(t||[],n||[],nr)},Be.zipObjectDeep=function(t,n){return gi(t||[],n||[],Kr)},Be.zipWith=pu,Be.entries=$s,Be.entriesIn=Vs,Be.extend=Es,Be.extendWith=js,ha(Be,Be),Be.add=ba,Be.attempt=na,Be.camelCase=Ys,Be.capitalize=Us,Be.ceil=xa,Be.clamp=function(n,e,r){return r===t&&(r=e,e=t),r!==t&&(r=(r=ms(r))==r?r:0),e!==t&&(e=(e=ms(e))==e?e:0),sr(ms(n),e,r)},Be.clone=function(t){return ar(t,4)},Be.cloneDeep=function(t){return ar(t,5)},Be.cloneDeepWith=function(n,e){return ar(n,5,e="function"==typeof e?e:t)},Be.cloneWith=function(n,e){return ar(n,4,e="function"==typeof e?e:t)},Be.conformsTo=function(t,n){return null==n||cr(t,n,Rs(n))},Be.deburr=qs,Be.defaultTo=function(t,n){return null==t||t!=t?n:t},Be.divide=Ea,Be.endsWith=function(n,e,r){n=bs(n),e=ci(e);var i=n.length,o=r=r===t?i:sr(ys(r),0,i);return(r-=e.length)>=0&&n.slice(r,o)==e},Be.eq=Xu,Be.escape=function(t){return(t=bs(t))&&W.test(t)?t.replace(U,ee):t},Be.escapeRegExp=function(t){return(t=bs(t))&&nt.test(t)?t.replace(tt,"\\$&"):t},Be.every=function(n,e,r){var i=Wu(n)?Sn:pr;return r&&wo(n,e,r)&&(e=t),i(n,ao(e,3))},Be.find=mu,Be.findIndex=qo,Be.findKey=function(t,n){return Ln(t,ao(n,3),wr)},Be.findLast=wu,Be.findLastIndex=Wo,Be.findLastKey=function(t,n){return Ln(t,ao(n,3),br)},Be.floor=ja,Be.forEach=bu,Be.forEachRight=xu,Be.forIn=function(t,n){return null==t?t:_r(t,ao(n,3),zs)},Be.forInRight=function(t,n){return null==t?t:mr(t,ao(n,3),zs)},Be.forOwn=function(t,n){return t&&wr(t,ao(n,3))},Be.forOwnRight=function(t,n){return t&&br(t,ao(n,3))},Be.get=ks,Be.gt=Yu,Be.gte=Uu,Be.has=function(t,n){return null!=t&&go(t,n,Mr)},Be.hasIn=Cs,Be.head=Zo,Be.identity=ua,Be.includes=function(t,n,e,r){t=Zu(t)?t:Xs(t),e=e&&!r?ys(e):0;var i=t.length;return e<0&&(e=_e(i+e,0)),hs(t)?e<=i&&t.indexOf(n,e)>-1:!!i&&Bn(t,n,e)>-1},Be.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:ys(e);return i<0&&(i=_e(r+i,0)),Bn(t,n,i)},Be.inRange=function(n,e,r){return e=gs(e),r===t?(r=e,e=0):r=gs(r),function(t,n,e){return t>=me(n,e)&&t<_e(n,e)}(n=ms(n),e,r)},Be.invoke=Ns,Be.isArguments=qu,Be.isArray=Wu,Be.isArrayBuffer=Gu,Be.isArrayLike=Zu,Be.isArrayLikeObject=Hu,Be.isBoolean=function(t){return!0===t||!1===t||is(t)&&Ar(t)==g},Be.isBuffer=Qu,Be.isDate=Ju,Be.isElement=function(t){return is(t)&&1===t.nodeType&&!ss(t)},Be.isEmpty=function(t){if(null==t)return!0;if(Zu(t)&&(Wu(t)||"string"==typeof t||"function"==typeof t.splice||Qu(t)||ls(t)||qu(t)))return!t.length;var n=vo(t);if(n==b||n==O)return!t.size;if(jo(t))return!Pr(t).length;for(var e in t)if(Pt.call(t,e))return!1;return!0},Be.isEqual=function(t,n){return Ir(t,n)},Be.isEqualWith=function(n,e,r){var i=(r="function"==typeof r?r:t)?r(n,e):t;return i===t?Ir(n,e,t,r):!!i},Be.isError=Ku,Be.isFinite=function(t){return"number"==typeof t&&ve(t)},Be.isFunction=ts,Be.isInteger=ns,Be.isLength=es,Be.isMap=os,Be.isMatch=function(t,n){return t===n||Nr(t,n,ho(n))},Be.isMatchWith=function(n,e,r){return r="function"==typeof r?r:t,Nr(n,e,ho(e),r)},Be.isNaN=function(t){return us(t)&&t!=+t},Be.isNative=function(t){if(Eo(t))throw new jt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(t)},Be.isNil=function(t){return null==t},Be.isNull=function(t){return null===t},Be.isNumber=us,Be.isObject=rs,Be.isObjectLike=is,Be.isPlainObject=ss,Be.isRegExp=as,Be.isSafeInteger=function(t){return ns(t)&&t>=-9007199254740991&&t<=h},Be.isSet=cs,Be.isString=hs,Be.isSymbol=fs,Be.isTypedArray=ls,Be.isUndefined=function(n){return n===t},Be.isWeakMap=function(t){return is(t)&&vo(t)==k},Be.isWeakSet=function(t){return is(t)&&"[object WeakSet]"==Ar(t)},Be.join=function(t,n){return null==t?"":ge.call(t,n)},Be.kebabCase=Ws,Be.last=Ko,Be.lastIndexOf=function(n,e,r){var i=null==n?0:n.length;if(!i)return-1;var o=i;return r!==t&&(o=(o=ys(r))<0?_e(i+o,0):me(o,i-1)),e==e?function(t,n,e){for(var r=e+1;r--;)if(t[r]===n)return r;return r}(n,e,o):Fn(n,Vn,o,!0)},Be.lowerCase=Gs,Be.lowerFirst=Zs,Be.lt=ds,Be.lte=ps,Be.max=function(n){return n&&n.length?vr(n,ua,Or):t},Be.maxBy=function(n,e){return n&&n.length?vr(n,ao(e,2),Or):t},Be.mean=function(t){return Xn(t,ua)},Be.meanBy=function(t,n){return Xn(t,ao(n,2))},Be.min=function(n){return n&&n.length?vr(n,ua,Lr):t},Be.minBy=function(n,e){return n&&n.length?vr(n,ao(e,2),Lr):t},Be.stubArray=_a,Be.stubFalse=ma,Be.stubObject=function(){return{}},Be.stubString=function(){return""},Be.stubTrue=function(){return!0},Be.multiply=Aa,Be.nth=function(n,e){return n&&n.length?Xr(n,ys(e)):t},Be.noConflict=function(){return ln._===this&&(ln._=$t),this},Be.noop=fa,Be.now=ku,Be.pad=function(t,n,e){t=bs(t);var r=(n=ys(n))?ce(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return Yi(Dn(i),e)+t+Yi(yn(i),e)},Be.padEnd=function(t,n,e){t=bs(t);var r=(n=ys(n))?ce(t):0;return n&&r<n?t+Yi(n-r,e):t},Be.padStart=function(t,n,e){t=bs(t);var r=(n=ys(n))?ce(t):0;return n&&r<n?Yi(n-r,e)+t:t},Be.parseInt=function(t,n,e){return e||null==n?n=0:n&&(n=+n),be(bs(t).replace(et,""),n||0)},Be.random=function(n,e,r){if(r&&"boolean"!=typeof r&&wo(n,e,r)&&(e=r=t),r===t&&("boolean"==typeof e?(r=e,e=t):"boolean"==typeof n&&(r=n,n=t)),n===t&&e===t?(n=0,e=1):(n=gs(n),e===t?(e=n,n=0):e=gs(e)),n>e){var i=n;n=e,e=i}if(r||n%1||e%1){var o=xe();return me(n+o*(e-n+an("1e-"+((o+"").length-1))),e)}return Gr(n,e)},Be.reduce=function(t,n,e){var r=Wu(t)?Rn:qn,i=arguments.length<3;return r(t,ao(n,4),e,i,lr)},Be.reduceRight=function(t,n,e){var r=Wu(t)?zn:qn,i=arguments.length<3;return r(t,ao(n,4),e,i,dr)},Be.repeat=function(n,e,r){return e=(r?wo(n,e,r):e===t)?1:ys(e),Zr(bs(n),e)},Be.replace=function(){var t=arguments,n=bs(t[0]);return t.length<3?n:n.replace(t[1],t[2])},Be.result=function(n,e,r){var i=-1,o=(e=mi(e,n)).length;for(o||(o=1,n=t);++i<o;){var u=null==n?t:n[Bo(e[i])];u===t&&(i=o,u=r),n=ts(u)?u.call(n):u}return n},Be.round=Oa,Be.runInContext=rt,Be.sample=function(t){return(Wu(t)?Qe:Qr)(t)},Be.size=function(t){if(null==t)return 0;if(Zu(t))return hs(t)?ce(t):t.length;var n=vo(t);return n==b||n==O?t.size:Pr(t).length},Be.snakeCase=Hs,Be.some=function(n,e,r){var i=Wu(n)?Pn:ii;return r&&wo(n,e,r)&&(e=t),i(n,ao(e,3))},Be.sortedIndex=function(t,n){return oi(t,n)},Be.sortedIndexBy=function(t,n,e){return ui(t,n,ao(e,2))},Be.sortedIndexOf=function(t,n){var e=null==t?0:t.length;if(e){var r=oi(t,n);if(r<e&&Xu(t[r],n))return r}return-1},Be.sortedLastIndex=function(t,n){return oi(t,n,!0)},Be.sortedLastIndexBy=function(t,n,e){return ui(t,n,ao(e,2),!0)},Be.sortedLastIndexOf=function(t,n){if(null!=t&&t.length){var e=oi(t,n,!0)-1;if(Xu(t[e],n))return e}return-1},Be.startCase=Qs,Be.startsWith=function(t,n,e){return t=bs(t),e=null==e?0:sr(ys(e),0,t.length),n=ci(n),t.slice(e,e+n.length)==n},Be.subtract=Ma,Be.sum=function(t){return t&&t.length?Wn(t,ua):0},Be.sumBy=function(t,n){return t&&t.length?Wn(t,ao(n,2)):0},Be.template=function(n,e,r){var i=Be.templateSettings;r&&wo(n,e,r)&&(e=t),n=bs(n),e=js({},e,i,Ji);var o,u,s=js({},e.imports,i.imports,Ji),a=Rs(s),c=Qn(s,a),h=0,f=e.interpolate||_t,l="__p += '",d=St((e.escape||_t).source+"|"+f.source+"|"+(f===H?ht:_t).source+"|"+(e.evaluate||_t).source+"|$","g"),p="//# sourceURL="+(Pt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rn+"]")+"\n";n.replace(d,(function(t,e,r,i,s,a){return r||(r=i),l+=n.slice(h,a).replace(mt,re),e&&(o=!0,l+="' +\n__e("+e+") +\n'"),s&&(u=!0,l+="';\n"+s+";\n__p += '"),r&&(l+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),h=a+t.length,t})),l+="';\n";var v=Pt.call(e,"variable")&&e.variable;if(v){if(at.test(v))throw new jt("Invalid `variable` option passed into `_.template`")}else l="with (obj) {\n"+l+"\n}\n";l=(u?l.replace($,""):l).replace(V,"$1").replace(X,"$1;"),l="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}";var g=na((function(){return At(a,p+"return "+l).apply(t,c)}));if(g.source=l,Ku(g))throw g;return g},Be.times=function(t,n){if((t=ys(t))<1||t>h)return[];var e=l,r=me(t,l);n=ao(n),t-=l;for(var i=Gn(r,n);++e<t;)n(e);return i},Be.toFinite=gs,Be.toInteger=ys,Be.toLength=_s,Be.toLower=function(t){return bs(t).toLowerCase()},Be.toNumber=ms,Be.toSafeInteger=function(t){return t?sr(ys(t),-9007199254740991,h):0===t?t:0},Be.toString=bs,Be.toUpper=function(t){return bs(t).toUpperCase()},Be.trim=function(n,e,r){if((n=bs(n))&&(r||e===t))return Zn(n);if(!n||!(e=ci(e)))return n;var i=he(n),o=he(e);return bi(i,Kn(i,o),te(i,o)+1).join("")},Be.trimEnd=function(n,e,r){if((n=bs(n))&&(r||e===t))return n.slice(0,fe(n)+1);if(!n||!(e=ci(e)))return n;var i=he(n);return bi(i,0,te(i,he(e))+1).join("")},Be.trimStart=function(n,e,r){if((n=bs(n))&&(r||e===t))return n.replace(et,"");if(!n||!(e=ci(e)))return n;var i=he(n);return bi(i,Kn(i,he(e))).join("")},Be.truncate=function(n,e){var r=30,i="...";if(rs(e)){var o="separator"in e?e.separator:o;r="length"in e?ys(e.length):r,i="omission"in e?ci(e.omission):i}var u=(n=bs(n)).length;if(ie(n)){var s=he(n);u=s.length}if(r>=u)return n;var a=r-ce(i);if(a<1)return i;var c=s?bi(s,0,a).join(""):n.slice(0,a);if(o===t)return c+i;if(s&&(a+=c.length-a),as(o)){if(n.slice(a).search(o)){var h,f=c;for(o.global||(o=St(o.source,bs(ft.exec(o))+"g")),o.lastIndex=0;h=o.exec(f);)var l=h.index;c=c.slice(0,l===t?a:l)}}else if(n.indexOf(ci(o),a)!=a){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+i},Be.unescape=function(t){return(t=bs(t))&&q.test(t)?t.replace(Y,le):t},Be.uniqueId=function(t){var n=++Dt;return bs(t)+n},Be.upperCase=Js,Be.upperFirst=Ks,Be.each=bu,Be.eachRight=xu,Be.first=Zo,ha(Be,(wa={},wr(Be,(function(t,n){Pt.call(Be.prototype,n)||(wa[n]=t)})),wa),{chain:!1}),Be.VERSION="4.17.21",On(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Be[t].placeholder=Be})),On(["drop","take"],(function(n,e){Ye.prototype[n]=function(r){r=r===t?1:_e(ys(r),0);var i=this.__filtered__&&!e?new Ye(this):this.clone();return i.__filtered__?i.__takeCount__=me(r,i.__takeCount__):i.__views__.push({size:me(r,l),type:n+(i.__dir__<0?"Right":"")}),i},Ye.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),On(["filter","map","takeWhile"],(function(t,n){var e=n+1,r=1==e||3==e;Ye.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:ao(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}})),On(["head","last"],(function(t,n){var e="take"+(n?"Right":"");Ye.prototype[t]=function(){return this[e](1).value()[0]}})),On(["initial","tail"],(function(t,n){var e="drop"+(n?"":"Right");Ye.prototype[t]=function(){return this.__filtered__?new Ye(this):this[e](1)}})),Ye.prototype.compact=function(){return this.filter(ua)},Ye.prototype.find=function(t){return this.filter(t).head()},Ye.prototype.findLast=function(t){return this.reverse().find(t)},Ye.prototype.invokeMap=Hr((function(t,n){return"function"==typeof t?new Ye(this):this.map((function(e){return Cr(e,t,n)}))})),Ye.prototype.reject=function(t){return this.filter(Lu(ao(t)))},Ye.prototype.slice=function(n,e){n=ys(n);var r=this;return r.__filtered__&&(n>0||e<0)?new Ye(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),e!==t&&(r=(e=ys(e))<0?r.dropRight(-e):r.take(e-n)),r)},Ye.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ye.prototype.toArray=function(){return this.take(l)},wr(Ye.prototype,(function(n,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=Be[i?"take"+("last"==e?"Right":""):e],u=i||/^find/.test(e);o&&(Be.prototype[e]=function(){var e=this.__wrapped__,s=i?[1]:arguments,a=e instanceof Ye,c=s[0],h=a||Wu(e),f=function(t){var n=o.apply(Be,Nn([t],s));return i&&l?n[0]:n};h&&r&&"function"==typeof c&&1!=c.length&&(a=h=!1);var l=this.__chain__,d=!!this.__actions__.length,p=u&&!l,v=a&&!d;if(!u&&h){e=v?e:new Ye(this);var g=n.apply(e,s);return g.__actions__.push({func:gu,args:[f],thisArg:t}),new Xe(g,l)}return p&&v?n.apply(this,s):(g=this.thru(f),p?i?g.value()[0]:g.value():g)})})),On(["pop","push","shift","sort","splice","unshift"],(function(t){var n=Tt[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Be.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return n.apply(Wu(i)?i:[],t)}return this[e]((function(e){return n.apply(Wu(e)?e:[],t)}))}})),wr(Ye.prototype,(function(t,n){var e=Be[n];if(e){var r=e.name+"";Pt.call(Te,r)||(Te[r]=[]),Te[r].push({name:n,func:e})}})),Te[Bi(t,2).name]=[{name:"wrapper",func:t}],Ye.prototype.clone=function(){var t=new Ye(this.__wrapped__);return t.__actions__=ki(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ki(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ki(this.__views__),t},Ye.prototype.reverse=function(){if(this.__filtered__){var t=new Ye(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Ye.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=Wu(t),r=n<0,i=e?t.length:0,o=function(t,n,e){for(var r=-1,i=e.length;++r<i;){var o=e[r],u=o.size;switch(o.type){case"drop":t+=u;break;case"dropRight":n-=u;break;case"take":n=me(n,t+u);break;case"takeRight":t=_e(t,n-u)}}return{start:t,end:n}}(0,i,this.__views__),u=o.start,s=o.end,a=s-u,c=r?s:u-1,h=this.__iteratees__,f=h.length,l=0,d=me(a,this.__takeCount__);if(!e||!r&&i==a&&d==a)return pi(t,this.__actions__);var p=[];t:for(;a--&&l<d;){for(var v=-1,g=t[c+=n];++v<f;){var y=h[v],_=y.iteratee,m=y.type,w=_(g);if(2==m)g=w;else if(!w){if(1==m)continue t;break t}}p[l++]=g}return p},Be.prototype.at=yu,Be.prototype.chain=function(){return vu(this)},Be.prototype.commit=function(){return new Xe(this.value(),this.__chain__)},Be.prototype.next=function(){this.__values__===t&&(this.__values__=vs(this.value()));var n=this.__index__>=this.__values__.length;return{done:n,value:n?t:this.__values__[this.__index__++]}},Be.prototype.plant=function(n){for(var e,r=this;r instanceof Ve;){var i=Vo(r);i.__index__=0,i.__values__=t,e?o.__wrapped__=i:e=i;var o=i;r=r.__wrapped__}return o.__wrapped__=n,e},Be.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Ye){var e=n;return this.__actions__.length&&(e=new Ye(this)),(e=e.reverse()).__actions__.push({func:gu,args:[ru],thisArg:t}),new Xe(e,this.__chain__)}return this.thru(ru)},Be.prototype.toJSON=Be.prototype.valueOf=Be.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Be.prototype.first=Be.prototype.head,sn&&(Be.prototype[sn]=function(){return this}),Be}();pn?((pn.exports=de)._=de,dn._=de):ln._=de}.call(ni);var tl=Kf.exports;function nl(t,n){const e=function(t,n){const e=new Set,r=new Hf.Graph({directed:!0}),i=[];if(!t.hasNode(n))throw Error("node not in graph");return el(t,n,e,r,i),t.nodes().forEach((n=>{e.has(n)||el(t,n,e,r,i)})),i.forEach(((t,n)=>{r.node(t).thread=n+1<i.length?i[n+1]:i[0]})),r}(t,n);return t.edges().forEach((n=>{const r=function(t,n,e){const r=t.node(n),i=t.node(e);if(r.depth<i.depth){let n=r.thread;for(;t.node(n).depth>r.depth;){if(n===e)return 1;n=t.node(n).thread}}else if(i.depth<r.depth){let e=i.thread;for(;t.node(e).depth>i.depth;){if(e===n)return-1;e=t.node(e).thread}}return 0}(e,n.v,n.w);if(r<0){const e=t.edge(n)||{};e.reversed=!0,t.removeEdge(n),t.setEdge(n.w,n.v,e)}})),t}function el(t,n,e,r,i,o=0){if(!e.has(n)){e.add(n),i.push(n),r.setNode(n,{depth:o});t.outEdges(n).map((t=>t.w)).forEach((u=>{e.has(u)||r.setEdge(n,u,{delta:1}),el(t,u,e,r,i,o+1)}))}}var rl=function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]};const il=ei(rl);function ol(t,n){if(0===t.nodes().length)return;const e=function(t,n){const e=new Hf.Graph({directed:!0});let r=!1;for(const u of n)if("min"===u.type){r=!0;break}if(!r){const e=t.sources();n=e.length>0?[{type:"min",nodes:[e[0]]},...n]:[{type:"min",nodes:[t.nodes()[0]]},...n]}const i=new Map;let o=0;return n.forEach((t=>{if(!t.nodes||0===t.nodes.length)return;const n=""+o++;t.nodes.forEach((t=>{i.set(t,n)})),e.setNode(n,{type:t.type,nodes:t.nodes})})),t.nodes().forEach((t=>{if(!i.has(t)){const n=""+o++,r={type:"same",nodes:[t]};i.set(t,n),e.setNode(n,r)}})),t.edges().forEach((n=>{const r=i.has(n.v)?i.get(n.v):n.v,o=i.has(n.w)?i.get(n.w):n.w,u=t.node(n.v)||{},s=t.node(n.w)||{},a=e.edge(r,o)||{delta:0};r===o?(a.delta=0,e.setEdge(r,o,a)):"l"===u.direction?(a.delta=Math.max(a.delta,"l"===s.direction?1:0),e.setEdge(o,r,a)):(a.delta=Math.max(a.delta,"l"===s.direction?0:1),e.setEdge(r,o,a))})),e}(t,n);!function(t){t.sources().forEach((n=>{"0"!==n&&t.setEdge("0",n,{temp:!0,delta:0})}))}(e),nl(e,"0"),function(t){const n=t.sources(),e=new Set,r=new Set;for(t.edges().forEach((t=>{t.v===t.w&&r.add(t)}));n.length>0;){const i=n.shift();e.add(i);let o=t.node(i);o||t.setNode(i,o={}),o.rank=0;for(const n of t.inEdges(i)){const e=il((t.edge(n)||{}).delta,1);o.rank=Math.max(o.rank,t.node(n.v).rank+e)}for(const n of t.outEdges(i))r.add(n);for(const u of t.nodes())n.indexOf(u)<0&&!e.has(u)&&!t.inEdges(u).some((t=>!r.has(t)))&&n.push(u)}}(e),function(t){function n(n){const e=t.node(n),r=tl.min(t.outEdges(n).map((n=>t.node(n.w).rank-t.edge(n).delta)));void 0!==r&&(e.rank=r)}t.edges().forEach((e=>{t.edge(e).temp&&n(e.w)}))}(e),t.nodes().forEach((n=>{t.node(n)||t.setNode(n,{})})),e.nodes().forEach((n=>{const r=e.node(n);r.nodes.forEach((n=>{t.node(n).rank=r.rank}))}))}function ul(t,n,e){return function(t,n,e){let r,i,o;n.length>e.length?(r=n,i=e):(r=e,i=n);const u=[];r.forEach((n=>{i.forEach(((e,r)=>{(t.hasEdge(n,e)||t.hasEdge(e,n))&&u.push(r)}))}));let s=1;for(;s<o;)s*=2;const a=2*s-1;s-=1;const c=new Array(a);for(let f=0;f<a;f++)c[f]=0;let h=0;return u.forEach((t=>{let n=t+s;for(c[n]++;n>0;)n%2&&(h+=c[n+1]),n=Math.floor((n-1)/2),c[n]++})),h}(t,n,e)}function sl(t,n){let e=!0;for(;e;){e=!1;for(let r=0;r<n.length;++r)for(let i=0;i<n[r].length-1;++i){const o=al(t,n,r);cl(n[r],i,i+1);al(t,n,r)<o?e=!0:cl(n[r],i,i+1)}}}function al(t,n,e){let r=0;return e>0&&(r+=ul(t,n[e-1],n[e])),e+1<n.length&&(r+=ul(t,n[e],n[e+1])),r}function cl(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function hl(t){const n=Math.floor(t.length/2);if(0===t.length)return-1;if(t.length%2==1)return t[n];if(2===t.length)return(t[0]+t[1])/2;{const e=t[n-1]-t[0],r=t[t.length-1]-t[n];return(t[n-1]*r+t[n]*e)/(e+r)}}function fl(t,n,e=1,r=!1){if(e>0)for(let i=1;i<n.length;++i){const e=new Map;n[i].forEach((o=>{const u=hl(ll(t,n,i,i-1,o,r));e.set(o,u)})),dl(n[i],e)}else for(let i=n.length-2;i>=0;--i){const e=new Map;n[i].forEach((o=>{const u=hl(ll(t,n,i,i+1,o,r));e.set(o,u)})),dl(n[i],e)}}function ll(t,n,e,r,i,o=!1){const u=n[e],s=n[r],a=[];return s.forEach(((n,e)=>{t.nodeEdges(n,i).length>0&&a.push(e)})),0===a.length&&o&&u.forEach(((n,e)=>{t.nodeEdges(n,i).length>0&&(a.push(e+.5),console.log(" ",n,e))})),a.sort(((t,n)=>t-n)),a}function dl(t,n){const e=new Map(t.map(((t,n)=>[t,n])));for(let r=1;r<t.length;++r)for(let i=r;i>0;--i){let r=i-1,o=n.get(t[r]),u=n.get(t[i]);for(;-1===(o=n.get(t[r]))&&r>0;)r--;if(-1===u||-1===o)break;if(o===u&&(o=e.get(t[r]),u=e.get(t[i])),u>=o)break;[t[i],t[r]]=[t[r],t[i]]}}function pl(t,n=25){const e=function(t){const n=[];let e=t.nodes().filter((n=>0===t.node(n).rank)).concat(t.sources());return 0===e.length&&(e=t.nodes().slice(0,1)),Hf.alg.preorder(t,e).forEach((e=>{const r=t.node(e).rank;for(;r>=n.length;)n.push([]);n[r].push(e)})),n}(t);let r=e,i=0;for(;i++<n;)fl(t,e,i%2==0?1:0),sl(t,e),vl(t,e)<vl(t,r)&&(r=gl(e));return r=r.map((t=>[t])),r}function vl(t,n){let e=0;for(let r=0;r<n.length-1;++r)e+=ul(t,n[r],n[r+1]);return e}function gl(t){const n=[];for(const e of t){const t=[];n.push(t);for(const n of e)t.push(n)}return n}function yl(t,n,e,r){if(0===e.length)return;const i=e.map((e=>{const i=`__${n.v}_${n.w}_${e}`;return t.setNode(i,{rank:e,dummy:!0,data:null,direction:r}),i})),o=[n.v,...i,n.w];o.forEach(((e,r)=>{r+1<o.length&&t.setEdge(o[r],o[r+1],{source:t.node(n.v),target:t.node(n.w),data:t.edge(n).data},n.name)})),t.removeEdge(n)}function _l(){let t=[100,100],n=null,e=.5,r=function(t,n,e){return 1};const i=function(t){return t.data.value},o=function(t){return t.data?t.data.direction:"r"};function u(s,a){null===n&&u.scaleToFit(s,a),ml(s,i,o),function(t,n,e){t.nodes().forEach((n=>{const r=t.node(n);r.dy=r.value*e})),t.edges().forEach((r=>{const i=t.edge(r);i.value=n(i),i.dy=i.value*e}))}(s,i,n);const c=wl(s,a);a.forEach((n=>{let i=0;n.forEach(((n,o)=>{const u=c[o]/tl.sumBy(c)*t[1],a=e*u/5,h=u-2*a,f=tl.sumBy(n,(t=>s.node(t).dy)),l=n.map(((t,e)=>s.node(t).value&&n[e+1]?r(n[e],n[e+1],s):0)),d=Math.max(0,h-f),p=tl.sumBy(l)?d/tl.sumBy(l):0;let v=i+a;1===n.length&&(v+=(h-s.node(n[0]).dy)/2);let g=Number.MAX_VALUE;n.forEach(((t,n)=>{const e=s.node(t);e.y=v,e.spaceAbove=g,e.spaceBelow=l[n]*p,v+=e.dy+e.spaceBelow,g=e.spaceBelow,e.data&&void 0!==e.data.forceY&&(e.y=a+e.data.forceY*(h-e.dy))})),n.length>0&&(s.node(n[n.length-1]).spaceBelow=Number.MAX_VALUE),i+=u}))}));const h=function(t,n){const e=[];return n.forEach(((r,i)=>{if(i===n.length-1)return;let o=0;r.forEach((n=>{n.forEach((n=>{t.outEdges(n).forEach((n=>{const e=t.edge(n).dy,r=t.node(n.w).y-t.node(n.v).y,i=Math.abs(r)-e,u=e*e-i*i,s=u>=0?Math.sqrt(u):e;s>o&&(o=s)}))}))})),e.push(o)})),e}(s,a);!function(t,n,e,r){const i=tl.sumBy(r);let o;if(i>e)o=r.map((t=>e*t/i));else{const t=e-i;o=r.map((e=>e+t/(n.length-1)))}let u=0;n.forEach(((n,e)=>{n.forEach((n=>{n.forEach((n=>{t.node(n).x=u}))})),u+=o[e]}))}(s,a,t[0],h);const f=[];return s.nodes().forEach((t=>{const n=s.node(t);n.id=t,f.push(n)})),f}return u.scaleToFit=function(r,u){ml(r,i,o);const s=tl.sumBy(wl(r,u));s<=0?n=1:(n=t[1]/s,1!=e&&(n*=1-e))},u.size=function(n){return arguments.length?(t=n,u):t},u.separation=function(t){return arguments.length?(r=tl.isFunction(t)?t:()=>t,u):r},u.whitespace=function(t){return arguments.length?(e=t,u):e},u.scale=function(t){return arguments.length?(n=t,u):n},u}function ml(t,n,e){t.nodes().forEach((r=>{const i=tl.sumBy(t.inEdges(r),(e=>n(t.edge(e)))),o=tl.sumBy(t.outEdges(r),(e=>n(t.edge(e))));let u=t.node(r);u||t.setNode(r,u={}),u.value=Math.max(i,o),void 0===u.direction&&(u.direction=e(u)||"r")}))}function wl(t,n){if(0===n.length||0===n[0].length)return[];const e=n[0].length,r=new Array(e);for(let i=0;i<e;i++)r[i]=0;return n.forEach((n=>{n.forEach(((n,e)=>{const i=tl.sumBy(n,(n=>t.node(n).value));r[e]=Math.max(r[e],i)}))})),r}function bl(t,n){const e=t.inEdges(n),r=t.outEdges(n),i=new Map;[...e,...r].forEach((t=>{i.has(t.name)||i.set(t.name,[]),i.get(t.name).push(t)}));const o=new Map(Array.from(i.entries()).map((([e,r])=>{const i=tl.sumBy(r,(n=>t.edge(n).value));return[e,tl.sumBy(r,(e=>t.edge(e).value*function(e){if(e.v===n)return t.node(e.w).y;if(e.w===n)return t.node(e.v).y;throw new Error}(e)))/i]}))),u=Array.from(o.keys());return u.sort(),u}function xl(t,n){if(null===n.w)return 0;if(null===n.v)return 0;if(n.w===n.v)return Math.PI/2;{const e=t.node(n.v),r=t.node(n.w);return Math.atan2(r.y-e.y,r.x-e.x)}}function El(t,n=!0){return function(e,r){const i=xl(t,e),o=xl(t,r),u=n?1:-1;return e.v===r.v&&e.w===r.w?"number"==typeof e.name&&"number"==typeof r.name?e.name-r.name:"string"==typeof e.name&&"string"==typeof r.name?e.name.localeCompare(r.name):0:Math.abs(i-o)<.001?e.v&&e.w&&r.v&&r.w?e.w===r.w?-1*(t.node(e.v).y-t.node(r.v).y):e.v===r.v?-1*(t.node(e.w).y-t.node(r.w).y):0:0:u*(i-o)}}function jl(t,n,e=!0){return function(r,i){if(r.name!==i.name)return n.indexOf(r.name)-n.indexOf(i.name);const o=xl(t,r),u=xl(t,i),s=e?1:-1;return Math.abs(o-u)<.001?r.v&&r.w&&i.v&&i.w?r.w===i.w?s*(o>0?-1:1)*(t.node(r.v).y-t.node(i.v).y):r.v===i.v?s*(o>0?-1:1)*(t.node(r.w).y-t.node(i.w).y):0:0:s*(o-u)}}function Al(t,n){let e=null;for(let r=0;r<t.length;++r)if(n(t[r])){e=r;break}return e}function Ol(t,n){if(0===t.length)return;let e,r=0;for(let o=t.length-1;o>=0;--o)e=t[o].dy/2,t[o][n]-e<r&&(t[o][n]=Math.min(t[o].Rmax,r+e)),r=t[o][n]+e;let i=t[0].Rmax+t[0].dy/2;for(let o=0;o<t.length;++o)e=t[o].dy/2,t[o][n]+e>i&&(t[o][n]=Math.max(e,i-e)),i=t[o][n]-e}function Ml(t){return function(n){!function(t,n){t.nodes().forEach((e=>{const r=t.node(e);let i=0,o=0;r.outgoing.forEach((e=>{const o=t.edge(e);o.x0=r.x+n.nodeWidth/2,o.y0=r.y+i+o.dy/2,o.d0=r.direction||"r",i+=o.dy})),r.incoming.forEach((e=>{const i=t.edge(e);i.x1=r.x-n.nodeWidth/2,i.y1=r.y+o+i.dy/2,i.d1=r.direction||"r",o+=i.dy}))}))}(n,t),function(t){t.nodes().forEach((n=>{const e=t.node(n),r=e.outgoing.map((n=>t.edge(n))),i=e.incoming.map((n=>t.edge(n)));r.sort(((t,n)=>t.y0-n.y0)),i.sort(((t,n)=>t.y1-n.y1)),Sl(r,"r0"),Sl(i,"r1")}))}(n);const e=[];return n.edges().forEach((t=>{const r=n.edge(t);r.id=`${t.v}-${t.w}-${t.name}`,e.push(r)})),e}}function Sl(t,n){t.forEach((t=>{t.Rmax=function(t){const n=t.x1-t.x0,e=t.y1-t.y0;return t.d0!==t.d1?Math.abs(e)/2.1:0!==e?(n*n+e*e)/Math.abs(4*e):1/0}(t),t[n]=Math.max(t.dy/2,t.d0===t.d1?.6*t.Rmax:5+t.dy/2)}));let e=Al(t,"r0"===n?t=>t.y1>t.y0:t=>t.y0>t.y1);if(null===e&&(e=t.length),Ol(t.slice(e),n),e>0){const r=[];for(let n=e-1;n>=0;n--)r.push(t[n]);Ol(r,n)}}function kl(t){const n=_l(),e=Ml(t);let r=[],i=[],o=null;function u(t=[],u=[],s={}){const a=function(t=[],n=[]){const e=new Hf.Graph({directed:!0,multigraph:!0});return n.forEach((t=>{e.setEdge(t.source,t.target,{data:t},t.type)})),e.nodes().forEach((t=>e.setNode(t,{data:{}}))),t.forEach((t=>{e.hasNode(t.id)&&(e.node(t.id).data=t,void 0!==t.direction&&(e.node(t.id).direction=t.direction))})),e.edges().forEach((t=>{e.edge(t).source=e.node(t.v),e.edge(t).target=e.node(t.w)})),e}(u,t);var c;return s.order?(o=s.order,console.log("order",o,s.order),o.length>0&&o[0].length>0&&!tl.isArray(o[0][0])&&(o=o.map((t=>[t]))),o=o.map((t=>t.map((t=>t.filter((t=>void 0!==a.node(t)))))))):(ol(a,s.rankSets||[]),(c=a).edges().forEach((t=>{const n=c.node(t.v),e=c.node(t.w);let r=n.rank;const i=[];if(r+1<=e.rank){for("l"===n.direction&&i.push(r);++r<e.rank;)i.push(r);"l"===e.direction&&i.push(r),yl(c,t,i,"r")}else if(r>e.rank){for("l"!==n.direction&&i.push(r);r-- >e.rank+1;)i.push(r);"l"!==e.direction&&i.push(r),yl(c,t,i,"l")}})),o=pl(a),console.log("order",o,s.order)),r=n(a,o),function(t,{alignLinkTypes:n=!1}={}){t.nodes().forEach((e=>{const r=t.node(e);if(r.incoming=t.inEdges(e),r.outgoing=t.outEdges(e),n){const n=bl(t,e);r.incoming.sort(jl(t,n,!1)),r.outgoing.sort(jl(t,n,!0))}else r.incoming.sort(El(t,!1)),r.outgoing.sort(El(t,!0))}))}(a,{alignLinkTypes:s.alignLinkTypes||!1}),i=e(a),a}return u.nodes=function(){return r},u.links=function(){return i},u.order=function(){return o},u.size=function(t){return arguments.length?(n.size(t),u):n.size()},u.separation=function(t){return arguments.length?(n.separation(t),u):n.separation()},u.whitespace=function(t){return arguments.length?(n.whitespace(t),u):n.whitespace()},u.edgeValue=function(t){return u},u.scale=function(t){return arguments.length?(n.scale(t),u):n.scale()},u}function Cl(t){const n=Math.max(0===t.dy?0:2,t.dy)/2;let e=t.x0,r=t.x1,i=t.y0,o=t.y1;r<e&&([e,r]=[r,e],[i,o]=[o,i]);const u=o>i?1:-1,s=function(t){const n=t.x1-t.x0,e=t.y1-t.y0;return[t.dy/2,(n*n+e*e)/Math.abs(4*e)]}(t),a=Math.max(s[0],Math.min(s[1],(r-e)/3));let c=Math.max(s[0],Math.min(s[1],t.r0||a)),h=Math.max(s[0],Math.min(s[1],t.r1||a));const f=r-e,l=o-i-u*(c+h),d=Math.sqrt(f*f+l*l),p=-u*Math.acos(Math.min(1,(c+h)/d)),v=Math.atan2(l,f);let g=Math.PI/2+u*(v+p),y=n*u*Math.sin(g),_=n*Math.cos(g),m=e+1*c*Math.sin(Math.abs(g)),w=r-1*h*Math.sin(Math.abs(g)),b=i+c*u*(1-Math.cos(g)),x=o-h*u*(1-Math.cos(g));function E(t,e){const r=t*(o-i)>0?1:0;let u=1*t*(o-i)>0?e+n:e-n;return 0===g&&(u=e),"A"+u+" "+u+" "+Math.abs(g)+" 0 "+r+" "}(isNaN(g)||Math.abs(g)<.001)&&(g=c=h=0,m=e,w=r,b=i,x=o,y=0,_=n);const j="M"+[e,i-n]+" "+E(1,c)+[m+y,b-_]+" L"+[w+y,x-_]+" "+E(-1,h)+[r,o-n]+" L"+[r,o+n]+" "+E(1,h)+[w-y,x+_]+" L"+[m-y,b+_]+" "+E(-1,c)+[e,i+n]+" Z";return/NaN/.test(j)&&console.error("path NaN",t,j),j}const Tl=t=>void 0!==t.title?t.title:t.id;function Il(t,n){const{data:e}=t,r=function(t){let n=!1,e=!1;return n=t.spaceAbove>20&&"type"!==t.style,0===t.incoming.length?(e=!0,n=!1):0===t.outgoing.length&&(e=!1,n=!1),{top:n,right:e}}(t),{x:i,y:o}=function(t,n){const e=n.top?-25:t.dy/2-10;let r;return r=n.top?n.right?4:-4:n.right?-10:10,{x:t.x+r,y:t.y+e}}(t,r),u=function(t="",{x:n,y:e,fontColor:r="#666767",textAnchor:i="start"}){const o=new Fn;return o.font({fill:r}),o.tspan(t),void 0!==n&&void 0!==e&&o.move(n,e),o.attr({"text-anchor":i}),o}(Tl(e),{x:i,y:o,textAnchor:r.right?"end":"start",fontColor:n});return u}function Nl(t,n){const{x:e,y:r,dy:i}=t,{nodeWidth:o,nodeBorderWidth:u,nodeBorderColor:s,onNodeClick:a,fontColor:c}=n,h=new Un({class:"node"}),f=function({x:t=0,y:n=0,width:e=0,height:r=0,radius:i=0,color:o="#97cbe6",borderColor:u="#caced0",opacity:s=1}={}){const a=new jn;return a.attr({x:t,y:n,width:e,height:r,rx:i,ry:i,opacity:s}),a.fill(o),a.stroke({color:u,width:1}),a}({x:e-o/2,y:r,width:o,height:i});f.fill(t.data.color),f.stroke({width:u,color:s??t.data.color}),f.on("click",(()=>{"function"==typeof a&&a(t)}));const l=Il(t,c);return h.add(f),h.add(l),h}const Rl=["#ACD5FC","#E37816","#07CC80","#0871D4","#CB8E55","#9FAE29","#427565","#6D55A6","#FEF445","#E177C2","#F48B7B","#D74B05","#AA896F","#14A14D","#C5114D"],zl=(t="",n,e="")=>{const r=document.getElementById(t);n?null==r||r.setAttribute("style",n):null==r||r.removeAttribute("style"),(null==r?void 0:r.innerHTML.replaceAll("'",'"'))!==e.replaceAll("'",'"')&&r&&(r.innerHTML=e)},Pl=t=>t.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((t,n)=>(n?"-":"")+t.toLowerCase()));class Dl extends te{constructor(t,n){super(t,n.width,n.height,n.canvasStyle,n.spacing),this.element=t,this.options=n}construct(t){const{width:n,height:e,spacing:r,nodeWidth:i}=this.options,o=kl({nodeWidth:i});o.size([n-2*r,e-2*r]);const u=t.nodes.map(((t,n)=>{const e=n%Rl.length;return{...t,color:t.color??Rl[e],colorIndex:e}}));console.log("construct",t.nodes,u);const s=o(t.edges,u,t.options);console.log("graph",s),this.graph=s}renderEdge(t,n){const{enableTooltip:e,tooltipId:r,tooltipBGColor:i,tooltipBorderColor:o,edgeOpacity:u,tooltipTemplate:s}=this.options,a=this.graph.edge(t.v,t.w,t.name),c=this.graph.node(t.v),h=this.graph.node(t.w),f=function(t,{id:n="",edgeColor:e="none",opacity:r=1}={}){const i=new wn({d:t});return i.id(n),i.fill(e).opacity(r),i}(Cl(a),{edgeColor:c.data.color,opacity:u});if(e){const t=s?s({source:c.data,target:h.data,value:a.value}):null;f.on("mousemove",(function(n){const e=(u=n.pageX,s=n.pageY,["position: absolute;",`left: ${u+20}px;`,`top: ${s+20}px;`,`border: 1px solid ${o};`,"border-radius: 5px;",`background-color: ${i};`,"padding: 10px"]);var u,s;zl(r,e.join(" "),t)})),f.on("mouseout",(function(){zl(r)}))}n.add(f)}render({keepOldPosition:t=!1}={}){var n,e;const{nodeWidth:r,nodeBorderWidth:i,nodeBorderColor:o,enableTooltip:u,tooltipId:s,onNodeClick:a,fontColor:c,fontFamily:h,fontSize:f,fontWeight:l}=this.options,d=this.canvas.viewbox();this.clear();const p=((t={})=>{const n=[];for(const e in t){const r=`${Pl(e)}: ${t[e]};`;n.push(r)}return n.join(" ")})({fontSize:f,fontWeight:l,fontFamily:h,color:c}),v=function(t=0,n=0,e,r){const i=new Un;return i.attr({transform:`translate(${t}, ${n})`,"data-self":e,"data-parent":r}),i}(0,0);v.attr("style",p);const g=(null==(n=this.graph)?void 0:n.nodes())||[];if(((null==(e=this.graph)?void 0:e.edges())||[]).forEach((t=>{this.renderEdge(t,v)})),g.forEach((t=>{const n=Nl(this.graph.node(t),{nodeWidth:r,nodeBorderWidth:i,nodeBorderColor:o,onNodeClick:a,fontColor:c});v.add(n)})),this.add(v),t&&this.updateViewBox(d.x,d.y,d.width,d.height),u){const t=((t="apextree-tooltip-container")=>{const n=document.getElementById(t)||document.createElement("div");return n.id=t,n})(s);(document.body||document.getElementsByTagName("body")[0]).append(t)}}}const Ll={width:800,height:800,canvasStyle:"border: 1px solid #caced0",spacing:100,nodeWidth:20,nodeBorderWidth:1,nodeBorderColor:null,onNodeClick:void 0,edgeOpacity:.4,fontSize:"14px",fontFamily:"",fontWeight:400,fontColor:"#212121",enableTooltip:!0,tooltipId:"sankey-tooltip-container",tooltipBorderColor:"#BCBCBC",tooltipBGColor:"#FFFFFF",tooltipTemplate:({source:t,target:n,value:e})=>`\n <div style='display:flex;align-items:center;gap:5px;'>\n <div style='width:12px;height:12px;background-color:${t.color}'></div>\n <div>${t.title}</div>\n <div>=></div>\n <div style='width:12px;height:12px;background-color:${n.color}'></div>\n <div>${n.title}</div>\n <div>: ${e}</div> \n </div>\n `};return class{constructor(t,n){this.element=t,this.options={...Ll,...n};const e=document.createElement("div");e.id="apexTreeWrapper",e.style.position="relative",this.graph=new Dl(e,this.options),this.element.append(e)}render(t){if(!this.element)throw new Error("Element not found");return this.graph.construct(t),this.graph.render(),this.graph}}}));
9
+ */Qf=Kf,Jf=Kf.exports,function(){var t,n="Expected a function",e="__lodash_hash_undefined__",r="__lodash_placeholder__",i=16,o=32,u=64,s=128,a=256,c=1/0,h=9007199254740991,f=NaN,l=4294967295,d=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",i],["flip",512],["partial",o],["partialRight",u],["rearg",a]],p="[object Arguments]",v="[object Array]",g="[object Boolean]",y="[object Date]",_="[object Error]",m="[object Function]",w="[object GeneratorFunction]",b="[object Map]",x="[object Number]",E="[object Object]",j="[object Promise]",A="[object RegExp]",O="[object Set]",M="[object String]",S="[object Symbol]",k="[object WeakMap]",C="[object ArrayBuffer]",T="[object DataView]",I="[object Float32Array]",N="[object Float64Array]",R="[object Int8Array]",z="[object Int16Array]",P="[object Int32Array]",D="[object Uint8Array]",L="[object Uint8ClampedArray]",F="[object Uint16Array]",B="[object Uint32Array]",$=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,X=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,q=RegExp(Y.source),W=RegExp(U.source),G=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,H=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,K=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tt=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(tt.source),et=/^\s+/,rt=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,ut=/,? & /,st=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,at=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,lt=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,pt=/^\[object .+?Constructor\]$/,vt=/^0o[0-7]+$/i,gt=/^(?:0|[1-9]\d*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_t=/($^)/,mt=/['\n\r\u2028\u2029\\]/g,wt="\\ud800-\\udfff",bt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xt="\\u2700-\\u27bf",Et="a-z\\xdf-\\xf6\\xf8-\\xff",jt="A-Z\\xc0-\\xd6\\xd8-\\xde",At="\\ufe0e\\ufe0f",Ot="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Mt="['’]",St="["+wt+"]",kt="["+Ot+"]",Ct="["+bt+"]",Tt="\\d+",It="["+xt+"]",Nt="["+Et+"]",Rt="[^"+wt+Ot+Tt+xt+Et+jt+"]",zt="\\ud83c[\\udffb-\\udfff]",Pt="[^"+wt+"]",Dt="(?:\\ud83c[\\udde6-\\uddff]){2}",Lt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ft="["+jt+"]",Bt="\\u200d",$t="(?:"+Nt+"|"+Rt+")",Vt="(?:"+Ft+"|"+Rt+")",Xt="(?:['’](?:d|ll|m|re|s|t|ve))?",Yt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ut="(?:"+Ct+"|"+zt+")?",qt="["+At+"]?",Wt=qt+Ut+"(?:"+Bt+"(?:"+[Pt,Dt,Lt].join("|")+")"+qt+Ut+")*",Gt="(?:"+[It,Dt,Lt].join("|")+")"+Wt,Zt="(?:"+[Pt+Ct+"?",Ct,Dt,Lt,St].join("|")+")",Ht=RegExp(Mt,"g"),Qt=RegExp(Ct,"g"),Jt=RegExp(zt+"(?="+zt+")|"+Zt+Wt,"g"),Kt=RegExp([Ft+"?"+Nt+"+"+Xt+"(?="+[kt,Ft,"$"].join("|")+")",Vt+"+"+Yt+"(?="+[kt,Ft+$t,"$"].join("|")+")",Ft+"?"+$t+"+"+Xt,Ft+"+"+Yt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tt,Gt].join("|"),"g"),tn=RegExp("["+Bt+wt+bt+At+"]"),nn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,en=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rn=-1,on={};on[I]=on[N]=on[R]=on[z]=on[P]=on[D]=on[L]=on[F]=on[B]=!0,on[p]=on[v]=on[C]=on[g]=on[T]=on[y]=on[_]=on[m]=on[b]=on[x]=on[E]=on[A]=on[O]=on[M]=on[k]=!1;var un={};un[p]=un[v]=un[C]=un[T]=un[g]=un[y]=un[I]=un[N]=un[R]=un[z]=un[P]=un[b]=un[x]=un[E]=un[A]=un[O]=un[M]=un[S]=un[D]=un[L]=un[F]=un[B]=!0,un[_]=un[m]=un[k]=!1;var sn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},an=parseFloat,cn=parseInt,hn="object"==typeof ni&&ni&&ni.Object===Object&&ni,fn="object"==typeof self&&self&&self.Object===Object&&self,ln=hn||fn||Function("return this")(),dn=Jf&&!Jf.nodeType&&Jf,pn=dn&&Qf&&!Qf.nodeType&&Qf,vn=pn&&pn.exports===dn,gn=vn&&hn.process,yn=function(){try{var t=pn&&pn.require&&pn.require("util").types;return t||gn&&gn.binding&&gn.binding("util")}catch(Fl){}}(),_n=yn&&yn.isArrayBuffer,mn=yn&&yn.isDate,wn=yn&&yn.isMap,bn=yn&&yn.isRegExp,xn=yn&&yn.isSet,En=yn&&yn.isTypedArray;function jn(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function An(t,n,e,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var u=t[i];n(r,u,e(u),t)}return r}function On(t,n){for(var e=-1,r=null==t?0:t.length;++e<r&&!1!==n(t[e],e,t););return t}function Mn(t,n){for(var e=null==t?0:t.length;e--&&!1!==n(t[e],e,t););return t}function Sn(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(!n(t[e],e,t))return!1;return!0}function kn(t,n){for(var e=-1,r=null==t?0:t.length,i=0,o=[];++e<r;){var u=t[e];n(u,e,t)&&(o[i++]=u)}return o}function Cn(t,n){return!(null==t||!t.length)&&Bn(t,n,0)>-1}function Tn(t,n,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(e(n,t[r]))return!0;return!1}function In(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}function Nn(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}function Rn(t,n,e,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(e=t[++i]);++i<o;)e=n(e,t[i],i,t);return e}function zn(t,n,e,r){var i=null==t?0:t.length;for(r&&i&&(e=t[--i]);i--;)e=n(e,t[i],i,t);return e}function Pn(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}var Dn=Yn("length");function Ln(t,n,e){var r;return e(t,(function(t,e,i){if(n(t,e,i))return r=e,!1})),r}function Fn(t,n,e,r){for(var i=t.length,o=e+(r?1:-1);r?o--:++o<i;)if(n(t[o],o,t))return o;return-1}function Bn(t,n,e){return n==n?function(t,n,e){for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}(t,n,e):Fn(t,Vn,e)}function $n(t,n,e,r){for(var i=e-1,o=t.length;++i<o;)if(r(t[i],n))return i;return-1}function Vn(t){return t!=t}function Xn(t,n){var e=null==t?0:t.length;return e?Wn(t,n)/e:f}function Yn(n){return function(e){return null==e?t:e[n]}}function Un(n){return function(e){return null==n?t:n[e]}}function qn(t,n,e,r,i){return i(t,(function(t,i,o){e=r?(r=!1,t):n(e,t,i,o)})),e}function Wn(n,e){for(var r,i=-1,o=n.length;++i<o;){var u=e(n[i]);u!==t&&(r=r===t?u:r+u)}return r}function Gn(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}function Zn(t){return t?t.slice(0,fe(t)+1).replace(et,""):t}function Hn(t){return function(n){return t(n)}}function Qn(t,n){return In(n,(function(n){return t[n]}))}function Jn(t,n){return t.has(n)}function Kn(t,n){for(var e=-1,r=t.length;++e<r&&Bn(n,t[e],0)>-1;);return e}function te(t,n){for(var e=t.length;e--&&Bn(n,t[e],0)>-1;);return e}var ne=Un({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),ee=Un({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function re(t){return"\\"+sn[t]}function ie(t){return tn.test(t)}function oe(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}function ue(t,n){return function(e){return t(n(e))}}function se(t,n){for(var e=-1,i=t.length,o=0,u=[];++e<i;){var s=t[e];s!==n&&s!==r||(t[e]=r,u[o++]=e)}return u}function ae(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=t})),e}function ce(t){return ie(t)?function(t){for(var n=Jt.lastIndex=0;Jt.test(t);)++n;return n}(t):Dn(t)}function he(t){return ie(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.split("")}(t)}function fe(t){for(var n=t.length;n--&&rt.test(t.charAt(n)););return n}var le=Un({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),de=function rt(wt){var bt,xt=(wt=null==wt?ln:de.defaults(ln.Object(),wt,de.pick(ln,en))).Array,Et=wt.Date,jt=wt.Error,At=wt.Function,Ot=wt.Math,Mt=wt.Object,St=wt.RegExp,kt=wt.String,Ct=wt.TypeError,Tt=xt.prototype,It=At.prototype,Nt=Mt.prototype,Rt=wt["__core-js_shared__"],zt=It.toString,Pt=Nt.hasOwnProperty,Dt=0,Lt=(bt=/[^.]+$/.exec(Rt&&Rt.keys&&Rt.keys.IE_PROTO||""))?"Symbol(src)_1."+bt:"",Ft=Nt.toString,Bt=zt.call(Mt),$t=ln._,Vt=St("^"+zt.call(Pt).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xt=vn?wt.Buffer:t,Yt=wt.Symbol,Ut=wt.Uint8Array,qt=Xt?Xt.allocUnsafe:t,Wt=ue(Mt.getPrototypeOf,Mt),Gt=Mt.create,Zt=Nt.propertyIsEnumerable,Jt=Tt.splice,tn=Yt?Yt.isConcatSpreadable:t,sn=Yt?Yt.iterator:t,hn=Yt?Yt.toStringTag:t,fn=function(){try{var t=fo(Mt,"defineProperty");return t({},"",{}),t}catch(Fl){}}(),dn=wt.clearTimeout!==ln.clearTimeout&&wt.clearTimeout,pn=Et&&Et.now!==ln.Date.now&&Et.now,gn=wt.setTimeout!==ln.setTimeout&&wt.setTimeout,yn=Ot.ceil,Dn=Ot.floor,Un=Mt.getOwnPropertySymbols,pe=Xt?Xt.isBuffer:t,ve=wt.isFinite,ge=Tt.join,ye=ue(Mt.keys,Mt),_e=Ot.max,me=Ot.min,we=Et.now,be=wt.parseInt,xe=Ot.random,Ee=Tt.reverse,je=fo(wt,"DataView"),Ae=fo(wt,"Map"),Oe=fo(wt,"Promise"),Me=fo(wt,"Set"),Se=fo(wt,"WeakMap"),ke=fo(Mt,"create"),Ce=Se&&new Se,Te={},Ie=$o(je),Ne=$o(Ae),Re=$o(Oe),ze=$o(Me),Pe=$o(Se),De=Yt?Yt.prototype:t,Le=De?De.valueOf:t,Fe=De?De.toString:t;function Be(t){if(is(t)&&!Wu(t)&&!(t instanceof Ye)){if(t instanceof Xe)return t;if(Pt.call(t,"__wrapped__"))return Vo(t)}return new Xe(t)}var $e=function(){function n(){}return function(e){if(!rs(e))return{};if(Gt)return Gt(e);n.prototype=e;var r=new n;return n.prototype=t,r}}();function Ve(){}function Xe(n,e){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=t}function Ye(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=l,this.__views__=[]}function Ue(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function qe(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function We(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function Ge(t){var n=-1,e=null==t?0:t.length;for(this.__data__=new We;++n<e;)this.add(t[n])}function Ze(t){var n=this.__data__=new qe(t);this.size=n.size}function He(t,n){var e=Wu(t),r=!e&&qu(t),i=!e&&!r&&Qu(t),o=!e&&!r&&!i&&ls(t),u=e||r||i||o,s=u?Gn(t.length,kt):[],a=s.length;for(var c in t)!n&&!Pt.call(t,c)||u&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||mo(c,a))||s.push(c);return s}function Qe(n){var e=n.length;return e?n[Gr(0,e-1)]:t}function Je(t,n){return zo(ki(t),sr(n,0,t.length))}function Ke(t){return zo(ki(t))}function tr(n,e,r){(r!==t&&!Xu(n[e],r)||r===t&&!(e in n))&&or(n,e,r)}function nr(n,e,r){var i=n[e];Pt.call(n,e)&&Xu(i,r)&&(r!==t||e in n)||or(n,e,r)}function er(t,n){for(var e=t.length;e--;)if(Xu(t[e][0],n))return e;return-1}function rr(t,n,e,r){return lr(t,(function(t,i,o){n(r,t,e(t),o)})),r}function ir(t,n){return t&&Ci(n,Rs(n),t)}function or(t,n,e){"__proto__"==n&&fn?fn(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}function ur(n,e){for(var r=-1,i=e.length,o=xt(i),u=null==n;++r<i;)o[r]=u?t:ks(n,e[r]);return o}function sr(n,e,r){return n==n&&(r!==t&&(n=n<=r?n:r),e!==t&&(n=n>=e?n:e)),n}function ar(n,e,r,i,o,u){var s,a=1&e,c=2&e,h=4&e;if(r&&(s=o?r(n,i,o,u):r(n)),s!==t)return s;if(!rs(n))return n;var f=Wu(n);if(f){if(s=function(t){var n=t.length,e=new t.constructor(n);return n&&"string"==typeof t[0]&&Pt.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(n),!a)return ki(n,s)}else{var l=vo(n),d=l==m||l==w;if(Qu(n))return Ei(n,a);if(l==E||l==p||d&&!o){if(s=c||d?{}:yo(n),!a)return c?function(t,n){return Ci(t,po(t),n)}(n,function(t,n){return t&&Ci(n,zs(n),t)}(s,n)):function(t,n){return Ci(t,lo(t),n)}(n,ir(s,n))}else{if(!un[l])return o?n:{};s=function(t,n,e){var r,i=t.constructor;switch(n){case C:return ji(t);case g:case y:return new i(+t);case T:return function(t,n){var e=n?ji(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case I:case N:case R:case z:case P:case D:case L:case F:case B:return Ai(t,e);case b:return new i;case x:case M:return new i(t);case A:return function(t){var n=new t.constructor(t.source,ft.exec(t));return n.lastIndex=t.lastIndex,n}(t);case O:return new i;case S:return r=t,Le?Mt(Le.call(r)):{}}}(n,l,a)}}u||(u=new Ze);var v=u.get(n);if(v)return v;u.set(n,s),cs(n)?n.forEach((function(t){s.add(ar(t,e,r,t,n,u))})):os(n)&&n.forEach((function(t,i){s.set(i,ar(t,e,r,i,n,u))}));var _=f?t:(h?c?io:ro:c?zs:Rs)(n);return On(_||n,(function(t,i){_&&(t=n[i=t]),nr(s,i,ar(t,e,r,i,n,u))})),s}function cr(n,e,r){var i=r.length;if(null==n)return!i;for(n=Mt(n);i--;){var o=r[i],u=e[o],s=n[o];if(s===t&&!(o in n)||!u(s))return!1}return!0}function hr(e,r,i){if("function"!=typeof e)throw new Ct(n);return To((function(){e.apply(t,i)}),r)}function fr(t,n,e,r){var i=-1,o=Cn,u=!0,s=t.length,a=[],c=n.length;if(!s)return a;e&&(n=In(n,Hn(e))),r?(o=Tn,u=!1):n.length>=200&&(o=Jn,u=!1,n=new Ge(n));t:for(;++i<s;){var h=t[i],f=null==e?h:e(h);if(h=r||0!==h?h:0,u&&f==f){for(var l=c;l--;)if(n[l]===f)continue t;a.push(h)}else o(n,f,r)||a.push(h)}return a}Be.templateSettings={escape:G,evaluate:Z,interpolate:H,variable:"",imports:{_:Be}},Be.prototype=Ve.prototype,Be.prototype.constructor=Be,Xe.prototype=$e(Ve.prototype),Xe.prototype.constructor=Xe,Ye.prototype=$e(Ve.prototype),Ye.prototype.constructor=Ye,Ue.prototype.clear=function(){this.__data__=ke?ke(null):{},this.size=0},Ue.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},Ue.prototype.get=function(n){var r=this.__data__;if(ke){var i=r[n];return i===e?t:i}return Pt.call(r,n)?r[n]:t},Ue.prototype.has=function(n){var e=this.__data__;return ke?e[n]!==t:Pt.call(e,n)},Ue.prototype.set=function(n,r){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=ke&&r===t?e:r,this},qe.prototype.clear=function(){this.__data__=[],this.size=0},qe.prototype.delete=function(t){var n=this.__data__,e=er(n,t);return!(e<0||(e==n.length-1?n.pop():Jt.call(n,e,1),--this.size,0))},qe.prototype.get=function(n){var e=this.__data__,r=er(e,n);return r<0?t:e[r][1]},qe.prototype.has=function(t){return er(this.__data__,t)>-1},qe.prototype.set=function(t,n){var e=this.__data__,r=er(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},We.prototype.clear=function(){this.size=0,this.__data__={hash:new Ue,map:new(Ae||qe),string:new Ue}},We.prototype.delete=function(t){var n=co(this,t).delete(t);return this.size-=n?1:0,n},We.prototype.get=function(t){return co(this,t).get(t)},We.prototype.has=function(t){return co(this,t).has(t)},We.prototype.set=function(t,n){var e=co(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},Ge.prototype.add=Ge.prototype.push=function(t){return this.__data__.set(t,e),this},Ge.prototype.has=function(t){return this.__data__.has(t)},Ze.prototype.clear=function(){this.__data__=new qe,this.size=0},Ze.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Ze.prototype.get=function(t){return this.__data__.get(t)},Ze.prototype.has=function(t){return this.__data__.has(t)},Ze.prototype.set=function(t,n){var e=this.__data__;if(e instanceof qe){var r=e.__data__;if(!Ae||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new We(r)}return e.set(t,n),this.size=e.size,this};var lr=Ni(wr),dr=Ni(br,!0);function pr(t,n){var e=!0;return lr(t,(function(t,r,i){return e=!!n(t,r,i)})),e}function vr(n,e,r){for(var i=-1,o=n.length;++i<o;){var u=n[i],s=e(u);if(null!=s&&(a===t?s==s&&!fs(s):r(s,a)))var a=s,c=u}return c}function gr(t,n){var e=[];return lr(t,(function(t,r,i){n(t,r,i)&&e.push(t)})),e}function yr(t,n,e,r,i){var o=-1,u=t.length;for(e||(e=_o),i||(i=[]);++o<u;){var s=t[o];n>0&&e(s)?n>1?yr(s,n-1,e,r,i):Nn(i,s):r||(i[i.length]=s)}return i}var _r=Ri(),mr=Ri(!0);function wr(t,n){return t&&_r(t,n,Rs)}function br(t,n){return t&&mr(t,n,Rs)}function xr(t,n){return kn(n,(function(n){return ts(t[n])}))}function Er(n,e){for(var r=0,i=(e=mi(e,n)).length;null!=n&&r<i;)n=n[Bo(e[r++])];return r&&r==i?n:t}function jr(t,n,e){var r=n(t);return Wu(t)?r:Nn(r,e(t))}function Ar(n){return null==n?n===t?"[object Undefined]":"[object Null]":hn&&hn in Mt(n)?function(n){var e=Pt.call(n,hn),r=n[hn];try{n[hn]=t;var i=!0}catch(Fl){}var o=Ft.call(n);return i&&(e?n[hn]=r:delete n[hn]),o}(n):function(t){return Ft.call(t)}(n)}function Or(t,n){return t>n}function Mr(t,n){return null!=t&&Pt.call(t,n)}function Sr(t,n){return null!=t&&n in Mt(t)}function kr(n,e,r){for(var i=r?Tn:Cn,o=n[0].length,u=n.length,s=u,a=xt(u),c=1/0,h=[];s--;){var f=n[s];s&&e&&(f=In(f,Hn(e))),c=me(f.length,c),a[s]=!r&&(e||o>=120&&f.length>=120)?new Ge(s&&f):t}f=n[0];var l=-1,d=a[0];t:for(;++l<o&&h.length<c;){var p=f[l],v=e?e(p):p;if(p=r||0!==p?p:0,!(d?Jn(d,v):i(h,v,r))){for(s=u;--s;){var g=a[s];if(!(g?Jn(g,v):i(n[s],v,r)))continue t}d&&d.push(v),h.push(p)}}return h}function Cr(n,e,r){var i=null==(n=So(n,e=mi(e,n)))?n:n[Bo(Ko(e))];return null==i?t:jn(i,n,r)}function Tr(t){return is(t)&&Ar(t)==p}function Ir(n,e,r,i,o){return n===e||(null==n||null==e||!is(n)&&!is(e)?n!=n&&e!=e:function(n,e,r,i,o,u){var s=Wu(n),a=Wu(e),c=s?v:vo(n),h=a?v:vo(e),f=(c=c==p?E:c)==E,l=(h=h==p?E:h)==E,d=c==h;if(d&&Qu(n)){if(!Qu(e))return!1;s=!0,f=!1}if(d&&!f)return u||(u=new Ze),s||ls(n)?no(n,e,r,i,o,u):function(t,n,e,r,i,o,u){switch(e){case T:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case C:return!(t.byteLength!=n.byteLength||!o(new Ut(t),new Ut(n)));case g:case y:case x:return Xu(+t,+n);case _:return t.name==n.name&&t.message==n.message;case A:case M:return t==n+"";case b:var s=oe;case O:var a=1&r;if(s||(s=ae),t.size!=n.size&&!a)return!1;var c=u.get(t);if(c)return c==n;r|=2,u.set(t,n);var h=no(s(t),s(n),r,i,o,u);return u.delete(t),h;case S:if(Le)return Le.call(t)==Le.call(n)}return!1}(n,e,c,r,i,o,u);if(!(1&r)){var m=f&&Pt.call(n,"__wrapped__"),w=l&&Pt.call(e,"__wrapped__");if(m||w){var j=m?n.value():n,k=w?e.value():e;return u||(u=new Ze),o(j,k,r,i,u)}}return!!d&&(u||(u=new Ze),function(n,e,r,i,o,u){var s=1&r,a=ro(n),c=a.length,h=ro(e),f=h.length;if(c!=f&&!s)return!1;for(var l=c;l--;){var d=a[l];if(!(s?d in e:Pt.call(e,d)))return!1}var p=u.get(n),v=u.get(e);if(p&&v)return p==e&&v==n;var g=!0;u.set(n,e),u.set(e,n);for(var y=s;++l<c;){var _=n[d=a[l]],m=e[d];if(i)var w=s?i(m,_,d,e,n,u):i(_,m,d,n,e,u);if(!(w===t?_===m||o(_,m,r,i,u):w)){g=!1;break}y||(y="constructor"==d)}if(g&&!y){var b=n.constructor,x=e.constructor;b==x||!("constructor"in n)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(g=!1)}return u.delete(n),u.delete(e),g}(n,e,r,i,o,u))}(n,e,r,i,Ir,o))}function Nr(n,e,r,i){var o=r.length,u=o,s=!i;if(null==n)return!u;for(n=Mt(n);o--;){var a=r[o];if(s&&a[2]?a[1]!==n[a[0]]:!(a[0]in n))return!1}for(;++o<u;){var c=(a=r[o])[0],h=n[c],f=a[1];if(s&&a[2]){if(h===t&&!(c in n))return!1}else{var l=new Ze;if(i)var d=i(h,f,c,n,e,l);if(!(d===t?Ir(f,h,3,i,l):d))return!1}}return!0}function Rr(t){return!(!rs(t)||(n=t,Lt&&Lt in n))&&(ts(t)?Vt:pt).test($o(t));var n}function zr(t){return"function"==typeof t?t:null==t?ua:"object"==typeof t?Wu(t)?$r(t[0],t[1]):Br(t):va(t)}function Pr(t){if(!jo(t))return ye(t);var n=[];for(var e in Mt(t))Pt.call(t,e)&&"constructor"!=e&&n.push(e);return n}function Dr(t){if(!rs(t))return function(t){var n=[];if(null!=t)for(var e in Mt(t))n.push(e);return n}(t);var n=jo(t),e=[];for(var r in t)("constructor"!=r||!n&&Pt.call(t,r))&&e.push(r);return e}function Lr(t,n){return t<n}function Fr(t,n){var e=-1,r=Zu(t)?xt(t.length):[];return lr(t,(function(t,i,o){r[++e]=n(t,i,o)})),r}function Br(t){var n=ho(t);return 1==n.length&&n[0][2]?Oo(n[0][0],n[0][1]):function(e){return e===t||Nr(e,t,n)}}function $r(n,e){return bo(n)&&Ao(e)?Oo(Bo(n),e):function(r){var i=ks(r,n);return i===t&&i===e?Cs(r,n):Ir(e,i,3)}}function Vr(n,e,r,i,o){n!==e&&_r(e,(function(u,s){if(o||(o=new Ze),rs(u))!function(n,e,r,i,o,u,s){var a=ko(n,r),c=ko(e,r),h=s.get(c);if(h)tr(n,r,h);else{var f=u?u(a,c,r+"",n,e,s):t,l=f===t;if(l){var d=Wu(c),p=!d&&Qu(c),v=!d&&!p&&ls(c);f=c,d||p||v?Wu(a)?f=a:Hu(a)?f=ki(a):p?(l=!1,f=Ei(c,!0)):v?(l=!1,f=Ai(c,!0)):f=[]:ss(c)||qu(c)?(f=a,qu(a)?f=ws(a):rs(a)&&!ts(a)||(f=yo(c))):l=!1}l&&(s.set(c,f),o(f,c,i,u,s),s.delete(c)),tr(n,r,f)}}(n,e,s,r,Vr,i,o);else{var a=i?i(ko(n,s),u,s+"",n,e,o):t;a===t&&(a=u),tr(n,s,a)}}),zs)}function Xr(n,e){var r=n.length;if(r)return mo(e+=e<0?r:0,r)?n[e]:t}function Yr(t,n,e){n=n.length?In(n,(function(t){return Wu(t)?function(n){return Er(n,1===t.length?t[0]:t)}:t})):[ua];var r=-1;return n=In(n,Hn(ao())),function(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}(Fr(t,(function(t,e,i){return{criteria:In(n,(function(n){return n(t)})),index:++r,value:t}})),(function(t,n){return function(t,n,e){for(var r=-1,i=t.criteria,o=n.criteria,u=i.length,s=e.length;++r<u;){var a=Oi(i[r],o[r]);if(a)return r>=s?a:a*("desc"==e[r]?-1:1)}return t.index-n.index}(t,n,e)}))}function Ur(t,n,e){for(var r=-1,i=n.length,o={};++r<i;){var u=n[r],s=Er(t,u);e(s,u)&&Kr(o,mi(u,t),s)}return o}function qr(t,n,e,r){var i=r?$n:Bn,o=-1,u=n.length,s=t;for(t===n&&(n=ki(n)),e&&(s=In(t,Hn(e)));++o<u;)for(var a=0,c=n[o],h=e?e(c):c;(a=i(s,h,a,r))>-1;)s!==t&&Jt.call(s,a,1),Jt.call(t,a,1);return t}function Wr(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==o){var o=i;mo(i)?Jt.call(t,i,1):fi(t,i)}}return t}function Gr(t,n){return t+Dn(xe()*(n-t+1))}function Zr(t,n){var e="";if(!t||n<1||n>h)return e;do{n%2&&(e+=t),(n=Dn(n/2))&&(t+=t)}while(n);return e}function Hr(t,n){return Io(Mo(t,n,ua),t+"")}function Qr(t){return Qe(Xs(t))}function Jr(t,n){var e=Xs(t);return zo(e,sr(n,0,e.length))}function Kr(n,e,r,i){if(!rs(n))return n;for(var o=-1,u=(e=mi(e,n)).length,s=u-1,a=n;null!=a&&++o<u;){var c=Bo(e[o]),h=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return n;if(o!=s){var f=a[c];(h=i?i(f,c,a):t)===t&&(h=rs(f)?f:mo(e[o+1])?[]:{})}nr(a,c,h),a=a[c]}return n}var ti=Ce?function(t,n){return Ce.set(t,n),t}:ua,ni=fn?function(t,n){return fn(t,"toString",{configurable:!0,enumerable:!1,value:ra(n),writable:!0})}:ua;function ei(t){return zo(Xs(t))}function ri(t,n,e){var r=-1,i=t.length;n<0&&(n=-n>i?0:i+n),(e=e>i?i:e)<0&&(e+=i),i=n>e?0:e-n>>>0,n>>>=0;for(var o=xt(i);++r<i;)o[r]=t[r+n];return o}function ii(t,n){var e;return lr(t,(function(t,r,i){return!(e=n(t,r,i))})),!!e}function oi(t,n,e){var r=0,i=null==t?r:t.length;if("number"==typeof n&&n==n&&i<=2147483647){for(;r<i;){var o=r+i>>>1,u=t[o];null!==u&&!fs(u)&&(e?u<=n:u<n)?r=o+1:i=o}return i}return ui(t,n,ua,e)}function ui(n,e,r,i){var o=0,u=null==n?0:n.length;if(0===u)return 0;for(var s=(e=r(e))!=e,a=null===e,c=fs(e),h=e===t;o<u;){var f=Dn((o+u)/2),l=r(n[f]),d=l!==t,p=null===l,v=l==l,g=fs(l);if(s)var y=i||v;else y=h?v&&(i||d):a?v&&d&&(i||!p):c?v&&d&&!p&&(i||!g):!p&&!g&&(i?l<=e:l<e);y?o=f+1:u=f}return me(u,4294967294)}function si(t,n){for(var e=-1,r=t.length,i=0,o=[];++e<r;){var u=t[e],s=n?n(u):u;if(!e||!Xu(s,a)){var a=s;o[i++]=0===u?0:u}}return o}function ai(t){return"number"==typeof t?t:fs(t)?f:+t}function ci(t){if("string"==typeof t)return t;if(Wu(t))return In(t,ci)+"";if(fs(t))return Fe?Fe.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function hi(t,n,e){var r=-1,i=Cn,o=t.length,u=!0,s=[],a=s;if(e)u=!1,i=Tn;else if(o>=200){var c=n?null:Zi(t);if(c)return ae(c);u=!1,i=Jn,a=new Ge}else a=n?[]:s;t:for(;++r<o;){var h=t[r],f=n?n(h):h;if(h=e||0!==h?h:0,u&&f==f){for(var l=a.length;l--;)if(a[l]===f)continue t;n&&a.push(f),s.push(h)}else i(a,f,e)||(a!==s&&a.push(f),s.push(h))}return s}function fi(t,n){return null==(t=So(t,n=mi(n,t)))||delete t[Bo(Ko(n))]}function li(t,n,e,r){return Kr(t,n,e(Er(t,n)),r)}function di(t,n,e,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&n(t[o],o,t););return e?ri(t,r?0:o,r?o+1:i):ri(t,r?o+1:0,r?i:o)}function pi(t,n){var e=t;return e instanceof Ye&&(e=e.value()),Rn(n,(function(t,n){return n.func.apply(n.thisArg,Nn([t],n.args))}),e)}function vi(t,n,e){var r=t.length;if(r<2)return r?hi(t[0]):[];for(var i=-1,o=xt(r);++i<r;)for(var u=t[i],s=-1;++s<r;)s!=i&&(o[i]=fr(o[i]||u,t[s],n,e));return hi(yr(o,1),n,e)}function gi(n,e,r){for(var i=-1,o=n.length,u=e.length,s={};++i<o;){var a=i<u?e[i]:t;r(s,n[i],a)}return s}function yi(t){return Hu(t)?t:[]}function _i(t){return"function"==typeof t?t:ua}function mi(t,n){return Wu(t)?t:bo(t,n)?[t]:Fo(bs(t))}var wi=Hr;function bi(n,e,r){var i=n.length;return r=r===t?i:r,!e&&r>=i?n:ri(n,e,r)}var xi=dn||function(t){return ln.clearTimeout(t)};function Ei(t,n){if(n)return t.slice();var e=t.length,r=qt?qt(e):new t.constructor(e);return t.copy(r),r}function ji(t){var n=new t.constructor(t.byteLength);return new Ut(n).set(new Ut(t)),n}function Ai(t,n){var e=n?ji(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function Oi(n,e){if(n!==e){var r=n!==t,i=null===n,o=n==n,u=fs(n),s=e!==t,a=null===e,c=e==e,h=fs(e);if(!a&&!h&&!u&&n>e||u&&s&&c&&!a&&!h||i&&s&&c||!r&&c||!o)return 1;if(!i&&!u&&!h&&n<e||h&&r&&o&&!i&&!u||a&&r&&o||!s&&o||!c)return-1}return 0}function Mi(t,n,e,r){for(var i=-1,o=t.length,u=e.length,s=-1,a=n.length,c=_e(o-u,0),h=xt(a+c),f=!r;++s<a;)h[s]=n[s];for(;++i<u;)(f||i<o)&&(h[e[i]]=t[i]);for(;c--;)h[s++]=t[i++];return h}function Si(t,n,e,r){for(var i=-1,o=t.length,u=-1,s=e.length,a=-1,c=n.length,h=_e(o-s,0),f=xt(h+c),l=!r;++i<h;)f[i]=t[i];for(var d=i;++a<c;)f[d+a]=n[a];for(;++u<s;)(l||i<o)&&(f[d+e[u]]=t[i++]);return f}function ki(t,n){var e=-1,r=t.length;for(n||(n=xt(r));++e<r;)n[e]=t[e];return n}function Ci(n,e,r,i){var o=!r;r||(r={});for(var u=-1,s=e.length;++u<s;){var a=e[u],c=i?i(r[a],n[a],a,r,n):t;c===t&&(c=n[a]),o?or(r,a,c):nr(r,a,c)}return r}function Ti(t,n){return function(e,r){var i=Wu(e)?An:rr,o=n?n():{};return i(e,t,ao(r,2),o)}}function Ii(n){return Hr((function(e,r){var i=-1,o=r.length,u=o>1?r[o-1]:t,s=o>2?r[2]:t;for(u=n.length>3&&"function"==typeof u?(o--,u):t,s&&wo(r[0],r[1],s)&&(u=o<3?t:u,o=1),e=Mt(e);++i<o;){var a=r[i];a&&n(e,a,i,u)}return e}))}function Ni(t,n){return function(e,r){if(null==e)return e;if(!Zu(e))return t(e,r);for(var i=e.length,o=n?i:-1,u=Mt(e);(n?o--:++o<i)&&!1!==r(u[o],o,u););return e}}function Ri(t){return function(n,e,r){for(var i=-1,o=Mt(n),u=r(n),s=u.length;s--;){var a=u[t?s:++i];if(!1===e(o[a],a,o))break}return n}}function zi(n){return function(e){var r=ie(e=bs(e))?he(e):t,i=r?r[0]:e.charAt(0),o=r?bi(r,1).join(""):e.slice(1);return i[n]()+o}}function Pi(t){return function(n){return Rn(ta(qs(n).replace(Ht,"")),t,"")}}function Di(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var e=$e(t.prototype),r=t.apply(e,n);return rs(r)?r:e}}function Li(n){return function(e,r,i){var o=Mt(e);if(!Zu(e)){var u=ao(r,3);e=Rs(e),r=function(t){return u(o[t],t,o)}}var s=n(e,r,i);return s>-1?o[u?e[s]:s]:t}}function Fi(e){return eo((function(r){var i=r.length,o=i,u=Xe.prototype.thru;for(e&&r.reverse();o--;){var s=r[o];if("function"!=typeof s)throw new Ct(n);if(u&&!a&&"wrapper"==uo(s))var a=new Xe([],!0)}for(o=a?o:i;++o<i;){var c=uo(s=r[o]),h="wrapper"==c?oo(s):t;a=h&&xo(h[0])&&424==h[1]&&!h[4].length&&1==h[9]?a[uo(h[0])].apply(a,h[3]):1==s.length&&xo(s)?a[c]():a.thru(s)}return function(){var t=arguments,n=t[0];if(a&&1==t.length&&Wu(n))return a.plant(n).value();for(var e=0,o=i?r[e].apply(this,t):n;++e<i;)o=r[e].call(this,o);return o}}))}function Bi(n,e,r,i,o,u,a,c,h,f){var l=e&s,d=1&e,p=2&e,v=24&e,g=512&e,y=p?t:Di(n);return function s(){for(var _=arguments.length,m=xt(_),w=_;w--;)m[w]=arguments[w];if(v)var b=so(s),x=function(t,n){for(var e=t.length,r=0;e--;)t[e]===n&&++r;return r}(m,b);if(i&&(m=Mi(m,i,o,v)),u&&(m=Si(m,u,a,v)),_-=x,v&&_<f){var E=se(m,b);return Wi(n,e,Bi,s.placeholder,r,m,E,c,h,f-_)}var j=d?r:this,A=p?j[n]:n;return _=m.length,c?m=function(n,e){for(var r=n.length,i=me(e.length,r),o=ki(n);i--;){var u=e[i];n[i]=mo(u,r)?o[u]:t}return n}(m,c):g&&_>1&&m.reverse(),l&&h<_&&(m.length=h),this&&this!==ln&&this instanceof s&&(A=y||Di(A)),A.apply(j,m)}}function $i(t,n){return function(e,r){return function(t,n,e,r){return wr(t,(function(t,i,o){n(r,e(t),i,o)})),r}(e,t,n(r),{})}}function Vi(n,e){return function(r,i){var o;if(r===t&&i===t)return e;if(r!==t&&(o=r),i!==t){if(o===t)return i;"string"==typeof r||"string"==typeof i?(r=ci(r),i=ci(i)):(r=ai(r),i=ai(i)),o=n(r,i)}return o}}function Xi(t){return eo((function(n){return n=In(n,Hn(ao())),Hr((function(e){var r=this;return t(n,(function(t){return jn(t,r,e)}))}))}))}function Yi(n,e){var r=(e=e===t?" ":ci(e)).length;if(r<2)return r?Zr(e,n):e;var i=Zr(e,yn(n/ce(e)));return ie(e)?bi(he(i),0,n).join(""):i.slice(0,n)}function Ui(n){return function(e,r,i){return i&&"number"!=typeof i&&wo(e,r,i)&&(r=i=t),e=gs(e),r===t?(r=e,e=0):r=gs(r),function(t,n,e,r){for(var i=-1,o=_e(yn((n-t)/(e||1)),0),u=xt(o);o--;)u[r?o:++i]=t,t+=e;return u}(e,r,i=i===t?e<r?1:-1:gs(i),n)}}function qi(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=ms(n),e=ms(e)),t(n,e)}}function Wi(n,e,r,i,s,a,c,h,f,l){var d=8&e;e|=d?o:u,4&(e&=~(d?u:o))||(e&=-4);var p=[n,e,s,d?a:t,d?c:t,d?t:a,d?t:c,h,f,l],v=r.apply(t,p);return xo(n)&&Co(v,p),v.placeholder=i,No(v,n,e)}function Gi(t){var n=Ot[t];return function(t,e){if(t=ms(t),(e=null==e?0:me(ys(e),292))&&ve(t)){var r=(bs(t)+"e").split("e");return+((r=(bs(n(r[0]+"e"+(+r[1]+e)))+"e").split("e"))[0]+"e"+(+r[1]-e))}return n(t)}}var Zi=Me&&1/ae(new Me([,-0]))[1]==c?function(t){return new Me(t)}:fa;function Hi(t){return function(n){var e=vo(n);return e==b?oe(n):e==O?function(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=[t,t]})),e}(n):function(t,n){return In(n,(function(n){return[n,t[n]]}))}(n,t(n))}}function Qi(e,c,h,f,l,d,p,v){var g=2&c;if(!g&&"function"!=typeof e)throw new Ct(n);var y=f?f.length:0;if(y||(c&=-97,f=l=t),p=p===t?p:_e(ys(p),0),v=v===t?v:ys(v),y-=l?l.length:0,c&u){var _=f,m=l;f=l=t}var w=g?t:oo(e),b=[e,c,h,f,l,_,m,d,p,v];if(w&&function(t,n){var e=t[1],i=n[1],o=e|i,u=o<131,c=i==s&&8==e||i==s&&e==a&&t[7].length<=n[8]||384==i&&n[7].length<=n[8]&&8==e;if(!u&&!c)return t;1&i&&(t[2]=n[2],o|=1&e?0:4);var h=n[3];if(h){var f=t[3];t[3]=f?Mi(f,h,n[4]):h,t[4]=f?se(t[3],r):n[4]}(h=n[5])&&(f=t[5],t[5]=f?Si(f,h,n[6]):h,t[6]=f?se(t[5],r):n[6]),(h=n[7])&&(t[7]=h),i&s&&(t[8]=null==t[8]?n[8]:me(t[8],n[8])),null==t[9]&&(t[9]=n[9]),t[0]=n[0],t[1]=o}(b,w),e=b[0],c=b[1],h=b[2],f=b[3],l=b[4],!(v=b[9]=b[9]===t?g?0:e.length:_e(b[9]-y,0))&&24&c&&(c&=-25),c&&1!=c)x=8==c||c==i?function(n,e,r){var i=Di(n);return function o(){for(var u=arguments.length,s=xt(u),a=u,c=so(o);a--;)s[a]=arguments[a];var h=u<3&&s[0]!==c&&s[u-1]!==c?[]:se(s,c);return(u-=h.length)<r?Wi(n,e,Bi,o.placeholder,t,s,h,t,t,r-u):jn(this&&this!==ln&&this instanceof o?i:n,this,s)}}(e,c,v):c!=o&&33!=c||l.length?Bi.apply(t,b):function(t,n,e,r){var i=1&n,o=Di(t);return function n(){for(var u=-1,s=arguments.length,a=-1,c=r.length,h=xt(c+s),f=this&&this!==ln&&this instanceof n?o:t;++a<c;)h[a]=r[a];for(;s--;)h[a++]=arguments[++u];return jn(f,i?e:this,h)}}(e,c,h,f);else var x=function(t,n,e){var r=1&n,i=Di(t);return function n(){return(this&&this!==ln&&this instanceof n?i:t).apply(r?e:this,arguments)}}(e,c,h);return No((w?ti:Co)(x,b),e,c)}function Ji(n,e,r,i){return n===t||Xu(n,Nt[r])&&!Pt.call(i,r)?e:n}function Ki(n,e,r,i,o,u){return rs(n)&&rs(e)&&(u.set(e,n),Vr(n,e,t,Ki,u),u.delete(e)),n}function to(n){return ss(n)?t:n}function no(n,e,r,i,o,u){var s=1&r,a=n.length,c=e.length;if(a!=c&&!(s&&c>a))return!1;var h=u.get(n),f=u.get(e);if(h&&f)return h==e&&f==n;var l=-1,d=!0,p=2&r?new Ge:t;for(u.set(n,e),u.set(e,n);++l<a;){var v=n[l],g=e[l];if(i)var y=s?i(g,v,l,e,n,u):i(v,g,l,n,e,u);if(y!==t){if(y)continue;d=!1;break}if(p){if(!Pn(e,(function(t,n){if(!Jn(p,n)&&(v===t||o(v,t,r,i,u)))return p.push(n)}))){d=!1;break}}else if(v!==g&&!o(v,g,r,i,u)){d=!1;break}}return u.delete(n),u.delete(e),d}function eo(n){return Io(Mo(n,t,Go),n+"")}function ro(t){return jr(t,Rs,lo)}function io(t){return jr(t,zs,po)}var oo=Ce?function(t){return Ce.get(t)}:fa;function uo(t){for(var n=t.name+"",e=Te[n],r=Pt.call(Te,n)?e.length:0;r--;){var i=e[r],o=i.func;if(null==o||o==t)return i.name}return n}function so(t){return(Pt.call(Be,"placeholder")?Be:t).placeholder}function ao(){var t=Be.iteratee||sa;return t=t===sa?zr:t,arguments.length?t(arguments[0],arguments[1]):t}function co(t,n){var e,r,i=t.__data__;return("string"==(r=typeof(e=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?i["string"==typeof n?"string":"hash"]:i.map}function ho(t){for(var n=Rs(t),e=n.length;e--;){var r=n[e],i=t[r];n[e]=[r,i,Ao(i)]}return n}function fo(n,e){var r=function(n,e){return null==n?t:n[e]}(n,e);return Rr(r)?r:t}var lo=Un?function(t){return null==t?[]:(t=Mt(t),kn(Un(t),(function(n){return Zt.call(t,n)})))}:_a,po=Un?function(t){for(var n=[];t;)Nn(n,lo(t)),t=Wt(t);return n}:_a,vo=Ar;function go(t,n,e){for(var r=-1,i=(n=mi(n,t)).length,o=!1;++r<i;){var u=Bo(n[r]);if(!(o=null!=t&&e(t,u)))break;t=t[u]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&es(i)&&mo(u,i)&&(Wu(t)||qu(t))}function yo(t){return"function"!=typeof t.constructor||jo(t)?{}:$e(Wt(t))}function _o(t){return Wu(t)||qu(t)||!!(tn&&t&&t[tn])}function mo(t,n){var e=typeof t;return!!(n=null==n?h:n)&&("number"==e||"symbol"!=e&&gt.test(t))&&t>-1&&t%1==0&&t<n}function wo(t,n,e){if(!rs(e))return!1;var r=typeof n;return!!("number"==r?Zu(e)&&mo(n,e.length):"string"==r&&n in e)&&Xu(e[n],t)}function bo(t,n){if(Wu(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!fs(t))||J.test(t)||!Q.test(t)||null!=n&&t in Mt(n)}function xo(t){var n=uo(t),e=Be[n];if("function"!=typeof e||!(n in Ye.prototype))return!1;if(t===e)return!0;var r=oo(e);return!!r&&t===r[0]}(je&&vo(new je(new ArrayBuffer(1)))!=T||Ae&&vo(new Ae)!=b||Oe&&vo(Oe.resolve())!=j||Me&&vo(new Me)!=O||Se&&vo(new Se)!=k)&&(vo=function(n){var e=Ar(n),r=e==E?n.constructor:t,i=r?$o(r):"";if(i)switch(i){case Ie:return T;case Ne:return b;case Re:return j;case ze:return O;case Pe:return k}return e});var Eo=Rt?ts:ma;function jo(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||Nt)}function Ao(t){return t==t&&!rs(t)}function Oo(n,e){return function(r){return null!=r&&r[n]===e&&(e!==t||n in Mt(r))}}function Mo(n,e,r){return e=_e(e===t?n.length-1:e,0),function(){for(var t=arguments,i=-1,o=_e(t.length-e,0),u=xt(o);++i<o;)u[i]=t[e+i];i=-1;for(var s=xt(e+1);++i<e;)s[i]=t[i];return s[e]=r(u),jn(n,this,s)}}function So(t,n){return n.length<2?t:Er(t,ri(n,0,-1))}function ko(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}var Co=Ro(ti),To=gn||function(t,n){return ln.setTimeout(t,n)},Io=Ro(ni);function No(t,n,e){var r=n+"";return Io(t,function(t,n){var e=n.length;if(!e)return t;var r=e-1;return n[r]=(e>1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(it,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return On(d,(function(e){var r="_."+e[0];n&e[1]&&!Cn(t,r)&&t.push(r)})),t.sort()}(function(t){var n=t.match(ot);return n?n[1].split(ut):[]}(r),e)))}function Ro(n){var e=0,r=0;return function(){var i=we(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return n.apply(t,arguments)}}function zo(n,e){var r=-1,i=n.length,o=i-1;for(e=e===t?i:e;++r<e;){var u=Gr(r,o),s=n[u];n[u]=n[r],n[r]=s}return n.length=e,n}var Po,Do,Lo,Fo=(Po=function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(K,(function(t,e,r,i){n.push(r?i.replace(ct,"$1"):e||t)})),n},Do=Du(Po,(function(t){return 500===Lo.size&&Lo.clear(),t})),Lo=Do.cache,Do);function Bo(t){if("string"==typeof t||fs(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function $o(t){if(null!=t){try{return zt.call(t)}catch(Fl){}try{return t+""}catch(Fl){}}return""}function Vo(t){if(t instanceof Ye)return t.clone();var n=new Xe(t.__wrapped__,t.__chain__);return n.__actions__=ki(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}var Xo=Hr((function(t,n){return Hu(t)?fr(t,yr(n,1,Hu,!0)):[]})),Yo=Hr((function(n,e){var r=Ko(e);return Hu(r)&&(r=t),Hu(n)?fr(n,yr(e,1,Hu,!0),ao(r,2)):[]})),Uo=Hr((function(n,e){var r=Ko(e);return Hu(r)&&(r=t),Hu(n)?fr(n,yr(e,1,Hu,!0),t,r):[]}));function qo(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:ys(e);return i<0&&(i=_e(r+i,0)),Fn(t,ao(n,3),i)}function Wo(n,e,r){var i=null==n?0:n.length;if(!i)return-1;var o=i-1;return r!==t&&(o=ys(r),o=r<0?_e(i+o,0):me(o,i-1)),Fn(n,ao(e,3),o,!0)}function Go(t){return null!=t&&t.length?yr(t,1):[]}function Zo(n){return n&&n.length?n[0]:t}var Ho=Hr((function(t){var n=In(t,yi);return n.length&&n[0]===t[0]?kr(n):[]})),Qo=Hr((function(n){var e=Ko(n),r=In(n,yi);return e===Ko(r)?e=t:r.pop(),r.length&&r[0]===n[0]?kr(r,ao(e,2)):[]})),Jo=Hr((function(n){var e=Ko(n),r=In(n,yi);return(e="function"==typeof e?e:t)&&r.pop(),r.length&&r[0]===n[0]?kr(r,t,e):[]}));function Ko(n){var e=null==n?0:n.length;return e?n[e-1]:t}var tu=Hr(nu);function nu(t,n){return t&&t.length&&n&&n.length?qr(t,n):t}var eu=eo((function(t,n){var e=null==t?0:t.length,r=ur(t,n);return Wr(t,In(n,(function(t){return mo(t,e)?+t:t})).sort(Oi)),r}));function ru(t){return null==t?t:Ee.call(t)}var iu=Hr((function(t){return hi(yr(t,1,Hu,!0))})),ou=Hr((function(n){var e=Ko(n);return Hu(e)&&(e=t),hi(yr(n,1,Hu,!0),ao(e,2))})),uu=Hr((function(n){var e=Ko(n);return e="function"==typeof e?e:t,hi(yr(n,1,Hu,!0),t,e)}));function su(t){if(!t||!t.length)return[];var n=0;return t=kn(t,(function(t){if(Hu(t))return n=_e(t.length,n),!0})),Gn(n,(function(n){return In(t,Yn(n))}))}function au(n,e){if(!n||!n.length)return[];var r=su(n);return null==e?r:In(r,(function(n){return jn(e,t,n)}))}var cu=Hr((function(t,n){return Hu(t)?fr(t,n):[]})),hu=Hr((function(t){return vi(kn(t,Hu))})),fu=Hr((function(n){var e=Ko(n);return Hu(e)&&(e=t),vi(kn(n,Hu),ao(e,2))})),lu=Hr((function(n){var e=Ko(n);return e="function"==typeof e?e:t,vi(kn(n,Hu),t,e)})),du=Hr(su),pu=Hr((function(n){var e=n.length,r=e>1?n[e-1]:t;return r="function"==typeof r?(n.pop(),r):t,au(n,r)}));function vu(t){var n=Be(t);return n.__chain__=!0,n}function gu(t,n){return n(t)}var yu=eo((function(n){var e=n.length,r=e?n[0]:0,i=this.__wrapped__,o=function(t){return ur(t,n)};return!(e>1||this.__actions__.length)&&i instanceof Ye&&mo(r)?((i=i.slice(r,+r+(e?1:0))).__actions__.push({func:gu,args:[o],thisArg:t}),new Xe(i,this.__chain__).thru((function(n){return e&&!n.length&&n.push(t),n}))):this.thru(o)})),_u=Ti((function(t,n,e){Pt.call(t,e)?++t[e]:or(t,e,1)})),mu=Li(qo),wu=Li(Wo);function bu(t,n){return(Wu(t)?On:lr)(t,ao(n,3))}function xu(t,n){return(Wu(t)?Mn:dr)(t,ao(n,3))}var Eu=Ti((function(t,n,e){Pt.call(t,e)?t[e].push(n):or(t,e,[n])})),ju=Hr((function(t,n,e){var r=-1,i="function"==typeof n,o=Zu(t)?xt(t.length):[];return lr(t,(function(t){o[++r]=i?jn(n,t,e):Cr(t,n,e)})),o})),Au=Ti((function(t,n,e){or(t,e,n)}));function Ou(t,n){return(Wu(t)?In:Fr)(t,ao(n,3))}var Mu=Ti((function(t,n,e){t[e?0:1].push(n)}),(function(){return[[],[]]})),Su=Hr((function(t,n){if(null==t)return[];var e=n.length;return e>1&&wo(t,n[0],n[1])?n=[]:e>2&&wo(n[0],n[1],n[2])&&(n=[n[0]]),Yr(t,yr(n,1),[])})),ku=pn||function(){return ln.Date.now()};function Cu(n,e,r){return e=r?t:e,e=n&&null==e?n.length:e,Qi(n,s,t,t,t,t,e)}function Tu(e,r){var i;if("function"!=typeof r)throw new Ct(n);return e=ys(e),function(){return--e>0&&(i=r.apply(this,arguments)),e<=1&&(r=t),i}}var Iu=Hr((function(t,n,e){var r=1;if(e.length){var i=se(e,so(Iu));r|=o}return Qi(t,r,n,e,i)})),Nu=Hr((function(t,n,e){var r=3;if(e.length){var i=se(e,so(Nu));r|=o}return Qi(n,r,t,e,i)}));function Ru(e,r,i){var o,u,s,a,c,h,f=0,l=!1,d=!1,p=!0;if("function"!=typeof e)throw new Ct(n);function v(n){var r=o,i=u;return o=u=t,f=n,a=e.apply(i,r)}function g(n){var e=n-h;return h===t||e>=r||e<0||d&&n-f>=s}function y(){var t=ku();if(g(t))return _(t);c=To(y,function(t){var n=r-(t-h);return d?me(n,s-(t-f)):n}(t))}function _(n){return c=t,p&&o?v(n):(o=u=t,a)}function m(){var n=ku(),e=g(n);if(o=arguments,u=this,h=n,e){if(c===t)return function(t){return f=t,c=To(y,r),l?v(t):a}(h);if(d)return xi(c),c=To(y,r),v(h)}return c===t&&(c=To(y,r)),a}return r=ms(r)||0,rs(i)&&(l=!!i.leading,s=(d="maxWait"in i)?_e(ms(i.maxWait)||0,r):s,p="trailing"in i?!!i.trailing:p),m.cancel=function(){c!==t&&xi(c),f=0,o=h=u=c=t},m.flush=function(){return c===t?a:_(ku())},m}var zu=Hr((function(t,n){return hr(t,1,n)})),Pu=Hr((function(t,n,e){return hr(t,ms(n)||0,e)}));function Du(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Ct(n);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var u=t.apply(this,n);return r.cache=o.set(i,u)||o,u};return r.cache=new(Du.Cache||We),r}function Lu(t){if("function"!=typeof t)throw new Ct(n);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}Du.Cache=We;var Fu=wi((function(t,n){var e=(n=1==n.length&&Wu(n[0])?In(n[0],Hn(ao())):In(yr(n,1),Hn(ao()))).length;return Hr((function(r){for(var i=-1,o=me(r.length,e);++i<o;)r[i]=n[i].call(this,r[i]);return jn(t,this,r)}))})),Bu=Hr((function(n,e){var r=se(e,so(Bu));return Qi(n,o,t,e,r)})),$u=Hr((function(n,e){var r=se(e,so($u));return Qi(n,u,t,e,r)})),Vu=eo((function(n,e){return Qi(n,a,t,t,t,e)}));function Xu(t,n){return t===n||t!=t&&n!=n}var Yu=qi(Or),Uu=qi((function(t,n){return t>=n})),qu=Tr(function(){return arguments}())?Tr:function(t){return is(t)&&Pt.call(t,"callee")&&!Zt.call(t,"callee")},Wu=xt.isArray,Gu=_n?Hn(_n):function(t){return is(t)&&Ar(t)==C};function Zu(t){return null!=t&&es(t.length)&&!ts(t)}function Hu(t){return is(t)&&Zu(t)}var Qu=pe||ma,Ju=mn?Hn(mn):function(t){return is(t)&&Ar(t)==y};function Ku(t){if(!is(t))return!1;var n=Ar(t);return n==_||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!ss(t)}function ts(t){if(!rs(t))return!1;var n=Ar(t);return n==m||n==w||"[object AsyncFunction]"==n||"[object Proxy]"==n}function ns(t){return"number"==typeof t&&t==ys(t)}function es(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=h}function rs(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function is(t){return null!=t&&"object"==typeof t}var os=wn?Hn(wn):function(t){return is(t)&&vo(t)==b};function us(t){return"number"==typeof t||is(t)&&Ar(t)==x}function ss(t){if(!is(t)||Ar(t)!=E)return!1;var n=Wt(t);if(null===n)return!0;var e=Pt.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&zt.call(e)==Bt}var as=bn?Hn(bn):function(t){return is(t)&&Ar(t)==A},cs=xn?Hn(xn):function(t){return is(t)&&vo(t)==O};function hs(t){return"string"==typeof t||!Wu(t)&&is(t)&&Ar(t)==M}function fs(t){return"symbol"==typeof t||is(t)&&Ar(t)==S}var ls=En?Hn(En):function(t){return is(t)&&es(t.length)&&!!on[Ar(t)]},ds=qi(Lr),ps=qi((function(t,n){return t<=n}));function vs(t){if(!t)return[];if(Zu(t))return hs(t)?he(t):ki(t);if(sn&&t[sn])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[sn]());var n=vo(t);return(n==b?oe:n==O?ae:Xs)(t)}function gs(t){return t?(t=ms(t))===c||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ys(t){var n=gs(t),e=n%1;return n==n?e?n-e:n:0}function _s(t){return t?sr(ys(t),0,l):0}function ms(t){if("number"==typeof t)return t;if(fs(t))return f;if(rs(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=rs(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=Zn(t);var e=dt.test(t);return e||vt.test(t)?cn(t.slice(2),e?2:8):lt.test(t)?f:+t}function ws(t){return Ci(t,zs(t))}function bs(t){return null==t?"":ci(t)}var xs=Ii((function(t,n){if(jo(n)||Zu(n))Ci(n,Rs(n),t);else for(var e in n)Pt.call(n,e)&&nr(t,e,n[e])})),Es=Ii((function(t,n){Ci(n,zs(n),t)})),js=Ii((function(t,n,e,r){Ci(n,zs(n),t,r)})),As=Ii((function(t,n,e,r){Ci(n,Rs(n),t,r)})),Os=eo(ur),Ms=Hr((function(n,e){n=Mt(n);var r=-1,i=e.length,o=i>2?e[2]:t;for(o&&wo(e[0],e[1],o)&&(i=1);++r<i;)for(var u=e[r],s=zs(u),a=-1,c=s.length;++a<c;){var h=s[a],f=n[h];(f===t||Xu(f,Nt[h])&&!Pt.call(n,h))&&(n[h]=u[h])}return n})),Ss=Hr((function(n){return n.push(t,Ki),jn(Ds,t,n)}));function ks(n,e,r){var i=null==n?t:Er(n,e);return i===t?r:i}function Cs(t,n){return null!=t&&go(t,n,Sr)}var Ts=$i((function(t,n,e){null!=n&&"function"!=typeof n.toString&&(n=Ft.call(n)),t[n]=e}),ra(ua)),Is=$i((function(t,n,e){null!=n&&"function"!=typeof n.toString&&(n=Ft.call(n)),Pt.call(t,n)?t[n].push(e):t[n]=[e]}),ao),Ns=Hr(Cr);function Rs(t){return Zu(t)?He(t):Pr(t)}function zs(t){return Zu(t)?He(t,!0):Dr(t)}var Ps=Ii((function(t,n,e){Vr(t,n,e)})),Ds=Ii((function(t,n,e,r){Vr(t,n,e,r)})),Ls=eo((function(t,n){var e={};if(null==t)return e;var r=!1;n=In(n,(function(n){return n=mi(n,t),r||(r=n.length>1),n})),Ci(t,io(t),e),r&&(e=ar(e,7,to));for(var i=n.length;i--;)fi(e,n[i]);return e})),Fs=eo((function(t,n){return null==t?{}:function(t,n){return Ur(t,n,(function(n,e){return Cs(t,e)}))}(t,n)}));function Bs(t,n){if(null==t)return{};var e=In(io(t),(function(t){return[t]}));return n=ao(n),Ur(t,e,(function(t,e){return n(t,e[0])}))}var $s=Hi(Rs),Vs=Hi(zs);function Xs(t){return null==t?[]:Qn(t,Rs(t))}var Ys=Pi((function(t,n,e){return n=n.toLowerCase(),t+(e?Us(n):n)}));function Us(t){return Ks(bs(t).toLowerCase())}function qs(t){return(t=bs(t))&&t.replace(yt,ne).replace(Qt,"")}var Ws=Pi((function(t,n,e){return t+(e?"-":"")+n.toLowerCase()})),Gs=Pi((function(t,n,e){return t+(e?" ":"")+n.toLowerCase()})),Zs=zi("toLowerCase"),Hs=Pi((function(t,n,e){return t+(e?"_":"")+n.toLowerCase()})),Qs=Pi((function(t,n,e){return t+(e?" ":"")+Ks(n)})),Js=Pi((function(t,n,e){return t+(e?" ":"")+n.toUpperCase()})),Ks=zi("toUpperCase");function ta(n,e,r){return n=bs(n),(e=r?t:e)===t?function(t){return nn.test(t)}(n)?function(t){return t.match(Kt)||[]}(n):function(t){return t.match(st)||[]}(n):n.match(e)||[]}var na=Hr((function(n,e){try{return jn(n,t,e)}catch(Fl){return Ku(Fl)?Fl:new jt(Fl)}})),ea=eo((function(t,n){return On(n,(function(n){n=Bo(n),or(t,n,Iu(t[n],t))})),t}));function ra(t){return function(){return t}}var ia=Fi(),oa=Fi(!0);function ua(t){return t}function sa(t){return zr("function"==typeof t?t:ar(t,1))}var aa=Hr((function(t,n){return function(e){return Cr(e,t,n)}})),ca=Hr((function(t,n){return function(e){return Cr(t,e,n)}}));function ha(t,n,e){var r=Rs(n),i=xr(n,r);null!=e||rs(n)&&(i.length||!r.length)||(e=n,n=t,t=this,i=xr(n,Rs(n)));var o=!(rs(e)&&"chain"in e&&!e.chain),u=ts(t);return On(i,(function(e){var r=n[e];t[e]=r,u&&(t.prototype[e]=function(){var n=this.__chain__;if(o||n){var e=t(this.__wrapped__);return(e.__actions__=ki(this.__actions__)).push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,Nn([this.value()],arguments))})})),t}function fa(){}var la=Xi(In),da=Xi(Sn),pa=Xi(Pn);function va(t){return bo(t)?Yn(Bo(t)):function(t){return function(n){return Er(n,t)}}(t)}var ga=Ui(),ya=Ui(!0);function _a(){return[]}function ma(){return!1}var wa,ba=Vi((function(t,n){return t+n}),0),xa=Gi("ceil"),Ea=Vi((function(t,n){return t/n}),1),ja=Gi("floor"),Aa=Vi((function(t,n){return t*n}),1),Oa=Gi("round"),Ma=Vi((function(t,n){return t-n}),0);return Be.after=function(t,e){if("function"!=typeof e)throw new Ct(n);return t=ys(t),function(){if(--t<1)return e.apply(this,arguments)}},Be.ary=Cu,Be.assign=xs,Be.assignIn=Es,Be.assignInWith=js,Be.assignWith=As,Be.at=Os,Be.before=Tu,Be.bind=Iu,Be.bindAll=ea,Be.bindKey=Nu,Be.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Wu(t)?t:[t]},Be.chain=vu,Be.chunk=function(n,e,r){e=(r?wo(n,e,r):e===t)?1:_e(ys(e),0);var i=null==n?0:n.length;if(!i||e<1)return[];for(var o=0,u=0,s=xt(yn(i/e));o<i;)s[u++]=ri(n,o,o+=e);return s},Be.compact=function(t){for(var n=-1,e=null==t?0:t.length,r=0,i=[];++n<e;){var o=t[n];o&&(i[r++]=o)}return i},Be.concat=function(){var t=arguments.length;if(!t)return[];for(var n=xt(t-1),e=arguments[0],r=t;r--;)n[r-1]=arguments[r];return Nn(Wu(e)?ki(e):[e],yr(n,1))},Be.cond=function(t){var e=null==t?0:t.length,r=ao();return t=e?In(t,(function(t){if("function"!=typeof t[1])throw new Ct(n);return[r(t[0]),t[1]]})):[],Hr((function(n){for(var r=-1;++r<e;){var i=t[r];if(jn(i[0],this,n))return jn(i[1],this,n)}}))},Be.conforms=function(t){return function(t){var n=Rs(t);return function(e){return cr(e,t,n)}}(ar(t,1))},Be.constant=ra,Be.countBy=_u,Be.create=function(t,n){var e=$e(t);return null==n?e:ir(e,n)},Be.curry=function n(e,r,i){var o=Qi(e,8,t,t,t,t,t,r=i?t:r);return o.placeholder=n.placeholder,o},Be.curryRight=function n(e,r,o){var u=Qi(e,i,t,t,t,t,t,r=o?t:r);return u.placeholder=n.placeholder,u},Be.debounce=Ru,Be.defaults=Ms,Be.defaultsDeep=Ss,Be.defer=zu,Be.delay=Pu,Be.difference=Xo,Be.differenceBy=Yo,Be.differenceWith=Uo,Be.drop=function(n,e,r){var i=null==n?0:n.length;return i?ri(n,(e=r||e===t?1:ys(e))<0?0:e,i):[]},Be.dropRight=function(n,e,r){var i=null==n?0:n.length;return i?ri(n,0,(e=i-(e=r||e===t?1:ys(e)))<0?0:e):[]},Be.dropRightWhile=function(t,n){return t&&t.length?di(t,ao(n,3),!0,!0):[]},Be.dropWhile=function(t,n){return t&&t.length?di(t,ao(n,3),!0):[]},Be.fill=function(n,e,r,i){var o=null==n?0:n.length;return o?(r&&"number"!=typeof r&&wo(n,e,r)&&(r=0,i=o),function(n,e,r,i){var o=n.length;for((r=ys(r))<0&&(r=-r>o?0:o+r),(i=i===t||i>o?o:ys(i))<0&&(i+=o),i=r>i?0:_s(i);r<i;)n[r++]=e;return n}(n,e,r,i)):[]},Be.filter=function(t,n){return(Wu(t)?kn:gr)(t,ao(n,3))},Be.flatMap=function(t,n){return yr(Ou(t,n),1)},Be.flatMapDeep=function(t,n){return yr(Ou(t,n),c)},Be.flatMapDepth=function(n,e,r){return r=r===t?1:ys(r),yr(Ou(n,e),r)},Be.flatten=Go,Be.flattenDeep=function(t){return null!=t&&t.length?yr(t,c):[]},Be.flattenDepth=function(n,e){return null!=n&&n.length?yr(n,e=e===t?1:ys(e)):[]},Be.flip=function(t){return Qi(t,512)},Be.flow=ia,Be.flowRight=oa,Be.fromPairs=function(t){for(var n=-1,e=null==t?0:t.length,r={};++n<e;){var i=t[n];r[i[0]]=i[1]}return r},Be.functions=function(t){return null==t?[]:xr(t,Rs(t))},Be.functionsIn=function(t){return null==t?[]:xr(t,zs(t))},Be.groupBy=Eu,Be.initial=function(t){return null!=t&&t.length?ri(t,0,-1):[]},Be.intersection=Ho,Be.intersectionBy=Qo,Be.intersectionWith=Jo,Be.invert=Ts,Be.invertBy=Is,Be.invokeMap=ju,Be.iteratee=sa,Be.keyBy=Au,Be.keys=Rs,Be.keysIn=zs,Be.map=Ou,Be.mapKeys=function(t,n){var e={};return n=ao(n,3),wr(t,(function(t,r,i){or(e,n(t,r,i),t)})),e},Be.mapValues=function(t,n){var e={};return n=ao(n,3),wr(t,(function(t,r,i){or(e,r,n(t,r,i))})),e},Be.matches=function(t){return Br(ar(t,1))},Be.matchesProperty=function(t,n){return $r(t,ar(n,1))},Be.memoize=Du,Be.merge=Ps,Be.mergeWith=Ds,Be.method=aa,Be.methodOf=ca,Be.mixin=ha,Be.negate=Lu,Be.nthArg=function(t){return t=ys(t),Hr((function(n){return Xr(n,t)}))},Be.omit=Ls,Be.omitBy=function(t,n){return Bs(t,Lu(ao(n)))},Be.once=function(t){return Tu(2,t)},Be.orderBy=function(n,e,r,i){return null==n?[]:(Wu(e)||(e=null==e?[]:[e]),Wu(r=i?t:r)||(r=null==r?[]:[r]),Yr(n,e,r))},Be.over=la,Be.overArgs=Fu,Be.overEvery=da,Be.overSome=pa,Be.partial=Bu,Be.partialRight=$u,Be.partition=Mu,Be.pick=Fs,Be.pickBy=Bs,Be.property=va,Be.propertyOf=function(n){return function(e){return null==n?t:Er(n,e)}},Be.pull=tu,Be.pullAll=nu,Be.pullAllBy=function(t,n,e){return t&&t.length&&n&&n.length?qr(t,n,ao(e,2)):t},Be.pullAllWith=function(n,e,r){return n&&n.length&&e&&e.length?qr(n,e,t,r):n},Be.pullAt=eu,Be.range=ga,Be.rangeRight=ya,Be.rearg=Vu,Be.reject=function(t,n){return(Wu(t)?kn:gr)(t,Lu(ao(n,3)))},Be.remove=function(t,n){var e=[];if(!t||!t.length)return e;var r=-1,i=[],o=t.length;for(n=ao(n,3);++r<o;){var u=t[r];n(u,r,t)&&(e.push(u),i.push(r))}return Wr(t,i),e},Be.rest=function(e,r){if("function"!=typeof e)throw new Ct(n);return Hr(e,r=r===t?r:ys(r))},Be.reverse=ru,Be.sampleSize=function(n,e,r){return e=(r?wo(n,e,r):e===t)?1:ys(e),(Wu(n)?Je:Jr)(n,e)},Be.set=function(t,n,e){return null==t?t:Kr(t,n,e)},Be.setWith=function(n,e,r,i){return i="function"==typeof i?i:t,null==n?n:Kr(n,e,r,i)},Be.shuffle=function(t){return(Wu(t)?Ke:ei)(t)},Be.slice=function(n,e,r){var i=null==n?0:n.length;return i?(r&&"number"!=typeof r&&wo(n,e,r)?(e=0,r=i):(e=null==e?0:ys(e),r=r===t?i:ys(r)),ri(n,e,r)):[]},Be.sortBy=Su,Be.sortedUniq=function(t){return t&&t.length?si(t):[]},Be.sortedUniqBy=function(t,n){return t&&t.length?si(t,ao(n,2)):[]},Be.split=function(n,e,r){return r&&"number"!=typeof r&&wo(n,e,r)&&(e=r=t),(r=r===t?l:r>>>0)?(n=bs(n))&&("string"==typeof e||null!=e&&!as(e))&&!(e=ci(e))&&ie(n)?bi(he(n),0,r):n.split(e,r):[]},Be.spread=function(t,e){if("function"!=typeof t)throw new Ct(n);return e=null==e?0:_e(ys(e),0),Hr((function(n){var r=n[e],i=bi(n,0,e);return r&&Nn(i,r),jn(t,this,i)}))},Be.tail=function(t){var n=null==t?0:t.length;return n?ri(t,1,n):[]},Be.take=function(n,e,r){return n&&n.length?ri(n,0,(e=r||e===t?1:ys(e))<0?0:e):[]},Be.takeRight=function(n,e,r){var i=null==n?0:n.length;return i?ri(n,(e=i-(e=r||e===t?1:ys(e)))<0?0:e,i):[]},Be.takeRightWhile=function(t,n){return t&&t.length?di(t,ao(n,3),!1,!0):[]},Be.takeWhile=function(t,n){return t&&t.length?di(t,ao(n,3)):[]},Be.tap=function(t,n){return n(t),t},Be.throttle=function(t,e,r){var i=!0,o=!0;if("function"!=typeof t)throw new Ct(n);return rs(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),Ru(t,e,{leading:i,maxWait:e,trailing:o})},Be.thru=gu,Be.toArray=vs,Be.toPairs=$s,Be.toPairsIn=Vs,Be.toPath=function(t){return Wu(t)?In(t,Bo):fs(t)?[t]:ki(Fo(bs(t)))},Be.toPlainObject=ws,Be.transform=function(t,n,e){var r=Wu(t),i=r||Qu(t)||ls(t);if(n=ao(n,4),null==e){var o=t&&t.constructor;e=i?r?new o:[]:rs(t)&&ts(o)?$e(Wt(t)):{}}return(i?On:wr)(t,(function(t,r,i){return n(e,t,r,i)})),e},Be.unary=function(t){return Cu(t,1)},Be.union=iu,Be.unionBy=ou,Be.unionWith=uu,Be.uniq=function(t){return t&&t.length?hi(t):[]},Be.uniqBy=function(t,n){return t&&t.length?hi(t,ao(n,2)):[]},Be.uniqWith=function(n,e){return e="function"==typeof e?e:t,n&&n.length?hi(n,t,e):[]},Be.unset=function(t,n){return null==t||fi(t,n)},Be.unzip=su,Be.unzipWith=au,Be.update=function(t,n,e){return null==t?t:li(t,n,_i(e))},Be.updateWith=function(n,e,r,i){return i="function"==typeof i?i:t,null==n?n:li(n,e,_i(r),i)},Be.values=Xs,Be.valuesIn=function(t){return null==t?[]:Qn(t,zs(t))},Be.without=cu,Be.words=ta,Be.wrap=function(t,n){return Bu(_i(n),t)},Be.xor=hu,Be.xorBy=fu,Be.xorWith=lu,Be.zip=du,Be.zipObject=function(t,n){return gi(t||[],n||[],nr)},Be.zipObjectDeep=function(t,n){return gi(t||[],n||[],Kr)},Be.zipWith=pu,Be.entries=$s,Be.entriesIn=Vs,Be.extend=Es,Be.extendWith=js,ha(Be,Be),Be.add=ba,Be.attempt=na,Be.camelCase=Ys,Be.capitalize=Us,Be.ceil=xa,Be.clamp=function(n,e,r){return r===t&&(r=e,e=t),r!==t&&(r=(r=ms(r))==r?r:0),e!==t&&(e=(e=ms(e))==e?e:0),sr(ms(n),e,r)},Be.clone=function(t){return ar(t,4)},Be.cloneDeep=function(t){return ar(t,5)},Be.cloneDeepWith=function(n,e){return ar(n,5,e="function"==typeof e?e:t)},Be.cloneWith=function(n,e){return ar(n,4,e="function"==typeof e?e:t)},Be.conformsTo=function(t,n){return null==n||cr(t,n,Rs(n))},Be.deburr=qs,Be.defaultTo=function(t,n){return null==t||t!=t?n:t},Be.divide=Ea,Be.endsWith=function(n,e,r){n=bs(n),e=ci(e);var i=n.length,o=r=r===t?i:sr(ys(r),0,i);return(r-=e.length)>=0&&n.slice(r,o)==e},Be.eq=Xu,Be.escape=function(t){return(t=bs(t))&&W.test(t)?t.replace(U,ee):t},Be.escapeRegExp=function(t){return(t=bs(t))&&nt.test(t)?t.replace(tt,"\\$&"):t},Be.every=function(n,e,r){var i=Wu(n)?Sn:pr;return r&&wo(n,e,r)&&(e=t),i(n,ao(e,3))},Be.find=mu,Be.findIndex=qo,Be.findKey=function(t,n){return Ln(t,ao(n,3),wr)},Be.findLast=wu,Be.findLastIndex=Wo,Be.findLastKey=function(t,n){return Ln(t,ao(n,3),br)},Be.floor=ja,Be.forEach=bu,Be.forEachRight=xu,Be.forIn=function(t,n){return null==t?t:_r(t,ao(n,3),zs)},Be.forInRight=function(t,n){return null==t?t:mr(t,ao(n,3),zs)},Be.forOwn=function(t,n){return t&&wr(t,ao(n,3))},Be.forOwnRight=function(t,n){return t&&br(t,ao(n,3))},Be.get=ks,Be.gt=Yu,Be.gte=Uu,Be.has=function(t,n){return null!=t&&go(t,n,Mr)},Be.hasIn=Cs,Be.head=Zo,Be.identity=ua,Be.includes=function(t,n,e,r){t=Zu(t)?t:Xs(t),e=e&&!r?ys(e):0;var i=t.length;return e<0&&(e=_e(i+e,0)),hs(t)?e<=i&&t.indexOf(n,e)>-1:!!i&&Bn(t,n,e)>-1},Be.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:ys(e);return i<0&&(i=_e(r+i,0)),Bn(t,n,i)},Be.inRange=function(n,e,r){return e=gs(e),r===t?(r=e,e=0):r=gs(r),function(t,n,e){return t>=me(n,e)&&t<_e(n,e)}(n=ms(n),e,r)},Be.invoke=Ns,Be.isArguments=qu,Be.isArray=Wu,Be.isArrayBuffer=Gu,Be.isArrayLike=Zu,Be.isArrayLikeObject=Hu,Be.isBoolean=function(t){return!0===t||!1===t||is(t)&&Ar(t)==g},Be.isBuffer=Qu,Be.isDate=Ju,Be.isElement=function(t){return is(t)&&1===t.nodeType&&!ss(t)},Be.isEmpty=function(t){if(null==t)return!0;if(Zu(t)&&(Wu(t)||"string"==typeof t||"function"==typeof t.splice||Qu(t)||ls(t)||qu(t)))return!t.length;var n=vo(t);if(n==b||n==O)return!t.size;if(jo(t))return!Pr(t).length;for(var e in t)if(Pt.call(t,e))return!1;return!0},Be.isEqual=function(t,n){return Ir(t,n)},Be.isEqualWith=function(n,e,r){var i=(r="function"==typeof r?r:t)?r(n,e):t;return i===t?Ir(n,e,t,r):!!i},Be.isError=Ku,Be.isFinite=function(t){return"number"==typeof t&&ve(t)},Be.isFunction=ts,Be.isInteger=ns,Be.isLength=es,Be.isMap=os,Be.isMatch=function(t,n){return t===n||Nr(t,n,ho(n))},Be.isMatchWith=function(n,e,r){return r="function"==typeof r?r:t,Nr(n,e,ho(e),r)},Be.isNaN=function(t){return us(t)&&t!=+t},Be.isNative=function(t){if(Eo(t))throw new jt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(t)},Be.isNil=function(t){return null==t},Be.isNull=function(t){return null===t},Be.isNumber=us,Be.isObject=rs,Be.isObjectLike=is,Be.isPlainObject=ss,Be.isRegExp=as,Be.isSafeInteger=function(t){return ns(t)&&t>=-9007199254740991&&t<=h},Be.isSet=cs,Be.isString=hs,Be.isSymbol=fs,Be.isTypedArray=ls,Be.isUndefined=function(n){return n===t},Be.isWeakMap=function(t){return is(t)&&vo(t)==k},Be.isWeakSet=function(t){return is(t)&&"[object WeakSet]"==Ar(t)},Be.join=function(t,n){return null==t?"":ge.call(t,n)},Be.kebabCase=Ws,Be.last=Ko,Be.lastIndexOf=function(n,e,r){var i=null==n?0:n.length;if(!i)return-1;var o=i;return r!==t&&(o=(o=ys(r))<0?_e(i+o,0):me(o,i-1)),e==e?function(t,n,e){for(var r=e+1;r--;)if(t[r]===n)return r;return r}(n,e,o):Fn(n,Vn,o,!0)},Be.lowerCase=Gs,Be.lowerFirst=Zs,Be.lt=ds,Be.lte=ps,Be.max=function(n){return n&&n.length?vr(n,ua,Or):t},Be.maxBy=function(n,e){return n&&n.length?vr(n,ao(e,2),Or):t},Be.mean=function(t){return Xn(t,ua)},Be.meanBy=function(t,n){return Xn(t,ao(n,2))},Be.min=function(n){return n&&n.length?vr(n,ua,Lr):t},Be.minBy=function(n,e){return n&&n.length?vr(n,ao(e,2),Lr):t},Be.stubArray=_a,Be.stubFalse=ma,Be.stubObject=function(){return{}},Be.stubString=function(){return""},Be.stubTrue=function(){return!0},Be.multiply=Aa,Be.nth=function(n,e){return n&&n.length?Xr(n,ys(e)):t},Be.noConflict=function(){return ln._===this&&(ln._=$t),this},Be.noop=fa,Be.now=ku,Be.pad=function(t,n,e){t=bs(t);var r=(n=ys(n))?ce(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return Yi(Dn(i),e)+t+Yi(yn(i),e)},Be.padEnd=function(t,n,e){t=bs(t);var r=(n=ys(n))?ce(t):0;return n&&r<n?t+Yi(n-r,e):t},Be.padStart=function(t,n,e){t=bs(t);var r=(n=ys(n))?ce(t):0;return n&&r<n?Yi(n-r,e)+t:t},Be.parseInt=function(t,n,e){return e||null==n?n=0:n&&(n=+n),be(bs(t).replace(et,""),n||0)},Be.random=function(n,e,r){if(r&&"boolean"!=typeof r&&wo(n,e,r)&&(e=r=t),r===t&&("boolean"==typeof e?(r=e,e=t):"boolean"==typeof n&&(r=n,n=t)),n===t&&e===t?(n=0,e=1):(n=gs(n),e===t?(e=n,n=0):e=gs(e)),n>e){var i=n;n=e,e=i}if(r||n%1||e%1){var o=xe();return me(n+o*(e-n+an("1e-"+((o+"").length-1))),e)}return Gr(n,e)},Be.reduce=function(t,n,e){var r=Wu(t)?Rn:qn,i=arguments.length<3;return r(t,ao(n,4),e,i,lr)},Be.reduceRight=function(t,n,e){var r=Wu(t)?zn:qn,i=arguments.length<3;return r(t,ao(n,4),e,i,dr)},Be.repeat=function(n,e,r){return e=(r?wo(n,e,r):e===t)?1:ys(e),Zr(bs(n),e)},Be.replace=function(){var t=arguments,n=bs(t[0]);return t.length<3?n:n.replace(t[1],t[2])},Be.result=function(n,e,r){var i=-1,o=(e=mi(e,n)).length;for(o||(o=1,n=t);++i<o;){var u=null==n?t:n[Bo(e[i])];u===t&&(i=o,u=r),n=ts(u)?u.call(n):u}return n},Be.round=Oa,Be.runInContext=rt,Be.sample=function(t){return(Wu(t)?Qe:Qr)(t)},Be.size=function(t){if(null==t)return 0;if(Zu(t))return hs(t)?ce(t):t.length;var n=vo(t);return n==b||n==O?t.size:Pr(t).length},Be.snakeCase=Hs,Be.some=function(n,e,r){var i=Wu(n)?Pn:ii;return r&&wo(n,e,r)&&(e=t),i(n,ao(e,3))},Be.sortedIndex=function(t,n){return oi(t,n)},Be.sortedIndexBy=function(t,n,e){return ui(t,n,ao(e,2))},Be.sortedIndexOf=function(t,n){var e=null==t?0:t.length;if(e){var r=oi(t,n);if(r<e&&Xu(t[r],n))return r}return-1},Be.sortedLastIndex=function(t,n){return oi(t,n,!0)},Be.sortedLastIndexBy=function(t,n,e){return ui(t,n,ao(e,2),!0)},Be.sortedLastIndexOf=function(t,n){if(null!=t&&t.length){var e=oi(t,n,!0)-1;if(Xu(t[e],n))return e}return-1},Be.startCase=Qs,Be.startsWith=function(t,n,e){return t=bs(t),e=null==e?0:sr(ys(e),0,t.length),n=ci(n),t.slice(e,e+n.length)==n},Be.subtract=Ma,Be.sum=function(t){return t&&t.length?Wn(t,ua):0},Be.sumBy=function(t,n){return t&&t.length?Wn(t,ao(n,2)):0},Be.template=function(n,e,r){var i=Be.templateSettings;r&&wo(n,e,r)&&(e=t),n=bs(n),e=js({},e,i,Ji);var o,u,s=js({},e.imports,i.imports,Ji),a=Rs(s),c=Qn(s,a),h=0,f=e.interpolate||_t,l="__p += '",d=St((e.escape||_t).source+"|"+f.source+"|"+(f===H?ht:_t).source+"|"+(e.evaluate||_t).source+"|$","g"),p="//# sourceURL="+(Pt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rn+"]")+"\n";n.replace(d,(function(t,e,r,i,s,a){return r||(r=i),l+=n.slice(h,a).replace(mt,re),e&&(o=!0,l+="' +\n__e("+e+") +\n'"),s&&(u=!0,l+="';\n"+s+";\n__p += '"),r&&(l+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),h=a+t.length,t})),l+="';\n";var v=Pt.call(e,"variable")&&e.variable;if(v){if(at.test(v))throw new jt("Invalid `variable` option passed into `_.template`")}else l="with (obj) {\n"+l+"\n}\n";l=(u?l.replace($,""):l).replace(V,"$1").replace(X,"$1;"),l="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}";var g=na((function(){return At(a,p+"return "+l).apply(t,c)}));if(g.source=l,Ku(g))throw g;return g},Be.times=function(t,n){if((t=ys(t))<1||t>h)return[];var e=l,r=me(t,l);n=ao(n),t-=l;for(var i=Gn(r,n);++e<t;)n(e);return i},Be.toFinite=gs,Be.toInteger=ys,Be.toLength=_s,Be.toLower=function(t){return bs(t).toLowerCase()},Be.toNumber=ms,Be.toSafeInteger=function(t){return t?sr(ys(t),-9007199254740991,h):0===t?t:0},Be.toString=bs,Be.toUpper=function(t){return bs(t).toUpperCase()},Be.trim=function(n,e,r){if((n=bs(n))&&(r||e===t))return Zn(n);if(!n||!(e=ci(e)))return n;var i=he(n),o=he(e);return bi(i,Kn(i,o),te(i,o)+1).join("")},Be.trimEnd=function(n,e,r){if((n=bs(n))&&(r||e===t))return n.slice(0,fe(n)+1);if(!n||!(e=ci(e)))return n;var i=he(n);return bi(i,0,te(i,he(e))+1).join("")},Be.trimStart=function(n,e,r){if((n=bs(n))&&(r||e===t))return n.replace(et,"");if(!n||!(e=ci(e)))return n;var i=he(n);return bi(i,Kn(i,he(e))).join("")},Be.truncate=function(n,e){var r=30,i="...";if(rs(e)){var o="separator"in e?e.separator:o;r="length"in e?ys(e.length):r,i="omission"in e?ci(e.omission):i}var u=(n=bs(n)).length;if(ie(n)){var s=he(n);u=s.length}if(r>=u)return n;var a=r-ce(i);if(a<1)return i;var c=s?bi(s,0,a).join(""):n.slice(0,a);if(o===t)return c+i;if(s&&(a+=c.length-a),as(o)){if(n.slice(a).search(o)){var h,f=c;for(o.global||(o=St(o.source,bs(ft.exec(o))+"g")),o.lastIndex=0;h=o.exec(f);)var l=h.index;c=c.slice(0,l===t?a:l)}}else if(n.indexOf(ci(o),a)!=a){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+i},Be.unescape=function(t){return(t=bs(t))&&q.test(t)?t.replace(Y,le):t},Be.uniqueId=function(t){var n=++Dt;return bs(t)+n},Be.upperCase=Js,Be.upperFirst=Ks,Be.each=bu,Be.eachRight=xu,Be.first=Zo,ha(Be,(wa={},wr(Be,(function(t,n){Pt.call(Be.prototype,n)||(wa[n]=t)})),wa),{chain:!1}),Be.VERSION="4.17.21",On(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Be[t].placeholder=Be})),On(["drop","take"],(function(n,e){Ye.prototype[n]=function(r){r=r===t?1:_e(ys(r),0);var i=this.__filtered__&&!e?new Ye(this):this.clone();return i.__filtered__?i.__takeCount__=me(r,i.__takeCount__):i.__views__.push({size:me(r,l),type:n+(i.__dir__<0?"Right":"")}),i},Ye.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),On(["filter","map","takeWhile"],(function(t,n){var e=n+1,r=1==e||3==e;Ye.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:ao(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}})),On(["head","last"],(function(t,n){var e="take"+(n?"Right":"");Ye.prototype[t]=function(){return this[e](1).value()[0]}})),On(["initial","tail"],(function(t,n){var e="drop"+(n?"":"Right");Ye.prototype[t]=function(){return this.__filtered__?new Ye(this):this[e](1)}})),Ye.prototype.compact=function(){return this.filter(ua)},Ye.prototype.find=function(t){return this.filter(t).head()},Ye.prototype.findLast=function(t){return this.reverse().find(t)},Ye.prototype.invokeMap=Hr((function(t,n){return"function"==typeof t?new Ye(this):this.map((function(e){return Cr(e,t,n)}))})),Ye.prototype.reject=function(t){return this.filter(Lu(ao(t)))},Ye.prototype.slice=function(n,e){n=ys(n);var r=this;return r.__filtered__&&(n>0||e<0)?new Ye(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),e!==t&&(r=(e=ys(e))<0?r.dropRight(-e):r.take(e-n)),r)},Ye.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ye.prototype.toArray=function(){return this.take(l)},wr(Ye.prototype,(function(n,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=Be[i?"take"+("last"==e?"Right":""):e],u=i||/^find/.test(e);o&&(Be.prototype[e]=function(){var e=this.__wrapped__,s=i?[1]:arguments,a=e instanceof Ye,c=s[0],h=a||Wu(e),f=function(t){var n=o.apply(Be,Nn([t],s));return i&&l?n[0]:n};h&&r&&"function"==typeof c&&1!=c.length&&(a=h=!1);var l=this.__chain__,d=!!this.__actions__.length,p=u&&!l,v=a&&!d;if(!u&&h){e=v?e:new Ye(this);var g=n.apply(e,s);return g.__actions__.push({func:gu,args:[f],thisArg:t}),new Xe(g,l)}return p&&v?n.apply(this,s):(g=this.thru(f),p?i?g.value()[0]:g.value():g)})})),On(["pop","push","shift","sort","splice","unshift"],(function(t){var n=Tt[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Be.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return n.apply(Wu(i)?i:[],t)}return this[e]((function(e){return n.apply(Wu(e)?e:[],t)}))}})),wr(Ye.prototype,(function(t,n){var e=Be[n];if(e){var r=e.name+"";Pt.call(Te,r)||(Te[r]=[]),Te[r].push({name:n,func:e})}})),Te[Bi(t,2).name]=[{name:"wrapper",func:t}],Ye.prototype.clone=function(){var t=new Ye(this.__wrapped__);return t.__actions__=ki(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ki(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ki(this.__views__),t},Ye.prototype.reverse=function(){if(this.__filtered__){var t=new Ye(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Ye.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=Wu(t),r=n<0,i=e?t.length:0,o=function(t,n,e){for(var r=-1,i=e.length;++r<i;){var o=e[r],u=o.size;switch(o.type){case"drop":t+=u;break;case"dropRight":n-=u;break;case"take":n=me(n,t+u);break;case"takeRight":t=_e(t,n-u)}}return{start:t,end:n}}(0,i,this.__views__),u=o.start,s=o.end,a=s-u,c=r?s:u-1,h=this.__iteratees__,f=h.length,l=0,d=me(a,this.__takeCount__);if(!e||!r&&i==a&&d==a)return pi(t,this.__actions__);var p=[];t:for(;a--&&l<d;){for(var v=-1,g=t[c+=n];++v<f;){var y=h[v],_=y.iteratee,m=y.type,w=_(g);if(2==m)g=w;else if(!w){if(1==m)continue t;break t}}p[l++]=g}return p},Be.prototype.at=yu,Be.prototype.chain=function(){return vu(this)},Be.prototype.commit=function(){return new Xe(this.value(),this.__chain__)},Be.prototype.next=function(){this.__values__===t&&(this.__values__=vs(this.value()));var n=this.__index__>=this.__values__.length;return{done:n,value:n?t:this.__values__[this.__index__++]}},Be.prototype.plant=function(n){for(var e,r=this;r instanceof Ve;){var i=Vo(r);i.__index__=0,i.__values__=t,e?o.__wrapped__=i:e=i;var o=i;r=r.__wrapped__}return o.__wrapped__=n,e},Be.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Ye){var e=n;return this.__actions__.length&&(e=new Ye(this)),(e=e.reverse()).__actions__.push({func:gu,args:[ru],thisArg:t}),new Xe(e,this.__chain__)}return this.thru(ru)},Be.prototype.toJSON=Be.prototype.valueOf=Be.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Be.prototype.first=Be.prototype.head,sn&&(Be.prototype[sn]=function(){return this}),Be}();pn?((pn.exports=de)._=de,dn._=de):ln._=de}.call(ni);var tl=Kf.exports;function nl(t,n){const e=function(t,n){const e=new Set,r=new Hf.Graph({directed:!0}),i=[];if(!t.hasNode(n))throw Error("node not in graph");return el(t,n,e,r,i),t.nodes().forEach((n=>{e.has(n)||el(t,n,e,r,i)})),i.forEach(((t,n)=>{r.node(t).thread=n+1<i.length?i[n+1]:i[0]})),r}(t,n);return t.edges().forEach((n=>{const r=function(t,n,e){const r=t.node(n),i=t.node(e);if(r.depth<i.depth){let n=r.thread;for(;t.node(n).depth>r.depth;){if(n===e)return 1;n=t.node(n).thread}}else if(i.depth<r.depth){let e=i.thread;for(;t.node(e).depth>i.depth;){if(e===n)return-1;e=t.node(e).thread}}return 0}(e,n.v,n.w);if(r<0){const e=t.edge(n)||{};e.reversed=!0,t.removeEdge(n),t.setEdge(n.w,n.v,e)}})),t}function el(t,n,e,r,i,o=0){if(!e.has(n)){e.add(n),i.push(n),r.setNode(n,{depth:o});t.outEdges(n).map((t=>t.w)).forEach((u=>{e.has(u)||r.setEdge(n,u,{delta:1}),el(t,u,e,r,i,o+1)}))}}var rl=function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]};const il=ei(rl);function ol(t,n){if(0===t.nodes().length)return;const e=function(t,n){const e=new Hf.Graph({directed:!0});let r=!1;for(const u of n)if("min"===u.type){r=!0;break}if(!r){const e=t.sources();n=e.length>0?[{type:"min",nodes:[e[0]]},...n]:[{type:"min",nodes:[t.nodes()[0]]},...n]}const i=new Map;let o=0;return n.forEach((t=>{if(!t.nodes||0===t.nodes.length)return;const n=""+o++;t.nodes.forEach((t=>{i.set(t,n)})),e.setNode(n,{type:t.type,nodes:t.nodes})})),t.nodes().forEach((t=>{if(!i.has(t)){const n=""+o++,r={type:"same",nodes:[t]};i.set(t,n),e.setNode(n,r)}})),t.edges().forEach((n=>{const r=i.has(n.v)?i.get(n.v):n.v,o=i.has(n.w)?i.get(n.w):n.w,u=t.node(n.v)||{},s=t.node(n.w)||{},a=e.edge(r,o)||{delta:0};r===o?(a.delta=0,e.setEdge(r,o,a)):"l"===u.direction?(a.delta=Math.max(a.delta,"l"===s.direction?1:0),e.setEdge(o,r,a)):(a.delta=Math.max(a.delta,"l"===s.direction?0:1),e.setEdge(r,o,a))})),e}(t,n);!function(t){t.sources().forEach((n=>{"0"!==n&&t.setEdge("0",n,{temp:!0,delta:0})}))}(e),nl(e,"0"),function(t){const n=t.sources(),e=new Set,r=new Set;for(t.edges().forEach((t=>{t.v===t.w&&r.add(t)}));n.length>0;){const i=n.shift();e.add(i);let o=t.node(i);o||t.setNode(i,o={}),o.rank=0;for(const n of t.inEdges(i)){const e=il((t.edge(n)||{}).delta,1);o.rank=Math.max(o.rank,t.node(n.v).rank+e)}for(const n of t.outEdges(i))r.add(n);for(const u of t.nodes())n.indexOf(u)<0&&!e.has(u)&&!t.inEdges(u).some((t=>!r.has(t)))&&n.push(u)}}(e),function(t){function n(n){const e=t.node(n),r=tl.min(t.outEdges(n).map((n=>t.node(n.w).rank-t.edge(n).delta)));void 0!==r&&(e.rank=r)}t.edges().forEach((e=>{t.edge(e).temp&&n(e.w)}))}(e),t.nodes().forEach((n=>{t.node(n)||t.setNode(n,{})})),e.nodes().forEach((n=>{const r=e.node(n);r.nodes.forEach((n=>{t.node(n).rank=r.rank}))}))}function ul(t,n,e){return function(t,n,e){let r,i,o;n.length>e.length?(r=n,i=e):(r=e,i=n);const u=[];r.forEach((n=>{i.forEach(((e,r)=>{(t.hasEdge(n,e)||t.hasEdge(e,n))&&u.push(r)}))}));let s=1;for(;s<o;)s*=2;const a=2*s-1;s-=1;const c=new Array(a);for(let f=0;f<a;f++)c[f]=0;let h=0;return u.forEach((t=>{let n=t+s;for(c[n]++;n>0;)n%2&&(h+=c[n+1]),n=Math.floor((n-1)/2),c[n]++})),h}(t,n,e)}function sl(t,n){let e=!0;for(;e;){e=!1;for(let r=0;r<n.length;++r)for(let i=0;i<n[r].length-1;++i){const o=al(t,n,r);cl(n[r],i,i+1);al(t,n,r)<o?e=!0:cl(n[r],i,i+1)}}}function al(t,n,e){let r=0;return e>0&&(r+=ul(t,n[e-1],n[e])),e+1<n.length&&(r+=ul(t,n[e],n[e+1])),r}function cl(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function hl(t){const n=Math.floor(t.length/2);if(0===t.length)return-1;if(t.length%2==1)return t[n];if(2===t.length)return(t[0]+t[1])/2;{const e=t[n-1]-t[0],r=t[t.length-1]-t[n];return(t[n-1]*r+t[n]*e)/(e+r)}}function fl(t,n,e=1,r=!1){if(e>0)for(let i=1;i<n.length;++i){const e=new Map;n[i].forEach((o=>{const u=hl(ll(t,n,i,i-1,o,r));e.set(o,u)})),dl(n[i],e)}else for(let i=n.length-2;i>=0;--i){const e=new Map;n[i].forEach((o=>{const u=hl(ll(t,n,i,i+1,o,r));e.set(o,u)})),dl(n[i],e)}}function ll(t,n,e,r,i,o=!1){const u=n[e],s=n[r],a=[];return s.forEach(((n,e)=>{t.nodeEdges(n,i).length>0&&a.push(e)})),0===a.length&&o&&u.forEach(((n,e)=>{t.nodeEdges(n,i).length>0&&a.push(e+.5)})),a.sort(((t,n)=>t-n)),a}function dl(t,n){const e=new Map(t.map(((t,n)=>[t,n])));for(let r=1;r<t.length;++r)for(let i=r;i>0;--i){let r=i-1,o=n.get(t[r]),u=n.get(t[i]);for(;-1===(o=n.get(t[r]))&&r>0;)r--;if(-1===u||-1===o)break;if(o===u&&(o=e.get(t[r]),u=e.get(t[i])),u>=o)break;[t[i],t[r]]=[t[r],t[i]]}}function pl(t,n=25){const e=function(t){const n=[];let e=t.nodes().filter((n=>0===t.node(n).rank)).concat(t.sources());return 0===e.length&&(e=t.nodes().slice(0,1)),Hf.alg.preorder(t,e).forEach((e=>{const r=t.node(e).rank;for(;r>=n.length;)n.push([]);n[r].push(e)})),n}(t);let r=e,i=0;for(;i++<n;)fl(t,e,i%2==0?1:0),sl(t,e),vl(t,e)<vl(t,r)&&(r=gl(e));return r=r.map((t=>[t])),r}function vl(t,n){let e=0;for(let r=0;r<n.length-1;++r)e+=ul(t,n[r],n[r+1]);return e}function gl(t){const n=[];for(const e of t){const t=[];n.push(t);for(const n of e)t.push(n)}return n}function yl(t,n,e,r){if(0===e.length)return;const i=e.map((e=>{const i=`__${n.v}_${n.w}_${e}`;return t.setNode(i,{rank:e,dummy:!0,data:null,direction:r}),i})),o=[n.v,...i,n.w];o.forEach(((e,r)=>{r+1<o.length&&t.setEdge(o[r],o[r+1],{source:t.node(n.v),target:t.node(n.w),data:t.edge(n).data},n.name)})),t.removeEdge(n)}function _l(){let t=[100,100],n=null,e=.5,r=function(t,n,e){return 1};const i=function(t){return t.data.value},o=function(t){return t.data?t.data.direction:"r"};function u(s,a){null===n&&u.scaleToFit(s,a),ml(s,i,o),function(t,n,e){t.nodes().forEach((n=>{const r=t.node(n);r.dy=r.value*e})),t.edges().forEach((r=>{const i=t.edge(r);i.value=n(i),i.dy=i.value*e}))}(s,i,n);const c=wl(s,a);a.forEach((n=>{let i=0;n.forEach(((n,o)=>{const u=c[o]/tl.sumBy(c)*t[1],a=e*u/5,h=u-2*a,f=tl.sumBy(n,(t=>s.node(t).dy)),l=n.map(((t,e)=>s.node(t).value&&n[e+1]?r(n[e],n[e+1],s):0)),d=Math.max(0,h-f),p=tl.sumBy(l)?d/tl.sumBy(l):0;let v=i+a;1===n.length&&(v+=(h-s.node(n[0]).dy)/2);let g=Number.MAX_VALUE;n.forEach(((t,n)=>{const e=s.node(t);e.y=v,e.spaceAbove=g,e.spaceBelow=l[n]*p,v+=e.dy+e.spaceBelow,g=e.spaceBelow,e.data&&void 0!==e.data.forceY&&(e.y=a+e.data.forceY*(h-e.dy))})),n.length>0&&(s.node(n[n.length-1]).spaceBelow=Number.MAX_VALUE),i+=u}))}));const h=function(t,n){const e=[];return n.forEach(((r,i)=>{if(i===n.length-1)return;let o=0;r.forEach((n=>{n.forEach((n=>{t.outEdges(n).forEach((n=>{const e=t.edge(n).dy,r=t.node(n.w).y-t.node(n.v).y,i=Math.abs(r)-e,u=e*e-i*i,s=u>=0?Math.sqrt(u):e;s>o&&(o=s)}))}))})),e.push(o)})),e}(s,a);!function(t,n,e,r){const i=tl.sumBy(r);let o;if(i>e)o=r.map((t=>e*t/i));else{const t=e-i;o=r.map((e=>e+t/(n.length-1)))}let u=0;n.forEach(((n,e)=>{n.forEach((n=>{n.forEach((n=>{t.node(n).x=u}))})),u+=o[e]}))}(s,a,t[0],h);const f=[];return s.nodes().forEach((t=>{const n=s.node(t);n.id=t,f.push(n)})),f}return u.scaleToFit=function(r,u){ml(r,i,o);const s=tl.sumBy(wl(r,u));s<=0?n=1:(n=t[1]/s,1!=e&&(n*=1-e))},u.size=function(n){return arguments.length?(t=n,u):t},u.separation=function(t){return arguments.length?(r=tl.isFunction(t)?t:()=>t,u):r},u.whitespace=function(t){return arguments.length?(e=t,u):e},u.scale=function(t){return arguments.length?(n=t,u):n},u}function ml(t,n,e){t.nodes().forEach((r=>{const i=tl.sumBy(t.inEdges(r),(e=>n(t.edge(e)))),o=tl.sumBy(t.outEdges(r),(e=>n(t.edge(e))));let u=t.node(r);u||t.setNode(r,u={}),u.value=Math.max(i,o),void 0===u.direction&&(u.direction=e(u)||"r")}))}function wl(t,n){if(0===n.length||0===n[0].length)return[];const e=n[0].length,r=new Array(e);for(let i=0;i<e;i++)r[i]=0;return n.forEach((n=>{n.forEach(((n,e)=>{const i=tl.sumBy(n,(n=>t.node(n).value));r[e]=Math.max(r[e],i)}))})),r}function bl(t,n){const e=t.inEdges(n),r=t.outEdges(n),i=new Map;[...e,...r].forEach((t=>{i.has(t.name)||i.set(t.name,[]),i.get(t.name).push(t)}));const o=new Map(Array.from(i.entries()).map((([e,r])=>{const i=tl.sumBy(r,(n=>t.edge(n).value));return[e,tl.sumBy(r,(e=>t.edge(e).value*function(e){if(e.v===n)return t.node(e.w).y;if(e.w===n)return t.node(e.v).y;throw new Error}(e)))/i]}))),u=Array.from(o.keys());return u.sort(),u}function xl(t,n){if(null===n.w)return 0;if(null===n.v)return 0;if(n.w===n.v)return Math.PI/2;{const e=t.node(n.v),r=t.node(n.w);return Math.atan2(r.y-e.y,r.x-e.x)}}function El(t,n=!0){return function(e,r){const i=xl(t,e),o=xl(t,r),u=n?1:-1;return e.v===r.v&&e.w===r.w?"number"==typeof e.name&&"number"==typeof r.name?e.name-r.name:"string"==typeof e.name&&"string"==typeof r.name?e.name.localeCompare(r.name):0:Math.abs(i-o)<.001?e.v&&e.w&&r.v&&r.w?e.w===r.w?-1*(t.node(e.v).y-t.node(r.v).y):e.v===r.v?-1*(t.node(e.w).y-t.node(r.w).y):0:0:u*(i-o)}}function jl(t,n,e=!0){return function(r,i){if(r.name!==i.name)return n.indexOf(r.name)-n.indexOf(i.name);const o=xl(t,r),u=xl(t,i),s=e?1:-1;return Math.abs(o-u)<.001?r.v&&r.w&&i.v&&i.w?r.w===i.w?s*(o>0?-1:1)*(t.node(r.v).y-t.node(i.v).y):r.v===i.v?s*(o>0?-1:1)*(t.node(r.w).y-t.node(i.w).y):0:0:s*(o-u)}}function Al(t,n){let e=null;for(let r=0;r<t.length;++r)if(n(t[r])){e=r;break}return e}function Ol(t,n){if(0===t.length)return;let e,r=0;for(let o=t.length-1;o>=0;--o)e=t[o].dy/2,t[o][n]-e<r&&(t[o][n]=Math.min(t[o].Rmax,r+e)),r=t[o][n]+e;let i=t[0].Rmax+t[0].dy/2;for(let o=0;o<t.length;++o)e=t[o].dy/2,t[o][n]+e>i&&(t[o][n]=Math.max(e,i-e)),i=t[o][n]-e}function Ml(t){return function(n){!function(t,n){t.nodes().forEach((e=>{const r=t.node(e);let i=0,o=0;r.outgoing.forEach((e=>{const o=t.edge(e);o.x0=r.x+n.nodeWidth/2,o.y0=r.y+i+o.dy/2,o.d0=r.direction||"r",i+=o.dy})),r.incoming.forEach((e=>{const i=t.edge(e);i.x1=r.x-n.nodeWidth/2,i.y1=r.y+o+i.dy/2,i.d1=r.direction||"r",o+=i.dy}))}))}(n,t),function(t){t.nodes().forEach((n=>{const e=t.node(n),r=e.outgoing.map((n=>t.edge(n))),i=e.incoming.map((n=>t.edge(n)));r.sort(((t,n)=>t.y0-n.y0)),i.sort(((t,n)=>t.y1-n.y1)),Sl(r,"r0"),Sl(i,"r1")}))}(n);const e=[];return n.edges().forEach((t=>{const r=n.edge(t);r.id=`${t.v}-${t.w}-${t.name}`,e.push(r)})),e}}function Sl(t,n){t.forEach((t=>{t.Rmax=function(t){const n=t.x1-t.x0,e=t.y1-t.y0;return t.d0!==t.d1?Math.abs(e)/2.1:0!==e?(n*n+e*e)/Math.abs(4*e):1/0}(t),t[n]=Math.max(t.dy/2,t.d0===t.d1?.6*t.Rmax:5+t.dy/2)}));let e=Al(t,"r0"===n?t=>t.y1>t.y0:t=>t.y0>t.y1);if(null===e&&(e=t.length),Ol(t.slice(e),n),e>0){const r=[];for(let n=e-1;n>=0;n--)r.push(t[n]);Ol(r,n)}}function kl(t){const n=_l(),e=Ml(t);let r=[],i=[],o=null;function u(t=[],u=[],s={}){const a=function(t=[],n=[]){const e=new Hf.Graph({directed:!0,multigraph:!0});return n.forEach((t=>{e.setEdge(t.source,t.target,{data:t},t.type)})),e.nodes().forEach((t=>e.setNode(t,{data:{}}))),t.forEach((t=>{e.hasNode(t.id)&&(e.node(t.id).data=t,void 0!==t.direction&&(e.node(t.id).direction=t.direction))})),e.edges().forEach((t=>{e.edge(t).source=e.node(t.v),e.edge(t).target=e.node(t.w)})),e}(u,t);var c;return s.order?(o=s.order,o.length>0&&o[0].length>0&&!tl.isArray(o[0][0])&&(o=o.map((t=>[t]))),o=o.map((t=>t.map((t=>t.filter((t=>void 0!==a.node(t)))))))):(ol(a,s.rankSets||[]),(c=a).edges().forEach((t=>{const n=c.node(t.v),e=c.node(t.w);let r=n.rank;const i=[];if(r+1<=e.rank){for("l"===n.direction&&i.push(r);++r<e.rank;)i.push(r);"l"===e.direction&&i.push(r),yl(c,t,i,"r")}else if(r>e.rank){for("l"!==n.direction&&i.push(r);r-- >e.rank+1;)i.push(r);"l"!==e.direction&&i.push(r),yl(c,t,i,"l")}})),o=pl(a)),r=n(a,o),function(t,{alignLinkTypes:n=!1}={}){t.nodes().forEach((e=>{const r=t.node(e);if(r.incoming=t.inEdges(e),r.outgoing=t.outEdges(e),n){const n=bl(t,e);r.incoming.sort(jl(t,n,!1)),r.outgoing.sort(jl(t,n,!0))}else r.incoming.sort(El(t,!1)),r.outgoing.sort(El(t,!0))}))}(a,{alignLinkTypes:s.alignLinkTypes||!1}),i=e(a),a}return u.nodes=function(){return r},u.links=function(){return i},u.order=function(){return o},u.size=function(t){return arguments.length?(n.size(t),u):n.size()},u.separation=function(t){return arguments.length?(n.separation(t),u):n.separation()},u.whitespace=function(t){return arguments.length?(n.whitespace(t),u):n.whitespace()},u.edgeValue=function(t){return u},u.scale=function(t){return arguments.length?(n.scale(t),u):n.scale()},u}function Cl(t){const n=Math.max(0===t.dy?0:2,t.dy)/2;let e=t.x0,r=t.x1,i=t.y0,o=t.y1;r<e&&([e,r]=[r,e],[i,o]=[o,i]);const u=o>i?1:-1,s=function(t){const n=t.x1-t.x0,e=t.y1-t.y0;return[t.dy/2,(n*n+e*e)/Math.abs(4*e)]}(t),a=Math.max(s[0],Math.min(s[1],(r-e)/3));let c=Math.max(s[0],Math.min(s[1],t.r0||a)),h=Math.max(s[0],Math.min(s[1],t.r1||a));const f=r-e,l=o-i-u*(c+h),d=Math.sqrt(f*f+l*l),p=-u*Math.acos(Math.min(1,(c+h)/d)),v=Math.atan2(l,f);let g=Math.PI/2+u*(v+p),y=n*u*Math.sin(g),_=n*Math.cos(g),m=e+1*c*Math.sin(Math.abs(g)),w=r-1*h*Math.sin(Math.abs(g)),b=i+c*u*(1-Math.cos(g)),x=o-h*u*(1-Math.cos(g));function E(t,e){const r=t*(o-i)>0?1:0;let u=1*t*(o-i)>0?e+n:e-n;return 0===g&&(u=e),"A"+u+" "+u+" "+Math.abs(g)+" 0 "+r+" "}(isNaN(g)||Math.abs(g)<.001)&&(g=c=h=0,m=e,w=r,b=i,x=o,y=0,_=n);const j="M"+[e,i-n]+" "+E(1,c)+[m+y,b-_]+" L"+[w+y,x-_]+" "+E(-1,h)+[r,o-n]+" L"+[r,o+n]+" "+E(1,h)+[w-y,x+_]+" L"+[m-y,b+_]+" "+E(-1,c)+[e,i+n]+" Z";return/NaN/.test(j)&&console.error("path NaN",t,j),j}const Tl=t=>void 0!==t.title?t.title:t.id;function Il(t,n){const{data:e}=t,r=function(t){let n=!1,e=!1;return n=t.spaceAbove>20&&"type"!==t.style,0===t.incoming.length?(e=!0,n=!1):0===t.outgoing.length&&(e=!1,n=!1),{top:n,right:e}}(t),{x:i,y:o}=function(t,n){const e=n.top?-25:t.dy/2-10;let r;return r=n.top?n.right?4:-4:n.right?-10:10,{x:t.x+r,y:t.y+e}}(t,r),u=function(t="",{x:n,y:e,fontColor:r="#666767",textAnchor:i="start"}){const o=new Fn;return o.font({fill:r}),o.tspan(t),void 0!==n&&void 0!==e&&o.move(n,e),o.attr({"text-anchor":i}),o}(Tl(e),{x:i,y:o,textAnchor:r.right?"end":"start",fontColor:n});return u}function Nl(t,n){var e,r;const{x:i,y:o,dy:u}=t,{nodeWidth:s,nodeBorderWidth:a,nodeBorderColor:c,onNodeClick:h,fontColor:f}=n,l=new Un({class:"node"}),d=function({x:t=0,y:n=0,width:e=0,height:r=0,radius:i=0,color:o="#97cbe6",borderColor:u="#caced0",opacity:s=1}={}){const a=new jn;return a.attr({x:t,y:n,width:e,height:r,rx:i,ry:i,opacity:s}),a.fill(o),a.stroke({color:u,width:1}),a}({x:i-s/2,y:o,width:s,height:u});if(d.fill(null==(e=t.data)?void 0:e.color),d.stroke({width:a,color:c??(null==(r=t.data)?void 0:r.color)}),d.on("click",(()=>{"function"==typeof h&&h(t)})),l.add(d),t.data){const n=Il(t,f);l.add(n)}return l}const Rl=["#ACD5FC","#E37816","#07CC80","#0871D4","#CB8E55","#9FAE29","#427565","#6D55A6","#FEF445","#E177C2","#F48B7B","#D74B05","#AA896F","#14A14D","#C5114D"],zl=(t="",n,e="")=>{const r=document.getElementById(t);n?null==r||r.setAttribute("style",n):null==r||r.removeAttribute("style"),(null==r?void 0:r.innerHTML.replaceAll("'",'"'))!==e.replaceAll("'",'"')&&r&&(r.innerHTML=e)},Pl=t=>t.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((t,n)=>(n?"-":"")+t.toLowerCase()));class Dl extends te{constructor(t,n){super(t,n.width,n.height,n.canvasStyle,n.spacing),this.element=t,this.options=n}construct(t){const{width:n,height:e,spacing:r,nodeWidth:i}=this.options,o=kl({nodeWidth:i});o.size([n-2*r,e-2*r]);const u=t.nodes.map(((t,n)=>{const e=n%Rl.length;return{...t,color:t.color??Rl[e],colorIndex:e}})),s=o(t.edges,u,t.options);this.graph=s}renderEdge(t,n){const{enableTooltip:e,tooltipId:r,tooltipBGColor:i,tooltipBorderColor:o,edgeOpacity:u,edgeGradientFill:s,tooltipTemplate:a}=this.options,c=this.graph.edge(t.v,t.w,t.name),h=this.graph.node(t.v),f=this.graph.node(t.w),l=Cl(c),d=this.canvas.gradient("linear",(function(t){var n,e,r;t.stop(0,null==(n=h.data)?void 0:n.color),t.stop(1,s?null==(e=f.data)?void 0:e.color:null==(r=h.data)?void 0:r.color)})),p=function(t,{id:n="",edgeColor:e,opacity:r=1}={}){const i=new wn({d:t});return i.id(n),i.fill(e).opacity(r),i}(l,{id:`${t.v}-${t.w}`,edgeColor:d,opacity:u});if(e&&h.data&&f.data){const t=a?a({source:h.data,target:f.data,value:c.value}):null;p.on("mousemove",(function(n){var e;const u=(s=n.pageX,a=n.pageY,["position: absolute;",`left: ${s+20}px;`,`top: ${a+20}px;`,`border: 1px solid ${o};`,"border-radius: 5px;",`background-color: ${i};`,"padding: 10px"]);var s,a;null==(e=Jn(`[id="${n.target.id}"]`))||e.front().opacity(1),zl(r,u.join(" "),t)})),p.on("mouseout",(function(t){var n;zl(r),null==(n=Jn(`[id="${t.target.id}"]`))||n.front().opacity(u)}))}n.add(p)}render({keepOldPosition:t=!1}={}){var n,e;const{nodeWidth:r,nodeBorderWidth:i,nodeBorderColor:o,enableTooltip:u,tooltipId:s,onNodeClick:a,fontColor:c,fontFamily:h,fontSize:f,fontWeight:l}=this.options,d=this.canvas.viewbox();this.clear();const p=((t={})=>{const n=[];for(const e in t){const r=`${Pl(e)}: ${t[e]};`;n.push(r)}return n.join(" ")})({fontSize:f,fontWeight:l,fontFamily:h,color:c}),v=function(t=0,n=0,e,r){const i=new Un;return i.attr({transform:`translate(${t}, ${n})`,"data-self":e,"data-parent":r}),i}(0,0);v.attr("style",p);const g=(null==(n=this.graph)?void 0:n.nodes())||[];if(((null==(e=this.graph)?void 0:e.edges())||[]).forEach((t=>{this.renderEdge(t,v)})),g.forEach((t=>{const n=Nl(this.graph.node(t),{nodeWidth:r,nodeBorderWidth:i,nodeBorderColor:o,onNodeClick:a,fontColor:c});v.add(n)})),this.add(v),t&&this.updateViewBox(d.x,d.y,d.width,d.height),u){const t=((t="apexsankey-tooltip-container")=>{const n=document.getElementById(t)||document.createElement("div");return n.id=t,n})(s);(document.body||document.getElementsByTagName("body")[0]).append(t)}}}const Ll={width:800,height:800,canvasStyle:"border: 1px solid #caced0",spacing:100,nodeWidth:20,nodeBorderWidth:1,nodeBorderColor:null,onNodeClick:void 0,edgeOpacity:.4,edgeGradientFill:!0,fontSize:"14px",fontFamily:"",fontWeight:400,fontColor:"#212121",enableTooltip:!0,tooltipId:"sankey-tooltip-container",tooltipBorderColor:"#BCBCBC",tooltipBGColor:"#FFFFFF",tooltipTemplate:({source:t,target:n,value:e})=>`\n <div style='display:flex;align-items:center;gap:5px;'>\n <div style='width:12px;height:12px;background-color:${t.color}'></div>\n <div>${t.title}</div>\n <div>=></div>\n <div style='width:12px;height:12px;background-color:${n.color}'></div>\n <div>${n.title}</div>\n <div>: ${e}</div> \n </div>\n `};return class{constructor(t,n){this.element=t,this.options={...Ll,...n};const e=document.createElement("div");e.id="apexSankeyWrapper",e.style.position="relative",this.graph=new Dl(e,this.options),this.element.append(e)}render(t){if(!this.element)throw new Error("Element not found");return this.graph.construct(t),this.graph.render(),this.graph}}}));
@@ -0,0 +1,107 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Document</title>
7
+ <link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap" rel="stylesheet" />
8
+ <script src="../apexsankey.min.js"></script>
9
+ </head>
10
+ <body>
11
+ <div id="svg-sankey" style="display: flex; justify-content: center"></div>
12
+ <script>
13
+ const data = {
14
+ nodes: [
15
+ {id: 'Applications', title: 'Applications'},
16
+ {id: 'Accepted', title: 'Accepted'},
17
+ {id: 'Rejected', title: 'Rejected'},
18
+ {id: 'In Progress', title: 'In Progress'},
19
+ {id: 'Software Engineering', title: 'Software Engineering'},
20
+ {id: 'Data Science', title: 'Data Science'},
21
+ {id: 'Marketing', title: 'Marketing'},
22
+ {id: 'Sales', title: 'Sales'},
23
+ {id: 'HR', title: 'HR'},
24
+ {id: 'Finance', title: 'Finance'},
25
+ {id: 'Internship', title: 'Internship'},
26
+ {id: 'Junior', title: 'Junior'},
27
+ {id: 'Mid-level', title: 'Mid-level'},
28
+ {id: 'Senior', title: 'Senior'},
29
+ {id: 'Entry Level', title: 'Entry Level'},
30
+ {id: 'Full-time', title: 'Full-time'},
31
+ {id: 'Part-time', title: 'Part-time'},
32
+ ],
33
+ edges: [
34
+ {source: 'Applications', target: 'Accepted', value: 10},
35
+ {source: 'Applications', target: 'Rejected', value: 15},
36
+ {source: 'Applications', target: 'In Progress', value: 10},
37
+ {source: 'Accepted', target: 'Software Engineering', value: 4},
38
+ {source: 'Accepted', target: 'Data Science', value: 2},
39
+ {source: 'Accepted', target: 'Marketing', value: 1},
40
+ {source: 'Accepted', target: 'Sales', value: 1},
41
+ {source: 'Accepted', target: 'HR', value: 1},
42
+ {source: 'Accepted', target: 'Finance', value: 1},
43
+ {source: 'Rejected', target: 'Software Engineering', value: 5},
44
+ {source: 'Rejected', target: 'Data Science', value: 3},
45
+ {source: 'Rejected', target: 'Marketing', value: 2},
46
+ {source: 'Rejected', target: 'Sales', value: 2},
47
+ {source: 'Rejected', target: 'HR', value: 2},
48
+ {source: 'Rejected', target: 'Finance', value: 1},
49
+ {source: 'In Progress', target: 'Software Engineering', value: 3},
50
+ {source: 'In Progress', target: 'Data Science', value: 2},
51
+ {source: 'In Progress', target: 'Marketing', value: 2},
52
+ {source: 'In Progress', target: 'Sales', value: 1},
53
+ {source: 'In Progress', target: 'HR', value: 1},
54
+ {source: 'In Progress', target: 'Finance', value: 1},
55
+ {source: 'Software Engineering', target: 'Internship', value: 1},
56
+ {source: 'Software Engineering', target: 'Junior', value: 1},
57
+ {source: 'Software Engineering', target: 'Mid-level', value: 1},
58
+ {source: 'Software Engineering', target: 'Senior', value: 1},
59
+ {source: 'Software Engineering', target: 'Entry Level', value: 1},
60
+ {source: 'Data Science', target: 'Internship', value: 1},
61
+ {source: 'Data Science', target: 'Junior', value: 1},
62
+ {source: 'Data Science', target: 'Mid-level', value: 1},
63
+ {source: 'Data Science', target: 'Senior', value: 1},
64
+ {source: 'Data Science', target: 'Entry Level', value: 1},
65
+ {source: 'Marketing', target: 'Internship', value: 1},
66
+ {source: 'Marketing', target: 'Junior', value: 1},
67
+ {source: 'Marketing', target: 'Mid-level', value: 1},
68
+ {source: 'Marketing', target: 'Senior', value: 1},
69
+ {source: 'Marketing', target: 'Entry Level', value: 1},
70
+ {source: 'Sales', target: 'Internship', value: 1},
71
+ {source: 'Sales', target: 'Junior', value: 1},
72
+ {source: 'Sales', target: 'Mid-level', value: 1},
73
+ {source: 'Sales', target: 'Senior', value: 1},
74
+ {source: 'Sales', target: 'Entry Level', value: 1},
75
+ {source: 'HR', target: 'Internship', value: 1},
76
+ {source: 'HR', target: 'Junior', value: 1},
77
+ {source: 'HR', target: 'Mid-level', value: 1},
78
+ {source: 'HR', target: 'Senior', value: 1},
79
+ {source: 'HR', target: 'Entry Level', value: 1},
80
+ {source: 'Finance', target: 'Internship', value: 1},
81
+ {source: 'Finance', target: 'Junior', value: 1},
82
+ {source: 'Finance', target: 'Mid-level', value: 1},
83
+ {source: 'Finance', target: 'Senior', value: 1},
84
+ {source: 'Finance', target: 'Entry Level', value: 1},
85
+ {source: 'Internship', target: 'Full-time', value: 1},
86
+ {source: 'Internship', target: 'Part-time', value: 1},
87
+ {source: 'Junior', target: 'Full-time', value: 1},
88
+ {source: 'Junior', target: 'Part-time', value: 1},
89
+ {source: 'Mid-level', target: 'Full-time', value: 1},
90
+ {source: 'Mid-level', target: 'Part-time', value: 1},
91
+ {source: 'Senior', target: 'Full-time', value: 1},
92
+ {source: 'Senior', target: 'Part-time', value: 1},
93
+ {source: 'Entry Level', target: 'Full-time', value: 1},
94
+ {source: 'Entry Level', target: 'Part-time', value: 1},
95
+ ],
96
+ };
97
+ const graphOptions = {
98
+ width: 1200,
99
+ nodeWidth: 20,
100
+ fontFamily: 'Quicksand, sans-serif',
101
+ fontWeight: 600,
102
+ };
103
+ const s = new ApexSankey(document.getElementById('svg-sankey'), graphOptions);
104
+ s.render(data);
105
+ </script>
106
+ </body>
107
+ </html>
package/demo/demo2.html CHANGED
@@ -8,7 +8,7 @@
8
8
  </head>
9
9
 
10
10
  <body>
11
- <div id="svg-tree" style="display: flex; justify-content: center"></div>
11
+ <div id="svg-sankey" style="display: flex; justify-content: center"></div>
12
12
  <script>
13
13
  const data = {
14
14
  nodes: [
@@ -158,7 +158,7 @@
158
158
  const graphOptions = {
159
159
  nodeWidth: 10,
160
160
  };
161
- const s = new ApexSankey(document.getElementById('svg-tree'), graphOptions);
161
+ const s = new ApexSankey(document.getElementById('svg-sankey'), graphOptions);
162
162
  s.render(data);
163
163
  </script>
164
164
  </body>
package/demo/demo3.html CHANGED
@@ -8,7 +8,7 @@
8
8
  <script src="../apexsankey.min.js"></script>
9
9
  </head>
10
10
  <body>
11
- <div id="svg-tree" style="display: flex; justify-content: center"></div>
11
+ <div id="svg-sankey" style="display: flex; justify-content: center"></div>
12
12
  <script>
13
13
  const data = {
14
14
  nodes: [
@@ -75,7 +75,7 @@
75
75
  fontFamily: 'Quicksand, sans-serif',
76
76
  fontWeight: 600,
77
77
  };
78
- const s = new ApexSankey(document.getElementById('svg-tree'), graphOptions);
78
+ const s = new ApexSankey(document.getElementById('svg-sankey'), graphOptions);
79
79
  s.render(data);
80
80
  </script>
81
81
  </body>
@@ -0,0 +1,103 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Document</title>
7
+ <link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap" rel="stylesheet" />
8
+ <script src="../apexsankey.min.js"></script>
9
+ </head>
10
+ <body>
11
+ <div id="svg-sankey" style="display: flex; justify-content: center"></div>
12
+ <script>
13
+ const data = {
14
+ nodes: [
15
+ {id: 'England', title: 'england'},
16
+ {id: 'Wales', title: 'wales'},
17
+ {id: 'Level 4', title: 'level 4'},
18
+ {id: 'Level 3', title: 'level 3'},
19
+ {id: 'Level 2', title: 'level 2'},
20
+ {id: 'Level 1 and entry level', title: 'level 1 and entry level'},
21
+ {id: 'No qualifications', title: 'no qualifications'},
22
+ {id: 'Other', title: 'other'},
23
+ {id: 'Wholesale & retail', title: 'wholesale & retail'},
24
+ {id: 'Health & social work', title: 'health & social work'},
25
+ {id: 'Education', title: 'education'},
26
+ {id: 'Construction', title: 'construction'},
27
+ {id: 'Manufacturing', title: 'manufacturing'},
28
+ {id: 'Transport & storage', title: 'transport & storage'},
29
+ {id: 'Finance & insurance', title: 'finance & insurance'},
30
+ ],
31
+ edges: [
32
+ {source: 'England', target: 'Level 4', value: 13},
33
+ {source: 'England', target: 'Level 3', value: 8},
34
+ {source: 'England', target: 'Level 2', value: 8},
35
+ {source: 'England', target: 'Level 1 and entry level', value: 6},
36
+ {source: 'England', target: 'No qualifications', value: 3},
37
+ // { source: 'England', target: 'Other', value: 4 },
38
+ {source: 'Wales', target: 'Level 4', value: 7},
39
+ {source: 'Wales', target: 'Level 3', value: 8},
40
+ {source: 'Wales', target: 'Level 2', value: 4},
41
+ {source: 'Wales', target: 'Level 1 and entry level', value: 5},
42
+ {source: 'Wales', target: 'No qualifications', value: 5},
43
+ // { source: 'Wales', target: 'Other', value: 3 },
44
+ {source: 'Level 4', target: 'Wholesale & retail', value: 4},
45
+ {source: 'Level 4', target: 'Health & social work', value: 3},
46
+ {source: 'Level 4', target: 'Education', value: 2},
47
+ {source: 'Level 4', target: 'Construction', value: 1},
48
+ {source: 'Level 4', target: 'Manufacturing', value: 2},
49
+ {source: 'Level 4', target: 'Other', value: 3},
50
+ {source: 'Level 4', target: 'Transport & storage', value: 2},
51
+ {source: 'Level 4', target: 'Finance & insurance', value: 3},
52
+ {source: 'Level 3', target: 'Wholesale & retail', value: 3},
53
+ {source: 'Level 3', target: 'Health & social work', value: 2},
54
+ {source: 'Level 3', target: 'Education', value: 1},
55
+ {source: 'Level 3', target: 'Construction', value: 2},
56
+ {source: 'Level 3', target: 'Manufacturing', value: 1},
57
+ {source: 'Level 3', target: 'Other', value: 3},
58
+ {source: 'Level 3', target: 'Transport & storage', value: 2},
59
+ {source: 'Level 3', target: 'Finance & insurance', value: 2},
60
+ {source: 'Level 2', target: 'Wholesale & retail', value: 2},
61
+ {source: 'Level 2', target: 'Health & social work', value: 1},
62
+ {source: 'Level 2', target: 'Education', value: 2},
63
+ {source: 'Level 2', target: 'Construction', value: 1},
64
+ {source: 'Level 2', target: 'Manufacturing', value: 2},
65
+ {source: 'Level 2', target: 'Other', value: 2},
66
+ {source: 'Level 2', target: 'Transport & storage', value: 1},
67
+ {source: 'Level 2', target: 'Finance & insurance', value: 1},
68
+ {source: 'Level 1 and entry level', target: 'Wholesale & retail', value: 1},
69
+ {source: 'Level 1 and entry level', target: 'Health & social work', value: 2},
70
+ {source: 'Level 1 and entry level', target: 'Education', value: 1},
71
+ {source: 'Level 1 and entry level', target: 'Construction', value: 2},
72
+ {source: 'Level 1 and entry level', target: 'Manufacturing', value: 1},
73
+ {source: 'Level 1 and entry level', target: 'Other', value: 2},
74
+ {source: 'Level 1 and entry level', target: 'Transport & storage', value: 1},
75
+ {source: 'Level 1 and entry level', target: 'Finance & insurance', value: 1},
76
+ {source: 'No qualifications', target: 'Wholesale & retail', value: 1},
77
+ {source: 'No qualifications', target: 'Health & social work', value: 1},
78
+ {source: 'No qualifications', target: 'Education', value: 1},
79
+ {source: 'No qualifications', target: 'Construction', value: 1},
80
+ {source: 'No qualifications', target: 'Manufacturing', value: 1},
81
+ {source: 'No qualifications', target: 'Other', value: 1},
82
+ {source: 'No qualifications', target: 'Transport & storage', value: 1},
83
+ {source: 'No qualifications', target: 'Finance & insurance', value: 1},
84
+ // { source: 'Other', target: 'Wholesale & retail', value: 1 },
85
+ // { source: 'Other', target: 'Health & social work', value: 1 },
86
+ // { source: 'Other', target: 'Education', value: 1 },
87
+ // { source: 'Other', target: 'Construction', value: 1 },
88
+ // { source: 'Other', target: 'Manufacturing', value: 1 },
89
+ // // { source: 'Other', target: 'Other', value: 1 },
90
+ // { source: 'Other', target: 'Transport & storage', value: 1 },
91
+ // { source: 'Other', target: 'Finance & insurance', value: 1 }
92
+ ],
93
+ };
94
+ const graphOptions = {
95
+ nodeWidth: 20,
96
+ fontFamily: 'Quicksand, sans-serif',
97
+ fontWeight: 600,
98
+ };
99
+ const s = new ApexSankey(document.getElementById('svg-sankey'), graphOptions);
100
+ s.render(data);
101
+ </script>
102
+ </body>
103
+ </html>
@@ -12,6 +12,7 @@ export interface NodeOptions {
12
12
  }
13
13
  export interface EdgeOptions {
14
14
  readonly edgeOpacity: number;
15
+ readonly edgeGradientFill: boolean;
15
16
  }
16
17
  export interface FontOptions {
17
18
  readonly fontSize: string;
@@ -1,6 +1,7 @@
1
1
  import { CircleAttr } from '@svgdotjs/svg.js';
2
2
  import { Text } from '@svgdotjs/svg.js';
3
3
  import { Path } from '@svgdotjs/svg.js';
4
+ import { Gradient } from '@svgdotjs/svg.js';
4
5
  import { G } from '@svgdotjs/svg.js';
5
6
  import { Line } from '@svgdotjs/svg.js';
6
7
  import { ForeignObject } from '@svgdotjs/svg.js';
@@ -20,11 +21,11 @@ export declare function drawCircle(attributes?: CircleAttr): Circle;
20
21
  export declare function drawText(text: string, { x, y, fontColor, textAnchor }: any): Text;
21
22
  export declare function drawTemplate(template: string, { nodeWidth, nodeHeight }?: any): ForeignObject;
22
23
  export declare function drawGroup(x?: number, y?: number, id?: string, parent?: string): G;
23
- export declare function drawPath(pathString: string, { id, edgeColor, opacity }?: {
24
- id?: string;
25
- edgeColor?: string;
26
- opacity?: number;
27
- }): Path;
24
+ export declare function drawPath(pathString: string, { id, edgeColor, opacity }?: Partial<{
25
+ readonly id: string;
26
+ readonly edgeColor: Gradient;
27
+ readonly opacity: number;
28
+ }>): Path;
28
29
  export declare function drawLine({ className, x1, x2, y1, y2, borderSize, borderColor, }?: {
29
30
  className?: string;
30
31
  x1?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apexsankey",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "dependencies": {
5
5
  "@svgdotjs/svg.js": "^3.2.0",
6
6
  "@svgdotjs/svg.panzoom.js": "^2.1.2",
@@ -9,13 +9,13 @@
9
9
  "lodash": "^4.17.21"
10
10
  },
11
11
  "type": "module",
12
- "main": "./apexsankey.js",
13
- "module": "./apexsankey.es.js",
12
+ "main": "./apexsankey.min.js",
13
+ "module": "./apexsankey.es.min.js",
14
14
  "typings": "./index.d.ts",
15
15
  "exports": {
16
16
  ".": {
17
- "import": "./apexsankey.es.js",
18
- "require": "./apexsankey.js"
17
+ "import": "./apexsankey.es.min.js",
18
+ "require": "./apexsankey.min.js"
19
19
  }
20
20
  }
21
21
  }
package/demo/demo.html DELETED
@@ -1,93 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Document</title>
7
- <link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap" rel="stylesheet" />
8
- <script src="../apexsankey.min.js"></script>
9
- </head>
10
- <body>
11
- <div id="svg-tree" style="display: flex; justify-content: center"></div>
12
- <script>
13
- const data = {
14
- nodes: [
15
- {
16
- id: 'a',
17
- title: 'AAA',
18
- },
19
- {
20
- id: 'b',
21
- title: 'BBB',
22
- },
23
- {
24
- id: 'c',
25
- title: 'CCC',
26
- },
27
- {
28
- id: 'd',
29
- title: 'DDD',
30
- },
31
- {
32
- id: 'e',
33
- title: 'EEE',
34
- },
35
- {
36
- id: 'f',
37
- title: 'Node in bottom band',
38
- },
39
- {
40
- id: 'g',
41
- title: 'Node in bottom band',
42
- },
43
- ],
44
- edges: [
45
- {
46
- source: 'a',
47
- target: 'c',
48
- value: 1,
49
- type: '11',
50
- },
51
- {
52
- source: 'b',
53
- target: 'c',
54
- value: 2,
55
- type: '11',
56
- },
57
- {
58
- source: 'c',
59
- target: 'd',
60
- value: 0.9,
61
- type: '22',
62
- },
63
- {
64
- source: 'c',
65
- target: 'e',
66
- value: 2.1,
67
- type: '22',
68
- },
69
- {
70
- source: 'b',
71
- target: 'f',
72
- value: 0.5,
73
- type: '11',
74
- },
75
- ],
76
- options: {
77
- order: [
78
- [['a', 'b'], []],
79
- [['c'], ['f']],
80
- [['d', 'e'], []],
81
- ],
82
- },
83
- };
84
- const graphOptions = {
85
- nodeWidth: 20,
86
- fontFamily: 'Quicksand, sans-serif',
87
- fontWeight: 600,
88
- };
89
- const s = new ApexSankey(document.getElementById('svg-tree'), graphOptions);
90
- s.render(data);
91
- </script>
92
- </body>
93
- </html>