@epam/uui-db 5.1.0 → 5.1.2-alpha.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/index.esm.js +21 -16
- package/index.esm.js.map +1 -1
- package/index.js +21 -16
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/src/DbTable.d.ts +4 -4
- package/src/DbTable.d.ts.map +1 -1
- package/src/tempIds.d.ts.map +1 -1
- package/src/utils.d.ts +1 -1
- package/src/utils.d.ts.map +1 -1
- package/stats.html +90 -1429
package/stats.html
CHANGED
|
@@ -145,9 +145,9 @@ main {
|
|
|
145
145
|
var drawChart = (function (exports) {
|
|
146
146
|
'use strict';
|
|
147
147
|
|
|
148
|
-
var n,l$1,u$1,t$1,o$2,r$1,f$1={},e$1=[],c$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s$1(n,l){for(var u in l)n[u]=l[u];return n}function a$1(n){var l=n.parentNode;l&&l.removeChild(n);}function h$1(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return v$1(l,f,t,o,null)}function v$1(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$1:r};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function p$1(n){return n.children}function d$1(n,l){this.props=n,this.context=l;}function _$2(n,l){if(null==l)return n.__?_$2(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?_$2(n):null}function k$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return k$1(n)}}function b$1(n){(!n.__d&&(n.__d=!0)&&t$1.push(n)&&!g$1.__r++||o$2!==l$1.debounceRendering)&&((o$2=l$1.debounceRendering)||setTimeout)(g$1);}function g$1(){for(var n;g$1.__r=t$1.length;)n=t$1.sort(function(n,l){return n.__v.__b-l.__v.__b}),t$1=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=s$1({},t)).__v=t.__v+1,j$1(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?_$2(t):o,t.__h),z$1(u,t),t.__e!=o&&k$1(t)));});}function w$1(n,l,u,i,t,o,r,c,s,a){var h,y,d,k,b,g,w,x=i&&i.__k||e$1,C=x.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(k=u.__k[h]=null==(k=l[h])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k||"bigint"==typeof k?v$1(null,k,null,null,k):Array.isArray(k)?v$1(p$1,{children:k},null,null,null):k.__b>0?v$1(k.type,k.props,k.key,k.ref?k.ref:null,k.__v):k)){if(k.__=u,k.__b=u.__b+1,null===(d=x[h])||d&&k.key==d.key&&k.type===d.type)x[h]=void 0;else for(y=0;y<C;y++){if((d=x[y])&&k.key==d.key&&k.type===d.type){x[y]=void 0;break}d=null;}j$1(n,k,d=d||f$1,t,o,r,c,s,a),b=k.__e,(y=k.ref)&&d.ref!=y&&(w||(w=[]),d.ref&&w.push(d.ref,null,k),w.push(y,k.__c||b,k)),null!=b?(null==g&&(g=b),"function"==typeof k.type&&k.__k===d.__k?k.__d=s=m$1(k,s,n):s=A$1(n,k,d,x,b,s),"function"==typeof u.type&&(u.__d=s)):s&&d.__e==s&&s.parentNode!=n&&(s=_$2(d));}for(u.__e=g,h=C;h--;)null!=x[h]&&N(x[h],x[h]);if(w)for(h=0;h<w.length;h++)M(w[h],w[++h],w[++h]);}function m$1(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?m$1(i,l,u):A$1(u,i,i,t,i.__e,l));return l}function A$1(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C$1(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H(n,o,l[o],u[o],i);}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||c$1.test(l)?u:u+"px";}function H(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T$1:I,o):n.removeEventListener(l,o?T$1:I,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&-1==l.indexOf("-")?n.removeAttribute(l):n.setAttribute(l,u));}}function I(n){this.l[n.type+!1](l$1.event?l$1.event(n):n);}function T$1(n){this.l[n.type+!0](l$1.event?l$1.event(n):n);}function j$1(n,u,i,t,o,r,f,e,c){var a,h,v,y,_,k,b,g,m,x,A,C,$,H,I,T=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(a=l$1.__b)&&a(u);try{n:if("function"==typeof T){if(g=u.props,m=(a=T.contextType)&&t[a.__c],x=a?m?m.props.value:a.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in T&&T.prototype.render?u.__c=h=new T(g,x):(u.__c=h=new d$1(g,x),h.constructor=T,h.render=O),m&&m.sub(h),h.props=g,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s$1({},h.__s)),s$1(h.__s,T.getDerivedStateFromProps(g,h.__s))),y=h.props,_=h.state,v)null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==T.getDerivedStateFromProps&&g!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,x)||u.__v===i.__v){for(h.props=g,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),A=0;A<h._sb.length;A++)h.__h.push(h._sb[A]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,_,k);});}if(h.context=x,h.props=g,h.__v=u,h.__P=n,C=l$1.__r,$=0,"prototype"in T&&T.prototype.render){for(h.state=h.__s,h.__d=!1,C&&C(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[];}else do{h.__d=!1,C&&C(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++$<25);h.state=h.__s,null!=h.getChildContext&&(t=s$1(s$1({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,_)),I=null!=a&&a.type===p$1&&null==a.key?a.props.children:a,w$1(n,Array.isArray(I)?I:[I],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L(i.__e,u,i,t,o,r,f,c);(a=l$1.diffed)&&a(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l$1.__e(n,u,i);}}function z$1(n,u){l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function L(l,u,i,t,o,r,e,c){var s,h,v,y=i.props,p=u.props,d=u.type,k=0;if("svg"===d&&(o=!0),null!=r)for(;k<r.length;k++)if((s=r[k])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[k]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(r=r&&n.call(l.childNodes),h=(y=i.props||f$1).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},k=0;k<l.attributes.length;k++)y[l.attributes[k].name]=l.attributes[k].value;(v||h)&&(v&&(h&&v.__html==h.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C$1(l,p,y,o,c),v)u.__k=[];else if(k=u.props.children,w$1(l,Array.isArray(k)?k:[k],u,i,t,o&&"foreignObject"!==d,r,e,r?r[0]:i.__k&&_$2(i,0),c),null!=r)for(k=r.length;k--;)null!=r[k]&&a$1(r[k]);c||("value"in p&&void 0!==(k=p.value)&&(k!==l.value||"progress"===d&&!k||"option"===d&&k!==y.value)&&H(l,"value",k,y.value,!1),"checked"in p&&void 0!==(k=p.checked)&&k!==l.checked&&H(l,"checked",k,y.checked,!1));}return l}function M(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,i);}}function N(n,u,i){var t,o;if(l$1.unmount&&l$1.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$1.__e(n,u);}t.base=t.__P=null,n.__c=void 0;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N(t[o],u,i||"function"!=typeof n.type);i||null==n.__e||a$1(n.__e),n.__=n.__e=n.__d=void 0;}function O(n,l,u){return this.constructor(n,u)}function P(u,i,t){var o,r,e;l$1.__&&l$1.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,e=[],j$1(i,u=(!o&&t||i).__k=h$1(p$1,null,[u]),r||f$1,f$1,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n.call(i.childNodes):null,e,!o&&t?t:r?r.__e:i.firstChild,o),z$1(e,u);}function B$2(n,l){var u={__c:l="__cC"+r$1++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(b$1);},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=e$1.slice,l$1={__e:function(n,l,u,i){for(var t,o,r;l=l.__;)if((t=l.__c)&&!t.__)try{if((o=t.constructor)&&null!=o.getDerivedStateFromError&&(t.setState(o.getDerivedStateFromError(n)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),r=t.__d),r)return t.__E=t}catch(l){n=l;}throw n}},u$1=0,d$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s$1({},this.state),"function"==typeof n&&(n=n(s$1({},u),this.props)),n&&s$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),b$1(this));},d$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),b$1(this));},d$1.prototype.render=p$1,t$1=[],g$1.__r=0,r$1=0;
|
|
148
|
+
var n,l$1,u$1,t$1,o$2,r$1,f$1,e$1,c$1={},s$1=[],a$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,v$1=Array.isArray;function h$1(n,l){for(var u in l)n[u]=l[u];return n}function p$1(n){var l=n.parentNode;l&&l.removeChild(n);}function y$1(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return d$1(l,f,t,o,null)}function d$1(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$1:r};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function k$1(n){return n.children}function b$1(n,l){this.props=n,this.context=l;}function g$1(n,l){if(null==l)return n.__?g$1(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?g$1(n):null}function m$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return m$1(n)}}function w$1(n){(!n.__d&&(n.__d=!0)&&t$1.push(n)&&!x.__r++||o$2!==l$1.debounceRendering)&&((o$2=l$1.debounceRendering)||r$1)(x);}function x(){var n,l,u,i,o,r,e,c;for(t$1.sort(f$1);n=t$1.shift();)n.__d&&(l=t$1.length,i=void 0,o=void 0,e=(r=(u=n).__v).__e,(c=u.__P)&&(i=[],(o=h$1({},r)).__v=r.__v+1,L(c,r,o,u.__n,void 0!==c.ownerSVGElement,null!=r.__h?[e]:null,i,null==e?g$1(r):e,r.__h),M(i,r),r.__e!=e&&m$1(r)),t$1.length>l&&t$1.sort(f$1));x.__r=0;}function P(n,l,u,i,t,o,r,f,e,a){var h,p,y,_,b,m,w,x=i&&i.__k||s$1,P=x.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(_=u.__k[h]=null==(_=l[h])||"boolean"==typeof _||"function"==typeof _?null:"string"==typeof _||"number"==typeof _||"bigint"==typeof _?d$1(null,_,null,null,_):v$1(_)?d$1(k$1,{children:_},null,null,null):_.__b>0?d$1(_.type,_.props,_.key,_.ref?_.ref:null,_.__v):_)){if(_.__=u,_.__b=u.__b+1,null===(y=x[h])||y&&_.key==y.key&&_.type===y.type)x[h]=void 0;else for(p=0;p<P;p++){if((y=x[p])&&_.key==y.key&&_.type===y.type){x[p]=void 0;break}y=null;}L(n,_,y=y||c$1,t,o,r,f,e,a),b=_.__e,(p=_.ref)&&y.ref!=p&&(w||(w=[]),y.ref&&w.push(y.ref,null,_),w.push(p,_.__c||b,_)),null!=b?(null==m&&(m=b),"function"==typeof _.type&&_.__k===y.__k?_.__d=e=C(_,e,n):e=$(n,_,y,x,b,e),"function"==typeof u.type&&(u.__d=e)):e&&y.__e==e&&e.parentNode!=n&&(e=g$1(y));}for(u.__e=m,h=P;h--;)null!=x[h]&&("function"==typeof u.type&&null!=x[h].__e&&x[h].__e==u.__d&&(u.__d=A(i).nextSibling),q$1(x[h],x[h]));if(w)for(h=0;h<w.length;h++)O(w[h],w[++h],w[++h]);}function C(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?C(i,l,u):$(u,i,i,t,i.__e,l));return l}function $(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function A(n){var l,u,i;if(null==n.type||"string"==typeof n.type)return n.__e;if(n.__k)for(l=n.__k.length-1;l>=0;l--)if((u=n.__k[l])&&(i=A(u)))return i;return null}function H(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||T$1(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||T$1(n,o,l[o],u[o],i);}function I(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a$1.test(l)?u:u+"px";}function T$1(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||I(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||I(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?z$1:j$1,o):n.removeEventListener(l,o?z$1:j$1,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&"rowSpan"!==l&&"colSpan"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u));}}function j$1(n){return this.l[n.type+!1](l$1.event?l$1.event(n):n)}function z$1(n){return this.l[n.type+!0](l$1.event?l$1.event(n):n)}function L(n,u,i,t,o,r,f,e,c){var s,a,p,y,d,_,g,m,w,x,C,S,$,A,H,I=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(s=l$1.__b)&&s(u);try{n:if("function"==typeof I){if(m=u.props,w=(s=I.contextType)&&t[s.__c],x=s?w?w.props.value:s.__:t,i.__c?g=(a=u.__c=i.__c).__=a.__E:("prototype"in I&&I.prototype.render?u.__c=a=new I(m,x):(u.__c=a=new b$1(m,x),a.constructor=I,a.render=B$1),w&&w.sub(a),a.props=m,a.state||(a.state={}),a.context=x,a.__n=t,p=a.__d=!0,a.__h=[],a._sb=[]),null==a.__s&&(a.__s=a.state),null!=I.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=h$1({},a.__s)),h$1(a.__s,I.getDerivedStateFromProps(m,a.__s))),y=a.props,d=a.state,a.__v=u,p)null==I.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else {if(null==I.getDerivedStateFromProps&&m!==y&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(m,x),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(m,a.__s,x)||u.__v===i.__v){for(u.__v!==i.__v&&(a.props=m,a.state=a.__s,a.__d=!1),a.__e=!1,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),C=0;C<a._sb.length;C++)a.__h.push(a._sb[C]);a._sb=[],a.__h.length&&f.push(a);break n}null!=a.componentWillUpdate&&a.componentWillUpdate(m,a.__s,x),null!=a.componentDidUpdate&&a.__h.push(function(){a.componentDidUpdate(y,d,_);});}if(a.context=x,a.props=m,a.__P=n,S=l$1.__r,$=0,"prototype"in I&&I.prototype.render){for(a.state=a.__s,a.__d=!1,S&&S(u),s=a.render(a.props,a.state,a.context),A=0;A<a._sb.length;A++)a.__h.push(a._sb[A]);a._sb=[];}else do{a.__d=!1,S&&S(u),s=a.render(a.props,a.state,a.context),a.state=a.__s;}while(a.__d&&++$<25);a.state=a.__s,null!=a.getChildContext&&(t=h$1(h$1({},t),a.getChildContext())),p||null==a.getSnapshotBeforeUpdate||(_=a.getSnapshotBeforeUpdate(y,d)),P(n,v$1(H=null!=s&&s.type===k$1&&null==s.key?s.props.children:s)?H:[H],u,i,t,o,r,f,e,c),a.base=u.__e,u.__h=null,a.__h.length&&f.push(a),g&&(a.__E=a.__=null),a.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=N(i.__e,u,i,t,o,r,f,c);(s=l$1.diffed)&&s(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l$1.__e(n,u,i);}}function M(n,u){l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function N(l,u,i,t,o,r,f,e){var s,a,h,y=i.props,d=u.props,_=u.type,k=0;if("svg"===_&&(o=!0),null!=r)for(;k<r.length;k++)if((s=r[k])&&"setAttribute"in s==!!_&&(_?s.localName===_:3===s.nodeType)){l=s,r[k]=null;break}if(null==l){if(null===_)return document.createTextNode(d);l=o?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,d.is&&d),r=null,e=!1;}if(null===_)y===d||e&&l.data===d||(l.data=d);else {if(r=r&&n.call(l.childNodes),a=(y=i.props||c$1).dangerouslySetInnerHTML,h=d.dangerouslySetInnerHTML,!e){if(null!=r)for(y={},k=0;k<l.attributes.length;k++)y[l.attributes[k].name]=l.attributes[k].value;(h||a)&&(h&&(a&&h.__html==a.__html||h.__html===l.innerHTML)||(l.innerHTML=h&&h.__html||""));}if(H(l,d,y,o,e),h)u.__k=[];else if(P(l,v$1(k=u.props.children)?k:[k],u,i,t,o&&"foreignObject"!==_,r,f,r?r[0]:i.__k&&g$1(i,0),e),null!=r)for(k=r.length;k--;)null!=r[k]&&p$1(r[k]);e||("value"in d&&void 0!==(k=d.value)&&(k!==l.value||"progress"===_&&!k||"option"===_&&k!==y.value)&&T$1(l,"value",k,y.value,!1),"checked"in d&&void 0!==(k=d.checked)&&k!==l.checked&&T$1(l,"checked",k,y.checked,!1));}return l}function O(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,i);}}function q$1(n,u,i){var t,o;if(l$1.unmount&&l$1.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||O(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$1.__e(n,u);}t.base=t.__P=null,n.__c=void 0;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&q$1(t[o],u,i||"function"!=typeof n.type);i||null==n.__e||p$1(n.__e),n.__=n.__e=n.__d=void 0;}function B$1(n,l,u){return this.constructor(n,u)}function D(u,i,t){var o,r,f;l$1.__&&l$1.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,f=[],L(i,u=(!o&&t||i).__k=y$1(k$1,null,[u]),r||c$1,c$1,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n.call(i.childNodes):null,f,!o&&t?t:r?r.__e:i.firstChild,o),M(f,u);}function G(n,l){var u={__c:l="__cC"+e$1++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,w$1(n);});},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=s$1.slice,l$1={__e:function(n,l,u,i){for(var t,o,r;l=l.__;)if((t=l.__c)&&!t.__)try{if((o=t.constructor)&&null!=o.getDerivedStateFromError&&(t.setState(o.getDerivedStateFromError(n)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),r=t.__d),r)return t.__E=t}catch(l){n=l;}throw n}},u$1=0,b$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h$1({},this.state),"function"==typeof n&&(n=n(h$1({},u),this.props)),n&&h$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),w$1(this));},b$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),w$1(this));},b$1.prototype.render=k$1,t$1=[],r$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f$1=function(n,l){return n.__v.__b-l.__v.__b},x.__r=0,e$1=0;
|
|
149
149
|
|
|
150
|
-
var _$1=0;function o$1(o,e,n,t,f){var
|
|
150
|
+
var _$1=0;function o$1(o,e,n,t,f,l){var s,u,a={};for(u in e)"ref"==u?s=e[u]:a[u]=e[u];var i={type:o,props:a,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--_$1,__source:f,__self:l};if("function"==typeof o&&(s=o.defaultProps))for(u in s)void 0===a[u]&&(a[u]=s[u]);return l$1.vnode&&l$1.vnode(i),i}
|
|
151
151
|
|
|
152
152
|
function count$1(node) {
|
|
153
153
|
var sum = 0,
|
|
@@ -417,8 +417,6 @@ var drawChart = (function (exports) {
|
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
|
|
420
|
-
Object.create(Node$1.prototype);
|
|
421
|
-
|
|
422
420
|
function treemapSlice(parent, x0, y0, x1, y1) {
|
|
423
421
|
var nodes = parent.children,
|
|
424
422
|
node,
|
|
@@ -661,12 +659,12 @@ var drawChart = (function (exports) {
|
|
|
661
659
|
return availableSizeProperties;
|
|
662
660
|
};
|
|
663
661
|
|
|
664
|
-
var t,r,u,i,o=0,f=[],c=[],e=l$1.__b,a=l$1.__r,v=l$1.diffed,l=l$1.__c,m=l$1.unmount;function d(t,u){l$1.__h&&l$1.__h(r,t,o||u),o=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function
|
|
662
|
+
var t,r,u,i,o=0,f=[],c=[],e=l$1.__b,a=l$1.__r,v=l$1.diffed,l=l$1.__c,m=l$1.unmount;function d(t,u){l$1.__h&&l$1.__h(r,t,o||u),o=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function h(n){return o=1,s(B,n)}function s(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r,!r.u)){var f=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return n.__c});if(u.every(function(n){return !n.__N}))return !c||c.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0);}}),!(!i&&o.__c.props===n)&&(!c||c.call(this,n,t,r))};r.u=!0;var c=r.shouldComponentUpdate,e=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u;}e&&e.call(this,n,t,r);},r.shouldComponentUpdate=f;}return o.__N||o.__}function p(u,i){var o=d(t++,3);!l$1.__s&&z(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o));}function y(u,i){var o=d(t++,4);!l$1.__s&&z(o.__H,i)&&(o.__=u,o.i=i,r.__h.push(o));}function _(n){return o=5,F(function(){return {current:n}},[])}function F(n,r){var u=d(t++,7);return z(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T(n,t){return o=8,F(function(){return n},t)}function q(n){var u=r.context[n.__c],i=d(t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function b(){for(var t;t=f.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k),t.__H.__h.forEach(w),t.__H.__h=[];}catch(r){t.__H.__h=[],l$1.__e(r,t.__v);}}l$1.__b=function(n){r=null,e&&e(n);},l$1.__r=function(n){a&&a(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0;})):(i.__h.forEach(k),i.__h.forEach(w),i.__h=[],t=0)),u=r;},l$1.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f.push(o)&&i===l$1.requestAnimationFrame||((i=l$1.requestAnimationFrame)||j)(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c;})),u=r=null;},l$1.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k),t.__h=t.__h.filter(function(n){return !n.__||w(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$1.__e(u,t.__v);}}),l&&l(t,r);},l$1.unmount=function(t){m&&m(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k(n);}catch(n){r=n;}}),u.__H=void 0,r&&l$1.__e(r,u.__v));};var g="function"==typeof requestAnimationFrame;function j(n){var t,r=function(){clearTimeout(u),g&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g&&(t=requestAnimationFrame(r));}function k(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function w(n){var t=r;n.__c=n.__(),r=t;}function z(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B(n,t){return "function"==typeof t?t(n):t}
|
|
665
663
|
|
|
666
664
|
const PLACEHOLDER = "bundle-*:**/file/**,**/file**, bundle-*:";
|
|
667
665
|
const SideBar = ({ availableSizeProperties, sizeProperty, setSizeProperty, onExcludeChange, onIncludeChange, }) => {
|
|
668
|
-
const [includeValue, setIncludeValue] =
|
|
669
|
-
const [excludeValue, setExcludeValue] =
|
|
666
|
+
const [includeValue, setIncludeValue] = h("");
|
|
667
|
+
const [excludeValue, setExcludeValue] = h("");
|
|
670
668
|
const handleSizePropertyChange = (sizeProp) => () => {
|
|
671
669
|
if (sizeProp !== sizeProperty) {
|
|
672
670
|
setSizeProperty(sizeProp);
|
|
@@ -682,23 +680,17 @@ var drawChart = (function (exports) {
|
|
|
682
680
|
setExcludeValue(value);
|
|
683
681
|
onExcludeChange(value);
|
|
684
682
|
};
|
|
685
|
-
return (o$1("aside",
|
|
683
|
+
return (o$1("aside", { className: "sidebar", children: [o$1("div", { className: "size-selectors", children: availableSizeProperties.length > 1 &&
|
|
686
684
|
availableSizeProperties.map((sizeProp) => {
|
|
687
685
|
const id = `selector-${sizeProp}`;
|
|
688
|
-
return (o$1("div",
|
|
689
|
-
}) })
|
|
686
|
+
return (o$1("div", { className: "size-selector", children: [o$1("input", { type: "radio", id: id, checked: sizeProp === sizeProperty, onChange: handleSizePropertyChange(sizeProp) }), o$1("label", { htmlFor: id, children: LABELS[sizeProp] })] }, sizeProp));
|
|
687
|
+
}) }), o$1("div", { className: "module-filters", children: [o$1("div", { className: "module-filter", children: [o$1("label", { htmlFor: "module-filter-exclude", children: "Exclude" }), o$1("input", { type: "text", id: "module-filter-exclude", value: excludeValue, onInput: handleExcludeChange, placeholder: PLACEHOLDER })] }), o$1("div", { className: "module-filter", children: [o$1("label", { htmlFor: "module-filter-include", children: "Include" }), o$1("input", { type: "text", id: "module-filter-include", value: includeValue, onInput: handleIncludeChange, placeholder: PLACEHOLDER })] })] })] }));
|
|
690
688
|
};
|
|
691
689
|
|
|
692
690
|
function getDefaultExportFromCjs (x) {
|
|
693
691
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
694
692
|
}
|
|
695
693
|
|
|
696
|
-
var picomatchBrowserExports = {};
|
|
697
|
-
var picomatchBrowser = {
|
|
698
|
-
get exports(){ return picomatchBrowserExports; },
|
|
699
|
-
set exports(v){ picomatchBrowserExports = v; },
|
|
700
|
-
};
|
|
701
|
-
|
|
702
694
|
var utils$3 = {};
|
|
703
695
|
|
|
704
696
|
const WIN_SLASH = '\\\\/';
|
|
@@ -941,7 +933,7 @@ var drawChart = (function (exports) {
|
|
|
941
933
|
} else {
|
|
942
934
|
return path.replace(/\/$/, '').replace(/.*\//, '');
|
|
943
935
|
}
|
|
944
|
-
};
|
|
936
|
+
};
|
|
945
937
|
} (utils$3));
|
|
946
938
|
|
|
947
939
|
const utils$2 = utils$3;
|
|
@@ -2738,12 +2730,9 @@ var drawChart = (function (exports) {
|
|
|
2738
2730
|
|
|
2739
2731
|
var picomatch_1 = picomatch;
|
|
2740
2732
|
|
|
2741
|
-
|
|
2733
|
+
var picomatchBrowser = picomatch_1;
|
|
2742
2734
|
|
|
2743
|
-
|
|
2744
|
-
} (picomatchBrowser));
|
|
2745
|
-
|
|
2746
|
-
var pm = /*@__PURE__*/getDefaultExportFromCjs(picomatchBrowserExports);
|
|
2735
|
+
var pm = /*@__PURE__*/getDefaultExportFromCjs(picomatchBrowser);
|
|
2747
2736
|
|
|
2748
2737
|
function isArray(arg) {
|
|
2749
2738
|
return Array.isArray(arg);
|
|
@@ -2834,8 +2823,8 @@ var drawChart = (function (exports) {
|
|
|
2834
2823
|
}));
|
|
2835
2824
|
};
|
|
2836
2825
|
const useFilter = () => {
|
|
2837
|
-
const [includeFilter, setIncludeFilter] =
|
|
2838
|
-
const [excludeFilter, setExcludeFilter] =
|
|
2826
|
+
const [includeFilter, setIncludeFilter] = h("");
|
|
2827
|
+
const [excludeFilter, setExcludeFilter] = h("");
|
|
2839
2828
|
const setIncludeFilterTrottled = F(() => throttleFilter(setIncludeFilter, 200), []);
|
|
2840
2829
|
const setExcludeFilterTrottled = F(() => throttleFilter(setExcludeFilter, 200), []);
|
|
2841
2830
|
const isIncluded = F(() => createFilter(prepareFilter(includeFilter), prepareFilter(excludeFilter)), [includeFilter, excludeFilter]);
|
|
@@ -2924,6 +2913,7 @@ var drawChart = (function (exports) {
|
|
|
2924
2913
|
const ascendingBisect = bisector(ascending);
|
|
2925
2914
|
const bisectRight = ascendingBisect.right;
|
|
2926
2915
|
bisector(number$1).center;
|
|
2916
|
+
var bisect = bisectRight;
|
|
2927
2917
|
|
|
2928
2918
|
class InternMap extends Map {
|
|
2929
2919
|
constructor(entries, key = keyof) {
|
|
@@ -2997,59 +2987,60 @@ var drawChart = (function (exports) {
|
|
|
2997
2987
|
})(values, 0);
|
|
2998
2988
|
}
|
|
2999
2989
|
|
|
3000
|
-
|
|
2990
|
+
const e10 = Math.sqrt(50),
|
|
3001
2991
|
e5 = Math.sqrt(10),
|
|
3002
2992
|
e2 = Math.sqrt(2);
|
|
3003
2993
|
|
|
3004
|
-
function
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
2994
|
+
function tickSpec(start, stop, count) {
|
|
2995
|
+
const step = (stop - start) / Math.max(0, count),
|
|
2996
|
+
power = Math.floor(Math.log10(step)),
|
|
2997
|
+
error = step / Math.pow(10, power),
|
|
2998
|
+
factor = error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1;
|
|
2999
|
+
let i1, i2, inc;
|
|
3000
|
+
if (power < 0) {
|
|
3001
|
+
inc = Math.pow(10, -power) / factor;
|
|
3002
|
+
i1 = Math.round(start * inc);
|
|
3003
|
+
i2 = Math.round(stop * inc);
|
|
3004
|
+
if (i1 / inc < start) ++i1;
|
|
3005
|
+
if (i2 / inc > stop) --i2;
|
|
3006
|
+
inc = -inc;
|
|
3007
|
+
} else {
|
|
3008
|
+
inc = Math.pow(10, power) * factor;
|
|
3009
|
+
i1 = Math.round(start / inc);
|
|
3010
|
+
i2 = Math.round(stop / inc);
|
|
3011
|
+
if (i1 * inc < start) ++i1;
|
|
3012
|
+
if (i2 * inc > stop) --i2;
|
|
3013
|
+
}
|
|
3014
|
+
if (i2 < i1 && 0.5 <= count && count < 2) return tickSpec(start, stop, count * 2);
|
|
3015
|
+
return [i1, i2, inc];
|
|
3016
|
+
}
|
|
3010
3017
|
|
|
3018
|
+
function ticks(start, stop, count) {
|
|
3011
3019
|
stop = +stop, start = +start, count = +count;
|
|
3012
|
-
if (
|
|
3013
|
-
if (
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
if (
|
|
3019
|
-
|
|
3020
|
-
ticks = new Array(n = r1 - r0 + 1);
|
|
3021
|
-
while (++i < n) ticks[i] = (r0 + i) * step;
|
|
3020
|
+
if (!(count > 0)) return [];
|
|
3021
|
+
if (start === stop) return [start];
|
|
3022
|
+
const reverse = stop < start, [i1, i2, inc] = reverse ? tickSpec(stop, start, count) : tickSpec(start, stop, count);
|
|
3023
|
+
if (!(i2 >= i1)) return [];
|
|
3024
|
+
const n = i2 - i1 + 1, ticks = new Array(n);
|
|
3025
|
+
if (reverse) {
|
|
3026
|
+
if (inc < 0) for (let i = 0; i < n; ++i) ticks[i] = (i2 - i) / -inc;
|
|
3027
|
+
else for (let i = 0; i < n; ++i) ticks[i] = (i2 - i) * inc;
|
|
3022
3028
|
} else {
|
|
3023
|
-
|
|
3024
|
-
let
|
|
3025
|
-
if (r0 / step < start) ++r0;
|
|
3026
|
-
if (r1 / step > stop) --r1;
|
|
3027
|
-
ticks = new Array(n = r1 - r0 + 1);
|
|
3028
|
-
while (++i < n) ticks[i] = (r0 + i) / step;
|
|
3029
|
+
if (inc < 0) for (let i = 0; i < n; ++i) ticks[i] = (i1 + i) / -inc;
|
|
3030
|
+
else for (let i = 0; i < n; ++i) ticks[i] = (i1 + i) * inc;
|
|
3029
3031
|
}
|
|
3030
|
-
|
|
3031
|
-
if (reverse) ticks.reverse();
|
|
3032
|
-
|
|
3033
3032
|
return ticks;
|
|
3034
3033
|
}
|
|
3035
3034
|
|
|
3036
3035
|
function tickIncrement(start, stop, count) {
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
error = step / Math.pow(10, power);
|
|
3040
|
-
return power >= 0
|
|
3041
|
-
? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power)
|
|
3042
|
-
: -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1);
|
|
3036
|
+
stop = +stop, start = +start, count = +count;
|
|
3037
|
+
return tickSpec(start, stop, count)[2];
|
|
3043
3038
|
}
|
|
3044
3039
|
|
|
3045
3040
|
function tickStep(start, stop, count) {
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
if (error >= e10) step1 *= 10;
|
|
3050
|
-
else if (error >= e5) step1 *= 5;
|
|
3051
|
-
else if (error >= e2) step1 *= 2;
|
|
3052
|
-
return stop < start ? -step1 : step1;
|
|
3041
|
+
stop = +stop, start = +start, count = +count;
|
|
3042
|
+
const reverse = stop < start, inc = reverse ? tickIncrement(stop, start, count) : tickIncrement(start, stop, count);
|
|
3043
|
+
return (reverse ? -1 : 1) * (inc < 0 ? 1 / -inc : inc);
|
|
3053
3044
|
}
|
|
3054
3045
|
|
|
3055
3046
|
const TOP_PADDING = 20;
|
|
@@ -3075,7 +3066,7 @@ var drawChart = (function (exports) {
|
|
|
3075
3066
|
else {
|
|
3076
3067
|
textProps.y = height / 2;
|
|
3077
3068
|
}
|
|
3078
|
-
|
|
3069
|
+
y(() => {
|
|
3079
3070
|
if (width == 0 || height == 0 || !textRef.current) {
|
|
3080
3071
|
return;
|
|
3081
3072
|
}
|
|
@@ -3100,18 +3091,18 @@ var drawChart = (function (exports) {
|
|
|
3100
3091
|
if (width == 0 || height == 0) {
|
|
3101
3092
|
return null;
|
|
3102
3093
|
}
|
|
3103
|
-
return (o$1("g",
|
|
3094
|
+
return (o$1("g", { className: "node", transform: `translate(${x0},${y0})`, onClick: (event) => {
|
|
3104
3095
|
event.stopPropagation();
|
|
3105
3096
|
onClick(node);
|
|
3106
3097
|
}, onMouseOver: (event) => {
|
|
3107
3098
|
event.stopPropagation();
|
|
3108
3099
|
onMouseOver(node);
|
|
3109
|
-
}
|
|
3100
|
+
}, children: [o$1("rect", { fill: backgroundColor, rx: 2, ry: 2, width: x1 - x0, height: y1 - y0, stroke: selected ? "#fff" : undefined, "stroke-width": selected ? 2 : undefined }), o$1("text", Object.assign({ ref: textRef, fill: fontColor, onClick: (event) => {
|
|
3110
3101
|
var _a;
|
|
3111
3102
|
if (((_a = window.getSelection()) === null || _a === void 0 ? void 0 : _a.toString()) !== "") {
|
|
3112
3103
|
event.stopPropagation();
|
|
3113
3104
|
}
|
|
3114
|
-
} }, textProps, { children: data.name }))] }))
|
|
3105
|
+
} }, textProps, { children: data.name }))] }));
|
|
3115
3106
|
};
|
|
3116
3107
|
|
|
3117
3108
|
const TreeMap = ({ root, onNodeHover, selectedNode, onNodeClick, }) => {
|
|
@@ -3128,18 +3119,14 @@ var drawChart = (function (exports) {
|
|
|
3128
3119
|
return nestedData;
|
|
3129
3120
|
}, [root]);
|
|
3130
3121
|
console.timeEnd("layering");
|
|
3131
|
-
return (o$1("svg",
|
|
3132
|
-
return (o$1("g",
|
|
3122
|
+
return (o$1("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: `0 0 ${width} ${height}`, children: nestedData.map(({ key, values }) => {
|
|
3123
|
+
return (o$1("g", { className: "layer", children: values.map((node) => {
|
|
3133
3124
|
return (o$1(Node, { node: node, onMouseOver: onNodeHover, selected: selectedNode === node, onClick: onNodeClick }, getModuleIds(node.data).nodeUid.id));
|
|
3134
|
-
}) }
|
|
3135
|
-
}) }))
|
|
3125
|
+
}) }, key));
|
|
3126
|
+
}) }));
|
|
3136
3127
|
};
|
|
3137
3128
|
|
|
3138
|
-
var
|
|
3139
|
-
var bytes$1 = {
|
|
3140
|
-
get exports(){ return bytesExports; },
|
|
3141
|
-
set exports(v){ bytesExports = v; },
|
|
3142
|
-
};
|
|
3129
|
+
var bytes$1 = {exports: {}};
|
|
3143
3130
|
|
|
3144
3131
|
/*!
|
|
3145
3132
|
* bytes
|
|
@@ -3154,8 +3141,8 @@ var drawChart = (function (exports) {
|
|
|
3154
3141
|
*/
|
|
3155
3142
|
|
|
3156
3143
|
bytes$1.exports = bytes;
|
|
3157
|
-
var format_1 =
|
|
3158
|
-
|
|
3144
|
+
var format_1 = bytes$1.exports.format = format$1;
|
|
3145
|
+
bytes$1.exports.parse = parse;
|
|
3159
3146
|
|
|
3160
3147
|
/**
|
|
3161
3148
|
* Module variables.
|
|
@@ -3318,7 +3305,7 @@ var drawChart = (function (exports) {
|
|
|
3318
3305
|
const Tooltip = ({ node, visible, root, sizeProperty, }) => {
|
|
3319
3306
|
const { availableSizeProperties, getModuleSize, data } = q(StaticContext);
|
|
3320
3307
|
const ref = _(null);
|
|
3321
|
-
const [style, setStyle] =
|
|
3308
|
+
const [style, setStyle] = h({});
|
|
3322
3309
|
const content = F(() => {
|
|
3323
3310
|
if (!node)
|
|
3324
3311
|
return null;
|
|
@@ -3336,7 +3323,7 @@ var drawChart = (function (exports) {
|
|
|
3336
3323
|
const mainUid = data.nodeParts[node.data.uid].metaUid;
|
|
3337
3324
|
dataNode = data.nodeMetas[mainUid];
|
|
3338
3325
|
}
|
|
3339
|
-
return (o$1(
|
|
3326
|
+
return (o$1(k$1, { children: [o$1("div", { children: path }), availableSizeProperties.map((sizeProp) => {
|
|
3340
3327
|
if (sizeProp === sizeProperty) {
|
|
3341
3328
|
return (o$1("div", { children: [o$1("b", { children: [LABELS[sizeProp], ": ", format_1(mainSize)] }), " ", "(", percentageString, ")"] }, sizeProp));
|
|
3342
3329
|
}
|
|
@@ -3346,7 +3333,7 @@ var drawChart = (function (exports) {
|
|
|
3346
3333
|
}), o$1("br", {}), dataNode && dataNode.importedBy.length > 0 && (o$1("div", { children: [o$1("div", { children: [o$1("b", { children: "Imported By" }), ":"] }), dataNode.importedBy.map(({ uid }) => {
|
|
3347
3334
|
const id = data.nodeMetas[uid].id;
|
|
3348
3335
|
return o$1("div", { children: id }, id);
|
|
3349
|
-
})] })), o$1("br", {}), o$1("small", { children: data.options.sourcemap ? SOURCEMAP_RENDERED : RENDRED }), (data.options.gzip || data.options.brotli) && (o$1(
|
|
3336
|
+
})] })), o$1("br", {}), o$1("small", { children: data.options.sourcemap ? SOURCEMAP_RENDERED : RENDRED }), (data.options.gzip || data.options.brotli) && (o$1(k$1, { children: [o$1("br", {}), o$1("small", { children: COMPRESSED })] }))] }));
|
|
3350
3337
|
}, [availableSizeProperties, data, getModuleSize, node, root.data, sizeProperty]);
|
|
3351
3338
|
const updatePosition = (mouseCoords) => {
|
|
3352
3339
|
if (!ref.current)
|
|
@@ -3366,7 +3353,7 @@ var drawChart = (function (exports) {
|
|
|
3366
3353
|
}
|
|
3367
3354
|
setStyle(pos);
|
|
3368
3355
|
};
|
|
3369
|
-
|
|
3356
|
+
p(() => {
|
|
3370
3357
|
const handleMouseMove = (event) => {
|
|
3371
3358
|
updatePosition({
|
|
3372
3359
|
x: event.pageX,
|
|
@@ -3378,13 +3365,13 @@ var drawChart = (function (exports) {
|
|
|
3378
3365
|
document.removeEventListener("mousemove", handleMouseMove, true);
|
|
3379
3366
|
};
|
|
3380
3367
|
}, []);
|
|
3381
|
-
return (o$1("div",
|
|
3368
|
+
return (o$1("div", { className: `tooltip ${visible ? "" : "tooltip-hidden"}`, ref: ref, style: style, children: content }));
|
|
3382
3369
|
};
|
|
3383
3370
|
|
|
3384
3371
|
const Chart = ({ root, sizeProperty, selectedNode, setSelectedNode, }) => {
|
|
3385
|
-
const [showTooltip, setShowTooltip] =
|
|
3386
|
-
const [tooltipNode, setTooltipNode] =
|
|
3387
|
-
|
|
3372
|
+
const [showTooltip, setShowTooltip] = h(false);
|
|
3373
|
+
const [tooltipNode, setTooltipNode] = h(undefined);
|
|
3374
|
+
p(() => {
|
|
3388
3375
|
const handleMouseOut = () => {
|
|
3389
3376
|
setShowTooltip(false);
|
|
3390
3377
|
};
|
|
@@ -3393,7 +3380,7 @@ var drawChart = (function (exports) {
|
|
|
3393
3380
|
document.removeEventListener("mouseover", handleMouseOut);
|
|
3394
3381
|
};
|
|
3395
3382
|
}, []);
|
|
3396
|
-
return (o$1(
|
|
3383
|
+
return (o$1(k$1, { children: [o$1(TreeMap, { root: root, onNodeHover: (node) => {
|
|
3397
3384
|
setTooltipNode(node);
|
|
3398
3385
|
setShowTooltip(true);
|
|
3399
3386
|
}, selectedNode: selectedNode, onNodeClick: (node) => {
|
|
@@ -3403,8 +3390,8 @@ var drawChart = (function (exports) {
|
|
|
3403
3390
|
|
|
3404
3391
|
const Main = () => {
|
|
3405
3392
|
const { availableSizeProperties, rawHierarchy, getModuleSize, layout, data } = q(StaticContext);
|
|
3406
|
-
const [sizeProperty, setSizeProperty] =
|
|
3407
|
-
const [selectedNode, setSelectedNode] =
|
|
3393
|
+
const [sizeProperty, setSizeProperty] = h(availableSizeProperties[0]);
|
|
3394
|
+
const [selectedNode, setSelectedNode] = h(undefined);
|
|
3408
3395
|
const { getModuleFilterMultiplier, setExcludeFilter, setIncludeFilter } = useFilter();
|
|
3409
3396
|
console.time("getNodeSizeMultiplier");
|
|
3410
3397
|
const getNodeSizeMultiplier = F(() => {
|
|
@@ -3459,7 +3446,7 @@ var drawChart = (function (exports) {
|
|
|
3459
3446
|
sizeProperty,
|
|
3460
3447
|
]);
|
|
3461
3448
|
console.timeEnd("root hierarchy compute");
|
|
3462
|
-
return (o$1(
|
|
3449
|
+
return (o$1(k$1, { children: [o$1(SideBar, { sizeProperty: sizeProperty, availableSizeProperties: availableSizeProperties, setSizeProperty: setSizeProperty, onExcludeChange: setExcludeFilter, onIncludeChange: setIncludeFilter }), o$1(Chart, { root: root, sizeProperty: sizeProperty, selectedNode: selectedNode, setSelectedNode: setSelectedNode })] }));
|
|
3463
3450
|
};
|
|
3464
3451
|
|
|
3465
3452
|
function initRange(domain, range) {
|
|
@@ -3895,179 +3882,6 @@ var drawChart = (function (exports) {
|
|
|
3895
3882
|
: m1) * 255;
|
|
3896
3883
|
}
|
|
3897
3884
|
|
|
3898
|
-
const radians = Math.PI / 180;
|
|
3899
|
-
const degrees = 180 / Math.PI;
|
|
3900
|
-
|
|
3901
|
-
// https://observablehq.com/@mbostock/lab-and-rgb
|
|
3902
|
-
const K = 18,
|
|
3903
|
-
Xn = 0.96422,
|
|
3904
|
-
Yn = 1,
|
|
3905
|
-
Zn = 0.82521,
|
|
3906
|
-
t0$1 = 4 / 29,
|
|
3907
|
-
t1$1 = 6 / 29,
|
|
3908
|
-
t2 = 3 * t1$1 * t1$1,
|
|
3909
|
-
t3 = t1$1 * t1$1 * t1$1;
|
|
3910
|
-
|
|
3911
|
-
function labConvert(o) {
|
|
3912
|
-
if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity);
|
|
3913
|
-
if (o instanceof Hcl) return hcl2lab(o);
|
|
3914
|
-
if (!(o instanceof Rgb)) o = rgbConvert(o);
|
|
3915
|
-
var r = rgb2lrgb(o.r),
|
|
3916
|
-
g = rgb2lrgb(o.g),
|
|
3917
|
-
b = rgb2lrgb(o.b),
|
|
3918
|
-
y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn), x, z;
|
|
3919
|
-
if (r === g && g === b) x = z = y; else {
|
|
3920
|
-
x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn);
|
|
3921
|
-
z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn);
|
|
3922
|
-
}
|
|
3923
|
-
return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity);
|
|
3924
|
-
}
|
|
3925
|
-
|
|
3926
|
-
function lab(l, a, b, opacity) {
|
|
3927
|
-
return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity);
|
|
3928
|
-
}
|
|
3929
|
-
|
|
3930
|
-
function Lab(l, a, b, opacity) {
|
|
3931
|
-
this.l = +l;
|
|
3932
|
-
this.a = +a;
|
|
3933
|
-
this.b = +b;
|
|
3934
|
-
this.opacity = +opacity;
|
|
3935
|
-
}
|
|
3936
|
-
|
|
3937
|
-
define(Lab, lab, extend(Color, {
|
|
3938
|
-
brighter(k) {
|
|
3939
|
-
return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity);
|
|
3940
|
-
},
|
|
3941
|
-
darker(k) {
|
|
3942
|
-
return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity);
|
|
3943
|
-
},
|
|
3944
|
-
rgb() {
|
|
3945
|
-
var y = (this.l + 16) / 116,
|
|
3946
|
-
x = isNaN(this.a) ? y : y + this.a / 500,
|
|
3947
|
-
z = isNaN(this.b) ? y : y - this.b / 200;
|
|
3948
|
-
x = Xn * lab2xyz(x);
|
|
3949
|
-
y = Yn * lab2xyz(y);
|
|
3950
|
-
z = Zn * lab2xyz(z);
|
|
3951
|
-
return new Rgb(
|
|
3952
|
-
lrgb2rgb( 3.1338561 * x - 1.6168667 * y - 0.4906146 * z),
|
|
3953
|
-
lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z),
|
|
3954
|
-
lrgb2rgb( 0.0719453 * x - 0.2289914 * y + 1.4052427 * z),
|
|
3955
|
-
this.opacity
|
|
3956
|
-
);
|
|
3957
|
-
}
|
|
3958
|
-
}));
|
|
3959
|
-
|
|
3960
|
-
function xyz2lab(t) {
|
|
3961
|
-
return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0$1;
|
|
3962
|
-
}
|
|
3963
|
-
|
|
3964
|
-
function lab2xyz(t) {
|
|
3965
|
-
return t > t1$1 ? t * t * t : t2 * (t - t0$1);
|
|
3966
|
-
}
|
|
3967
|
-
|
|
3968
|
-
function lrgb2rgb(x) {
|
|
3969
|
-
return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055);
|
|
3970
|
-
}
|
|
3971
|
-
|
|
3972
|
-
function rgb2lrgb(x) {
|
|
3973
|
-
return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4);
|
|
3974
|
-
}
|
|
3975
|
-
|
|
3976
|
-
function hclConvert(o) {
|
|
3977
|
-
if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity);
|
|
3978
|
-
if (!(o instanceof Lab)) o = labConvert(o);
|
|
3979
|
-
if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0 < o.l && o.l < 100 ? 0 : NaN, o.l, o.opacity);
|
|
3980
|
-
var h = Math.atan2(o.b, o.a) * degrees;
|
|
3981
|
-
return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity);
|
|
3982
|
-
}
|
|
3983
|
-
|
|
3984
|
-
function hcl(h, c, l, opacity) {
|
|
3985
|
-
return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity);
|
|
3986
|
-
}
|
|
3987
|
-
|
|
3988
|
-
function Hcl(h, c, l, opacity) {
|
|
3989
|
-
this.h = +h;
|
|
3990
|
-
this.c = +c;
|
|
3991
|
-
this.l = +l;
|
|
3992
|
-
this.opacity = +opacity;
|
|
3993
|
-
}
|
|
3994
|
-
|
|
3995
|
-
function hcl2lab(o) {
|
|
3996
|
-
if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity);
|
|
3997
|
-
var h = o.h * radians;
|
|
3998
|
-
return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity);
|
|
3999
|
-
}
|
|
4000
|
-
|
|
4001
|
-
define(Hcl, hcl, extend(Color, {
|
|
4002
|
-
brighter(k) {
|
|
4003
|
-
return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);
|
|
4004
|
-
},
|
|
4005
|
-
darker(k) {
|
|
4006
|
-
return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity);
|
|
4007
|
-
},
|
|
4008
|
-
rgb() {
|
|
4009
|
-
return hcl2lab(this).rgb();
|
|
4010
|
-
}
|
|
4011
|
-
}));
|
|
4012
|
-
|
|
4013
|
-
var A = -0.14861,
|
|
4014
|
-
B = +1.78277,
|
|
4015
|
-
C = -0.29227,
|
|
4016
|
-
D = -0.90649,
|
|
4017
|
-
E = +1.97294,
|
|
4018
|
-
ED = E * D,
|
|
4019
|
-
EB = E * B,
|
|
4020
|
-
BC_DA = B * C - D * A;
|
|
4021
|
-
|
|
4022
|
-
function cubehelixConvert(o) {
|
|
4023
|
-
if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity);
|
|
4024
|
-
if (!(o instanceof Rgb)) o = rgbConvert(o);
|
|
4025
|
-
var r = o.r / 255,
|
|
4026
|
-
g = o.g / 255,
|
|
4027
|
-
b = o.b / 255,
|
|
4028
|
-
l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB),
|
|
4029
|
-
bl = b - l,
|
|
4030
|
-
k = (E * (g - l) - C * bl) / D,
|
|
4031
|
-
s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1
|
|
4032
|
-
h = s ? Math.atan2(k, bl) * degrees - 120 : NaN;
|
|
4033
|
-
return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity);
|
|
4034
|
-
}
|
|
4035
|
-
|
|
4036
|
-
function cubehelix$1(h, s, l, opacity) {
|
|
4037
|
-
return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity);
|
|
4038
|
-
}
|
|
4039
|
-
|
|
4040
|
-
function Cubehelix(h, s, l, opacity) {
|
|
4041
|
-
this.h = +h;
|
|
4042
|
-
this.s = +s;
|
|
4043
|
-
this.l = +l;
|
|
4044
|
-
this.opacity = +opacity;
|
|
4045
|
-
}
|
|
4046
|
-
|
|
4047
|
-
define(Cubehelix, cubehelix$1, extend(Color, {
|
|
4048
|
-
brighter(k) {
|
|
4049
|
-
k = k == null ? brighter : Math.pow(brighter, k);
|
|
4050
|
-
return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
|
|
4051
|
-
},
|
|
4052
|
-
darker(k) {
|
|
4053
|
-
k = k == null ? darker : Math.pow(darker, k);
|
|
4054
|
-
return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
|
|
4055
|
-
},
|
|
4056
|
-
rgb() {
|
|
4057
|
-
var h = isNaN(this.h) ? 0 : (this.h + 120) * radians,
|
|
4058
|
-
l = +this.l,
|
|
4059
|
-
a = isNaN(this.s) ? 0 : this.s * l * (1 - l),
|
|
4060
|
-
cosh = Math.cos(h),
|
|
4061
|
-
sinh = Math.sin(h);
|
|
4062
|
-
return new Rgb(
|
|
4063
|
-
255 * (l + a * (A * cosh + B * sinh)),
|
|
4064
|
-
255 * (l + a * (C * cosh + D * sinh)),
|
|
4065
|
-
255 * (l + a * (E * cosh)),
|
|
4066
|
-
this.opacity
|
|
4067
|
-
);
|
|
4068
|
-
}
|
|
4069
|
-
}));
|
|
4070
|
-
|
|
4071
3885
|
var constant = x => () => x;
|
|
4072
3886
|
|
|
4073
3887
|
function linear$1(a, d) {
|
|
@@ -4082,11 +3896,6 @@ var drawChart = (function (exports) {
|
|
|
4082
3896
|
};
|
|
4083
3897
|
}
|
|
4084
3898
|
|
|
4085
|
-
function hue(a, b) {
|
|
4086
|
-
var d = b - a;
|
|
4087
|
-
return d ? linear$1(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant(isNaN(a) ? b : a);
|
|
4088
|
-
}
|
|
4089
|
-
|
|
4090
3899
|
function gamma(y) {
|
|
4091
3900
|
return (y = +y) === 1 ? nogamma : function(a, b) {
|
|
4092
3901
|
return b - a ? exponential(a, b, y) : constant(isNaN(a) ? b : a);
|
|
@@ -4268,105 +4077,6 @@ var drawChart = (function (exports) {
|
|
|
4268
4077
|
};
|
|
4269
4078
|
}
|
|
4270
4079
|
|
|
4271
|
-
var epsilon2 = 1e-12;
|
|
4272
|
-
|
|
4273
|
-
function cosh(x) {
|
|
4274
|
-
return ((x = Math.exp(x)) + 1 / x) / 2;
|
|
4275
|
-
}
|
|
4276
|
-
|
|
4277
|
-
function sinh(x) {
|
|
4278
|
-
return ((x = Math.exp(x)) - 1 / x) / 2;
|
|
4279
|
-
}
|
|
4280
|
-
|
|
4281
|
-
function tanh(x) {
|
|
4282
|
-
return ((x = Math.exp(2 * x)) - 1) / (x + 1);
|
|
4283
|
-
}
|
|
4284
|
-
|
|
4285
|
-
((function zoomRho(rho, rho2, rho4) {
|
|
4286
|
-
|
|
4287
|
-
// p0 = [ux0, uy0, w0]
|
|
4288
|
-
// p1 = [ux1, uy1, w1]
|
|
4289
|
-
function zoom(p0, p1) {
|
|
4290
|
-
var ux0 = p0[0], uy0 = p0[1], w0 = p0[2],
|
|
4291
|
-
ux1 = p1[0], uy1 = p1[1], w1 = p1[2],
|
|
4292
|
-
dx = ux1 - ux0,
|
|
4293
|
-
dy = uy1 - uy0,
|
|
4294
|
-
d2 = dx * dx + dy * dy,
|
|
4295
|
-
i,
|
|
4296
|
-
S;
|
|
4297
|
-
|
|
4298
|
-
// Special case for u0 ≅ u1.
|
|
4299
|
-
if (d2 < epsilon2) {
|
|
4300
|
-
S = Math.log(w1 / w0) / rho;
|
|
4301
|
-
i = function(t) {
|
|
4302
|
-
return [
|
|
4303
|
-
ux0 + t * dx,
|
|
4304
|
-
uy0 + t * dy,
|
|
4305
|
-
w0 * Math.exp(rho * t * S)
|
|
4306
|
-
];
|
|
4307
|
-
};
|
|
4308
|
-
}
|
|
4309
|
-
|
|
4310
|
-
// General case.
|
|
4311
|
-
else {
|
|
4312
|
-
var d1 = Math.sqrt(d2),
|
|
4313
|
-
b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1),
|
|
4314
|
-
b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1),
|
|
4315
|
-
r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0),
|
|
4316
|
-
r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);
|
|
4317
|
-
S = (r1 - r0) / rho;
|
|
4318
|
-
i = function(t) {
|
|
4319
|
-
var s = t * S,
|
|
4320
|
-
coshr0 = cosh(r0),
|
|
4321
|
-
u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0));
|
|
4322
|
-
return [
|
|
4323
|
-
ux0 + u * dx,
|
|
4324
|
-
uy0 + u * dy,
|
|
4325
|
-
w0 * coshr0 / cosh(rho * s + r0)
|
|
4326
|
-
];
|
|
4327
|
-
};
|
|
4328
|
-
}
|
|
4329
|
-
|
|
4330
|
-
i.duration = S * 1000 * rho / Math.SQRT2;
|
|
4331
|
-
|
|
4332
|
-
return i;
|
|
4333
|
-
}
|
|
4334
|
-
|
|
4335
|
-
zoom.rho = function(_) {
|
|
4336
|
-
var _1 = Math.max(1e-3, +_), _2 = _1 * _1, _4 = _2 * _2;
|
|
4337
|
-
return zoomRho(_1, _2, _4);
|
|
4338
|
-
};
|
|
4339
|
-
|
|
4340
|
-
return zoom;
|
|
4341
|
-
}))(Math.SQRT2, 2, 4);
|
|
4342
|
-
|
|
4343
|
-
function cubehelix(hue) {
|
|
4344
|
-
return (function cubehelixGamma(y) {
|
|
4345
|
-
y = +y;
|
|
4346
|
-
|
|
4347
|
-
function cubehelix(start, end) {
|
|
4348
|
-
var h = hue((start = cubehelix$1(start)).h, (end = cubehelix$1(end)).h),
|
|
4349
|
-
s = nogamma(start.s, end.s),
|
|
4350
|
-
l = nogamma(start.l, end.l),
|
|
4351
|
-
opacity = nogamma(start.opacity, end.opacity);
|
|
4352
|
-
return function(t) {
|
|
4353
|
-
start.h = h(t);
|
|
4354
|
-
start.s = s(t);
|
|
4355
|
-
start.l = l(Math.pow(t, y));
|
|
4356
|
-
start.opacity = opacity(t);
|
|
4357
|
-
return start + "";
|
|
4358
|
-
};
|
|
4359
|
-
}
|
|
4360
|
-
|
|
4361
|
-
cubehelix.gamma = cubehelixGamma;
|
|
4362
|
-
|
|
4363
|
-
return cubehelix;
|
|
4364
|
-
})(1);
|
|
4365
|
-
}
|
|
4366
|
-
|
|
4367
|
-
cubehelix(hue);
|
|
4368
|
-
cubehelix(nogamma);
|
|
4369
|
-
|
|
4370
4080
|
function constants(x) {
|
|
4371
4081
|
return function() {
|
|
4372
4082
|
return x;
|
|
@@ -4422,7 +4132,7 @@ var drawChart = (function (exports) {
|
|
|
4422
4132
|
}
|
|
4423
4133
|
|
|
4424
4134
|
return function(x) {
|
|
4425
|
-
var i =
|
|
4135
|
+
var i = bisect(domain, x, 1, j) - 1;
|
|
4426
4136
|
return r[i](d[i](x));
|
|
4427
4137
|
};
|
|
4428
4138
|
}
|
|
@@ -4658,7 +4368,7 @@ var drawChart = (function (exports) {
|
|
|
4658
4368
|
var map = Array.prototype.map,
|
|
4659
4369
|
prefixes = ["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];
|
|
4660
4370
|
|
|
4661
|
-
function formatLocale
|
|
4371
|
+
function formatLocale(locale) {
|
|
4662
4372
|
var group = locale.grouping === undefined || locale.thousands === undefined ? identity : formatGroup(map.call(locale.grouping, Number), locale.thousands + ""),
|
|
4663
4373
|
currencyPrefix = locale.currency === undefined ? "" : locale.currency[0] + "",
|
|
4664
4374
|
currencySuffix = locale.currency === undefined ? "" : locale.currency[1] + "",
|
|
@@ -4795,21 +4505,21 @@ var drawChart = (function (exports) {
|
|
|
4795
4505
|
};
|
|
4796
4506
|
}
|
|
4797
4507
|
|
|
4798
|
-
var locale
|
|
4508
|
+
var locale;
|
|
4799
4509
|
var format;
|
|
4800
4510
|
var formatPrefix;
|
|
4801
4511
|
|
|
4802
|
-
defaultLocale
|
|
4512
|
+
defaultLocale({
|
|
4803
4513
|
thousands: ",",
|
|
4804
4514
|
grouping: [3],
|
|
4805
4515
|
currency: ["$", ""]
|
|
4806
4516
|
});
|
|
4807
4517
|
|
|
4808
|
-
function defaultLocale
|
|
4809
|
-
locale
|
|
4810
|
-
format = locale
|
|
4811
|
-
formatPrefix = locale
|
|
4812
|
-
return locale
|
|
4518
|
+
function defaultLocale(definition) {
|
|
4519
|
+
locale = formatLocale(definition);
|
|
4520
|
+
format = locale.format;
|
|
4521
|
+
formatPrefix = locale.formatPrefix;
|
|
4522
|
+
return locale;
|
|
4813
4523
|
}
|
|
4814
4524
|
|
|
4815
4525
|
function precisionFixed(step) {
|
|
@@ -4918,1055 +4628,6 @@ var drawChart = (function (exports) {
|
|
|
4918
4628
|
return linearish(scale);
|
|
4919
4629
|
}
|
|
4920
4630
|
|
|
4921
|
-
const t0 = new Date, t1 = new Date;
|
|
4922
|
-
|
|
4923
|
-
function timeInterval(floori, offseti, count, field) {
|
|
4924
|
-
|
|
4925
|
-
function interval(date) {
|
|
4926
|
-
return floori(date = arguments.length === 0 ? new Date : new Date(+date)), date;
|
|
4927
|
-
}
|
|
4928
|
-
|
|
4929
|
-
interval.floor = (date) => {
|
|
4930
|
-
return floori(date = new Date(+date)), date;
|
|
4931
|
-
};
|
|
4932
|
-
|
|
4933
|
-
interval.ceil = (date) => {
|
|
4934
|
-
return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date;
|
|
4935
|
-
};
|
|
4936
|
-
|
|
4937
|
-
interval.round = (date) => {
|
|
4938
|
-
const d0 = interval(date), d1 = interval.ceil(date);
|
|
4939
|
-
return date - d0 < d1 - date ? d0 : d1;
|
|
4940
|
-
};
|
|
4941
|
-
|
|
4942
|
-
interval.offset = (date, step) => {
|
|
4943
|
-
return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date;
|
|
4944
|
-
};
|
|
4945
|
-
|
|
4946
|
-
interval.range = (start, stop, step) => {
|
|
4947
|
-
const range = [];
|
|
4948
|
-
start = interval.ceil(start);
|
|
4949
|
-
step = step == null ? 1 : Math.floor(step);
|
|
4950
|
-
if (!(start < stop) || !(step > 0)) return range; // also handles Invalid Date
|
|
4951
|
-
let previous;
|
|
4952
|
-
do range.push(previous = new Date(+start)), offseti(start, step), floori(start);
|
|
4953
|
-
while (previous < start && start < stop);
|
|
4954
|
-
return range;
|
|
4955
|
-
};
|
|
4956
|
-
|
|
4957
|
-
interval.filter = (test) => {
|
|
4958
|
-
return timeInterval((date) => {
|
|
4959
|
-
if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1);
|
|
4960
|
-
}, (date, step) => {
|
|
4961
|
-
if (date >= date) {
|
|
4962
|
-
if (step < 0) while (++step <= 0) {
|
|
4963
|
-
while (offseti(date, -1), !test(date)) {} // eslint-disable-line no-empty
|
|
4964
|
-
} else while (--step >= 0) {
|
|
4965
|
-
while (offseti(date, +1), !test(date)) {} // eslint-disable-line no-empty
|
|
4966
|
-
}
|
|
4967
|
-
}
|
|
4968
|
-
});
|
|
4969
|
-
};
|
|
4970
|
-
|
|
4971
|
-
if (count) {
|
|
4972
|
-
interval.count = (start, end) => {
|
|
4973
|
-
t0.setTime(+start), t1.setTime(+end);
|
|
4974
|
-
floori(t0), floori(t1);
|
|
4975
|
-
return Math.floor(count(t0, t1));
|
|
4976
|
-
};
|
|
4977
|
-
|
|
4978
|
-
interval.every = (step) => {
|
|
4979
|
-
step = Math.floor(step);
|
|
4980
|
-
return !isFinite(step) || !(step > 0) ? null
|
|
4981
|
-
: !(step > 1) ? interval
|
|
4982
|
-
: interval.filter(field
|
|
4983
|
-
? (d) => field(d) % step === 0
|
|
4984
|
-
: (d) => interval.count(0, d) % step === 0);
|
|
4985
|
-
};
|
|
4986
|
-
}
|
|
4987
|
-
|
|
4988
|
-
return interval;
|
|
4989
|
-
}
|
|
4990
|
-
|
|
4991
|
-
const millisecond = timeInterval(() => {
|
|
4992
|
-
// noop
|
|
4993
|
-
}, (date, step) => {
|
|
4994
|
-
date.setTime(+date + step);
|
|
4995
|
-
}, (start, end) => {
|
|
4996
|
-
return end - start;
|
|
4997
|
-
});
|
|
4998
|
-
|
|
4999
|
-
// An optimized implementation for this simple case.
|
|
5000
|
-
millisecond.every = (k) => {
|
|
5001
|
-
k = Math.floor(k);
|
|
5002
|
-
if (!isFinite(k) || !(k > 0)) return null;
|
|
5003
|
-
if (!(k > 1)) return millisecond;
|
|
5004
|
-
return timeInterval((date) => {
|
|
5005
|
-
date.setTime(Math.floor(date / k) * k);
|
|
5006
|
-
}, (date, step) => {
|
|
5007
|
-
date.setTime(+date + step * k);
|
|
5008
|
-
}, (start, end) => {
|
|
5009
|
-
return (end - start) / k;
|
|
5010
|
-
});
|
|
5011
|
-
};
|
|
5012
|
-
|
|
5013
|
-
millisecond.range;
|
|
5014
|
-
|
|
5015
|
-
const durationSecond = 1000;
|
|
5016
|
-
const durationMinute = durationSecond * 60;
|
|
5017
|
-
const durationHour = durationMinute * 60;
|
|
5018
|
-
const durationDay = durationHour * 24;
|
|
5019
|
-
const durationWeek = durationDay * 7;
|
|
5020
|
-
|
|
5021
|
-
const second = timeInterval((date) => {
|
|
5022
|
-
date.setTime(date - date.getMilliseconds());
|
|
5023
|
-
}, (date, step) => {
|
|
5024
|
-
date.setTime(+date + step * durationSecond);
|
|
5025
|
-
}, (start, end) => {
|
|
5026
|
-
return (end - start) / durationSecond;
|
|
5027
|
-
}, (date) => {
|
|
5028
|
-
return date.getUTCSeconds();
|
|
5029
|
-
});
|
|
5030
|
-
|
|
5031
|
-
second.range;
|
|
5032
|
-
|
|
5033
|
-
const timeMinute = timeInterval((date) => {
|
|
5034
|
-
date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond);
|
|
5035
|
-
}, (date, step) => {
|
|
5036
|
-
date.setTime(+date + step * durationMinute);
|
|
5037
|
-
}, (start, end) => {
|
|
5038
|
-
return (end - start) / durationMinute;
|
|
5039
|
-
}, (date) => {
|
|
5040
|
-
return date.getMinutes();
|
|
5041
|
-
});
|
|
5042
|
-
|
|
5043
|
-
timeMinute.range;
|
|
5044
|
-
|
|
5045
|
-
const utcMinute = timeInterval((date) => {
|
|
5046
|
-
date.setUTCSeconds(0, 0);
|
|
5047
|
-
}, (date, step) => {
|
|
5048
|
-
date.setTime(+date + step * durationMinute);
|
|
5049
|
-
}, (start, end) => {
|
|
5050
|
-
return (end - start) / durationMinute;
|
|
5051
|
-
}, (date) => {
|
|
5052
|
-
return date.getUTCMinutes();
|
|
5053
|
-
});
|
|
5054
|
-
|
|
5055
|
-
utcMinute.range;
|
|
5056
|
-
|
|
5057
|
-
const timeHour = timeInterval((date) => {
|
|
5058
|
-
date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond - date.getMinutes() * durationMinute);
|
|
5059
|
-
}, (date, step) => {
|
|
5060
|
-
date.setTime(+date + step * durationHour);
|
|
5061
|
-
}, (start, end) => {
|
|
5062
|
-
return (end - start) / durationHour;
|
|
5063
|
-
}, (date) => {
|
|
5064
|
-
return date.getHours();
|
|
5065
|
-
});
|
|
5066
|
-
|
|
5067
|
-
timeHour.range;
|
|
5068
|
-
|
|
5069
|
-
const utcHour = timeInterval((date) => {
|
|
5070
|
-
date.setUTCMinutes(0, 0, 0);
|
|
5071
|
-
}, (date, step) => {
|
|
5072
|
-
date.setTime(+date + step * durationHour);
|
|
5073
|
-
}, (start, end) => {
|
|
5074
|
-
return (end - start) / durationHour;
|
|
5075
|
-
}, (date) => {
|
|
5076
|
-
return date.getUTCHours();
|
|
5077
|
-
});
|
|
5078
|
-
|
|
5079
|
-
utcHour.range;
|
|
5080
|
-
|
|
5081
|
-
const timeDay = timeInterval(
|
|
5082
|
-
date => date.setHours(0, 0, 0, 0),
|
|
5083
|
-
(date, step) => date.setDate(date.getDate() + step),
|
|
5084
|
-
(start, end) => (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationDay,
|
|
5085
|
-
date => date.getDate() - 1
|
|
5086
|
-
);
|
|
5087
|
-
|
|
5088
|
-
timeDay.range;
|
|
5089
|
-
|
|
5090
|
-
const utcDay = timeInterval((date) => {
|
|
5091
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5092
|
-
}, (date, step) => {
|
|
5093
|
-
date.setUTCDate(date.getUTCDate() + step);
|
|
5094
|
-
}, (start, end) => {
|
|
5095
|
-
return (end - start) / durationDay;
|
|
5096
|
-
}, (date) => {
|
|
5097
|
-
return date.getUTCDate() - 1;
|
|
5098
|
-
});
|
|
5099
|
-
|
|
5100
|
-
utcDay.range;
|
|
5101
|
-
|
|
5102
|
-
const unixDay = timeInterval((date) => {
|
|
5103
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5104
|
-
}, (date, step) => {
|
|
5105
|
-
date.setUTCDate(date.getUTCDate() + step);
|
|
5106
|
-
}, (start, end) => {
|
|
5107
|
-
return (end - start) / durationDay;
|
|
5108
|
-
}, (date) => {
|
|
5109
|
-
return Math.floor(date / durationDay);
|
|
5110
|
-
});
|
|
5111
|
-
|
|
5112
|
-
unixDay.range;
|
|
5113
|
-
|
|
5114
|
-
function timeWeekday(i) {
|
|
5115
|
-
return timeInterval((date) => {
|
|
5116
|
-
date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7);
|
|
5117
|
-
date.setHours(0, 0, 0, 0);
|
|
5118
|
-
}, (date, step) => {
|
|
5119
|
-
date.setDate(date.getDate() + step * 7);
|
|
5120
|
-
}, (start, end) => {
|
|
5121
|
-
return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationWeek;
|
|
5122
|
-
});
|
|
5123
|
-
}
|
|
5124
|
-
|
|
5125
|
-
const timeSunday = timeWeekday(0);
|
|
5126
|
-
const timeMonday = timeWeekday(1);
|
|
5127
|
-
const timeTuesday = timeWeekday(2);
|
|
5128
|
-
const timeWednesday = timeWeekday(3);
|
|
5129
|
-
const timeThursday = timeWeekday(4);
|
|
5130
|
-
const timeFriday = timeWeekday(5);
|
|
5131
|
-
const timeSaturday = timeWeekday(6);
|
|
5132
|
-
|
|
5133
|
-
timeSunday.range;
|
|
5134
|
-
timeMonday.range;
|
|
5135
|
-
timeTuesday.range;
|
|
5136
|
-
timeWednesday.range;
|
|
5137
|
-
timeThursday.range;
|
|
5138
|
-
timeFriday.range;
|
|
5139
|
-
timeSaturday.range;
|
|
5140
|
-
|
|
5141
|
-
function utcWeekday(i) {
|
|
5142
|
-
return timeInterval((date) => {
|
|
5143
|
-
date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7);
|
|
5144
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5145
|
-
}, (date, step) => {
|
|
5146
|
-
date.setUTCDate(date.getUTCDate() + step * 7);
|
|
5147
|
-
}, (start, end) => {
|
|
5148
|
-
return (end - start) / durationWeek;
|
|
5149
|
-
});
|
|
5150
|
-
}
|
|
5151
|
-
|
|
5152
|
-
const utcSunday = utcWeekday(0);
|
|
5153
|
-
const utcMonday = utcWeekday(1);
|
|
5154
|
-
const utcTuesday = utcWeekday(2);
|
|
5155
|
-
const utcWednesday = utcWeekday(3);
|
|
5156
|
-
const utcThursday = utcWeekday(4);
|
|
5157
|
-
const utcFriday = utcWeekday(5);
|
|
5158
|
-
const utcSaturday = utcWeekday(6);
|
|
5159
|
-
|
|
5160
|
-
utcSunday.range;
|
|
5161
|
-
utcMonday.range;
|
|
5162
|
-
utcTuesday.range;
|
|
5163
|
-
utcWednesday.range;
|
|
5164
|
-
utcThursday.range;
|
|
5165
|
-
utcFriday.range;
|
|
5166
|
-
utcSaturday.range;
|
|
5167
|
-
|
|
5168
|
-
const timeMonth = timeInterval((date) => {
|
|
5169
|
-
date.setDate(1);
|
|
5170
|
-
date.setHours(0, 0, 0, 0);
|
|
5171
|
-
}, (date, step) => {
|
|
5172
|
-
date.setMonth(date.getMonth() + step);
|
|
5173
|
-
}, (start, end) => {
|
|
5174
|
-
return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12;
|
|
5175
|
-
}, (date) => {
|
|
5176
|
-
return date.getMonth();
|
|
5177
|
-
});
|
|
5178
|
-
|
|
5179
|
-
timeMonth.range;
|
|
5180
|
-
|
|
5181
|
-
const utcMonth = timeInterval((date) => {
|
|
5182
|
-
date.setUTCDate(1);
|
|
5183
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5184
|
-
}, (date, step) => {
|
|
5185
|
-
date.setUTCMonth(date.getUTCMonth() + step);
|
|
5186
|
-
}, (start, end) => {
|
|
5187
|
-
return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12;
|
|
5188
|
-
}, (date) => {
|
|
5189
|
-
return date.getUTCMonth();
|
|
5190
|
-
});
|
|
5191
|
-
|
|
5192
|
-
utcMonth.range;
|
|
5193
|
-
|
|
5194
|
-
const timeYear = timeInterval((date) => {
|
|
5195
|
-
date.setMonth(0, 1);
|
|
5196
|
-
date.setHours(0, 0, 0, 0);
|
|
5197
|
-
}, (date, step) => {
|
|
5198
|
-
date.setFullYear(date.getFullYear() + step);
|
|
5199
|
-
}, (start, end) => {
|
|
5200
|
-
return end.getFullYear() - start.getFullYear();
|
|
5201
|
-
}, (date) => {
|
|
5202
|
-
return date.getFullYear();
|
|
5203
|
-
});
|
|
5204
|
-
|
|
5205
|
-
// An optimized implementation for this simple case.
|
|
5206
|
-
timeYear.every = (k) => {
|
|
5207
|
-
return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : timeInterval((date) => {
|
|
5208
|
-
date.setFullYear(Math.floor(date.getFullYear() / k) * k);
|
|
5209
|
-
date.setMonth(0, 1);
|
|
5210
|
-
date.setHours(0, 0, 0, 0);
|
|
5211
|
-
}, (date, step) => {
|
|
5212
|
-
date.setFullYear(date.getFullYear() + step * k);
|
|
5213
|
-
});
|
|
5214
|
-
};
|
|
5215
|
-
|
|
5216
|
-
timeYear.range;
|
|
5217
|
-
|
|
5218
|
-
const utcYear = timeInterval((date) => {
|
|
5219
|
-
date.setUTCMonth(0, 1);
|
|
5220
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5221
|
-
}, (date, step) => {
|
|
5222
|
-
date.setUTCFullYear(date.getUTCFullYear() + step);
|
|
5223
|
-
}, (start, end) => {
|
|
5224
|
-
return end.getUTCFullYear() - start.getUTCFullYear();
|
|
5225
|
-
}, (date) => {
|
|
5226
|
-
return date.getUTCFullYear();
|
|
5227
|
-
});
|
|
5228
|
-
|
|
5229
|
-
// An optimized implementation for this simple case.
|
|
5230
|
-
utcYear.every = (k) => {
|
|
5231
|
-
return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : timeInterval((date) => {
|
|
5232
|
-
date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k);
|
|
5233
|
-
date.setUTCMonth(0, 1);
|
|
5234
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
5235
|
-
}, (date, step) => {
|
|
5236
|
-
date.setUTCFullYear(date.getUTCFullYear() + step * k);
|
|
5237
|
-
});
|
|
5238
|
-
};
|
|
5239
|
-
|
|
5240
|
-
utcYear.range;
|
|
5241
|
-
|
|
5242
|
-
function localDate(d) {
|
|
5243
|
-
if (0 <= d.y && d.y < 100) {
|
|
5244
|
-
var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);
|
|
5245
|
-
date.setFullYear(d.y);
|
|
5246
|
-
return date;
|
|
5247
|
-
}
|
|
5248
|
-
return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L);
|
|
5249
|
-
}
|
|
5250
|
-
|
|
5251
|
-
function utcDate(d) {
|
|
5252
|
-
if (0 <= d.y && d.y < 100) {
|
|
5253
|
-
var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L));
|
|
5254
|
-
date.setUTCFullYear(d.y);
|
|
5255
|
-
return date;
|
|
5256
|
-
}
|
|
5257
|
-
return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L));
|
|
5258
|
-
}
|
|
5259
|
-
|
|
5260
|
-
function newDate(y, m, d) {
|
|
5261
|
-
return {y: y, m: m, d: d, H: 0, M: 0, S: 0, L: 0};
|
|
5262
|
-
}
|
|
5263
|
-
|
|
5264
|
-
function formatLocale(locale) {
|
|
5265
|
-
var locale_dateTime = locale.dateTime,
|
|
5266
|
-
locale_date = locale.date,
|
|
5267
|
-
locale_time = locale.time,
|
|
5268
|
-
locale_periods = locale.periods,
|
|
5269
|
-
locale_weekdays = locale.days,
|
|
5270
|
-
locale_shortWeekdays = locale.shortDays,
|
|
5271
|
-
locale_months = locale.months,
|
|
5272
|
-
locale_shortMonths = locale.shortMonths;
|
|
5273
|
-
|
|
5274
|
-
var periodRe = formatRe(locale_periods),
|
|
5275
|
-
periodLookup = formatLookup(locale_periods),
|
|
5276
|
-
weekdayRe = formatRe(locale_weekdays),
|
|
5277
|
-
weekdayLookup = formatLookup(locale_weekdays),
|
|
5278
|
-
shortWeekdayRe = formatRe(locale_shortWeekdays),
|
|
5279
|
-
shortWeekdayLookup = formatLookup(locale_shortWeekdays),
|
|
5280
|
-
monthRe = formatRe(locale_months),
|
|
5281
|
-
monthLookup = formatLookup(locale_months),
|
|
5282
|
-
shortMonthRe = formatRe(locale_shortMonths),
|
|
5283
|
-
shortMonthLookup = formatLookup(locale_shortMonths);
|
|
5284
|
-
|
|
5285
|
-
var formats = {
|
|
5286
|
-
"a": formatShortWeekday,
|
|
5287
|
-
"A": formatWeekday,
|
|
5288
|
-
"b": formatShortMonth,
|
|
5289
|
-
"B": formatMonth,
|
|
5290
|
-
"c": null,
|
|
5291
|
-
"d": formatDayOfMonth,
|
|
5292
|
-
"e": formatDayOfMonth,
|
|
5293
|
-
"f": formatMicroseconds,
|
|
5294
|
-
"g": formatYearISO,
|
|
5295
|
-
"G": formatFullYearISO,
|
|
5296
|
-
"H": formatHour24,
|
|
5297
|
-
"I": formatHour12,
|
|
5298
|
-
"j": formatDayOfYear,
|
|
5299
|
-
"L": formatMilliseconds,
|
|
5300
|
-
"m": formatMonthNumber,
|
|
5301
|
-
"M": formatMinutes,
|
|
5302
|
-
"p": formatPeriod,
|
|
5303
|
-
"q": formatQuarter,
|
|
5304
|
-
"Q": formatUnixTimestamp,
|
|
5305
|
-
"s": formatUnixTimestampSeconds,
|
|
5306
|
-
"S": formatSeconds,
|
|
5307
|
-
"u": formatWeekdayNumberMonday,
|
|
5308
|
-
"U": formatWeekNumberSunday,
|
|
5309
|
-
"V": formatWeekNumberISO,
|
|
5310
|
-
"w": formatWeekdayNumberSunday,
|
|
5311
|
-
"W": formatWeekNumberMonday,
|
|
5312
|
-
"x": null,
|
|
5313
|
-
"X": null,
|
|
5314
|
-
"y": formatYear,
|
|
5315
|
-
"Y": formatFullYear,
|
|
5316
|
-
"Z": formatZone,
|
|
5317
|
-
"%": formatLiteralPercent
|
|
5318
|
-
};
|
|
5319
|
-
|
|
5320
|
-
var utcFormats = {
|
|
5321
|
-
"a": formatUTCShortWeekday,
|
|
5322
|
-
"A": formatUTCWeekday,
|
|
5323
|
-
"b": formatUTCShortMonth,
|
|
5324
|
-
"B": formatUTCMonth,
|
|
5325
|
-
"c": null,
|
|
5326
|
-
"d": formatUTCDayOfMonth,
|
|
5327
|
-
"e": formatUTCDayOfMonth,
|
|
5328
|
-
"f": formatUTCMicroseconds,
|
|
5329
|
-
"g": formatUTCYearISO,
|
|
5330
|
-
"G": formatUTCFullYearISO,
|
|
5331
|
-
"H": formatUTCHour24,
|
|
5332
|
-
"I": formatUTCHour12,
|
|
5333
|
-
"j": formatUTCDayOfYear,
|
|
5334
|
-
"L": formatUTCMilliseconds,
|
|
5335
|
-
"m": formatUTCMonthNumber,
|
|
5336
|
-
"M": formatUTCMinutes,
|
|
5337
|
-
"p": formatUTCPeriod,
|
|
5338
|
-
"q": formatUTCQuarter,
|
|
5339
|
-
"Q": formatUnixTimestamp,
|
|
5340
|
-
"s": formatUnixTimestampSeconds,
|
|
5341
|
-
"S": formatUTCSeconds,
|
|
5342
|
-
"u": formatUTCWeekdayNumberMonday,
|
|
5343
|
-
"U": formatUTCWeekNumberSunday,
|
|
5344
|
-
"V": formatUTCWeekNumberISO,
|
|
5345
|
-
"w": formatUTCWeekdayNumberSunday,
|
|
5346
|
-
"W": formatUTCWeekNumberMonday,
|
|
5347
|
-
"x": null,
|
|
5348
|
-
"X": null,
|
|
5349
|
-
"y": formatUTCYear,
|
|
5350
|
-
"Y": formatUTCFullYear,
|
|
5351
|
-
"Z": formatUTCZone,
|
|
5352
|
-
"%": formatLiteralPercent
|
|
5353
|
-
};
|
|
5354
|
-
|
|
5355
|
-
var parses = {
|
|
5356
|
-
"a": parseShortWeekday,
|
|
5357
|
-
"A": parseWeekday,
|
|
5358
|
-
"b": parseShortMonth,
|
|
5359
|
-
"B": parseMonth,
|
|
5360
|
-
"c": parseLocaleDateTime,
|
|
5361
|
-
"d": parseDayOfMonth,
|
|
5362
|
-
"e": parseDayOfMonth,
|
|
5363
|
-
"f": parseMicroseconds,
|
|
5364
|
-
"g": parseYear,
|
|
5365
|
-
"G": parseFullYear,
|
|
5366
|
-
"H": parseHour24,
|
|
5367
|
-
"I": parseHour24,
|
|
5368
|
-
"j": parseDayOfYear,
|
|
5369
|
-
"L": parseMilliseconds,
|
|
5370
|
-
"m": parseMonthNumber,
|
|
5371
|
-
"M": parseMinutes,
|
|
5372
|
-
"p": parsePeriod,
|
|
5373
|
-
"q": parseQuarter,
|
|
5374
|
-
"Q": parseUnixTimestamp,
|
|
5375
|
-
"s": parseUnixTimestampSeconds,
|
|
5376
|
-
"S": parseSeconds,
|
|
5377
|
-
"u": parseWeekdayNumberMonday,
|
|
5378
|
-
"U": parseWeekNumberSunday,
|
|
5379
|
-
"V": parseWeekNumberISO,
|
|
5380
|
-
"w": parseWeekdayNumberSunday,
|
|
5381
|
-
"W": parseWeekNumberMonday,
|
|
5382
|
-
"x": parseLocaleDate,
|
|
5383
|
-
"X": parseLocaleTime,
|
|
5384
|
-
"y": parseYear,
|
|
5385
|
-
"Y": parseFullYear,
|
|
5386
|
-
"Z": parseZone,
|
|
5387
|
-
"%": parseLiteralPercent
|
|
5388
|
-
};
|
|
5389
|
-
|
|
5390
|
-
// These recursive directive definitions must be deferred.
|
|
5391
|
-
formats.x = newFormat(locale_date, formats);
|
|
5392
|
-
formats.X = newFormat(locale_time, formats);
|
|
5393
|
-
formats.c = newFormat(locale_dateTime, formats);
|
|
5394
|
-
utcFormats.x = newFormat(locale_date, utcFormats);
|
|
5395
|
-
utcFormats.X = newFormat(locale_time, utcFormats);
|
|
5396
|
-
utcFormats.c = newFormat(locale_dateTime, utcFormats);
|
|
5397
|
-
|
|
5398
|
-
function newFormat(specifier, formats) {
|
|
5399
|
-
return function(date) {
|
|
5400
|
-
var string = [],
|
|
5401
|
-
i = -1,
|
|
5402
|
-
j = 0,
|
|
5403
|
-
n = specifier.length,
|
|
5404
|
-
c,
|
|
5405
|
-
pad,
|
|
5406
|
-
format;
|
|
5407
|
-
|
|
5408
|
-
if (!(date instanceof Date)) date = new Date(+date);
|
|
5409
|
-
|
|
5410
|
-
while (++i < n) {
|
|
5411
|
-
if (specifier.charCodeAt(i) === 37) {
|
|
5412
|
-
string.push(specifier.slice(j, i));
|
|
5413
|
-
if ((pad = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i);
|
|
5414
|
-
else pad = c === "e" ? " " : "0";
|
|
5415
|
-
if (format = formats[c]) c = format(date, pad);
|
|
5416
|
-
string.push(c);
|
|
5417
|
-
j = i + 1;
|
|
5418
|
-
}
|
|
5419
|
-
}
|
|
5420
|
-
|
|
5421
|
-
string.push(specifier.slice(j, i));
|
|
5422
|
-
return string.join("");
|
|
5423
|
-
};
|
|
5424
|
-
}
|
|
5425
|
-
|
|
5426
|
-
function newParse(specifier, Z) {
|
|
5427
|
-
return function(string) {
|
|
5428
|
-
var d = newDate(1900, undefined, 1),
|
|
5429
|
-
i = parseSpecifier(d, specifier, string += "", 0),
|
|
5430
|
-
week, day;
|
|
5431
|
-
if (i != string.length) return null;
|
|
5432
|
-
|
|
5433
|
-
// If a UNIX timestamp is specified, return it.
|
|
5434
|
-
if ("Q" in d) return new Date(d.Q);
|
|
5435
|
-
if ("s" in d) return new Date(d.s * 1000 + ("L" in d ? d.L : 0));
|
|
5436
|
-
|
|
5437
|
-
// If this is utcParse, never use the local timezone.
|
|
5438
|
-
if (Z && !("Z" in d)) d.Z = 0;
|
|
5439
|
-
|
|
5440
|
-
// The am-pm flag is 0 for AM, and 1 for PM.
|
|
5441
|
-
if ("p" in d) d.H = d.H % 12 + d.p * 12;
|
|
5442
|
-
|
|
5443
|
-
// If the month was not specified, inherit from the quarter.
|
|
5444
|
-
if (d.m === undefined) d.m = "q" in d ? d.q : 0;
|
|
5445
|
-
|
|
5446
|
-
// Convert day-of-week and week-of-year to day-of-year.
|
|
5447
|
-
if ("V" in d) {
|
|
5448
|
-
if (d.V < 1 || d.V > 53) return null;
|
|
5449
|
-
if (!("w" in d)) d.w = 1;
|
|
5450
|
-
if ("Z" in d) {
|
|
5451
|
-
week = utcDate(newDate(d.y, 0, 1)), day = week.getUTCDay();
|
|
5452
|
-
week = day > 4 || day === 0 ? utcMonday.ceil(week) : utcMonday(week);
|
|
5453
|
-
week = utcDay.offset(week, (d.V - 1) * 7);
|
|
5454
|
-
d.y = week.getUTCFullYear();
|
|
5455
|
-
d.m = week.getUTCMonth();
|
|
5456
|
-
d.d = week.getUTCDate() + (d.w + 6) % 7;
|
|
5457
|
-
} else {
|
|
5458
|
-
week = localDate(newDate(d.y, 0, 1)), day = week.getDay();
|
|
5459
|
-
week = day > 4 || day === 0 ? timeMonday.ceil(week) : timeMonday(week);
|
|
5460
|
-
week = timeDay.offset(week, (d.V - 1) * 7);
|
|
5461
|
-
d.y = week.getFullYear();
|
|
5462
|
-
d.m = week.getMonth();
|
|
5463
|
-
d.d = week.getDate() + (d.w + 6) % 7;
|
|
5464
|
-
}
|
|
5465
|
-
} else if ("W" in d || "U" in d) {
|
|
5466
|
-
if (!("w" in d)) d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0;
|
|
5467
|
-
day = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();
|
|
5468
|
-
d.m = 0;
|
|
5469
|
-
d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;
|
|
5470
|
-
}
|
|
5471
|
-
|
|
5472
|
-
// If a time zone is specified, all fields are interpreted as UTC and then
|
|
5473
|
-
// offset according to the specified time zone.
|
|
5474
|
-
if ("Z" in d) {
|
|
5475
|
-
d.H += d.Z / 100 | 0;
|
|
5476
|
-
d.M += d.Z % 100;
|
|
5477
|
-
return utcDate(d);
|
|
5478
|
-
}
|
|
5479
|
-
|
|
5480
|
-
// Otherwise, all fields are in local time.
|
|
5481
|
-
return localDate(d);
|
|
5482
|
-
};
|
|
5483
|
-
}
|
|
5484
|
-
|
|
5485
|
-
function parseSpecifier(d, specifier, string, j) {
|
|
5486
|
-
var i = 0,
|
|
5487
|
-
n = specifier.length,
|
|
5488
|
-
m = string.length,
|
|
5489
|
-
c,
|
|
5490
|
-
parse;
|
|
5491
|
-
|
|
5492
|
-
while (i < n) {
|
|
5493
|
-
if (j >= m) return -1;
|
|
5494
|
-
c = specifier.charCodeAt(i++);
|
|
5495
|
-
if (c === 37) {
|
|
5496
|
-
c = specifier.charAt(i++);
|
|
5497
|
-
parse = parses[c in pads ? specifier.charAt(i++) : c];
|
|
5498
|
-
if (!parse || ((j = parse(d, string, j)) < 0)) return -1;
|
|
5499
|
-
} else if (c != string.charCodeAt(j++)) {
|
|
5500
|
-
return -1;
|
|
5501
|
-
}
|
|
5502
|
-
}
|
|
5503
|
-
|
|
5504
|
-
return j;
|
|
5505
|
-
}
|
|
5506
|
-
|
|
5507
|
-
function parsePeriod(d, string, i) {
|
|
5508
|
-
var n = periodRe.exec(string.slice(i));
|
|
5509
|
-
return n ? (d.p = periodLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
|
|
5510
|
-
}
|
|
5511
|
-
|
|
5512
|
-
function parseShortWeekday(d, string, i) {
|
|
5513
|
-
var n = shortWeekdayRe.exec(string.slice(i));
|
|
5514
|
-
return n ? (d.w = shortWeekdayLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
|
|
5515
|
-
}
|
|
5516
|
-
|
|
5517
|
-
function parseWeekday(d, string, i) {
|
|
5518
|
-
var n = weekdayRe.exec(string.slice(i));
|
|
5519
|
-
return n ? (d.w = weekdayLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
|
|
5520
|
-
}
|
|
5521
|
-
|
|
5522
|
-
function parseShortMonth(d, string, i) {
|
|
5523
|
-
var n = shortMonthRe.exec(string.slice(i));
|
|
5524
|
-
return n ? (d.m = shortMonthLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
|
|
5525
|
-
}
|
|
5526
|
-
|
|
5527
|
-
function parseMonth(d, string, i) {
|
|
5528
|
-
var n = monthRe.exec(string.slice(i));
|
|
5529
|
-
return n ? (d.m = monthLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
|
|
5530
|
-
}
|
|
5531
|
-
|
|
5532
|
-
function parseLocaleDateTime(d, string, i) {
|
|
5533
|
-
return parseSpecifier(d, locale_dateTime, string, i);
|
|
5534
|
-
}
|
|
5535
|
-
|
|
5536
|
-
function parseLocaleDate(d, string, i) {
|
|
5537
|
-
return parseSpecifier(d, locale_date, string, i);
|
|
5538
|
-
}
|
|
5539
|
-
|
|
5540
|
-
function parseLocaleTime(d, string, i) {
|
|
5541
|
-
return parseSpecifier(d, locale_time, string, i);
|
|
5542
|
-
}
|
|
5543
|
-
|
|
5544
|
-
function formatShortWeekday(d) {
|
|
5545
|
-
return locale_shortWeekdays[d.getDay()];
|
|
5546
|
-
}
|
|
5547
|
-
|
|
5548
|
-
function formatWeekday(d) {
|
|
5549
|
-
return locale_weekdays[d.getDay()];
|
|
5550
|
-
}
|
|
5551
|
-
|
|
5552
|
-
function formatShortMonth(d) {
|
|
5553
|
-
return locale_shortMonths[d.getMonth()];
|
|
5554
|
-
}
|
|
5555
|
-
|
|
5556
|
-
function formatMonth(d) {
|
|
5557
|
-
return locale_months[d.getMonth()];
|
|
5558
|
-
}
|
|
5559
|
-
|
|
5560
|
-
function formatPeriod(d) {
|
|
5561
|
-
return locale_periods[+(d.getHours() >= 12)];
|
|
5562
|
-
}
|
|
5563
|
-
|
|
5564
|
-
function formatQuarter(d) {
|
|
5565
|
-
return 1 + ~~(d.getMonth() / 3);
|
|
5566
|
-
}
|
|
5567
|
-
|
|
5568
|
-
function formatUTCShortWeekday(d) {
|
|
5569
|
-
return locale_shortWeekdays[d.getUTCDay()];
|
|
5570
|
-
}
|
|
5571
|
-
|
|
5572
|
-
function formatUTCWeekday(d) {
|
|
5573
|
-
return locale_weekdays[d.getUTCDay()];
|
|
5574
|
-
}
|
|
5575
|
-
|
|
5576
|
-
function formatUTCShortMonth(d) {
|
|
5577
|
-
return locale_shortMonths[d.getUTCMonth()];
|
|
5578
|
-
}
|
|
5579
|
-
|
|
5580
|
-
function formatUTCMonth(d) {
|
|
5581
|
-
return locale_months[d.getUTCMonth()];
|
|
5582
|
-
}
|
|
5583
|
-
|
|
5584
|
-
function formatUTCPeriod(d) {
|
|
5585
|
-
return locale_periods[+(d.getUTCHours() >= 12)];
|
|
5586
|
-
}
|
|
5587
|
-
|
|
5588
|
-
function formatUTCQuarter(d) {
|
|
5589
|
-
return 1 + ~~(d.getUTCMonth() / 3);
|
|
5590
|
-
}
|
|
5591
|
-
|
|
5592
|
-
return {
|
|
5593
|
-
format: function(specifier) {
|
|
5594
|
-
var f = newFormat(specifier += "", formats);
|
|
5595
|
-
f.toString = function() { return specifier; };
|
|
5596
|
-
return f;
|
|
5597
|
-
},
|
|
5598
|
-
parse: function(specifier) {
|
|
5599
|
-
var p = newParse(specifier += "", false);
|
|
5600
|
-
p.toString = function() { return specifier; };
|
|
5601
|
-
return p;
|
|
5602
|
-
},
|
|
5603
|
-
utcFormat: function(specifier) {
|
|
5604
|
-
var f = newFormat(specifier += "", utcFormats);
|
|
5605
|
-
f.toString = function() { return specifier; };
|
|
5606
|
-
return f;
|
|
5607
|
-
},
|
|
5608
|
-
utcParse: function(specifier) {
|
|
5609
|
-
var p = newParse(specifier += "", true);
|
|
5610
|
-
p.toString = function() { return specifier; };
|
|
5611
|
-
return p;
|
|
5612
|
-
}
|
|
5613
|
-
};
|
|
5614
|
-
}
|
|
5615
|
-
|
|
5616
|
-
var pads = {"-": "", "_": " ", "0": "0"},
|
|
5617
|
-
numberRe = /^\s*\d+/, // note: ignores next directive
|
|
5618
|
-
percentRe = /^%/,
|
|
5619
|
-
requoteRe = /[\\^$*+?|[\]().{}]/g;
|
|
5620
|
-
|
|
5621
|
-
function pad(value, fill, width) {
|
|
5622
|
-
var sign = value < 0 ? "-" : "",
|
|
5623
|
-
string = (sign ? -value : value) + "",
|
|
5624
|
-
length = string.length;
|
|
5625
|
-
return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);
|
|
5626
|
-
}
|
|
5627
|
-
|
|
5628
|
-
function requote(s) {
|
|
5629
|
-
return s.replace(requoteRe, "\\$&");
|
|
5630
|
-
}
|
|
5631
|
-
|
|
5632
|
-
function formatRe(names) {
|
|
5633
|
-
return new RegExp("^(?:" + names.map(requote).join("|") + ")", "i");
|
|
5634
|
-
}
|
|
5635
|
-
|
|
5636
|
-
function formatLookup(names) {
|
|
5637
|
-
return new Map(names.map((name, i) => [name.toLowerCase(), i]));
|
|
5638
|
-
}
|
|
5639
|
-
|
|
5640
|
-
function parseWeekdayNumberSunday(d, string, i) {
|
|
5641
|
-
var n = numberRe.exec(string.slice(i, i + 1));
|
|
5642
|
-
return n ? (d.w = +n[0], i + n[0].length) : -1;
|
|
5643
|
-
}
|
|
5644
|
-
|
|
5645
|
-
function parseWeekdayNumberMonday(d, string, i) {
|
|
5646
|
-
var n = numberRe.exec(string.slice(i, i + 1));
|
|
5647
|
-
return n ? (d.u = +n[0], i + n[0].length) : -1;
|
|
5648
|
-
}
|
|
5649
|
-
|
|
5650
|
-
function parseWeekNumberSunday(d, string, i) {
|
|
5651
|
-
var n = numberRe.exec(string.slice(i, i + 2));
|
|
5652
|
-
return n ? (d.U = +n[0], i + n[0].length) : -1;
|
|
5653
|
-
}
|
|
5654
|
-
|
|
5655
|
-
function parseWeekNumberISO(d, string, i) {
|
|
5656
|
-
var n = numberRe.exec(string.slice(i, i + 2));
|
|
5657
|
-
return n ? (d.V = +n[0], i + n[0].length) : -1;
|
|
5658
|
-
}
|
|
5659
|
-
|
|
5660
|
-
function parseWeekNumberMonday(d, string, i) {
|
|
5661
|
-
var n = numberRe.exec(string.slice(i, i + 2));
|
|
5662
|
-
return n ? (d.W = +n[0], i + n[0].length) : -1;
|
|
5663
|
-
}
|
|
5664
|
-
|
|
5665
|
-
function parseFullYear(d, string, i) {
|
|
5666
|
-
var n = numberRe.exec(string.slice(i, i + 4));
|
|
5667
|
-
return n ? (d.y = +n[0], i + n[0].length) : -1;
|
|
5668
|
-
}
|
|
5669
|
-
|
|
5670
|
-
function parseYear(d, string, i) {
|
|
5671
|
-
var n = numberRe.exec(string.slice(i, i + 2));
|
|
5672
|
-
return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1;
|
|
5673
|
-
}
|
|
5674
|
-
|
|
5675
|
-
function parseZone(d, string, i) {
|
|
5676
|
-
var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(string.slice(i, i + 6));
|
|
5677
|
-
return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), i + n[0].length) : -1;
|
|
5678
|
-
}
|
|
5679
|
-
|
|
5680
|
-
function parseQuarter(d, string, i) {
|
|
5681
|
-
var n = numberRe.exec(string.slice(i, i + 1));
|
|
5682
|
-
return n ? (d.q = n[0] * 3 - 3, i + n[0].length) : -1;
|
|
5683
|
-
}
|
|
5684
|
-
|
|
5685
|
-
function parseMonthNumber(d, string, i) {
|
|
5686
|
-
var n = numberRe.exec(string.slice(i, i + 2));
|
|
5687
|
-
return n ? (d.m = n[0] - 1, i + n[0].length) : -1;
|
|
5688
|
-
}
|
|
5689
|
-
|
|
5690
|
-
function parseDayOfMonth(d, string, i) {
|
|
5691
|
-
var n = numberRe.exec(string.slice(i, i + 2));
|
|
5692
|
-
return n ? (d.d = +n[0], i + n[0].length) : -1;
|
|
5693
|
-
}
|
|
5694
|
-
|
|
5695
|
-
function parseDayOfYear(d, string, i) {
|
|
5696
|
-
var n = numberRe.exec(string.slice(i, i + 3));
|
|
5697
|
-
return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1;
|
|
5698
|
-
}
|
|
5699
|
-
|
|
5700
|
-
function parseHour24(d, string, i) {
|
|
5701
|
-
var n = numberRe.exec(string.slice(i, i + 2));
|
|
5702
|
-
return n ? (d.H = +n[0], i + n[0].length) : -1;
|
|
5703
|
-
}
|
|
5704
|
-
|
|
5705
|
-
function parseMinutes(d, string, i) {
|
|
5706
|
-
var n = numberRe.exec(string.slice(i, i + 2));
|
|
5707
|
-
return n ? (d.M = +n[0], i + n[0].length) : -1;
|
|
5708
|
-
}
|
|
5709
|
-
|
|
5710
|
-
function parseSeconds(d, string, i) {
|
|
5711
|
-
var n = numberRe.exec(string.slice(i, i + 2));
|
|
5712
|
-
return n ? (d.S = +n[0], i + n[0].length) : -1;
|
|
5713
|
-
}
|
|
5714
|
-
|
|
5715
|
-
function parseMilliseconds(d, string, i) {
|
|
5716
|
-
var n = numberRe.exec(string.slice(i, i + 3));
|
|
5717
|
-
return n ? (d.L = +n[0], i + n[0].length) : -1;
|
|
5718
|
-
}
|
|
5719
|
-
|
|
5720
|
-
function parseMicroseconds(d, string, i) {
|
|
5721
|
-
var n = numberRe.exec(string.slice(i, i + 6));
|
|
5722
|
-
return n ? (d.L = Math.floor(n[0] / 1000), i + n[0].length) : -1;
|
|
5723
|
-
}
|
|
5724
|
-
|
|
5725
|
-
function parseLiteralPercent(d, string, i) {
|
|
5726
|
-
var n = percentRe.exec(string.slice(i, i + 1));
|
|
5727
|
-
return n ? i + n[0].length : -1;
|
|
5728
|
-
}
|
|
5729
|
-
|
|
5730
|
-
function parseUnixTimestamp(d, string, i) {
|
|
5731
|
-
var n = numberRe.exec(string.slice(i));
|
|
5732
|
-
return n ? (d.Q = +n[0], i + n[0].length) : -1;
|
|
5733
|
-
}
|
|
5734
|
-
|
|
5735
|
-
function parseUnixTimestampSeconds(d, string, i) {
|
|
5736
|
-
var n = numberRe.exec(string.slice(i));
|
|
5737
|
-
return n ? (d.s = +n[0], i + n[0].length) : -1;
|
|
5738
|
-
}
|
|
5739
|
-
|
|
5740
|
-
function formatDayOfMonth(d, p) {
|
|
5741
|
-
return pad(d.getDate(), p, 2);
|
|
5742
|
-
}
|
|
5743
|
-
|
|
5744
|
-
function formatHour24(d, p) {
|
|
5745
|
-
return pad(d.getHours(), p, 2);
|
|
5746
|
-
}
|
|
5747
|
-
|
|
5748
|
-
function formatHour12(d, p) {
|
|
5749
|
-
return pad(d.getHours() % 12 || 12, p, 2);
|
|
5750
|
-
}
|
|
5751
|
-
|
|
5752
|
-
function formatDayOfYear(d, p) {
|
|
5753
|
-
return pad(1 + timeDay.count(timeYear(d), d), p, 3);
|
|
5754
|
-
}
|
|
5755
|
-
|
|
5756
|
-
function formatMilliseconds(d, p) {
|
|
5757
|
-
return pad(d.getMilliseconds(), p, 3);
|
|
5758
|
-
}
|
|
5759
|
-
|
|
5760
|
-
function formatMicroseconds(d, p) {
|
|
5761
|
-
return formatMilliseconds(d, p) + "000";
|
|
5762
|
-
}
|
|
5763
|
-
|
|
5764
|
-
function formatMonthNumber(d, p) {
|
|
5765
|
-
return pad(d.getMonth() + 1, p, 2);
|
|
5766
|
-
}
|
|
5767
|
-
|
|
5768
|
-
function formatMinutes(d, p) {
|
|
5769
|
-
return pad(d.getMinutes(), p, 2);
|
|
5770
|
-
}
|
|
5771
|
-
|
|
5772
|
-
function formatSeconds(d, p) {
|
|
5773
|
-
return pad(d.getSeconds(), p, 2);
|
|
5774
|
-
}
|
|
5775
|
-
|
|
5776
|
-
function formatWeekdayNumberMonday(d) {
|
|
5777
|
-
var day = d.getDay();
|
|
5778
|
-
return day === 0 ? 7 : day;
|
|
5779
|
-
}
|
|
5780
|
-
|
|
5781
|
-
function formatWeekNumberSunday(d, p) {
|
|
5782
|
-
return pad(timeSunday.count(timeYear(d) - 1, d), p, 2);
|
|
5783
|
-
}
|
|
5784
|
-
|
|
5785
|
-
function dISO(d) {
|
|
5786
|
-
var day = d.getDay();
|
|
5787
|
-
return (day >= 4 || day === 0) ? timeThursday(d) : timeThursday.ceil(d);
|
|
5788
|
-
}
|
|
5789
|
-
|
|
5790
|
-
function formatWeekNumberISO(d, p) {
|
|
5791
|
-
d = dISO(d);
|
|
5792
|
-
return pad(timeThursday.count(timeYear(d), d) + (timeYear(d).getDay() === 4), p, 2);
|
|
5793
|
-
}
|
|
5794
|
-
|
|
5795
|
-
function formatWeekdayNumberSunday(d) {
|
|
5796
|
-
return d.getDay();
|
|
5797
|
-
}
|
|
5798
|
-
|
|
5799
|
-
function formatWeekNumberMonday(d, p) {
|
|
5800
|
-
return pad(timeMonday.count(timeYear(d) - 1, d), p, 2);
|
|
5801
|
-
}
|
|
5802
|
-
|
|
5803
|
-
function formatYear(d, p) {
|
|
5804
|
-
return pad(d.getFullYear() % 100, p, 2);
|
|
5805
|
-
}
|
|
5806
|
-
|
|
5807
|
-
function formatYearISO(d, p) {
|
|
5808
|
-
d = dISO(d);
|
|
5809
|
-
return pad(d.getFullYear() % 100, p, 2);
|
|
5810
|
-
}
|
|
5811
|
-
|
|
5812
|
-
function formatFullYear(d, p) {
|
|
5813
|
-
return pad(d.getFullYear() % 10000, p, 4);
|
|
5814
|
-
}
|
|
5815
|
-
|
|
5816
|
-
function formatFullYearISO(d, p) {
|
|
5817
|
-
var day = d.getDay();
|
|
5818
|
-
d = (day >= 4 || day === 0) ? timeThursday(d) : timeThursday.ceil(d);
|
|
5819
|
-
return pad(d.getFullYear() % 10000, p, 4);
|
|
5820
|
-
}
|
|
5821
|
-
|
|
5822
|
-
function formatZone(d) {
|
|
5823
|
-
var z = d.getTimezoneOffset();
|
|
5824
|
-
return (z > 0 ? "-" : (z *= -1, "+"))
|
|
5825
|
-
+ pad(z / 60 | 0, "0", 2)
|
|
5826
|
-
+ pad(z % 60, "0", 2);
|
|
5827
|
-
}
|
|
5828
|
-
|
|
5829
|
-
function formatUTCDayOfMonth(d, p) {
|
|
5830
|
-
return pad(d.getUTCDate(), p, 2);
|
|
5831
|
-
}
|
|
5832
|
-
|
|
5833
|
-
function formatUTCHour24(d, p) {
|
|
5834
|
-
return pad(d.getUTCHours(), p, 2);
|
|
5835
|
-
}
|
|
5836
|
-
|
|
5837
|
-
function formatUTCHour12(d, p) {
|
|
5838
|
-
return pad(d.getUTCHours() % 12 || 12, p, 2);
|
|
5839
|
-
}
|
|
5840
|
-
|
|
5841
|
-
function formatUTCDayOfYear(d, p) {
|
|
5842
|
-
return pad(1 + utcDay.count(utcYear(d), d), p, 3);
|
|
5843
|
-
}
|
|
5844
|
-
|
|
5845
|
-
function formatUTCMilliseconds(d, p) {
|
|
5846
|
-
return pad(d.getUTCMilliseconds(), p, 3);
|
|
5847
|
-
}
|
|
5848
|
-
|
|
5849
|
-
function formatUTCMicroseconds(d, p) {
|
|
5850
|
-
return formatUTCMilliseconds(d, p) + "000";
|
|
5851
|
-
}
|
|
5852
|
-
|
|
5853
|
-
function formatUTCMonthNumber(d, p) {
|
|
5854
|
-
return pad(d.getUTCMonth() + 1, p, 2);
|
|
5855
|
-
}
|
|
5856
|
-
|
|
5857
|
-
function formatUTCMinutes(d, p) {
|
|
5858
|
-
return pad(d.getUTCMinutes(), p, 2);
|
|
5859
|
-
}
|
|
5860
|
-
|
|
5861
|
-
function formatUTCSeconds(d, p) {
|
|
5862
|
-
return pad(d.getUTCSeconds(), p, 2);
|
|
5863
|
-
}
|
|
5864
|
-
|
|
5865
|
-
function formatUTCWeekdayNumberMonday(d) {
|
|
5866
|
-
var dow = d.getUTCDay();
|
|
5867
|
-
return dow === 0 ? 7 : dow;
|
|
5868
|
-
}
|
|
5869
|
-
|
|
5870
|
-
function formatUTCWeekNumberSunday(d, p) {
|
|
5871
|
-
return pad(utcSunday.count(utcYear(d) - 1, d), p, 2);
|
|
5872
|
-
}
|
|
5873
|
-
|
|
5874
|
-
function UTCdISO(d) {
|
|
5875
|
-
var day = d.getUTCDay();
|
|
5876
|
-
return (day >= 4 || day === 0) ? utcThursday(d) : utcThursday.ceil(d);
|
|
5877
|
-
}
|
|
5878
|
-
|
|
5879
|
-
function formatUTCWeekNumberISO(d, p) {
|
|
5880
|
-
d = UTCdISO(d);
|
|
5881
|
-
return pad(utcThursday.count(utcYear(d), d) + (utcYear(d).getUTCDay() === 4), p, 2);
|
|
5882
|
-
}
|
|
5883
|
-
|
|
5884
|
-
function formatUTCWeekdayNumberSunday(d) {
|
|
5885
|
-
return d.getUTCDay();
|
|
5886
|
-
}
|
|
5887
|
-
|
|
5888
|
-
function formatUTCWeekNumberMonday(d, p) {
|
|
5889
|
-
return pad(utcMonday.count(utcYear(d) - 1, d), p, 2);
|
|
5890
|
-
}
|
|
5891
|
-
|
|
5892
|
-
function formatUTCYear(d, p) {
|
|
5893
|
-
return pad(d.getUTCFullYear() % 100, p, 2);
|
|
5894
|
-
}
|
|
5895
|
-
|
|
5896
|
-
function formatUTCYearISO(d, p) {
|
|
5897
|
-
d = UTCdISO(d);
|
|
5898
|
-
return pad(d.getUTCFullYear() % 100, p, 2);
|
|
5899
|
-
}
|
|
5900
|
-
|
|
5901
|
-
function formatUTCFullYear(d, p) {
|
|
5902
|
-
return pad(d.getUTCFullYear() % 10000, p, 4);
|
|
5903
|
-
}
|
|
5904
|
-
|
|
5905
|
-
function formatUTCFullYearISO(d, p) {
|
|
5906
|
-
var day = d.getUTCDay();
|
|
5907
|
-
d = (day >= 4 || day === 0) ? utcThursday(d) : utcThursday.ceil(d);
|
|
5908
|
-
return pad(d.getUTCFullYear() % 10000, p, 4);
|
|
5909
|
-
}
|
|
5910
|
-
|
|
5911
|
-
function formatUTCZone() {
|
|
5912
|
-
return "+0000";
|
|
5913
|
-
}
|
|
5914
|
-
|
|
5915
|
-
function formatLiteralPercent() {
|
|
5916
|
-
return "%";
|
|
5917
|
-
}
|
|
5918
|
-
|
|
5919
|
-
function formatUnixTimestamp(d) {
|
|
5920
|
-
return +d;
|
|
5921
|
-
}
|
|
5922
|
-
|
|
5923
|
-
function formatUnixTimestampSeconds(d) {
|
|
5924
|
-
return Math.floor(+d / 1000);
|
|
5925
|
-
}
|
|
5926
|
-
|
|
5927
|
-
var locale;
|
|
5928
|
-
var utcFormat;
|
|
5929
|
-
var utcParse;
|
|
5930
|
-
|
|
5931
|
-
defaultLocale({
|
|
5932
|
-
dateTime: "%x, %X",
|
|
5933
|
-
date: "%-m/%-d/%Y",
|
|
5934
|
-
time: "%-I:%M:%S %p",
|
|
5935
|
-
periods: ["AM", "PM"],
|
|
5936
|
-
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
|
5937
|
-
shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
5938
|
-
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
|
5939
|
-
shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
|
5940
|
-
});
|
|
5941
|
-
|
|
5942
|
-
function defaultLocale(definition) {
|
|
5943
|
-
locale = formatLocale(definition);
|
|
5944
|
-
locale.format;
|
|
5945
|
-
locale.parse;
|
|
5946
|
-
utcFormat = locale.utcFormat;
|
|
5947
|
-
utcParse = locale.utcParse;
|
|
5948
|
-
return locale;
|
|
5949
|
-
}
|
|
5950
|
-
|
|
5951
|
-
var isoSpecifier = "%Y-%m-%dT%H:%M:%S.%LZ";
|
|
5952
|
-
|
|
5953
|
-
function formatIsoNative(date) {
|
|
5954
|
-
return date.toISOString();
|
|
5955
|
-
}
|
|
5956
|
-
|
|
5957
|
-
Date.prototype.toISOString
|
|
5958
|
-
? formatIsoNative
|
|
5959
|
-
: utcFormat(isoSpecifier);
|
|
5960
|
-
|
|
5961
|
-
function parseIsoNative(string) {
|
|
5962
|
-
var date = new Date(string);
|
|
5963
|
-
return isNaN(date) ? null : date;
|
|
5964
|
-
}
|
|
5965
|
-
|
|
5966
|
-
+new Date("2000-01-01T00:00:00.000Z")
|
|
5967
|
-
? parseIsoNative
|
|
5968
|
-
: utcParse(isoSpecifier);
|
|
5969
|
-
|
|
5970
4631
|
function transformer() {
|
|
5971
4632
|
var x0 = 0,
|
|
5972
4633
|
x1 = 1,
|
|
@@ -6087,7 +4748,7 @@ var drawChart = (function (exports) {
|
|
|
6087
4748
|
};
|
|
6088
4749
|
};
|
|
6089
4750
|
|
|
6090
|
-
const StaticContext =
|
|
4751
|
+
const StaticContext = G({});
|
|
6091
4752
|
const drawChart = (parentNode, data, width, height) => {
|
|
6092
4753
|
const availableSizeProperties = getAvailableSizeOptions(data.options);
|
|
6093
4754
|
console.time("layout create");
|
|
@@ -6131,7 +4792,7 @@ var drawChart = (function (exports) {
|
|
|
6131
4792
|
console.time("color");
|
|
6132
4793
|
const getModuleColor = createRainbowColor(rawHierarchy);
|
|
6133
4794
|
console.timeEnd("color");
|
|
6134
|
-
|
|
4795
|
+
D(o$1(StaticContext.Provider, { value: {
|
|
6135
4796
|
data,
|
|
6136
4797
|
availableSizeProperties,
|
|
6137
4798
|
width,
|
|
@@ -6141,7 +4802,7 @@ var drawChart = (function (exports) {
|
|
|
6141
4802
|
getModuleColor,
|
|
6142
4803
|
rawHierarchy,
|
|
6143
4804
|
layout,
|
|
6144
|
-
}
|
|
4805
|
+
}, children: o$1(Main, {}) }), parentNode);
|
|
6145
4806
|
};
|
|
6146
4807
|
|
|
6147
4808
|
exports.StaticContext = StaticContext;
|
|
@@ -6157,7 +4818,7 @@ var drawChart = (function (exports) {
|
|
|
6157
4818
|
</script>
|
|
6158
4819
|
<script>
|
|
6159
4820
|
/*<!--*/
|
|
6160
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.esm.js","children":[{"name":"build/rollup:/@epam/uui-db","children":[{"name":"src","children":[{"uid":"
|
|
4821
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.esm.js","children":[{"name":"build/rollup:/@epam/uui-db","children":[{"name":"src","children":[{"uid":"2e83-54","name":"types.ts"},{"uid":"2e83-56","name":"utils.ts"},{"uid":"2e83-58","name":"Db.ts"},{"uid":"2e83-62","name":"DbTable.ts"},{"uid":"2e83-64","name":"patchHelpers.ts"},{"uid":"2e83-66","name":"tempIds.tsx"},{"uid":"2e83-68","name":"Loader.ts"},{"uid":"2e83-70","name":"SimpleLoadingTracker.ts"},{"uid":"2e83-72","name":"ListLoadingTracker.ts"},{"uid":"2e83-74","name":"DbRef.ts"},{"uid":"2e83-76","name":"reactHooks.ts"}]},{"name":"node_modules/tslib/tslib.es6.js","uid":"2e83-60"}]}]}],"isRoot":true},"nodeParts":{"2e83-54":{"renderedLength":232,"gzipLength":0,"brotliLength":0,"metaUid":"2e83-53"},"2e83-56":{"renderedLength":777,"gzipLength":0,"brotliLength":0,"metaUid":"2e83-55"},"2e83-58":{"renderedLength":2104,"gzipLength":0,"brotliLength":0,"metaUid":"2e83-57"},"2e83-60":{"renderedLength":2229,"gzipLength":0,"brotliLength":0,"metaUid":"2e83-59"},"2e83-62":{"renderedLength":6566,"gzipLength":0,"brotliLength":0,"metaUid":"2e83-61"},"2e83-64":{"renderedLength":6098,"gzipLength":0,"brotliLength":0,"metaUid":"2e83-63"},"2e83-66":{"renderedLength":6249,"gzipLength":0,"brotliLength":0,"metaUid":"2e83-65"},"2e83-68":{"renderedLength":2277,"gzipLength":0,"brotliLength":0,"metaUid":"2e83-67"},"2e83-70":{"renderedLength":291,"gzipLength":0,"brotliLength":0,"metaUid":"2e83-69"},"2e83-72":{"renderedLength":2894,"gzipLength":0,"brotliLength":0,"metaUid":"2e83-71"},"2e83-74":{"renderedLength":5956,"gzipLength":0,"brotliLength":0,"metaUid":"2e83-73"},"2e83-76":{"renderedLength":442,"gzipLength":0,"brotliLength":0,"metaUid":"2e83-75"}},"nodeMetas":{"2e83-53":{"id":"/build/rollup:/@epam/uui-db/src/types.ts","moduleParts":{"index.esm.js":"2e83-54"},"imported":[],"importedBy":[]},"2e83-55":{"id":"/build/rollup:/@epam/uui-db/src/utils.ts","moduleParts":{"index.esm.js":"2e83-56"},"imported":[],"importedBy":[]},"2e83-57":{"id":"/build/rollup:/@epam/uui-db/src/Db.ts","moduleParts":{"index.esm.js":"2e83-58"},"imported":[],"importedBy":[]},"2e83-59":{"id":"/build/rollup:/@epam/uui-db/node_modules/tslib/tslib.es6.js","moduleParts":{"index.esm.js":"2e83-60"},"imported":[],"importedBy":[]},"2e83-61":{"id":"/build/rollup:/@epam/uui-db/src/DbTable.ts","moduleParts":{"index.esm.js":"2e83-62"},"imported":[],"importedBy":[]},"2e83-63":{"id":"/build/rollup:/@epam/uui-db/src/patchHelpers.ts","moduleParts":{"index.esm.js":"2e83-64"},"imported":[],"importedBy":[]},"2e83-65":{"id":"/build/rollup:/@epam/uui-db/src/tempIds.tsx","moduleParts":{"index.esm.js":"2e83-66"},"imported":[],"importedBy":[]},"2e83-67":{"id":"/build/rollup:/@epam/uui-db/src/Loader.ts","moduleParts":{"index.esm.js":"2e83-68"},"imported":[],"importedBy":[]},"2e83-69":{"id":"/build/rollup:/@epam/uui-db/src/SimpleLoadingTracker.ts","moduleParts":{"index.esm.js":"2e83-70"},"imported":[],"importedBy":[]},"2e83-71":{"id":"/build/rollup:/@epam/uui-db/src/ListLoadingTracker.ts","moduleParts":{"index.esm.js":"2e83-72"},"imported":[],"importedBy":[]},"2e83-73":{"id":"/build/rollup:/@epam/uui-db/src/DbRef.ts","moduleParts":{"index.esm.js":"2e83-74"},"imported":[],"importedBy":[]},"2e83-75":{"id":"/build/rollup:/@epam/uui-db/src/reactHooks.ts","moduleParts":{"index.esm.js":"2e83-76"},"imported":[],"importedBy":[]},"2e83-77":{"id":"/index.tsx","moduleParts":{},"imported":[{"uid":"2e83-78"}],"importedBy":[],"isEntry":true},"2e83-78":{"id":"/src/index.ts","moduleParts":{},"imported":[{"uid":"2e83-79"},{"uid":"2e83-80"},{"uid":"2e83-81"},{"uid":"2e83-82"},{"uid":"2e83-83"},{"uid":"2e83-84"},{"uid":"2e83-85"},{"uid":"2e83-86"}],"importedBy":[{"uid":"2e83-77"}]},"2e83-79":{"id":"/src/types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"2e83-78"},{"uid":"2e83-85"}]},"2e83-80":{"id":"/src/Db.ts","moduleParts":{},"imported":[{"uid":"2e83-84"},{"uid":"2e83-87"}],"importedBy":[{"uid":"2e83-78"}]},"2e83-81":{"id":"/src/DbTable.ts","moduleParts":{},"imported":[{"uid":"2e83-88"},{"uid":"2e83-89"},{"uid":"2e83-90"}],"importedBy":[{"uid":"2e83-78"}]},"2e83-82":{"id":"/src/DbRef.ts","moduleParts":{},"imported":[{"uid":"2e83-88"},{"uid":"2e83-85"},{"uid":"2e83-83"},{"uid":"2e83-84"},{"uid":"2e83-91"},{"uid":"2e83-92"},{"uid":"2e83-90"},{"uid":"2e83-93"},{"uid":"2e83-94"}],"importedBy":[{"uid":"2e83-78"}]},"2e83-83":{"id":"/src/tempIds.tsx","moduleParts":{},"imported":[{"uid":"2e83-84"}],"importedBy":[{"uid":"2e83-78"},{"uid":"2e83-82"}]},"2e83-84":{"id":"/src/utils.ts","moduleParts":{},"imported":[{"uid":"2e83-95"},{"uid":"2e83-96"},{"uid":"2e83-97"},{"uid":"2e83-87"}],"importedBy":[{"uid":"2e83-78"},{"uid":"2e83-80"},{"uid":"2e83-82"},{"uid":"2e83-83"},{"uid":"2e83-85"}]},"2e83-85":{"id":"/src/patchHelpers.ts","moduleParts":{},"imported":[{"uid":"2e83-79"},{"uid":"2e83-89"},{"uid":"2e83-84"},{"uid":"2e83-98"},{"uid":"2e83-99"},{"uid":"2e83-100"},{"uid":"2e83-101"},{"uid":"2e83-102"},{"uid":"2e83-103"},{"uid":"2e83-104"}],"importedBy":[{"uid":"2e83-78"},{"uid":"2e83-82"}]},"2e83-86":{"id":"/src/reactHooks.ts","moduleParts":{},"imported":[{"uid":"2e83-105"}],"importedBy":[{"uid":"2e83-78"}]},"2e83-87":{"id":"lodash.isequal","moduleParts":{},"imported":[],"importedBy":[{"uid":"2e83-80"},{"uid":"2e83-84"}],"isExternal":true},"2e83-88":{"id":"/Users/Aliaksei_Manetau/WebstormProjects/uui/node_modules/tslib/tslib.es6.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"2e83-81"},{"uid":"2e83-82"},{"uid":"2e83-94"}]},"2e83-89":{"id":"immutable","moduleParts":{},"imported":[],"importedBy":[{"uid":"2e83-81"},{"uid":"2e83-85"}],"isExternal":true},"2e83-90":{"id":"@epam/uui-core","moduleParts":{},"imported":[],"importedBy":[{"uid":"2e83-81"},{"uid":"2e83-82"}],"isExternal":true},"2e83-91":{"id":"lodash.isempty","moduleParts":{},"imported":[],"importedBy":[{"uid":"2e83-82"}],"isExternal":true},"2e83-92":{"id":"/src/Loader.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"2e83-82"}]},"2e83-93":{"id":"/src/SimpleLoadingTracker.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"2e83-82"}]},"2e83-94":{"id":"/src/ListLoadingTracker.ts","moduleParts":{},"imported":[{"uid":"2e83-88"}],"importedBy":[{"uid":"2e83-82"}]},"2e83-95":{"id":"shallowequal","moduleParts":{},"imported":[],"importedBy":[{"uid":"2e83-84"}],"isExternal":true},"2e83-96":{"id":"lodash.zip","moduleParts":{},"imported":[],"importedBy":[{"uid":"2e83-84"}],"isExternal":true},"2e83-97":{"id":"lodash.transform","moduleParts":{},"imported":[],"importedBy":[{"uid":"2e83-84"}],"isExternal":true},"2e83-98":{"id":"lodash.groupby","moduleParts":{},"imported":[],"importedBy":[{"uid":"2e83-85"}],"isExternal":true},"2e83-99":{"id":"lodash.map","moduleParts":{},"imported":[],"importedBy":[{"uid":"2e83-85"}],"isExternal":true},"2e83-100":{"id":"lodash.merge","moduleParts":{},"imported":[],"importedBy":[{"uid":"2e83-85"}],"isExternal":true},"2e83-101":{"id":"lodash.countby","moduleParts":{},"imported":[],"importedBy":[{"uid":"2e83-85"}],"isExternal":true},"2e83-102":{"id":"lodash.filter","moduleParts":{},"imported":[],"importedBy":[{"uid":"2e83-85"}],"isExternal":true},"2e83-103":{"id":"lodash.foreach","moduleParts":{},"imported":[],"importedBy":[{"uid":"2e83-85"}],"isExternal":true},"2e83-104":{"id":"lodash.pick","moduleParts":{},"imported":[],"importedBy":[{"uid":"2e83-85"}],"isExternal":true},"2e83-105":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"2e83-86"}],"isExternal":true}},"env":{"rollup":"3.26.2"},"options":{"gzip":false,"brotli":false,"sourcemap":true}};
|
|
6161
4822
|
|
|
6162
4823
|
const run = () => {
|
|
6163
4824
|
const width = window.innerWidth;
|