UNPKG

@carbon/charts

Version:
15 lines (13 loc) 390 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).Charts={})}(this,(function(t){"use strict"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,n)};function n(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r,i,a,o,s,u,l,c,h,f,d,p,g,v,m,y,_,b,x,O=function(){return(O=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function w(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}!function(t){t.GRAPHICS_DOCUMENT="graphics-document",t.GRAPHICS_OBJECT="graphics-object",t.GRAPHICS_SYMBOL="graphics-symbol",t.GROUP="group",t.DOCUMENT="document",t.CHECKBOX="checkbox",t.BUTTON="button",t.MENU="menu",t.MENU_ITEM="menuitem",t.IMG="img"}(r||(r={})),function(t){t.RENDER_FINISHED="render-finished",t.RESIZE="chart-resize",t.MOUSEOVER="chart-mouseover",t.MOUSEOUT="chart-mouseout"}(i||(i={})),function(t){t.UPDATE="model-update"}(a||(a={})),function(t){t.SHOW_OVERFLOW_MENU="show-toolbar-overflow-menu",t.HIDE_OVERFLOW_MENU="hide-toolbar-overflow-menu"}(o||(o={})),function(t){t.UPDATE="zoom-bar-update",t.SELECTION_START="zoom-bar-selection-start",t.SELECTION_IN_PROGRESS="zoom-bar-selection-in-progress",t.SELECTION_END="zoom-bar-selection-end"}(s||(s={})),function(t){t.CHANGE="zoom-domain-change"}(u||(u={})),function(t){t.LABEL_MOUSEOVER="axis-label-mouseover",t.LABEL_MOUSEMOVE="axis-label-mousemove",t.LABEL_CLICK="axis-label-click",t.LABEL_MOUSEOUT="axis-label-mouseout"}(l||(l={})),function(t){t.AREA_MOUSEOVER="area-mouseover",t.AREA_MOUSEMOVE="area-mousemove",t.AREA_CLICK="area-click",t.AREA_MOUSEOUT="area-mouseout"}(c||(c={})),function(t){t.SLICE_MOUSEOVER="pie-slice-mouseover",t.SLICE_MOUSEMOVE="pie-slice-mousemove",t.SLICE_CLICK="pie-slice-click",t.SLICE_MOUSEOUT="pie-slice-mouseout"}(h||(h={})),function(t){t.ARC_MOUSEOVER="gauge-arc-mouseover",t.ARC_MOUSEMOVE="gauge-arc-mousemove",t.ARC_CLICK="gauge-arc-click",t.ARC_MOUSEOUT="gauge-arc-mouseout"}(f||(f={})),function(t){t.BAR_MOUSEOVER="bar-mouseover",t.BAR_MOUSEMOVE="bar-mousemove",t.BAR_CLICK="bar-click",t.BAR_MOUSEOUT="bar-mouseout"}(d||(d={})),function(t){t.BOX_MOUSEOVER="box-mouseover",t.BOX_MOUSEMOVE="box-mousemove",t.BOX_CLICK="box-click",t.BOX_MOUSEOUT="box-mouseout",t.OUTLIER_MOUSEOVER="outlier-mouseover",t.OUTLIER_MOUSEMOVE="outlier-mousemove",t.OUTLIER_CLICK="outlier-click",t.OUTLIER_MOUSEOUT="outlier-mouseout"}(p||(p={})),function(t){t.SCATTER_MOUSEOVER="scatter-mouseover",t.SCATTER_MOUSEMOVE="scatter-mousemove",t.SCATTER_CLICK="scatter-click",t.SCATTER_MOUSEOUT="scatter-mouseout"}(g||(g={})),function(t){t.POINT_MOUSEOVER="scatter-mouseover",t.POINT_MOUSEMOVE="scatter-mousemove",t.POINT_CLICK="scatter-click",t.POINT_MOUSEOUT="scatter-mouseout"}(v||(v={})),function(t){t.X_AXIS_MOUSEOVER="radar-x-axis-mouseover",t.X_AXIS_MOUSEMOVE="radar-x-axis-mousemove",t.X_AXIS_CLICK="radar-x-axis-click",t.X_AXIS_MOUSEOUT="radar-x-axis-mouseout"}(m||(m={})),function(t){t.LEAF_MOUSEOVER="leaf-mouseover",t.LEAF_MOUSEMOVE="leaf-mousemove",t.LEAF_CLICK="leaf-click",t.LEAF_MOUSEOUT="leaf-mouseout"}(y||(y={})),function(t){t.SHOW="show-tooltip",t.MOVE="move-tooltip",t.HIDE="hide-tooltip"}(_||(_={})),function(t){t.SHOW="show-threshold",t.HIDE="hide-threshold"}(b||(b={})),function(t){t.ITEM_HOVER="legend-item-onhover",t.ITEM_CLICK="legend-item-onclick",t.ITEM_MOUSEOUT="legend-item-onmouseout",t.ITEMS_UPDATE="legend-items-update"}(x||(x={}));var E,T,S,M,A,C,D,P,k,L,R,I,N,V,B,G,U,H,z,F,j,W,q,Y=Object.freeze({__proto__:null,get Chart(){return i},get Model(){return a},get Toolbar(){return o},get ZoomBar(){return s},get ZoomDomain(){return u},get Axis(){return l},get Area(){return c},get Pie(){return h},get Gauge(){return f},get Bar(){return d},get Boxplot(){return p},get Scatter(){return g},get Line(){return v},get Radar(){return m},get Treemap(){return y},get Tooltip(){return _},get Threshold(){return b},get Legend(){return x}});!function(t){t.DEFAULT="default",t.G100="g100",t.G90="g90",t.G10="g10"}(E||(E={})),function(t){t.FILL="fill",t.STROKE="stroke",t.TOOLTIP="tooltip"}(T||(T={})),function(t){t.LEFT="left",t.RIGHT="right",t.TOP="top",t.BOTTOM="bottom"}(S||(S={})),function(t){t.GRAPH_VIEW="graph_view",t.SLIDER_VIEW="slider_view"}(M||(M={})),function(t){t.END_LINE="end_line",t.MID_LINE="mid_line",t.FRONT_LINE="front_line",t.NONE="none"}(A||(A={})),function(t){t.VERTICAL="vertical",t.HORIZONTAL="horizontal"}(C||(C={})),function(t){t.TIME="time",t.LINEAR="linear",t.LOG="log",t.LABELS="labels"}(D||(D={})),function(t){t.RIGHT="right",t.LEFT="left",t.TOP="top",t.BOTTOM="bottom"}(P||(P={})),function(t){t.LEFT="left",t.CENTER="center",t.RIGHT="right"}(k||(k={})),function(t){t.HORIZONTAL="horizontal",t.VERTICAL="vertical"}(L||(L={})),function(t){t.ROW="row",t.COLUMN="column",t.ROW_REVERSE="row-reverse",t.COLUMN_REVERSE="column-reverse"}(R||(R={})),function(t){t.FIXED="fixed",t.PREFERRED="preferred",t.STRETCH="stretch"}(I||(I={})),function(t){t.LEFT="left",t.RIGHT="right"}(N||(N={})),function(t){t.GRID="grid",t.VERT_OR_HORIZ="vertOrHoriz",t.PIE="pie",t.DONUT="donut"}(V||(V={})),function(t){t.START="start",t.MIDDLE="middle",t.END="end"}(B||(B={})),function(t){t.BASELINE="baseline",t.MIDDLE="middle",t.HANGING="hanging"}(G||(G={})),function(t){t.SEMI="semi",t.FULL="full"}(U||(U={})),function(t){t.UP="up",t.DOWN="down"}(H||(H={})),function(t){t.SUCCESS="success",t.WARNING="warning",t.DANGER="danger"}(z||(z={})),function(t){t.ALWAYS="always",t.AUTO="auto",t.NEVER="never"}(F||(F={})),function(t){t.SCATTER="scatter",t.LINE="line",t.SIMPLE_BAR="simple-bar",t.STACKED_BAR="stacked-bar",t.GROUPED_BAR="grouped-bar",t.AREA="area",t.STACKED_AREA="stacked-area"}(j||(j={})),function(t){t.ZOOM_IN="Zoom in",t.ZOOM_OUT="Zoom out",t.RESET_ZOOM="Reset zoom"}(W||(W={})),function(t){t.LEFT="left",t.RIGHT="right"}(q||(q={}));var X=Object.freeze({__proto__:null,get Roles(){return r},Events:Y,get ChartTheme(){return E},get ColorClassNameTypes(){return T},get AxisPositions(){return S},get ZoomBarTypes(){return M},get TruncationTypes(){return A},get CartesianOrientations(){return C},get ScaleTypes(){return D},get LegendPositions(){return P},get Alignments(){return k},get LegendOrientations(){return L},get LayoutDirection(){return R},get LayoutGrowth(){return I},get CalloutDirections(){return N},get Skeletons(){return V},get TextAnchor(){return B},get DominantBaseline(){return G},get GaugeTypes(){return U},get ArrowDirections(){return H},get Statuses(){return z},get TickRotations(){return F},get ChartTypes(){return j},get ToolbarControlTypes(){return W},get AxisTitleOrientations(){return q}}),Z="object"==typeof global&&global&&global.Object===Object&&global,K="object"==typeof self&&self&&self.Object===Object&&self,$=Z||K||Function("return this")(),Q=$.Symbol,J=Object.prototype,tt=J.hasOwnProperty,et=J.toString,nt=Q?Q.toStringTag:void 0;var rt=Object.prototype.toString;var it=Q?Q.toStringTag:void 0;function at(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":it&&it in Object(t)?function(t){var e=tt.call(t,nt),n=t[nt];try{t[nt]=void 0;var r=!0}catch(t){}var i=et.call(t);return r&&(e?t[nt]=n:delete t[nt]),i}(t):function(t){return rt.call(t)}(t)}function ot(t){return null!=t&&"object"==typeof t}function st(t){return"symbol"==typeof t||ot(t)&&"[object Symbol]"==at(t)}function ut(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var lt=Array.isArray,ct=Q?Q.prototype:void 0,ht=ct?ct.toString:void 0;function ft(t){if("string"==typeof t)return t;if(lt(t))return ut(t,ft)+"";if(st(t))return ht?ht.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function dt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var pt=/^\s+|\s+$/g,gt=/^[-+]0x[0-9a-f]+$/i,vt=/^0b[01]+$/i,mt=/^0o[0-7]+$/i,yt=parseInt;function _t(t){if("number"==typeof t)return t;if(st(t))return NaN;if(dt(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=dt(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(pt,"");var n=vt.test(t);return n||mt.test(t)?yt(t.slice(2),n?2:8):gt.test(t)?NaN:+t}function bt(t){return t}function xt(t){if(!dt(t))return!1;var e=at(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var Ot,wt=$["__core-js_shared__"],Et=(Ot=/[^.]+$/.exec(wt&&wt.keys&&wt.keys.IE_PROTO||""))?"Symbol(src)_1."+Ot:"";var Tt=Function.prototype.toString;function St(t){if(null!=t){try{return Tt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var Mt=/^\[object .+?Constructor\]$/,At=Function.prototype,Ct=Object.prototype,Dt=At.toString,Pt=Ct.hasOwnProperty,kt=RegExp("^"+Dt.call(Pt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Lt(t){return!(!dt(t)||(e=t,Et&&Et in e))&&(xt(t)?kt:Mt).test(St(t));var e}function Rt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Lt(n)?n:void 0}var It=Rt($,"WeakMap"),Nt=Object.create,Vt=function(){function t(){}return function(e){if(!dt(e))return{};if(Nt)return Nt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function Bt(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Gt(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var Ut=Date.now;var Ht=function(){try{var t=Rt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),zt=function(t){var e=0,n=0;return function(){var r=Ut(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Ht?function(t,e){return Ht(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:bt);function Ft(t){return t!=t}function jt(t,e){return!!(null==t?0:t.length)&&function(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):function(t,e,n,r){for(var i=t.length,a=n+(r?1:-1);r?a--:++a<i;)if(e(t[a],a,t))return a;return-1}(t,Ft,n)}(t,e,0)>-1}var Wt=/^(?:0|[1-9]\d*)$/;function qt(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Wt.test(t))&&t>-1&&t%1==0&&t<e}function Yt(t,e,n){"__proto__"==e&&Ht?Ht(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Xt(t,e){return t===e||t!=t&&e!=e}var Zt=Object.prototype.hasOwnProperty;function Kt(t,e,n){var r=t[e];Zt.call(t,e)&&Xt(r,n)&&(void 0!==n||e in t)||Yt(t,e,n)}function $t(t,e,n,r){var i=!n;n||(n={});for(var a=-1,o=e.length;++a<o;){var s=e[a],u=r?r(n[s],t[s],s,n,t):void 0;void 0===u&&(u=t[s]),i?Yt(n,s,u):Kt(n,s,u)}return n}var Qt=Math.max;function Jt(t,e){return zt(function(t,e,n){return e=Qt(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,a=Qt(r.length-e,0),o=Array(a);++i<a;)o[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(o),Bt(t,this,s)}}(t,e,bt),t+"")}function te(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function ee(t){return null!=t&&te(t.length)&&!xt(t)}function ne(t,e,n){if(!dt(n))return!1;var r=typeof e;return!!("number"==r?ee(n)&&qt(e,n.length):"string"==r&&e in n)&&Xt(n[e],t)}var re=Object.prototype;function ie(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||re)}function ae(t){return ot(t)&&"[object Arguments]"==at(t)}var oe=Object.prototype,se=oe.hasOwnProperty,ue=oe.propertyIsEnumerable,le=ae(function(){return arguments}())?ae:function(t){return ot(t)&&se.call(t,"callee")&&!ue.call(t,"callee")};var ce="object"==typeof t&&t&&!t.nodeType&&t,he=ce&&"object"==typeof module&&module&&!module.nodeType&&module,fe=he&&he.exports===ce?$.Buffer:void 0,de=(fe?fe.isBuffer:void 0)||function(){return!1},pe={};function ge(t){return function(e){return t(e)}}pe["[object Float32Array]"]=pe["[object Float64Array]"]=pe["[object Int8Array]"]=pe["[object Int16Array]"]=pe["[object Int32Array]"]=pe["[object Uint8Array]"]=pe["[object Uint8ClampedArray]"]=pe["[object Uint16Array]"]=pe["[object Uint32Array]"]=!0,pe["[object Arguments]"]=pe["[object Array]"]=pe["[object ArrayBuffer]"]=pe["[object Boolean]"]=pe["[object DataView]"]=pe["[object Date]"]=pe["[object Error]"]=pe["[object Function]"]=pe["[object Map]"]=pe["[object Number]"]=pe["[object Object]"]=pe["[object RegExp]"]=pe["[object Set]"]=pe["[object String]"]=pe["[object WeakMap]"]=!1;var ve="object"==typeof t&&t&&!t.nodeType&&t,me=ve&&"object"==typeof module&&module&&!module.nodeType&&module,ye=me&&me.exports===ve&&Z.process,_e=function(){try{var t=me&&me.require&&me.require("util").types;return t||ye&&ye.binding&&ye.binding("util")}catch(t){}}(),be=_e&&_e.isTypedArray,xe=be?ge(be):function(t){return ot(t)&&te(t.length)&&!!pe[at(t)]},Oe=Object.prototype.hasOwnProperty;function we(t,e){var n=lt(t),r=!n&&le(t),i=!n&&!r&&de(t),a=!n&&!r&&!i&&xe(t),o=n||r||i||a,s=o?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],u=s.length;for(var l in t)!e&&!Oe.call(t,l)||o&&("length"==l||i&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||qt(l,u))||s.push(l);return s}function Ee(t,e){return function(n){return t(e(n))}}var Te=Ee(Object.keys,Object),Se=Object.prototype.hasOwnProperty;function Me(t){if(!ie(t))return Te(t);var e=[];for(var n in Object(t))Se.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Ae(t){return ee(t)?we(t):Me(t)}var Ce=Object.prototype.hasOwnProperty;function De(t){if(!dt(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=ie(t),n=[];for(var r in t)("constructor"!=r||!e&&Ce.call(t,r))&&n.push(r);return n}function Pe(t){return ee(t)?we(t,!0):De(t)}var ke=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Le=/^\w*$/;function Re(t,e){if(lt(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!st(t))||(Le.test(t)||!ke.test(t)||null!=e&&t in Object(e))}var Ie=Rt(Object,"create");var Ne=Object.prototype.hasOwnProperty;var Ve=Object.prototype.hasOwnProperty;function Be(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Ge(t,e){for(var n=t.length;n--;)if(Xt(t[n][0],e))return n;return-1}Be.prototype.clear=function(){this.__data__=Ie?Ie(null):{},this.size=0},Be.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Be.prototype.get=function(t){var e=this.__data__;if(Ie){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ne.call(e,t)?e[t]:void 0},Be.prototype.has=function(t){var e=this.__data__;return Ie?void 0!==e[t]:Ve.call(e,t)},Be.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ie&&void 0===e?"__lodash_hash_undefined__":e,this};var Ue=Array.prototype.splice;function He(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}He.prototype.clear=function(){this.__data__=[],this.size=0},He.prototype.delete=function(t){var e=this.__data__,n=Ge(e,t);return!(n<0)&&(n==e.length-1?e.pop():Ue.call(e,n,1),--this.size,!0)},He.prototype.get=function(t){var e=this.__data__,n=Ge(e,t);return n<0?void 0:e[n][1]},He.prototype.has=function(t){return Ge(this.__data__,t)>-1},He.prototype.set=function(t,e){var n=this.__data__,r=Ge(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var ze=Rt($,"Map");function Fe(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function je(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}je.prototype.clear=function(){this.size=0,this.__data__={hash:new Be,map:new(ze||He),string:new Be}},je.prototype.delete=function(t){var e=Fe(this,t).delete(t);return this.size-=e?1:0,e},je.prototype.get=function(t){return Fe(this,t).get(t)},je.prototype.has=function(t){return Fe(this,t).has(t)},je.prototype.set=function(t,e){var n=Fe(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function We(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(We.Cache||je),n}We.Cache=je;var qe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ye=/\\(\\)?/g,Xe=function(t){var e=We(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(qe,(function(t,n,r,i){e.push(r?i.replace(Ye,"$1"):n||t)})),e}));function Ze(t){return null==t?"":ft(t)}function Ke(t,e){return lt(t)?t:Re(t,e)?[t]:Xe(Ze(t))}function $e(t){if("string"==typeof t||st(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Qe(t,e){for(var n=0,r=(e=Ke(e,t)).length;null!=t&&n<r;)t=t[$e(e[n++])];return n&&n==r?t:void 0}function Je(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var tn=Q?Q.isConcatSpreadable:void 0;function en(t){return lt(t)||le(t)||!!(tn&&t&&t[tn])}function nn(t,e,n,r,i){var a=-1,o=t.length;for(n||(n=en),i||(i=[]);++a<o;){var s=t[a];e>0&&n(s)?e>1?nn(s,e-1,n,r,i):Je(i,s):r||(i[i.length]=s)}return i}function rn(t){return(null==t?0:t.length)?nn(t,1):[]}var an=Ee(Object.getPrototypeOf,Object),on=Function.prototype,sn=Object.prototype,un=on.toString,ln=sn.hasOwnProperty,cn=un.call(Object);function hn(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=Array(i);++r<i;)a[r]=t[r+e];return a}(t,e,n)}var fn=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function dn(t){return fn.test(t)}var pn="[\\ud800-\\udfff]",gn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",vn="\\ud83c[\\udffb-\\udfff]",mn="[^\\ud800-\\udfff]",yn="(?:\\ud83c[\\udde6-\\uddff]){2}",_n="[\\ud800-\\udbff][\\udc00-\\udfff]",bn="(?:"+gn+"|"+vn+")"+"?",xn="[\\ufe0e\\ufe0f]?"+bn+("(?:\\u200d(?:"+[mn,yn,_n].join("|")+")[\\ufe0e\\ufe0f]?"+bn+")*"),On="(?:"+[mn+gn+"?",gn,yn,_n,pn].join("|")+")",wn=RegExp(vn+"(?="+vn+")|"+On+xn,"g");function En(t){return dn(t)?function(t){return t.match(wn)||[]}(t):function(t){return t.split("")}(t)}var Tn,Sn=(Tn="toUpperCase",function(t){var e=dn(t=Ze(t))?En(t):void 0,n=e?e[0]:t.charAt(0),r=e?hn(e,1).join(""):t.slice(1);return n[Tn]()+r});var Mn=function(t){return function(e){return null==t?void 0:t[e]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),An=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Cn=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var Dn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Pn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var kn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ln="["+kn+"]",Rn="\\d+",In="[\\u2700-\\u27bf]",Nn="[a-z\\xdf-\\xf6\\xf8-\\xff]",Vn="[^\\ud800-\\udfff"+kn+Rn+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Bn="(?:\\ud83c[\\udde6-\\uddff]){2}",Gn="[\\ud800-\\udbff][\\udc00-\\udfff]",Un="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Hn="(?:"+Nn+"|"+Vn+")",zn="(?:"+Un+"|"+Vn+")",Fn="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",jn="[\\ufe0e\\ufe0f]?"+Fn+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",Bn,Gn].join("|")+")[\\ufe0e\\ufe0f]?"+Fn+")*"),Wn="(?:"+[In,Bn,Gn].join("|")+")"+jn,qn=RegExp([Un+"?"+Nn+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Ln,Un,"$"].join("|")+")",zn+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Ln,Un+Hn,"$"].join("|")+")",Un+"?"+Hn+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Un+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Rn,Wn].join("|"),"g");function Yn(t,e,n){return t=Ze(t),void 0===(e=n?void 0:e)?function(t){return Pn.test(t)}(t)?function(t){return t.match(qn)||[]}(t):function(t){return t.match(Dn)||[]}(t):t.match(e)||[]}var Xn=RegExp("['’]","g");function Zn(t){return function(e){return function(t,e,n,r){var i=-1,a=null==t?0:t.length;for(r&&a&&(n=t[++i]);++i<a;)n=e(n,t[i],i,t);return n}(Yn(function(t){return(t=Ze(t))&&t.replace(An,Mn).replace(Cn,"")}(e).replace(Xn,"")),t,"")}}var Kn=Zn((function(t,e,n){return e=e.toLowerCase(),t+(n?Sn(Ze(e).toLowerCase()):e)}));function $n(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=_t(n))==n?n:0),void 0!==e&&(e=(e=_t(e))==e?e:0),function(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}(_t(t),e,n)}function Qn(t){var e=this.__data__=new He(t);this.size=e.size}Qn.prototype.clear=function(){this.__data__=new He,this.size=0},Qn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Qn.prototype.get=function(t){return this.__data__.get(t)},Qn.prototype.has=function(t){return this.__data__.has(t)},Qn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof He){var r=n.__data__;if(!ze||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new je(r)}return n.set(t,e),this.size=n.size,this};var Jn="object"==typeof t&&t&&!t.nodeType&&t,tr=Jn&&"object"==typeof module&&module&&!module.nodeType&&module,er=tr&&tr.exports===Jn?$.Buffer:void 0,nr=er?er.allocUnsafe:void 0;function rr(t,e){if(e)return t.slice();var n=t.length,r=nr?nr(n):new t.constructor(n);return t.copy(r),r}function ir(){return[]}var ar=Object.prototype.propertyIsEnumerable,or=Object.getOwnPropertySymbols,sr=or?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,a=[];++n<r;){var o=t[n];e(o,n,t)&&(a[i++]=o)}return a}(or(t),(function(e){return ar.call(t,e)})))}:ir;var ur=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Je(e,sr(t)),t=an(t);return e}:ir;function lr(t,e,n){var r=e(t);return lt(t)?r:Je(r,n(t))}function cr(t){return lr(t,Ae,sr)}function hr(t){return lr(t,Pe,ur)}var fr=Rt($,"DataView"),dr=Rt($,"Promise"),pr=Rt($,"Set"),gr=St(fr),vr=St(ze),mr=St(dr),yr=St(pr),_r=St(It),br=at;(fr&&"[object DataView]"!=br(new fr(new ArrayBuffer(1)))||ze&&"[object Map]"!=br(new ze)||dr&&"[object Promise]"!=br(dr.resolve())||pr&&"[object Set]"!=br(new pr)||It&&"[object WeakMap]"!=br(new It))&&(br=function(t){var e=at(t),n="[object Object]"==e?t.constructor:void 0,r=n?St(n):"";if(r)switch(r){case gr:return"[object DataView]";case vr:return"[object Map]";case mr:return"[object Promise]";case yr:return"[object Set]";case _r:return"[object WeakMap]"}return e});var xr=br,Or=Object.prototype.hasOwnProperty;var wr=$.Uint8Array;function Er(t){var e=new t.constructor(t.byteLength);return new wr(e).set(new wr(t)),e}var Tr=/\w*$/;var Sr=Q?Q.prototype:void 0,Mr=Sr?Sr.valueOf:void 0;function Ar(t,e){var n=e?Er(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Cr(t,e,n){var r,i,a,o=t.constructor;switch(e){case"[object ArrayBuffer]":return Er(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return function(t,e){var n=e?Er(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Ar(t,n);case"[object Map]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return(a=new(i=t).constructor(i.source,Tr.exec(i))).lastIndex=i.lastIndex,a;case"[object Set]":return new o;case"[object Symbol]":return r=t,Mr?Object(Mr.call(r)):{}}}function Dr(t){return"function"!=typeof t.constructor||ie(t)?{}:Vt(an(t))}var Pr=_e&&_e.isMap,kr=Pr?ge(Pr):function(t){return ot(t)&&"[object Map]"==xr(t)};var Lr=_e&&_e.isSet,Rr=Lr?ge(Lr):function(t){return ot(t)&&"[object Set]"==xr(t)},Ir={};function Nr(t,e,n,r,i,a){var o,s=1&e,u=2&e,l=4&e;if(n&&(o=i?n(t,r,i,a):n(t)),void 0!==o)return o;if(!dt(t))return t;var c=lt(t);if(c){if(o=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Or.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!s)return Gt(t,o)}else{var h=xr(t),f="[object Function]"==h||"[object GeneratorFunction]"==h;if(de(t))return rr(t,s);if("[object Object]"==h||"[object Arguments]"==h||f&&!i){if(o=u||f?{}:Dr(t),!s)return u?function(t,e){return $t(t,ur(t),e)}(t,function(t,e){return t&&$t(e,Pe(e),t)}(o,t)):function(t,e){return $t(t,sr(t),e)}(t,function(t,e){return t&&$t(e,Ae(e),t)}(o,t))}else{if(!Ir[h])return i?t:{};o=Cr(t,h,s)}}a||(a=new Qn);var d=a.get(t);if(d)return d;a.set(t,o),Rr(t)?t.forEach((function(r){o.add(Nr(r,e,n,r,t,a))})):kr(t)&&t.forEach((function(r,i){o.set(i,Nr(r,e,n,i,t,a))}));var p=l?u?hr:cr:u?keysIn:Ae,g=c?void 0:p(t);return function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););}(g||t,(function(r,i){g&&(r=t[i=r]),Kt(o,i,Nr(r,e,n,i,t,a))})),o}Ir["[object Arguments]"]=Ir["[object Array]"]=Ir["[object ArrayBuffer]"]=Ir["[object DataView]"]=Ir["[object Boolean]"]=Ir["[object Date]"]=Ir["[object Float32Array]"]=Ir["[object Float64Array]"]=Ir["[object Int8Array]"]=Ir["[object Int16Array]"]=Ir["[object Int32Array]"]=Ir["[object Map]"]=Ir["[object Number]"]=Ir["[object Object]"]=Ir["[object RegExp]"]=Ir["[object Set]"]=Ir["[object String]"]=Ir["[object Symbol]"]=Ir["[object Uint8Array]"]=Ir["[object Uint8ClampedArray]"]=Ir["[object Uint16Array]"]=Ir["[object Uint32Array]"]=!0,Ir["[object Error]"]=Ir["[object Function]"]=Ir["[object WeakMap]"]=!1;function Vr(t){return Nr(t,5)}function Br(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new je;++e<n;)this.add(t[e])}function Gr(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function Ur(t,e){return t.has(e)}Br.prototype.add=Br.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Br.prototype.has=function(t){return this.__data__.has(t)};function Hr(t,e,n,r,i,a){var o=1&n,s=t.length,u=e.length;if(s!=u&&!(o&&u>s))return!1;var l=a.get(t);if(l&&a.get(e))return l==e;var c=-1,h=!0,f=2&n?new Br:void 0;for(a.set(t,e),a.set(e,t);++c<s;){var d=t[c],p=e[c];if(r)var g=o?r(p,d,c,e,t,a):r(d,p,c,t,e,a);if(void 0!==g){if(g)continue;h=!1;break}if(f){if(!Gr(e,(function(t,e){if(!Ur(f,e)&&(d===t||i(d,t,n,r,a)))return f.push(e)}))){h=!1;break}}else if(d!==p&&!i(d,p,n,r,a)){h=!1;break}}return a.delete(t),a.delete(e),h}function zr(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function Fr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var jr=Q?Q.prototype:void 0,Wr=jr?jr.valueOf:void 0;var qr=Object.prototype.hasOwnProperty;var Yr=Object.prototype.hasOwnProperty;function Xr(t,e,n,r,i,a){var o=lt(t),s=lt(e),u=o?"[object Array]":xr(t),l=s?"[object Array]":xr(e),c="[object Object]"==(u="[object Arguments]"==u?"[object Object]":u),h="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),f=u==l;if(f&&de(t)){if(!de(e))return!1;o=!0,c=!1}if(f&&!c)return a||(a=new Qn),o||xe(t)?Hr(t,e,n,r,i,a):function(t,e,n,r,i,a,o){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!a(new wr(t),new wr(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Xt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=zr;case"[object Set]":var u=1&r;if(s||(s=Fr),t.size!=e.size&&!u)return!1;var l=o.get(t);if(l)return l==e;r|=2,o.set(t,e);var c=Hr(s(t),s(e),r,i,a,o);return o.delete(t),c;case"[object Symbol]":if(Wr)return Wr.call(t)==Wr.call(e)}return!1}(t,e,u,n,r,i,a);if(!(1&n)){var d=c&&Yr.call(t,"__wrapped__"),p=h&&Yr.call(e,"__wrapped__");if(d||p){var g=d?t.value():t,v=p?e.value():e;return a||(a=new Qn),i(g,v,n,r,a)}}return!!f&&(a||(a=new Qn),function(t,e,n,r,i,a){var o=1&n,s=cr(t),u=s.length;if(u!=cr(e).length&&!o)return!1;for(var l=u;l--;){var c=s[l];if(!(o?c in e:qr.call(e,c)))return!1}var h=a.get(t);if(h&&a.get(e))return h==e;var f=!0;a.set(t,e),a.set(e,t);for(var d=o;++l<u;){var p=t[c=s[l]],g=e[c];if(r)var v=o?r(g,p,c,e,t,a):r(p,g,c,t,e,a);if(!(void 0===v?p===g||i(p,g,n,r,a):v)){f=!1;break}d||(d="constructor"==c)}if(f&&!d){var m=t.constructor,y=e.constructor;m!=y&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof y&&y instanceof y)&&(f=!1)}return a.delete(t),a.delete(e),f}(t,e,n,r,i,a))}function Zr(t,e,n,r,i){return t===e||(null==t||null==e||!ot(t)&&!ot(e)?t!=t&&e!=e:Xr(t,e,n,r,Zr,i))}function Kr(t){return t==t&&!dt(t)}function $r(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}function Qr(t){var e=function(t){for(var e=Ae(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Kr(i)]}return e}(t);return 1==e.length&&e[0][2]?$r(e[0][0],e[0][1]):function(n){return n===t||function(t,e,n,r){var i=n.length,a=i,o=!r;if(null==t)return!a;for(t=Object(t);i--;){var s=n[i];if(o&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<a;){var u=(s=n[i])[0],l=t[u],c=s[1];if(o&&s[2]){if(void 0===l&&!(u in t))return!1}else{var h=new Qn;if(r)var f=r(l,c,u,t,e,h);if(!(void 0===f?Zr(c,l,3,r,h):f))return!1}}return!0}(n,t,e)}}function Jr(t,e){return null!=t&&e in Object(t)}function ti(t,e){return null!=t&&function(t,e,n){for(var r=-1,i=(e=Ke(e,t)).length,a=!1;++r<i;){var o=$e(e[r]);if(!(a=null!=t&&n(t,o)))break;t=t[o]}return a||++r!=i?a:!!(i=null==t?0:t.length)&&te(i)&&qt(o,i)&&(lt(t)||le(t))}(t,e,Jr)}function ei(t,e){return Re(t)&&Kr(e)?$r($e(t),e):function(n){var r=function(t,e,n){var r=null==t?void 0:Qe(t,e);return void 0===r?n:r}(n,t);return void 0===r&&r===e?ti(n,t):Zr(e,r,3)}}function ni(t){return Re(t)?(e=$e(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return Qe(e,t)}}(t);var e}function ri(t){return"function"==typeof t?t:null==t?bt:"object"==typeof t?lt(t)?ei(t[0],t[1]):Qr(t):ni(t)}var ii,ai=function(t,e,n){for(var r=-1,i=Object(t),a=n(t),o=a.length;o--;){var s=a[ii?o:++r];if(!1===e(i[s],s,i))break}return t};var oi=function(t,e){return function(n,r){if(null==n)return n;if(!ee(n))return t(n,r);for(var i=n.length,a=e?i:-1,o=Object(n);(e?a--:++a<i)&&!1!==r(o[a],a,o););return n}}((function(t,e){return t&&ai(t,e,Ae)})),si=function(){return $.Date.now()},ui=Math.max,li=Math.min;function ci(t,e,n){var r,i,a,o,s,u,l=0,c=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(e){var n=r,a=i;return r=i=void 0,l=e,o=t.apply(a,n)}function p(t){return l=t,s=setTimeout(v,e),c?d(t):o}function g(t){var n=t-u;return void 0===u||n>=e||n<0||h&&t-l>=a}function v(){var t=si();if(g(t))return m(t);s=setTimeout(v,function(t){var n=e-(t-u);return h?li(n,a-(t-l)):n}(t))}function m(t){return s=void 0,f&&r?d(t):(r=i=void 0,o)}function y(){var t=si(),n=g(t);if(r=arguments,i=this,u=t,n){if(void 0===s)return p(u);if(h)return clearTimeout(s),s=setTimeout(v,e),d(u)}return void 0===s&&(s=setTimeout(v,e)),o}return e=_t(e)||0,dt(n)&&(c=!!n.leading,a=(h="maxWait"in n)?ui(_t(n.maxWait)||0,e):a,f="trailing"in n?!!n.trailing:f),y.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=u=i=s=void 0},y.flush=function(){return void 0===s?o:m(si())},y}function hi(t,e,n){(void 0===n||Xt(t[e],n))&&(void 0!==n||e in t)||Yt(t,e,n)}function fi(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function di(t,e,n,r,i,a,o){var s=fi(t,n),u=fi(e,n),l=o.get(u);if(l)hi(t,n,l);else{var c,h=a?a(s,u,n+"",t,e,o):void 0,f=void 0===h;if(f){var d=lt(u),p=!d&&de(u),g=!d&&!p&&xe(u);h=u,d||p||g?lt(s)?h=s:ot(c=s)&&ee(c)?h=Gt(s):p?(f=!1,h=rr(u,!0)):g?(f=!1,h=Ar(u,!0)):h=[]:function(t){if(!ot(t)||"[object Object]"!=at(t))return!1;var e=an(t);if(null===e)return!0;var n=ln.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&un.call(n)==cn}(u)||le(u)?(h=s,le(s)?h=function(t){return $t(t,Pe(t))}(s):dt(s)&&!xt(s)||(h=Dr(u))):f=!1}f&&(o.set(u,h),i(h,u,r,a,o),o.delete(u)),hi(t,n,h)}}function pi(t,e,n,r,i){t!==e&&ai(e,(function(a,o){if(i||(i=new Qn),dt(a))di(t,e,o,n,pi,r,i);else{var s=r?r(fi(t,o),a,o+"",t,e,i):void 0;void 0===s&&(s=a),hi(t,o,s)}}),Pe)}function gi(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function vi(t,e){var n=-1,r=ee(t)?Array(t.length):[];return oi(t,(function(t,i,a){r[++n]=e(t,i,a)})),r}function mi(t,e){return nn(function(t,e){return(lt(t)?ut:vi)(t,ri(e))}(t,e),1/0)}function yi(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r}var _i=Object.prototype.hasOwnProperty;function bi(t){if(null==t)return!0;if(ee(t)&&(lt(t)||"string"==typeof t||"function"==typeof t.splice||de(t)||xe(t)||le(t)))return!t.length;var e=xr(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(ie(t))return!Me(t).length;for(var n in t)if(_i.call(t,n))return!1;return!0}function xi(t,e){return Zr(t,e)}var Oi,wi=Zn((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ei=(Oi=function(t,e,n){pi(t,e,n)},Jt((function(t,e){var n=-1,r=e.length,i=r>1?e[r-1]:void 0,a=r>2?e[2]:void 0;for(i=Oi.length>3&&"function"==typeof i?(r--,i):void 0,a&&ne(e[0],e[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++n<r;){var o=e[n];o&&Oi(t,o,n,i)}return t})));function Ti(t,e){var n;return oi(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function Si(t,e,n){var r=lt(t)?Gr:Ti;return n&&ne(t,e,n)&&(e=void 0),r(t,ri(e))}var Mi=pr&&1/Fr(new pr([,-0]))[1]==1/0?function(t){return new pr(t)}:function(){};function Ai(t){return t&&t.length?function(t,e,n){var r=-1,i=jt,a=t.length,o=!0,s=[],u=s;if(n)o=!1,i=gi;else if(a>=200){var l=e?null:Mi(t);if(l)return Fr(l);o=!1,i=Ur,u=new Br}else u=e?[]:s;t:for(;++r<a;){var c=t[r],h=e?e(c):c;if(c=n||0!==c?c:0,o&&h==h){for(var f=u.length;f--;)if(u[f]===h)continue t;e&&u.push(h),s.push(c)}else i(u,h,n)||(u!==s&&u.push(h),s.push(c))}return s}(t):[]}var Ci="http://www.w3.org/1999/xhtml",Di={svg:"http://www.w3.org/2000/svg",xhtml:Ci,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Pi(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Di.hasOwnProperty(e)?{space:Di[e],local:t}:t}function ki(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Ci&&e.documentElement.namespaceURI===Ci?e.createElement(t):e.createElementNS(n,t)}}function Li(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ri(t){var e=Pi(t);return(e.local?Li:ki)(e)}function Ii(){}function Ni(t){return null==t?Ii:function(){return this.querySelector(t)}}function Vi(){return[]}function Bi(t){return null==t?Vi:function(){return this.querySelectorAll(t)}}function Gi(t){return function(){return this.matches(t)}}function Ui(t){return new Array(t.length)}function Hi(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Hi.prototype={constructor:Hi,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function zi(t,e,n,r,i,a){for(var o,s=0,u=e.length,l=a.length;s<l;++s)(o=e[s])?(o.__data__=a[s],r[s]=o):n[s]=new Hi(t,a[s]);for(;s<u;++s)(o=e[s])&&(i[s]=o)}function Fi(t,e,n,r,i,a,o){var s,u,l,c={},h=e.length,f=a.length,d=new Array(h);for(s=0;s<h;++s)(u=e[s])&&(d[s]=l="$"+o.call(u,u.__data__,s,e),l in c?i[s]=u:c[l]=u);for(s=0;s<f;++s)(u=c[l="$"+o.call(t,a[s],s,a)])?(r[s]=u,u.__data__=a[s],c[l]=null):n[s]=new Hi(t,a[s]);for(s=0;s<h;++s)(u=e[s])&&c[d[s]]===u&&(i[s]=u)}function ji(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Wi(t){return function(){this.removeAttribute(t)}}function qi(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Yi(t,e){return function(){this.setAttribute(t,e)}}function Xi(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Zi(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Ki(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function $i(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Qi(t){return function(){this.style.removeProperty(t)}}function Ji(t,e,n){return function(){this.style.setProperty(t,e,n)}}function ta(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function ea(t,e){return t.style.getPropertyValue(e)||$i(t).getComputedStyle(t,null).getPropertyValue(e)}function na(t){return function(){delete this[t]}}function ra(t,e){return function(){this[t]=e}}function ia(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function aa(t){return t.trim().split(/^|\s+/)}function oa(t){return t.classList||new sa(t)}function sa(t){this._node=t,this._names=aa(t.getAttribute("class")||"")}function ua(t,e){for(var n=oa(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function la(t,e){for(var n=oa(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function ca(t){return function(){ua(this,t)}}function ha(t){return function(){la(this,t)}}function fa(t,e){return function(){(e.apply(this,arguments)?ua:la)(this,t)}}function da(){this.textContent=""}function pa(t){return function(){this.textContent=t}}function ga(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function va(){this.innerHTML=""}function ma(t){return function(){this.innerHTML=t}}function ya(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function _a(){this.nextSibling&&this.parentNode.appendChild(this)}function ba(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function xa(){return null}function Oa(){var t=this.parentNode;t&&t.removeChild(this)}function wa(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ea(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}sa.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Ta={},Sa=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Ta={mouseenter:"mouseover",mouseleave:"mouseout"}));function Ma(t,e,n){return t=Aa(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function Aa(t,e,n){return function(r){var i=Sa;Sa=r;try{t.call(this,this.__data__,e,n)}finally{Sa=i}}}function Ca(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function Da(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function Pa(t,e,n){var r=Ta.hasOwnProperty(t.type)?Ma:Aa;return function(i,a,o){var s,u=this.__on,l=r(e,a,o);if(u)for(var c=0,h=u.length;c<h;++c)if((s=u[c]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=l,s.capture=n),void(s.value=e);this.addEventListener(t.type,l,n),s={type:t.type,name:t.name,value:e,listener:l,capture:n},u?u.push(s):this.__on=[s]}}function ka(t,e,n){var r=$i(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function La(t,e){return function(){return ka(this,t,e)}}function Ra(t,e){return function(){return ka(this,t,e.apply(this,arguments))}}var Ia,Na=[null];function Va(t,e){this._groups=t,this._parents=e}function Ba(){return new Va([[document.documentElement]],Na)}function Ga(t){return"string"==typeof t?new Va([[document.querySelector(t)]],[document.documentElement]):new Va([[t]],Na)}function Ua(){for(var t,e=Sa;t=e.sourceEvent;)e=t;return e}function Ha(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}function za(t){var e=Ua();return e.changedTouches&&(e=e.changedTouches[0]),Ha(t,e)}function Fa(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ja(t,e){return t(e={exports:{}},e.exports),e.exports}Va.prototype=Ba.prototype={constructor:Va,select:function(t){"function"!=typeof t&&(t=Ni(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o,s=e[i],u=s.length,l=r[i]=new Array(u),c=0;c<u;++c)(a=s[c])&&(o=t.call(a,a.__data__,c,s))&&("__data__"in a&&(o.__data__=a.__data__),l[c]=o);return new Va(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=Bi(t));for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,s=e[a],u=s.length,l=0;l<u;++l)(o=s[l])&&(r.push(t.call(o,o.__data__,l,s)),i.push(o));return new Va(r,i)},filter:function(t){"function"!=typeof t&&(t=Gi(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,u=r[i]=[],l=0;l<s;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&u.push(a);return new Va(r,this._parents)},data:function(t,e){if(!t)return d=new Array(this.size()),l=-1,this.each((function(t){d[++l]=t})),d;var n=e?Fi:zi,r=this._parents,i=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var a=i.length,o=new Array(a),s=new Array(a),u=new Array(a),l=0;l<a;++l){var c=r[l],h=i[l],f=h.length,d=t.call(c,c&&c.__data__,l,r),p=d.length,g=s[l]=new Array(p),v=o[l]=new Array(p);n(c,h,g,v,u[l]=new Array(f),d,e);for(var m,y,_=0,b=0;_<p;++_)if(m=g[_]){for(_>=b&&(b=_+1);!(y=v[b])&&++b<p;);m._next=y||null}}return(o=new Va(o,r))._enter=s,o._exit=u,o},enter:function(){return new Va(this._enter||this._groups.map(Ui),this._parents)},exit:function(){return new Va(this._exit||this._groups.map(Ui),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,a=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=e&&(i=e(i)),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var u,l=e[s],c=n[s],h=l.length,f=o[s]=new Array(h),d=0;d<h;++d)(u=l[d]||c[d])&&(f[d]=u);for(;s<r;++s)o[s]=e[s];return new Va(o,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=ji);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o,s=n[a],u=s.length,l=i[a]=new Array(u),c=0;c<u;++c)(o=s[c])&&(l[c]=o);l.sort(e)}return new Va(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var n=Pi(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?qi:Wi:"function"==typeof e?n.local?Ki:Zi:n.local?Xi:Yi)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Qi:"function"==typeof e?ta:Ji)(t,e,null==n?"":n)):ea(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?na:"function"==typeof e?ia:ra)(t,e)):this.node()[t]},classed:function(t,e){var n=aa(t+"");if(arguments.length<2){for(var r=oa(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?fa:e?ca:ha)(n,e))},text:function(t){return arguments.length?this.each(null==t?da:("function"==typeof t?ga:pa)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?va:("function"==typeof t?ya:ma)(t)):this.node().innerHTML},raise:function(){return this.each(_a)},lower:function(){return this.each(ba)},append:function(t){var e="function"==typeof t?t:Ri(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:Ri(t),r=null==e?xa:"function"==typeof e?e:Ni(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Oa)},clone:function(t){return this.select(t?Ea:wa)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,a=Ca(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?Pa:Da,null==n&&(n=!1),r=0;r<o;++r)this.each(s(a[r],e,n));return this}var s=this.node().__on;if(s)for(var u,l=0,c=s.length;l<c;++l)for(r=0,u=s[l];r<o;++r)if((i=a[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(t,e){return this.each(("function"==typeof e?Ra:La)(t,e))}},function(t){t.debounce=ci,t.clone=Vr,t.merge=Ei,t.removeArrayDuplicates=Ai,t.clamp=$n,t.flatten=rn,t.camelCase=Kn,t.isEmpty=bi,t.isEqual=xi,t.flatMapDeep=mi,t.kebabCase=wi,t.fromPairs=yi,t.some=Si,t.debounceWithD3MousePosition=function(t,e,n){var r=null;return function(){var i=this,a=arguments;i.mousePosition=za(n),clearTimeout(r),r=setTimeout((function(){t.apply(i,a)}),e)}},t.mergeDefaultChartOptions=function(e,n){e=t.clone(e);var r=Object.keys(n.axes||{});for(var i in 0===r.length&&delete e.axes,e.axes)if(r.includes(i)){var a=n.axes[i];(a.primary||a.secondary)&&console.warn("`primary` & `secondary` are no longer needed for axis configurations. Read more here https://carbon-design-system.github.io/carbon-charts/?path=/story/tutorials--tabular-data-format");var o=a.mapsTo;if(null==o){var s=a.scaleType;null==s?a.mapsTo="value":s===D.TIME?a.mapsTo="date":s===D.LABELS&&(a.mapsTo="key")}}else delete e.axes[i];return t.merge(e,n