You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
40 KiB
JavaScript
1 line
40 KiB
JavaScript
"use strict";exports.id=348,exports.ids=[348],exports.modules={348:(e,n,t)=>{t.d(n,{bK:()=>e3});var r,o=t(41115),i=t(31631),u=t(54030),a=t(61648),s=t(94496),d=t(32302),c=t(77879),f=t(38601);class h{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,n=e._prev;if(n!==e)return l(n),n}enqueue(e){var n=this._sentinel;e._prev&&e._next&&l(e),e._next=n._next,n._next._prev=e,n._next=e,e._prev=n}toString(){for(var e=[],n=this._sentinel,t=n._prev;t!==n;)e.push(JSON.stringify(t,v)),t=t._prev;return"["+e.join(", ")+"]"}}function l(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function v(e,n){if("_next"!==e&&"_prev"!==e)return n}var g=a.Z(1);function Z(e,n,t,r,i){var u=i?[]:void 0;return o.Z(e.inEdges(r.v),function(r){var o=e.edge(r),a=e.node(r.v);i&&u.push({v:r.v,w:r.w}),a.out-=o,p(n,t,a)}),o.Z(e.outEdges(r.v),function(r){var o=e.edge(r),i=r.w,u=e.node(i);u.in-=o,p(n,t,u)}),e.removeNode(r.v),u}function p(e,n,t){t.out?t.in?e[t.out-t.in+n].enqueue(t):e[e.length-1].enqueue(t):e[0].enqueue(t)}var b=t(699),m=t(40721),w=t(46260),_=t(23786);let y=function(e,n,t){for(var r=-1,o=e.length;++r<o;){var i=e[r],u=n(i);if(null!=u&&(void 0===a?u==u&&!(0,_.Z)(u):t(u,a)))var a=u,s=i}return s},x=function(e,n){return e>n};var E=t(7659);let k=function(e){return e&&e.length?y(e,E.Z,x):void 0},N=function(e){var n=null==e?0:e.length;return n?e[n-1]:void 0};var j=t(23446),I=t(38906);let C=function(e,n){return e<n},L=function(e){return e&&e.length?y(e,E.Z,C):void 0};var M=t(17919);let O=function(){return M.Z.Date.now()};function R(e,n,t,r){var o;do o=i.Z(r);while(e.hasNode(o));return t.dummy=n,e.setNode(o,t),o}function T(e){var n=new f.k({multigraph:e.isMultigraph()}).setGraph(e.graph());return o.Z(e.nodes(),function(t){e.children(t).length||n.setNode(t,e.node(t))}),o.Z(e.edges(),function(t){n.setEdge(t,e.edge(t))}),n}function A(e,n){var t,r,o=e.x,i=e.y,u=n.x-o,a=n.y-i,s=e.width/2,d=e.height/2;if(!u&&!a)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(a)*s>Math.abs(u)*d?(a<0&&(d=-d),t=d*u/a,r=d):(u<0&&(s=-s),t=s,r=s*a/u),{x:o+t,y:i+r}}function P(e){var n=d.Z(c.Z(F(e)+1),function(){return[]});return o.Z(e.nodes(),function(t){var r=e.node(t),o=r.rank;I.Z(o)||(n[o][r.order]=t)}),n}function S(e,n,t,r){var o={width:0,height:0};return arguments.length>=4&&(o.rank=t,o.order=r),R(e,"border",o,n)}function F(e){return k(d.Z(e.nodes(),function(n){var t=e.node(n).rank;if(!I.Z(t))return t}))}function D(e,n){var t=O();try{return n()}finally{console.log(e+" time: "+(O()-t)+"ms")}}function G(e,n){return n()}function B(e,n,t,r,o,i){var u=o[n][i-1],a=R(e,"border",{width:0,height:0,rank:i,borderType:n},t);o[n][i]=a,e.setParent(a,r),u&&e.setEdge(u,a,{weight:1})}function V(e){o.Z(e.nodes(),function(n){q(e.node(n))}),o.Z(e.edges(),function(n){q(e.edge(n))})}function q(e){var n=e.width;e.width=e.height,e.height=n}function U(e){e.y=-e.y}function Y(e){var n=e.x;e.x=e.y,e.y=n}var z=t(64251);let $=function(e,n){return e&&e.length?y(e,(0,z.Z)(n,2),C):void 0};function J(e){var n={};o.Z(e.sources(),function t(r){var o=e.node(r);if(u.Z(n,r))return o.rank;n[r]=!0;var i=L(d.Z(e.outEdges(r),function(n){return t(n.w)-e.edge(n).minlen}));return(i===Number.POSITIVE_INFINITY||null==i)&&(i=0),o.rank=i})}function K(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function W(e){var n,t,r=new f.k({directed:!1}),i=e.nodes()[0],u=e.nodeCount();for(r.setNode(i,{});o.Z(r.nodes(),function n(t){o.Z(e.nodeEdges(t),function(o){var i=o.v,u=t===i?o.w:i;r.hasNode(u)||K(e,o)||(r.setNode(u,{}),r.setEdge(t,u,{}),n(u))})}),r.nodeCount()<u;)n=function(e,n){return $(n.edges(),function(t){if(e.hasNode(t.v)!==e.hasNode(t.w))return K(n,t)})}(r,e),t=r.hasNode(n.v)?K(e,n):-K(e,n),function(e,n,t){o.Z(e.nodes(),function(e){n.node(e).rank+=t})}(r,e,t);return r}var H=t(81074),Q=t(88153),X=t(81904),ee=t(46527);let en=function(e){var n=(0,ee.Z)(e),t=n%1;return n==n?t?n-t:n:0};var et=Math.max,er=(r=function(e,n,t){var r=null==e?0:e.length;if(!r)return -1;var o=null==t?0:en(t);return o<0&&(o=et(r+o,0)),(0,X.Z)(e,(0,z.Z)(n,3),o)},function(e,n,t){var o=Object(e);if(!(0,H.Z)(e)){var i=(0,z.Z)(n,3);e=(0,Q.Z)(e),n=function(e){return i(o[e],e,o)}}var u=r(e,n,t);return u>-1?o[i?e[u]:u]:void 0}),eo=t(98619),ei=(a.Z(1),a.Z(1),t(63810)),eu=t(66598),ea=t(69468),es=t(27774),ed=t(29330),ec=(0,t(51412).Z)("length"),ef=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),eh="\ud800-\udfff",el="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ev="\ud83c[\udffb-\udfff]",eg="[^"+eh+"]",eZ="(?:\ud83c[\udde6-\uddff]){2}",ep="[\ud800-\udbff][\udc00-\udfff]",eb="(?:"+el+"|"+ev+")?",em="[\\ufe0e\\ufe0f]?",ew="(?:\\u200d(?:"+[eg,eZ,ep].join("|")+")"+em+eb+")*",e_=RegExp(ev+"(?="+ev+")|(?:"+[eg+el+"?",el,eZ,ep,"["+eh+"]"].join("|")+")"+(em+eb+ew),"g");let ey=function(e){for(var n=e_.lastIndex=0;e_.test(e);)++n;return n};function ex(e,n,t){es.Z(n)||(n=[n]);var r=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return o.Z(n,function(n){if(!e.hasNode(n))throw Error("Graph does not have node: "+n);(function e(n,t,r,i,a,s){!u.Z(i,t)&&(i[t]=!0,r||s.push(t),o.Z(a(t),function(t){e(n,t,r,i,a,s)}),r&&s.push(t))})(e,n,"post"===t,a,r,i)}),i}function eE(e){n=e,t=new f.k().setGraph(n.graph()),o.Z(n.nodes(),function(e){t.setNode(e,n.node(e))}),o.Z(n.edges(),function(e){var r=t.edge(e.v,e.w)||{weight:0,minlen:1},o=n.edge(e);t.setEdge(e.v,e.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})}),J(e=t);var n,t,r,i,u=W(e);for(ej(u),ek(u,e);r=eI(u);)i=eC(u,e,r),eL(u,e,r,i)}function ek(e,n){var t=ex(e,e.nodes(),"post");t=t.slice(0,t.length-1),o.Z(t,function(t){var r;r=e.node(t).parent,e.edge(t,r).cutvalue=eN(e,n,t)})}function eN(e,n,t){var r=e.node(t).parent,i=!0,u=n.edge(t,r),a=0;return u||(i=!1,u=n.edge(r,t)),a=u.weight,o.Z(n.nodeEdges(t),function(o){var u=o.v===t,s=u?o.w:o.v;if(s!==r){var d=u===i,c=n.edge(o).weight;if(a+=d?c:-c,e.hasEdge(t,s)){var f=e.edge(t,s).cutvalue;a+=d?-f:f}}}),a}function ej(e,n){arguments.length<2&&(n=e.nodes()[0]),function e(n,t,r,i,a){var s=r,d=n.node(i);return t[i]=!0,o.Z(n.neighbors(i),function(o){u.Z(t,o)||(r=e(n,t,r,o,i))}),d.low=s,d.lim=r++,a?d.parent=a:delete d.parent,r}(e,{},1,n)}function eI(e){return er(e.edges(),function(n){return e.edge(n).cutvalue<0})}function eC(e,n,t){var r=t.v,o=t.w;n.hasEdge(r,o)||(r=t.w,o=t.v);var i=e.node(r),u=e.node(o),a=i,s=!1;return i.lim>u.lim&&(a=u,s=!0),$(eo.Z(n.edges(),function(n){return s===eM(e,e.node(n.v),a)&&s!==eM(e,e.node(n.w),a)}),function(e){return K(n,e)})}function eL(e,n,t,r){var i,u,a=t.v,s=t.w;e.removeEdge(a,s),e.setEdge(r.v,r.w,{}),ej(e),ek(e,n),i=er(e.nodes(),function(e){return!n.node(e).parent}),u=(u=ex(e,i,"pre")).slice(1),o.Z(u,function(t){var r=e.node(t).parent,o=n.edge(t,r),i=!1;o||(o=n.edge(r,t),i=!0),n.node(t).rank=n.node(r).rank+(i?o.minlen:-o.minlen)})}function eM(e,n,t){return t.low<=n.lim&&n.lim<=t.lim}Error(),t(21794),eE.initLowLimValues=ej,eE.initCutValues=ek,eE.calcCutValue=eN,eE.leaveEdge=eI,eE.enterEdge=eC,eE.exchangeEdges=eL;var eO=t(75582),eR=t(46985),eT=t(31039),eA=t(73840);let eP=function(e,n,t){for(var r=-1,o=e.length,i=n.length,u={};++r<o;){var a=r<i?n[r]:void 0;t(u,e[r],a)}return u};var eS=t(70165),eF=t(65343),eD=t(3770),eG=t(94352);let eB=function(e,n){var t=e.length;for(e.sort(n);t--;)e[t]=e[t].value;return e};var eV=t(59417);let eq=function(e,n){if(e!==n){var t=void 0!==e,r=null===e,o=e==e,i=(0,_.Z)(e),u=void 0!==n,a=null===n,s=n==n,d=(0,_.Z)(n);if(!a&&!d&&!i&&e>n||i&&u&&s&&!a&&!d||r&&u&&s||!t&&s||!o)return 1;if(!r&&!i&&!d&&e<n||d&&t&&o&&!r&&!i||a&&t&&o||!u&&o||!s)return -1}return 0},eU=function(e,n,t){for(var r=-1,o=e.criteria,i=n.criteria,u=o.length,a=t.length;++r<u;){var s=eq(o[r],i[r]);if(s){if(r>=a)return s;return s*("desc"==t[r]?-1:1)}}return e.index-n.index},eY=function(e,n,t){n=n.length?(0,eF.Z)(n,function(e){return(0,es.Z)(e)?function(n){return(0,eD.Z)(n,1===e.length?e[0]:e)}:e}):[E.Z];var r=-1;return n=(0,eF.Z)(n,(0,eV.Z)(z.Z)),eB((0,eG.Z)(e,function(e,t,o){return{criteria:(0,eF.Z)(n,function(n){return n(e)}),index:++r,value:e}}),function(e,n){return eU(e,n,t)})};var ez=t(39386),e$=t(45654),eJ=(0,ez.Z)(function(e,n){if(null==e)return[];var t=n.length;return t>1&&(0,e$.Z)(e,n[0],n[1])?n=[]:t>2&&(0,e$.Z)(n[0],n[1],n[2])&&(n=[n[0]]),eY(e,(0,eS.Z)(n,1),[])});function eK(e,n,t){for(var r;n.length&&(r=N(n)).i<=t;)n.pop(),e.push(r.vs),t++;return t}function eW(e,n,t){return d.Z(n,function(n){var r,a;return r=function(e){for(var n;e.hasNode(n=i.Z("_root")););return n}(e),a=new f.k({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(n){return e.node(n)}),o.Z(e.nodes(),function(i){var s=e.node(i),d=e.parent(i);(s.rank===n||s.minRank<=n&&n<=s.maxRank)&&(a.setNode(i),a.setParent(i,d||r),o.Z(e[t](i),function(n){var t=n.v===i?n.w:n.v,r=a.edge(t,i),o=I.Z(r)?0:r.weight;a.setEdge(t,i,{weight:e.edge(n).weight+o})}),u.Z(s,"minRank")&&a.setNode(i,{borderLeft:s.borderLeft[n],borderRight:s.borderRight[n]}))}),a})}function eH(e,n){o.Z(n,function(n){o.Z(n,function(n,t){e.node(n).order=t})})}var eQ=t(11312),eX=t(83978),e0=t(38019),e1=t(9907);function e2(e,n,t){if(n>t){var r=n;n=t,t=r}var o=e[n];o||(e[n]=o={}),o[t]=!0}function e3(e,n){var t=n&&n.debugTiming?D:G;t("layout",function(){var n=t(" buildLayoutGraph",function(){var n,t;return n=new f.k({multigraph:!0,compound:!0}),t=nr(e.graph()),n.setGraph(b.Z({},e4,nt(t,e7),m.Z(t,e6))),o.Z(e.nodes(),function(t){var r=nr(e.node(t));n.setNode(t,w.Z(nt(r,e8),e9)),n.setParent(t,e.parent(t))}),o.Z(e.edges(),function(t){var r=nr(e.edge(t));n.setEdge(t,b.Z({},ne,nt(r,e5),m.Z(r,nn)))}),n});t(" runLayout",function(){t(" makeSpaceForEdgeLabels",function(){var e;e=n.graph(),e.ranksep/=2,o.Z(n.edges(),function(t){var r=n.edge(t);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}),t(" removeSelfEdges",function(){o.Z(n.edges(),function(e){if(e.v===e.w){var t=n.node(e.v);t.selfEdges||(t.selfEdges=[]),t.selfEdges.push({e:e,label:n.edge(e)}),n.removeEdge(e)}})}),t(" acyclic",function(){var e,t,r,a;e="greedy"===n.graph().acyclicer?function(e,n){if(1>=e.nodeCount())return[];var t,r,i,u,a,l,v=(t=n||g,r=new f.k,i=0,u=0,o.Z(e.nodes(),function(e){r.setNode(e,{v:e,in:0,out:0})}),o.Z(e.edges(),function(e){var n=r.edge(e.v,e.w)||0,o=t(e);r.setEdge(e.v,e.w,n+o),u=Math.max(u,r.node(e.v).out+=o),i=Math.max(i,r.node(e.w).in+=o)}),a=c.Z(u+i+3).map(function(){return new h}),l=i+1,o.Z(r.nodes(),function(e){p(a,l,r.node(e))}),{graph:r,buckets:a,zeroIdx:l}),b=function(e,n,t){for(var r,o=[],i=n[n.length-1],u=n[0];e.nodeCount();){for(;r=u.dequeue();)Z(e,n,t,r);for(;r=i.dequeue();)Z(e,n,t,r);if(e.nodeCount()){for(var a=n.length-2;a>0;--a)if(r=n[a].dequeue()){o=o.concat(Z(e,n,t,r,!0));break}}}return o}(v.graph,v.buckets,v.zeroIdx);return s.Z(d.Z(b,function(n){return e.outEdges(n.v,n.w)}))}(n,function(e){return n.edge(e).weight}):(t=[],r={},a={},o.Z(n.nodes(),function e(i){u.Z(a,i)||(a[i]=!0,r[i]=!0,o.Z(n.outEdges(i),function(n){u.Z(r,n.w)?t.push(n):e(n.w)}),delete r[i])}),t),o.Z(e,function(e){var t=n.edge(e);n.removeEdge(e),t.forwardName=e.name,t.reversed=!0,n.setEdge(e.w,e.v,t,i.Z("rev"))})}),t(" nestingGraph.run",function(){var e,t,r,i,u;e=R(n,"root",{},"_root"),u={},o.Z(n.children(),function(e){!function e(t,r){var i=n.children(t);i&&i.length&&o.Z(i,function(n){e(n,r+1)}),u[t]=r}(e,1)}),r=2*(t=k(eO.Z(u))-1)+1,n.graph().nestingRoot=e,o.Z(n.edges(),function(e){n.edge(e).minlen*=r}),i=eR.Z(n.edges(),function(e,t){return e+n.edge(t).weight},0)+1,o.Z(n.children(),function(a){(function e(n,t,r,i,u,a,s){var d=n.children(s);if(!d.length){s!==t&&n.setEdge(t,s,{weight:0,minlen:r});return}var c=S(n,"_bt"),f=S(n,"_bb"),h=n.node(s);n.setParent(c,s),h.borderTop=c,n.setParent(f,s),h.borderBottom=f,o.Z(d,function(o){e(n,t,r,i,u,a,o);var d=n.node(o),h=d.borderTop?d.borderTop:o,l=d.borderBottom?d.borderBottom:o,v=d.borderTop?i:2*i,g=h!==l?1:u-a[s]+1;n.setEdge(c,h,{weight:v,minlen:g,nestingEdge:!0}),n.setEdge(l,f,{weight:v,minlen:g,nestingEdge:!0})}),n.parent(s)||n.setEdge(t,c,{weight:0,minlen:u+a[s]})})(n,e,r,i,t,u,a)}),n.graph().nodeRankFactor=r}),t(" rank",function(){!function(e){switch(e.graph().ranker){case"network-simplex":default:eE(e);break;case"tight-tree":J(e),W(e);break;case"longest-path":J(e)}}(T(n))}),t(" injectEdgeLabelProxies",function(){o.Z(n.edges(),function(e){var t=n.edge(e);if(t.width&&t.height){var r=n.node(e.v),o={rank:(n.node(e.w).rank-r.rank)/2+r.rank,e:e};R(n,"edge-proxy",o,"_ep")}})}),t(" removeEmptyRanks",function(){var e,t,r,i;e=L(d.Z(n.nodes(),function(e){return n.node(e).rank})),t=[],o.Z(n.nodes(),function(r){var o=n.node(r).rank-e;t[o]||(t[o]=[]),t[o].push(r)}),r=0,i=n.graph().nodeRankFactor,o.Z(t,function(e,t){I.Z(e)&&t%i!=0?--r:r&&o.Z(e,function(e){n.node(e).rank+=r})})}),t(" nestingGraph.cleanup",function(){var e;e=n.graph(),n.removeNode(e.nestingRoot),delete e.nestingRoot,o.Z(n.edges(),function(e){n.edge(e).nestingEdge&&n.removeEdge(e)})}),t(" normalizeRanks",function(){var e;e=L(d.Z(n.nodes(),function(e){return n.node(e).rank})),o.Z(n.nodes(),function(t){var r=n.node(t);u.Z(r,"rank")&&(r.rank-=e)})}),t(" assignRankMinMax",function(){var e;e=0,o.Z(n.nodes(),function(t){var r=n.node(t);r.borderTop&&(r.minRank=n.node(r.borderTop).rank,r.maxRank=n.node(r.borderBottom).rank,e=k(e,r.maxRank))}),n.graph().maxRank=e}),t(" removeEdgeLabelProxies",function(){o.Z(n.nodes(),function(e){var t=n.node(e);"edge-proxy"===t.dummy&&(n.edge(t.e).labelRank=t.rank,n.removeNode(e))})}),t(" normalize.run",function(){n.graph().dummyChains=[],o.Z(n.edges(),function(e){(function(e,n){var t,r,o,i=n.v,u=e.node(i).rank,a=n.w,s=e.node(a).rank,d=n.name,c=e.edge(n),f=c.labelRank;if(s!==u+1){for(e.removeEdge(n),o=0,++u;u<s;++o,++u)c.points=[],t=R(e,"edge",r={width:0,height:0,edgeLabel:c,edgeObj:n,rank:u},"_d"),u===f&&(r.width=c.width,r.height=c.height,r.dummy="edge-label",r.labelpos=c.labelpos),e.setEdge(i,t,{weight:c.weight},d),0===o&&e.graph().dummyChains.push(t),i=t;e.setEdge(i,a,{weight:c.weight},d)}})(n,e)})}),t(" parentDummyChains",function(){var e,t;e={},t=0,o.Z(n.children(),function r(i){var u=t;o.Z(n.children(i),r),e[i]={low:u,lim:t++}}),o.Z(n.graph().dummyChains,function(t){for(var r=n.node(t),o=r.edgeObj,i=function(e,n,t,r){var o,i,u=[],a=[],s=Math.min(n[t].low,n[r].low),d=Math.max(n[t].lim,n[r].lim);o=t;do u.push(o=e.parent(o));while(o&&(n[o].low>s||d>n[o].lim));for(i=o,o=r;(o=e.parent(o))!==i;)a.push(o);return{path:u.concat(a.reverse()),lca:i}}(n,e,o.v,o.w),u=i.path,a=i.lca,s=0,d=u[0],c=!0;t!==o.w;){if(r=n.node(t),c){for(;(d=u[s])!==a&&n.node(d).maxRank<r.rank;)s++;d===a&&(c=!1)}if(!c){for(;s<u.length-1&&n.node(d=u[s+1]).minRank<=r.rank;)s++;d=u[s]}n.setParent(t,d),t=n.successors(t)[0]}})}),t(" addBorderSegments",function(){o.Z(n.children(),function e(t){var r=n.children(t),i=n.node(t);if(r.length&&o.Z(r,e),u.Z(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,s=i.maxRank+1;a<s;++a)B(n,"borderLeft","_bl",t,i,a),B(n,"borderRight","_br",t,i,a)}})}),t(" order",function(){!function(e){var n=F(e),t=eW(e,c.Z(1,n+1),"inEdges"),r=eW(e,c.Z(n-1,-1,-1),"outEdges"),i=(a={},h=eo.Z(e.nodes(),function(n){return!e.children(n).length}),l=k(d.Z(h,function(n){return e.node(n).rank})),v=d.Z(c.Z(l+1),function(){return[]}),g=eJ(h,function(n){return e.node(n).rank}),o.Z(g,function n(t){u.Z(a,t)||(a[t]=!0,v[e.node(t).rank].push(t),o.Z(e.successors(t),n))}),v);eH(e,i);for(var a,h,l,v,g,Z,p=Number.POSITIVE_INFINITY,b=0,w=0;w<4;++b,++w){(function(e,n){var t=new f.k;o.Z(e,function(e){var r,i,a,c=e.graph().root,f=function e(n,t,r,i){var a,c,f,h,l,v,g,Z,p,b,w=n.children(t),_=n.node(t),y=_?_.borderLeft:void 0,x=_?_.borderRight:void 0,E={};y&&(w=eo.Z(w,function(e){return e!==y&&e!==x}));var k=(a=w,d.Z(a,function(e){var t=n.inEdges(e);if(!t.length)return{v:e};var r=eR.Z(t,function(e,t){var r=n.edge(t),o=n.node(t.v);return{sum:e.sum+r.weight*o.order,weight:e.weight+r.weight}},{sum:0,weight:0});return{v:e,barycenter:r.sum/r.weight,weight:r.weight}}));o.Z(k,function(t){if(n.children(t.v).length){var o=e(n,t.v,r,i);E[t.v]=o,u.Z(o,"barycenter")&&(I.Z(t.barycenter)?(t.barycenter=o.barycenter,t.weight=o.weight):(t.barycenter=(t.barycenter*t.weight+o.barycenter*o.weight)/(t.weight+o.weight),t.weight+=o.weight))}});var N=(c={},o.Z(k,function(e,n){var t=c[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:n};I.Z(e.barycenter)||(t.barycenter=e.barycenter,t.weight=e.weight)}),o.Z(r.edges(),function(e){var n=c[e.v],t=c[e.w];I.Z(n)||I.Z(t)||(t.indegree++,n.out.push(c[e.w]))}),function(e){for(var n=[];e.length;){var t=e.pop();n.push(t),o.Z(t.in.reverse(),function(e){return function(n){!n.merged&&(I.Z(n.barycenter)||I.Z(e.barycenter)||n.barycenter>=e.barycenter)&&function(e,n){var t=0,r=0;e.weight&&(t+=e.barycenter*e.weight,r+=e.weight),n.weight&&(t+=n.barycenter*n.weight,r+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=t/r,e.weight=r,e.i=Math.min(n.i,e.i),n.merged=!0}(e,n)}}(t)),o.Z(t.out,function(n){return function(t){t.in.push(n),0==--t.indegree&&e.push(t)}}(t))}return d.Z(eo.Z(n,function(e){return!e.merged}),function(e){return m.Z(e,["vs","i","barycenter","weight"])})}(eo.Z(c,function(e){return!e.indegree})));(function(e,n){o.Z(e,function(e){e.vs=s.Z(e.vs.map(function(e){return n[e]?n[e].vs:e}))})})(N,E);var j=(h=(f={lhs:[],rhs:[]},o.Z(N,function(e){u.Z(e,"barycenter")?f.lhs.push(e):f.rhs.push(e)}),f).lhs,l=eJ(f.rhs,function(e){return-e.i}),v=[],g=0,Z=0,p=0,h.sort(function(e){return function(n,t){return n.barycenter<t.barycenter?-1:n.barycenter>t.barycenter?1:e?t.i-n.i:n.i-t.i}}(!!i)),p=eK(v,l,p),o.Z(h,function(e){p+=e.vs.length,v.push(e.vs),g+=e.barycenter*e.weight,Z+=e.weight,p=eK(v,l,p)}),b={vs:s.Z(v)},Z&&(b.barycenter=g/Z,b.weight=Z),b);if(y&&(j.vs=s.Z([y,j.vs,x]),n.predecessors(y).length)){var C=n.node(n.predecessors(y)[0]),L=n.node(n.predecessors(x)[0]);u.Z(j,"barycenter")||(j.barycenter=0,j.weight=0),j.barycenter=(j.barycenter*j.weight+C.order+L.order)/(j.weight+2),j.weight+=2}return j}(e,c,t,n);o.Z(f.vs,function(n,t){e.node(n).order=t}),r=f.vs,a={},o.Z(r,function(n){for(var r,o,u=e.parent(n);u;){if((r=e.parent(u))?(o=a[r],a[r]=u):(o=i,i=u),o&&o!==u){t.setEdge(o,u);return}u=r}})})})(b%2?t:r,b%4>=2),i=P(e);var _,y=function(e,n){for(var t=0,r=1;r<n.length;++r)t+=function(e,n,t){for(var r=eP(t||[],d.Z(t,function(e,n){return n})||[],eA.Z),i=s.Z(d.Z(n,function(n){return eJ(d.Z(e.outEdges(n),function(n){return{pos:r[n.w],weight:e.edge(n).weight}}),"pos")})),u=1;u<t.length;)u<<=1;var a=2*u-1;u-=1;var c=d.Z(Array(a),function(){return 0}),f=0;return o.Z(i.forEach(function(e){var n=e.pos+u;c[n]+=e.weight;for(var t=0;n>0;)n%2&&(t+=c[n+1]),n=n-1>>1,c[n]+=e.weight;f+=e.weight*t})),f}(e,n[r-1],n[r]);return t}(e,i);y<p&&(w=0,_=i,Z=(0,eT.Z)(_,5),p=y)}eH(e,Z)}(n)}),t(" insertSelfEdges",function(){var e;e=P(n),o.Z(e,function(e){var t=0;o.Z(e,function(e,r){var i=n.node(e);i.order=r+t,o.Z(i.selfEdges,function(e){R(n,"selfedge",{width:e.label.width,height:e.label.height,rank:i.rank,order:r+ ++t,e:e.e,label:e.label},"_se")}),delete i.selfEdges})})}),t(" adjustCoordinateSystem",function(){var e;("lr"===(e=n.graph().rankdir.toLowerCase())||"rl"===e)&&V(n)}),t(" position",function(){var e,t,r,i,a,s,h,l,v,g,Z,p,m,w,_,y,x;_=P(w=e=T(e=n)),y=w.graph().ranksep,x=0,o.Z(_,function(e){var n=k(d.Z(e,function(e){return w.node(e).height}));o.Z(e,function(e){w.node(e).y=x+n/2}),x+=n+y}),i=P(t=e),s=b.Z((a={},eR.Z(i,function(e,n){var r=0,i=0,u=e.length,s=N(n);return o.Z(n,function(e,d){var c=function(e,n){if(e.node(n).dummy)return er(e.predecessors(n),function(n){return e.node(n).dummy})}(t,e),f=c?t.node(c).order:u;(c||e===s)&&(o.Z(n.slice(i,d+1),function(e){o.Z(t.predecessors(e),function(n){var o=t.node(n),i=o.order;(i<r||f<i)&&!(o.dummy&&t.node(e).dummy)&&e2(a,n,e)})}),i=d+1,r=f)}),n}),a),function(e,n){var t={};function r(n,r,i,u,a){var s;o.Z(c.Z(r,i),function(r){s=n[r],e.node(s).dummy&&o.Z(e.predecessors(s),function(n){var r=e.node(n);r.dummy&&(r.order<u||r.order>a)&&e2(t,n,s)})})}return eR.Z(n,function(n,t){var i,u=-1,a=0;return o.Z(t,function(o,s){if("border"===e.node(o).dummy){var d=e.predecessors(o);d.length&&(i=e.node(d[0]).order,r(t,a,s,u,i),a=s,u=i)}r(t,a,t.length,i,n.length)}),t}),t}(t,i)),h={},o.Z(["u","d"],function(e){r="u"===e?i:eO.Z(i).reverse(),o.Z(["l","r"],function(n){"r"===n&&(r=d.Z(r,function(e){return eO.Z(e).reverse()}));var i,a,c,l,v=("u"===e?t.predecessors:t.successors).bind(t),g=(i=r,a={},c={},l={},o.Z(i,function(e){o.Z(e,function(e,n){a[e]=e,c[e]=e,l[e]=n})}),o.Z(i,function(e){var n=-1;o.Z(e,function(e){var t=v(e);if(t.length)for(var r=((t=eJ(t,function(e){return l[e]})).length-1)/2,o=Math.floor(r),i=Math.ceil(r);o<=i;++o){var d=t[o];c[e]===e&&n<l[d]&&!function(e,n,t){if(n>t){var r=n;n=t,t=r}return u.Z(e[n],t)}(s,e,d)&&(c[d]=e,c[e]=a[e]=a[d],n=l[d])}})}),{root:a,align:c}),Z=function(e,n,t,r,i){var a,s,d,c,h,l={},v=(d=new f.k,a=(c=e.graph()).nodesep,s=c.edgesep,h=function(e,n,t){var r,o,d=e.node(n),c=e.node(t);if(r=0+d.width/2,u.Z(d,"labelpos"))switch(d.labelpos.toLowerCase()){case"l":o=-d.width/2;break;case"r":o=d.width/2}if(o&&(r+=i?o:-o),o=0,r+=(d.dummy?s:a)/2+(c.dummy?s:a)/2+c.width/2,u.Z(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":o=c.width/2;break;case"r":o=-c.width/2}return o&&(r+=i?o:-o),o=0,r},o.Z(n,function(n){var r;o.Z(n,function(n){var o=t[n];if(d.setNode(o),r){var i=t[r],u=d.edge(i,o);d.setEdge(i,o,Math.max(h(e,n,r),u||0))}r=n})}),d),g=i?"borderLeft":"borderRight";function Z(e,n){for(var t=v.nodes(),r=t.pop(),o={};r;)o[r]?e(r):(o[r]=!0,t.push(r),t=t.concat(n(r))),r=t.pop()}return Z(function(e){l[e]=v.inEdges(e).reduce(function(e,n){return Math.max(e,l[n.v]+v.edge(n))},0)},v.predecessors.bind(v)),Z(function(n){var t=v.outEdges(n).reduce(function(e,n){return Math.min(e,l[n.w]-v.edge(n))},Number.POSITIVE_INFINITY),r=e.node(n);t!==Number.POSITIVE_INFINITY&&r.borderType!==g&&(l[n]=Math.max(l[n],t))},v.successors.bind(v)),o.Z(r,function(e){l[e]=l[t[e]]}),l}(t,r,g.root,g.align,"r"===n);"r"===n&&(Z=j.Z(Z,function(e){return-e})),h[e+n]=Z})}),l=$(eO.Z(h),function(e){var n=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;return null==e||(0,e0.Z)(e,(0,eX.Z)(function(e,o){var i=t.node(o).width/2;n=Math.max(e+i,n),r=Math.min(e-i,r)}),e1.Z),n-r}),g=L(v=eO.Z(l)),Z=k(v),o.Z(["u","d"],function(e){o.Z(["l","r"],function(n){var t,r=e+n,o=h[r];if(o!==l){var i=eO.Z(o);(t="l"===n?g-L(i):Z-k(i))&&(h[r]=j.Z(o,function(e){return e+t}))}})}),p=t.graph().align,(m=j.Z(h.ul,function(e,n){if(p)return h[p.toLowerCase()][n];var t=eJ(d.Z(h,n));return(t[1]+t[2])/2}))&&(0,eQ.Z)(m,(0,eX.Z)(function(n,t){e.node(t).x=n}))}),t(" positionSelfEdges",function(){o.Z(n.nodes(),function(e){var t=n.node(e);if("selfedge"===t.dummy){var r=n.node(t.e.v),o=r.x+r.width/2,i=r.y,u=t.x-o,a=r.height/2;n.setEdge(t.e,t.label),n.removeNode(e),t.label.points=[{x:o+2*u/3,y:i-a},{x:o+5*u/6,y:i-a},{x:o+u,y:i},{x:o+5*u/6,y:i+a},{x:o+2*u/3,y:i+a}],t.label.x=t.x,t.label.y=t.y}})}),t(" removeBorderNodes",function(){o.Z(n.nodes(),function(e){if(n.children(e).length){var t=n.node(e),r=n.node(t.borderTop),o=n.node(t.borderBottom),i=n.node(N(t.borderLeft)),u=n.node(N(t.borderRight));t.width=Math.abs(u.x-i.x),t.height=Math.abs(o.y-r.y),t.x=i.x+t.width/2,t.y=r.y+t.height/2}}),o.Z(n.nodes(),function(e){"border"===n.node(e).dummy&&n.removeNode(e)})}),t(" normalize.undo",function(){o.Z(n.graph().dummyChains,function(e){var t,r=n.node(e),o=r.edgeLabel;for(n.setEdge(r.edgeObj,o);r.dummy;)t=n.successors(e)[0],n.removeNode(e),o.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(o.x=r.x,o.y=r.y,o.width=r.width,o.height=r.height),e=t,r=n.node(e)})}),t(" fixupEdgeLabelCoords",function(){o.Z(n.edges(),function(e){var t=n.edge(e);if(u.Z(t,"x"))switch(("l"===t.labelpos||"r"===t.labelpos)&&(t.width-=t.labeloffset),t.labelpos){case"l":t.x-=t.width/2+t.labeloffset;break;case"r":t.x+=t.width/2+t.labeloffset}})}),t(" undoCoordinateSystem",function(){var e;("bt"===(e=n.graph().rankdir.toLowerCase())||"rl"===e)&&(o.Z(n.nodes(),function(e){U(n.node(e))}),o.Z(n.edges(),function(e){var t=n.edge(e);o.Z(t.points,U),u.Z(t,"y")&&U(t)})),("lr"===e||"rl"===e)&&(o.Z(n.nodes(),function(e){Y(n.node(e))}),o.Z(n.edges(),function(e){var t=n.edge(e);o.Z(t.points,Y),u.Z(t,"x")&&Y(t)}),V(n))}),t(" translateGraph",function(){(function(e){var n=Number.POSITIVE_INFINITY,t=0,r=Number.POSITIVE_INFINITY,i=0,a=e.graph(),s=a.marginx||0,d=a.marginy||0;function c(e){var o=e.x,u=e.y,a=e.width,s=e.height;n=Math.min(n,o-a/2),t=Math.max(t,o+a/2),r=Math.min(r,u-s/2),i=Math.max(i,u+s/2)}o.Z(e.nodes(),function(n){c(e.node(n))}),o.Z(e.edges(),function(n){var t=e.edge(n);u.Z(t,"x")&&c(t)}),n-=s,r-=d,o.Z(e.nodes(),function(t){var o=e.node(t);o.x-=n,o.y-=r}),o.Z(e.edges(),function(t){var i=e.edge(t);o.Z(i.points,function(e){e.x-=n,e.y-=r}),u.Z(i,"x")&&(i.x-=n),u.Z(i,"y")&&(i.y-=r)}),a.width=t-n+s,a.height=i-r+d})(n)}),t(" assignNodeIntersects",function(){o.Z(n.edges(),function(e){var t,r,o=n.edge(e),i=n.node(e.v),u=n.node(e.w);o.points?(t=o.points[0],r=o.points[o.points.length-1]):(o.points=[],t=u,r=i),o.points.unshift(A(i,t)),o.points.push(A(u,r))})}),t(" reversePoints",function(){o.Z(n.edges(),function(e){var t=n.edge(e);t.reversed&&t.points.reverse()})}),t(" acyclic.undo",function(){o.Z(n.edges(),function(e){var t=n.edge(e);if(t.reversed){n.removeEdge(e);var r=t.forwardName;delete t.reversed,delete t.forwardName,n.setEdge(e.w,e.v,t,r)}})})}),t(" updateInputGraph",function(){o.Z(e.nodes(),function(t){var r=e.node(t),o=n.node(t);r&&(r.x=o.x,r.y=o.y,n.children(t).length&&(r.width=o.width,r.height=o.height))}),o.Z(e.edges(),function(t){var r=e.edge(t),o=n.edge(t);r.points=o.points,u.Z(o,"x")&&(r.x=o.x,r.y=o.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height})})}var e7=["nodesep","edgesep","ranksep","marginx","marginy"],e4={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},e6=["acyclicer","ranker","rankdir","align"],e8=["width","height"],e9={width:0,height:0},e5=["minlen","weight","width","height","labeloffset"],ne={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},nn=["labelpos"];function nt(e,n){return j.Z(m.Z(e,n),Number)}function nr(e){var n={};return o.Z(e,function(e,t){n[t.toLowerCase()]=e}),n}},21794:(e,n,t)=>{t.d(n,{k:()=>I});var r=t(54030),o=t(61648),i=t(32620),u=t(88153),a=t(98619),s=t(20582),d=t(41115),c=t(38906),f=t(70165),h=t(39386),l=t(14185),v=t(81904);let g=function(e){return e!=e},Z=function(e,n,t){for(var r=t-1,o=e.length;++r<o;)if(e[r]===n)return r;return -1},p=function(e,n){return!!(null==e?0:e.length)&&(n==n?Z(e,n,0):(0,v.Z)(e,g,0))>-1},b=function(e,n,t){for(var r=-1,o=null==e?0:e.length;++r<o;)if(t(n,e[r]))return!0;return!1};var m=t(16094),w=t(3386),_=t(64278),y=w.Z&&1/(0,_.Z)(new w.Z([,-0]))[1]==1/0?function(e){return new w.Z(e)}:function(){};let x=function(e,n,t){var r=-1,o=p,i=e.length,u=!0,a=[],s=a;if(t)u=!1,o=b;else if(i>=200){var d=n?null:y(e);if(d)return(0,_.Z)(d);u=!1,o=m.Z,s=new l.Z}else s=n?[]:a;e:for(;++r<i;){var c=e[r],f=n?n(c):c;if(c=t||0!==c?c:0,u&&f==f){for(var h=s.length;h--;)if(s[h]===f)continue e;n&&s.push(f),a.push(c)}else o(s,f,t)||(s!==a&&s.push(f),a.push(c))}return a};var E=t(37964),k=(0,h.Z)(function(e){return x((0,f.Z)(e,1,E.Z,!0))}),N=t(75582),j=t(46985);class I{constructor(e={}){this._isDirected=!r.Z(e,"directed")||e.directed,this._isMultigraph=!!r.Z(e,"multigraph")&&e.multigraph,this._isCompound=!!r.Z(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=o.Z(void 0),this._defaultEdgeLabelFn=o.Z(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\x00"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return i.Z(e)||(e=o.Z(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return u.Z(this._nodes)}sources(){var e=this;return a.Z(this.nodes(),function(n){return s.Z(e._in[n])})}sinks(){var e=this;return a.Z(this.nodes(),function(n){return s.Z(e._out[n])})}setNodes(e,n){var t=arguments,r=this;return d.Z(e,function(e){t.length>1?r.setNode(e,n):r.setNode(e)}),this}setNode(e,n){return r.Z(this._nodes,e)?arguments.length>1&&(this._nodes[e]=n):(this._nodes[e]=arguments.length>1?n:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\x00",this._children[e]={},this._children["\x00"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount),this}node(e){return this._nodes[e]}hasNode(e){return r.Z(this._nodes,e)}removeNode(e){var n=this;if(r.Z(this._nodes,e)){var t=function(e){n.removeEdge(n._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],d.Z(this.children(e),function(e){n.setParent(e)}),delete this._children[e]),d.Z(u.Z(this._in[e]),t),delete this._in[e],delete this._preds[e],d.Z(u.Z(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,n){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(c.Z(n))n="\x00";else{n+="";for(var t=n;!c.Z(t);t=this.parent(t))if(t===e)throw Error("Setting "+n+" as parent of "+e+" would create a cycle");this.setNode(n)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=n,this._children[n][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var n=this._parent[e];if("\x00"!==n)return n}}children(e){if(c.Z(e)&&(e="\x00"),this._isCompound){var n=this._children[e];if(n)return u.Z(n)}else if("\x00"===e)return this.nodes();else if(this.hasNode(e))return[]}predecessors(e){var n=this._preds[e];if(n)return u.Z(n)}successors(e){var n=this._sucs[e];if(n)return u.Z(n)}neighbors(e){var n=this.predecessors(e);if(n)return k(n,this.successors(e))}isLeaf(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length}filterNodes(e){var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph());var t=this;d.Z(this._nodes,function(t,r){e(r)&&n.setNode(r,t)}),d.Z(this._edgeObjs,function(e){n.hasNode(e.v)&&n.hasNode(e.w)&&n.setEdge(e,t.edge(e))});var r={};return this._isCompound&&d.Z(n.nodes(),function(e){n.setParent(e,function e(o){var i=t.parent(o);return void 0===i||n.hasNode(i)?(r[o]=i,i):i in r?r[i]:e(i)}(e))}),n}setDefaultEdgeLabel(e){return i.Z(e)||(e=o.Z(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return N.Z(this._edgeObjs)}setPath(e,n){var t=this,r=arguments;return j.Z(e,function(e,o){return r.length>1?t.setEdge(e,o,n):t.setEdge(e,o),o}),this}setEdge(){var e,n,t,o,i=!1,u=arguments[0];"object"==typeof u&&null!==u&&"v"in u?(e=u.v,n=u.w,t=u.name,2==arguments.length&&(o=arguments[1],i=!0)):(e=u,n=arguments[1],t=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),e=""+e,n=""+n,c.Z(t)||(t=""+t);var a=M(this._isDirected,e,n,t);if(r.Z(this._edgeLabels,a))return i&&(this._edgeLabels[a]=o),this;if(!c.Z(t)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(n),this._edgeLabels[a]=i?o:this._defaultEdgeLabelFn(e,n,t);var s=function(e,n,t,r){var o=""+n,i=""+t;if(!e&&o>i){var u=o;o=i,i=u}var a={v:o,w:i};return r&&(a.name=r),a}(this._isDirected,e,n,t);return e=s.v,n=s.w,Object.freeze(s),this._edgeObjs[a]=s,C(this._preds[n],e),C(this._sucs[e],n),this._in[n][a]=s,this._out[e][a]=s,this._edgeCount++,this}edge(e,n,t){var r=1==arguments.length?O(this._isDirected,arguments[0]):M(this._isDirected,e,n,t);return this._edgeLabels[r]}hasEdge(e,n,t){var o=1==arguments.length?O(this._isDirected,arguments[0]):M(this._isDirected,e,n,t);return r.Z(this._edgeLabels,o)}removeEdge(e,n,t){var r=1==arguments.length?O(this._isDirected,arguments[0]):M(this._isDirected,e,n,t),o=this._edgeObjs[r];return o&&(e=o.v,n=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],L(this._preds[n],e),L(this._sucs[e],n),delete this._in[n][r],delete this._out[e][r],this._edgeCount--),this}inEdges(e,n){var t=this._in[e];if(t){var r=N.Z(t);return n?a.Z(r,function(e){return e.v===n}):r}}outEdges(e,n){var t=this._out[e];if(t){var r=N.Z(t);return n?a.Z(r,function(e){return e.w===n}):r}}nodeEdges(e,n){var t=this.inEdges(e,n);if(t)return t.concat(this.outEdges(e,n))}}function C(e,n){e[n]?e[n]++:e[n]=1}function L(e,n){--e[n]||delete e[n]}function M(e,n,t,r){var o=""+n,i=""+t;if(!e&&o>i){var u=o;o=i,i=u}return o+"\x01"+i+"\x01"+(c.Z(r)?"\x00":r)}function O(e,n){return M(e,n.v,n.w,n.name)}I.prototype._nodeCount=0,I.prototype._edgeCount=0},38601:(e,n,t)=>{t.d(n,{k:()=>r.k});var r=t(21794)},47752:(e,n,t)=>{t.d(n,{Z:()=>r});let r=function(e,n){for(var t=-1,r=null==e?0:e.length;++t<r&&!1!==n(e[t],t,e););return e}},31039:(e,n,t)=>{t.d(n,{Z:()=>z});var r=t(87473),o=t(47752),i=t(73840),u=t(46462),a=t(88153),s=t(9907),d=t(44219),c=t(89598),f=t(31422),h=t(36622),l=t(27838),v=t(84535),g=Object.getOwnPropertySymbols?function(e){for(var n=[];e;)(0,h.Z)(n,(0,f.Z)(e)),e=(0,l.Z)(e);return n}:v.Z,Z=t(69021),p=t(41174);let b=function(e){return(0,p.Z)(e,s.Z,g)};var m=t(66598),w=Object.prototype.hasOwnProperty;let _=function(e){var n=e.length,t=new e.constructor(n);return n&&"string"==typeof e[0]&&w.call(e,"index")&&(t.index=e.index,t.input=e.input),t};var y=t(74576);let x=function(e,n){var t=n?(0,y.Z)(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)};var E=/\w*$/;let k=function(e){var n=new e.constructor(e.source,E.exec(e));return n.lastIndex=e.lastIndex,n};var N=t(12760),j=N.Z?N.Z.prototype:void 0,I=j?j.valueOf:void 0,C=t(59007);let L=function(e,n,t){var r=e.constructor;switch(n){case"[object ArrayBuffer]":return(0,y.Z)(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return x(e,t);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,C.Z)(e,t);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return k(e);case"[object Symbol]":return I?Object(I.call(e)):{}}};var M=t(47312),O=t(27774),R=t(12005),T=t(29330),A=t(59417),P=t(80369),S=P.Z&&P.Z.isMap,F=S?(0,A.Z)(S):function(e){return(0,T.Z)(e)&&"[object Map]"==(0,m.Z)(e)},D=t(22737),G=P.Z&&P.Z.isSet,B=G?(0,A.Z)(G):function(e){return(0,T.Z)(e)&&"[object Set]"==(0,m.Z)(e)},V="[object Arguments]",q="[object Function]",U="[object Object]",Y={};Y[V]=Y["[object Array]"]=Y["[object ArrayBuffer]"]=Y["[object DataView]"]=Y["[object Boolean]"]=Y["[object Date]"]=Y["[object Float32Array]"]=Y["[object Float64Array]"]=Y["[object Int8Array]"]=Y["[object Int16Array]"]=Y["[object Int32Array]"]=Y["[object Map]"]=Y["[object Number]"]=Y[U]=Y["[object RegExp]"]=Y["[object Set]"]=Y["[object String]"]=Y["[object Symbol]"]=Y["[object Uint8Array]"]=Y["[object Uint8ClampedArray]"]=Y["[object Uint16Array]"]=Y["[object Uint32Array]"]=!0,Y["[object Error]"]=Y[q]=Y["[object WeakMap]"]=!1;let z=function e(n,t,h,l,v,p){var w,y=1&t,x=2&t,E=4&t;if(h&&(w=v?h(n,l,v,p):h(n)),void 0!==w)return w;if(!(0,D.Z)(n))return n;var k=(0,O.Z)(n);if(k){if(w=_(n),!y)return(0,c.Z)(n,w)}else{var N,j,I,C,T=(0,m.Z)(n),A=T==q||"[object GeneratorFunction]"==T;if((0,R.Z)(n))return(0,d.Z)(n,y);if(T==U||T==V||A&&!v){if(w=x||A?{}:(0,M.Z)(n),!y)return x?(j=(N=w)&&(0,u.Z)(n,(0,s.Z)(n),N),(0,u.Z)(n,g(n),j)):(C=(I=w)&&(0,u.Z)(n,(0,a.Z)(n),I),(0,u.Z)(n,(0,f.Z)(n),C))}else{if(!Y[T])return v?n:{};w=L(n,T,y)}}p||(p=new r.Z);var P=p.get(n);if(P)return P;p.set(n,w),B(n)?n.forEach(function(r){w.add(e(r,t,h,r,n,p))}):F(n)&&n.forEach(function(r,o){w.set(o,e(r,t,h,o,n,p))});var S=E?x?b:Z.Z:x?s.Z:a.Z,G=k?void 0:S(n);return(0,o.Z)(G||n,function(r,o){G&&(r=n[o=r]),(0,i.Z)(w,o,e(r,t,h,o,n,p))}),w}},81904:(e,n,t)=>{t.d(n,{Z:()=>r});let r=function(e,n,t,r){for(var o=e.length,i=t+(r?1:-1);r?i--:++i<o;)if(n(e[i],i,e))return i;return -1}},70165:(e,n,t)=>{t.d(n,{Z:()=>d});var r=t(36622),o=t(12760),i=t(12603),u=t(27774),a=o.Z?o.Z.isConcatSpreadable:void 0;let s=function(e){return(0,u.Z)(e)||(0,i.Z)(e)||!!(a&&e&&e[a])},d=function e(n,t,o,i,u){var a=-1,d=n.length;for(o||(o=s),u||(u=[]);++a<d;){var c=n[a];t>0&&o(c)?t>1?e(c,t-1,o,i,u):(0,r.Z)(u,c):i||(u[u.length]=c)}return u}},94352:(e,n,t)=>{t.d(n,{Z:()=>i});var r=t(23395),o=t(81074);let i=function(e,n){var t=-1,i=(0,o.Z)(e)?Array(e.length):[];return(0,r.Z)(e,function(e,r,o){i[++t]=n(e,r,o)}),i}},83978:(e,n,t)=>{t.d(n,{Z:()=>o});var r=t(7659);let o=function(e){return"function"==typeof e?e:r.Z}},46260:(e,n,t)=>{t.d(n,{Z:()=>d});var r=t(39386),o=t(18917),i=t(45654),u=t(9907),a=Object.prototype,s=a.hasOwnProperty;let d=(0,r.Z)(function(e,n){e=Object(e);var t=-1,r=n.length,d=r>2?n[2]:void 0;for(d&&(0,i.Z)(n[0],n[1],d)&&(r=1);++t<r;)for(var c=n[t],f=(0,u.Z)(c),h=-1,l=f.length;++h<l;){var v=f[h],g=e[v];(void 0===g||(0,o.Z)(g,a[v])&&!s.call(e,v))&&(e[v]=c[v])}return e})},98619:(e,n,t)=>{t.d(n,{Z:()=>s});var r=t(43993),o=t(23395);let i=function(e,n){var t=[];return(0,o.Z)(e,function(e,r,o){n(e,r,o)&&t.push(e)}),t};var u=t(64251),a=t(27774);let s=function(e,n){return((0,a.Z)(e)?r.Z:i)(e,(0,u.Z)(n,3))}},94496:(e,n,t)=>{t.d(n,{Z:()=>o});var r=t(70165);let o=function(e){return(null==e?0:e.length)?(0,r.Z)(e,1):[]}},41115:(e,n,t)=>{t.d(n,{Z:()=>a});var r=t(47752),o=t(23395),i=t(83978),u=t(27774);let a=function(e,n){return((0,u.Z)(e)?r.Z:o.Z)(e,(0,i.Z)(n))}},54030:(e,n,t)=>{t.d(n,{Z:()=>u});var r=Object.prototype.hasOwnProperty;let o=function(e,n){return null!=e&&r.call(e,n)};var i=t(80179);let u=function(e,n){return null!=e&&(0,i.Z)(e,n,o)}},38906:(e,n,t)=>{t.d(n,{Z:()=>r});let r=function(e){return void 0===e}},32302:(e,n,t)=>{t.d(n,{Z:()=>a});var r=t(65343),o=t(64251),i=t(94352),u=t(27774);let a=function(e,n){return((0,u.Z)(e)?r.Z:i.Z)(e,(0,o.Z)(n,3))}},40721:(e,n,t)=>{t.d(n,{Z:()=>g});var r=t(3770),o=t(73840),i=t(42675),u=t(78074),a=t(22737),s=t(47620);let d=function(e,n,t,r){if(!(0,a.Z)(e))return e;n=(0,i.Z)(n,e);for(var d=-1,c=n.length,f=c-1,h=e;null!=h&&++d<c;){var l=(0,s.Z)(n[d]),v=t;if("__proto__"===l||"constructor"===l||"prototype"===l)break;if(d!=f){var g=h[l];void 0===(v=r?r(g,l,h):void 0)&&(v=(0,a.Z)(g)?g:(0,u.Z)(n[d+1])?[]:{})}(0,o.Z)(h,l,v),h=h[l]}return e},c=function(e,n,t){for(var o=-1,u=n.length,a={};++o<u;){var s=n[o],c=(0,r.Z)(e,s);t(c,s)&&d(a,(0,i.Z)(s,e),c)}return a};var f=t(50181),h=t(94496),l=t(53211),v=t(31385);let g=function(e){return(0,v.Z)((0,l.Z)(e,void 0,h.Z),e+"")}(function(e,n){return null==e?{}:c(e,n,function(n,t){return(0,f.Z)(e,t)})})},77879:(e,n,t)=>{t.d(n,{Z:()=>s});var r=Math.ceil,o=Math.max;let i=function(e,n,t,i){for(var u=-1,a=o(r((n-e)/(t||1)),0),s=Array(a);a--;)s[i?a:++u]=e,e+=t;return s};var u=t(45654),a=t(46527);let s=function(e,n,t){return t&&"number"!=typeof t&&(0,u.Z)(e,n,t)&&(n=t=void 0),e=(0,a.Z)(e),void 0===n?(n=e,e=0):n=(0,a.Z)(n),t=void 0===t?e<n?1:-1:(0,a.Z)(t),i(e,n,t,void 0)}},46985:(e,n,t)=>{t.d(n,{Z:()=>s});let r=function(e,n,t,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(t=e[++o]);++o<i;)t=n(t,e[o],o,e);return t};var o=t(23395),i=t(64251);let u=function(e,n,t,r,o){return o(e,function(e,o,i){t=r?(r=!1,e):n(t,e,o,i)}),t};var a=t(27774);let s=function(e,n,t){var s=(0,a.Z)(e)?r:u,d=arguments.length<3;return s(e,(0,i.Z)(n,4),t,d,o.Z)}},46527:(e,n,t)=>{t.d(n,{Z:()=>g});var r=/\s/;let o=function(e){for(var n=e.length;n--&&r.test(e.charAt(n)););return n};var i=/^\s+/,u=t(22737),a=t(23786),s=0/0,d=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,h=parseInt;let l=function(e){if("number"==typeof e)return e;if((0,a.Z)(e))return s;if((0,u.Z)(e)){var n,t="function"==typeof e.valueOf?e.valueOf():e;e=(0,u.Z)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=(n=e)?n.slice(0,o(n)+1).replace(i,""):n;var r=c.test(e);return r||f.test(e)?h(e.slice(2),r?2:8):d.test(e)?s:+e};var v=1/0;let g=function(e){return e?(e=l(e))===v||e===-v?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},31631:(e,n,t)=>{t.d(n,{Z:()=>i});var r=t(15907),o=0;let i=function(e){var n=++o;return(0,r.Z)(e)+n}},75582:(e,n,t)=>{t.d(n,{Z:()=>i});var r=t(65343),o=t(88153);let i=function(e){var n;return null==e?[]:(n=(0,o.Z)(e),(0,r.Z)(n,function(n){return e[n]}))}}}; |