diff --git a/master/404.html b/master/404.html index 2137547c..e9830294 100644 --- a/master/404.html +++ b/master/404.html @@ -7,11 +7,11 @@ - +
- + diff --git a/master/api/index.html b/master/api/index.html index 10b9ac42..6b22c024 100644 --- a/master/api/index.html +++ b/master/api/index.html @@ -7,7 +7,7 @@ - + @@ -35,7 +35,7 @@ Awesome (opens new window) GitHub - (opens new window)

# chartjs-plugin-zoom - v2.0.1

# Type aliases

# PanFunction

Ƭ PanFunction: (scale: Scale, delta: number, limits: LimitOptions) => boolean

# Type declaration

▸ (scale, delta, limits): boolean

# Parameters
Name Type
scale Scale
delta number
limits LimitOptions
# Returns

boolean

# Defined in

index.d.ts:35 (opens new window)


# ZoomFunction

Ƭ ZoomFunction: (scale: Scale, zoom: number, center: Point, limits: LimitOptions) => boolean

# Type declaration

▸ (scale, zoom, center, limits): boolean

# Parameters
Name Type
scale Scale
zoom number
center Point
limits LimitOptions
# Returns

boolean

# Defined in

index.d.ts:33 (opens new window)


# ZoomRectFunction

Ƭ ZoomRectFunction: (scale: Scale, from: number, to: number, limits: LimitOptions) => boolean

# Type declaration

▸ (scale, from, to, limits): boolean

# Parameters
Name Type
scale Scale
from number
to number
limits LimitOptions
# Returns

boolean

# Defined in

index.d.ts:34 (opens new window)

# Variables

# default

default: Plugin & { panFunctions: ScaleFunctions<PanFunction> ; zoomFunctions: ScaleFunctions<ZoomFunction> ; zoomRectFunctions: ScaleFunctions<ZoomRectFunction> }

# Defined in

index.d.ts:43 (opens new window)

# Functions

# getInitialScaleBounds

getInitialScaleBounds(chart): Record<string, Object>

# Parameters

Name Type
chart Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>

# Returns

Record<string, Object>

# Defined in

index.d.ts:57 (opens new window)


# getZoomLevel

getZoomLevel(chart): number

# Parameters

Name Type
chart Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>

# Returns

number

# Defined in

index.d.ts:56 (opens new window)


# isZoomedOrPanned

isZoomedOrPanned(chart): boolean

# Parameters

Name Type
chart Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>

# Returns

boolean

# Defined in

index.d.ts:58 (opens new window)


# pan

pan(chart, amount, scales?, mode?): void

# Parameters

Name Type
chart Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>
amount PanAmount
scales? Scale<CoreScaleOptions>[]
mode? "resize" | "reset" | "none" | "hide" | "show" | "default" | "active" | "zoom"

# Returns

void

# Defined in

index.d.ts:51 (opens new window)


# resetZoom

resetZoom(chart, mode?): void

# Parameters

Name Type
chart Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>
mode? "resize" | "reset" | "none" | "hide" | "show" | "default" | "active" | "zoom"

# Returns

void

# Defined in

index.d.ts:55 (opens new window)


# zoom

zoom(chart, amount, mode?): void

# Parameters

Name Type
chart Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>
amount ZoomAmount
mode? "resize" | "reset" | "none" | "hide" | "show" | "default" | "active" | "zoom"

# Returns

void

# Defined in

index.d.ts:52 (opens new window)


# zoomRect

zoomRect(chart, p0, p1, mode?): void

# Parameters

Name Type
chart Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>
p0 Point
p1 Point
mode? "resize" | "reset" | "none" | "hide" | "show" | "default" | "active" | "zoom"

# Returns

void

# Defined in

index.d.ts:53 (opens new window)


# zoomScale

zoomScale(chart, scaleId, range, mode?): void

# Parameters

Name Type
chart Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>
scaleId string
range ScaleRange
mode? "resize" | "reset" | "none" | "hide" | "show" | "default" | "active" | "zoom"

# Returns

void

# Defined in

index.d.ts:54 (opens new window)

- + (opens new window)

# chartjs-plugin-zoom - v2.0.1

# Type aliases

# PanFunction

Ƭ PanFunction: (scale: Scale, delta: number, limits: LimitOptions) => boolean

# Type declaration

▸ (scale, delta, limits): boolean

# Parameters
Name Type
scale Scale
delta number
limits LimitOptions
# Returns

boolean

# Defined in

index.d.ts:35 (opens new window)


# ZoomFunction

Ƭ ZoomFunction: (scale: Scale, zoom: number, center: Point, limits: LimitOptions) => boolean

# Type declaration

▸ (scale, zoom, center, limits): boolean

# Parameters
Name Type
scale Scale
zoom number
center Point
limits LimitOptions
# Returns

boolean

# Defined in

index.d.ts:33 (opens new window)


# ZoomRectFunction

Ƭ ZoomRectFunction: (scale: Scale, from: number, to: number, limits: LimitOptions) => boolean

# Type declaration

▸ (scale, from, to, limits): boolean

# Parameters
Name Type
scale Scale
from number
to number
limits LimitOptions
# Returns

boolean

# Defined in

index.d.ts:34 (opens new window)

# Variables

# default

default: Plugin & { panFunctions: ScaleFunctions<PanFunction> ; zoomFunctions: ScaleFunctions<ZoomFunction> ; zoomRectFunctions: ScaleFunctions<ZoomRectFunction> }

# Defined in

index.d.ts:43 (opens new window)

# Functions

# getInitialScaleBounds

getInitialScaleBounds(chart): Record<string, Object>

# Parameters

Name Type
chart Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>

# Returns

Record<string, Object>

# Defined in

index.d.ts:57 (opens new window)


# getZoomLevel

getZoomLevel(chart): number

# Parameters

Name Type
chart Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>

# Returns

number

# Defined in

index.d.ts:56 (opens new window)


# isZoomedOrPanned

isZoomedOrPanned(chart): boolean

# Parameters

Name Type
chart Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>

# Returns

boolean

# Defined in

index.d.ts:58 (opens new window)


# pan

pan(chart, amount, scales?, mode?): void

# Parameters

Name Type
chart Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>
amount PanAmount
scales? Scale<CoreScaleOptions>[]
mode? "resize" | "reset" | "none" | "hide" | "show" | "default" | "active" | "zoom"

# Returns

void

# Defined in

index.d.ts:51 (opens new window)


# resetZoom

resetZoom(chart, mode?): void

# Parameters

Name Type
chart Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>
mode? "resize" | "reset" | "none" | "hide" | "show" | "default" | "active" | "zoom"

# Returns

void

# Defined in

index.d.ts:55 (opens new window)


# zoom

zoom(chart, amount, mode?): void

# Parameters

Name Type
chart Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>
amount ZoomAmount
mode? "resize" | "reset" | "none" | "hide" | "show" | "default" | "active" | "zoom"

# Returns

void

# Defined in

index.d.ts:52 (opens new window)


# zoomRect

zoomRect(chart, p0, p1, mode?): void

# Parameters

Name Type
chart Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>
p0 Point
p1 Point
mode? "resize" | "reset" | "none" | "hide" | "show" | "default" | "active" | "zoom"

# Returns

void

# Defined in

index.d.ts:53 (opens new window)


# zoomScale

zoomScale(chart, scaleId, range, mode?): void

# Parameters

Name Type
chart Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>
scaleId string
range ScaleRange
mode? "resize" | "reset" | "none" | "hide" | "show" | "default" | "active" | "zoom"

# Returns

void

# Defined in

index.d.ts:54 (opens new window)

+ diff --git a/master/assets/js/10.423ae2c6.js b/master/assets/js/10.e7e142b2.js similarity index 99% rename from master/assets/js/10.423ae2c6.js rename to master/assets/js/10.e7e142b2.js index c25a858b..aa2754c0 100644 --- a/master/assets/js/10.423ae2c6.js +++ b/master/assets/js/10.e7e142b2.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{478:function(t,e,a){"use strict";a.r(e);var s=a(22),n=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"developers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#developers"}},[t._v("#")]),t._v(" Developers")]),t._v(" "),a("h2",{attrs:{id:"imperative-zoom-pan-api"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#imperative-zoom-pan-api"}},[t._v("#")]),t._v(" Imperative Zoom/Pan API")]),t._v(" "),a("p",[t._v("Alongside user-driven interactions, it is also possible to imperatively interact with the chart, either to manually zoom into a selected region, or to get information about the current zoom status.")]),t._v(" "),a("h3",{attrs:{id:"chart-pan-delta-scales-mode-none-void"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-pan-delta-scales-mode-none-void"}},[t._v("#")]),t._v(" "),a("code",[t._v("chart.pan(delta, scales?, mode = 'none'): void")])]),t._v(" "),a("p",[t._v("Pans the current chart by the specified amount in one or more axes. The value of "),a("code",[t._v("delta")]),t._v(" can be a number, in which case all axes are panned by the same amount, or it can be an "),a("code",[t._v("{x, y}")]),t._v(" object to pan different amounts in the horizontal and vertical directions. The value of "),a("code",[t._v("scales")]),t._v(" is a list of scale objects that should be panned - by default, all scales of the chart will be panned. The value of "),a("code",[t._v("mode")]),t._v(" should be one of the Chart.js "),a("a",{attrs:{href:"https://www.chartjs.org/docs/latest/configuration/animations.html#default-transitions",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation modes"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h3",{attrs:{id:"chart-zoom-zoomlevel-mode-none-void"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-zoom-zoomlevel-mode-none-void"}},[t._v("#")]),t._v(" "),a("code",[t._v("chart.zoom(zoomLevel, mode = 'none'): void")])]),t._v(" "),a("p",[t._v("Zooms the current chart by the specified amount in one more axes. The value of "),a("code",[t._v("zoomLevel")]),t._v(" can be a number, in which case all axes are zoomed by the same amount, or it can be an "),a("code",[t._v("{x, y}")]),t._v(" object to zoom different amounts in the horizontal and vertical directions. The value of "),a("code",[t._v("mode")]),t._v(" should be one of the Chart.js "),a("a",{attrs:{href:"https://www.chartjs.org/docs/latest/configuration/animations.html#default-transitions",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation modes"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h3",{attrs:{id:"chart-zoomscale-scaleid-newrange-mode-none-void"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-zoomscale-scaleid-newrange-mode-none-void"}},[t._v("#")]),t._v(" "),a("code",[t._v("chart.zoomScale(scaleId, newRange, mode = 'none'): void")])]),t._v(" "),a("p",[t._v("Zooms the specified scale to the range given by "),a("code",[t._v("newRange")]),t._v(". This is an object in the form "),a("code",[t._v("{min, max}")]),t._v(" and represents the new bounds of that scale. The value of "),a("code",[t._v("mode")]),t._v(" should be one of the Chart.js "),a("a",{attrs:{href:"https://www.chartjs.org/docs/latest/configuration/animations.html#default-transitions",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation modes"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h3",{attrs:{id:"chart-resetzoom-mode-none-void"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-resetzoom-mode-none-void"}},[t._v("#")]),t._v(" "),a("code",[t._v("chart.resetZoom(mode = 'none'): void")])]),t._v(" "),a("p",[t._v("Resets the current chart bounds to the defaults that were used before any zooming or panning occurred. The value of "),a("code",[t._v("mode")]),t._v(" should be one of the Chart.js "),a("a",{attrs:{href:"https://www.chartjs.org/docs/latest/configuration/animations.html#default-transitions",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation modes"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h3",{attrs:{id:"chart-getzoomlevel-number"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-getzoomlevel-number"}},[t._v("#")]),t._v(" "),a("code",[t._v("chart.getZoomLevel(): number")])]),t._v(" "),a("p",[t._v("Returns the current zoom level. If this is the same as the chart's initial scales, the value returned will be "),a("code",[t._v("1.0")]),t._v(". Otherwise, the value will be less than one if the chart has been zoomed out, and more than one if it has been zoomed in. If different axes have been zoomed by different amounts, the returned value will be the zoom level of the most zoomed out axis if any have been zoomed out, otherwise it will be the zoom level of the most zoomed-in axis.")]),t._v(" "),a("p",[t._v("If the chart has been panned but not zoomed, this method will still return "),a("code",[t._v("1.0")]),t._v(".")]),t._v(" "),a("h3",{attrs:{id:"chart-getinitialscalebounds-record-string-min-number-max-number"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-getinitialscalebounds-record-string-min-number-max-number"}},[t._v("#")]),t._v(" "),a("code",[t._v("chart.getInitialScaleBounds(): Record")])]),t._v(" "),a("p",[t._v("Returns the initial scale bounds of each scale before any zooming or panning took place. This is returned in the format of an object, e.g.")]),t._v(" "),a("div",{staticClass:"language-json extra-class"},[a("pre",{pre:!0,attrs:{class:"language-json"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" max"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("100")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y1"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" max"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("80")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y2"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0.1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" max"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0.8")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("h3",{attrs:{id:"chart-iszoomedorpanned-boolean"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-iszoomedorpanned-boolean"}},[t._v("#")]),t._v(" "),a("code",[t._v("chart.isZoomedOrPanned(): boolean")])]),t._v(" "),a("p",[t._v("Returns whether the chart has been zoomed or panned - i.e. whether the initial scale of any axis is different to the one used currently.")]),t._v(" "),a("h2",{attrs:{id:"custom-scales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#custom-scales"}},[t._v("#")]),t._v(" Custom Scales")]),t._v(" "),a("p",[t._v("You can extend chartjs-plugin-zoom with support for "),a("a",{attrs:{href:"https://www.chartjs.org/docs/latest/developers/axes.html",target:"_blank",rel:"noopener noreferrer"}},[t._v("custom scales"),a("OutboundLink")],1),t._v(" by using the zoom plugin's "),a("code",[t._v("zoomFunctions")]),t._v(", "),a("code",[t._v("zoomRectFunctions")]),t._v(", and "),a("code",[t._v("panFunctions")]),t._v(" members. These objects are indexed by scale types (scales' "),a("code",[t._v("id")]),t._v(" members) and give optional handlers for zoom and pan functionality.")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("Scale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" zoomPlugin "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chartjs-plugin-zoom'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("class")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("MyScale")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("extends")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Scale")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("/* extensions ... */")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\nMyScale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("id "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myScale'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nMyScale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" defaultConfigObject"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\nzoomPlugin"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("zoomFunctions"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("myScale")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("scale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" zoom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" center"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" limits")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nzoomPlugin"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("zoomRectFunctions"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("myScale")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("scale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" from"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" to"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" limits")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nzoomPlugin"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("panFunctions"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("myScale")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("scale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" delta"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" limits")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// zoomRectFunctions can normally be omitted, since zooming by specific pixel")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// coordinates rarely needs special handling.")]),t._v("\n")])])]),a("p",[t._v("The zoom, zoomRect, and pan functions take the following arguments:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("For")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("scale")])]),t._v(" "),a("td",[a("code",[t._v("Scale")])]),t._v(" "),a("td",[t._v("Zoom, Pan")]),t._v(" "),a("td",[t._v("The custom scale instance (usually derived from "),a("code",[t._v("Chart.Scale")]),t._v(")")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("zoom")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("Zoom")]),t._v(" "),a("td",[t._v("The zoom fraction; 1.0 is unzoomed, 0.5 means zoomed in to 50% of the original area, etc.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("center")])]),t._v(" "),a("td",[a("code",[t._v("{x, y}")])]),t._v(" "),a("td",[t._v("Zoom")]),t._v(" "),a("td",[t._v("Pixel coordinates of the center of the zoom operation. "),a("code",[t._v("{x: 0, y: 0}")]),t._v(" is the upper left corner of the chart's canvas.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("from")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("ZoomRect")]),t._v(" "),a("td",[t._v("Pixel coordinate of the start of the zoomRect operation.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("to")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("ZoomRect")]),t._v(" "),a("td",[t._v("Pixel coordinate of the end of the zoomRect operation.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("delta")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("Pan")]),t._v(" "),a("td",[t._v("Pixel amount to pan by")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("limits")])]),t._v(" "),a("td",[a("a",{attrs:{href:"./options#limits"}},[t._v("Limits")])]),t._v(" "),a("td",[t._v("Zoom, Pan")]),t._v(" "),a("td",[t._v("Zoom and pan limits (from chart options)")])])])]),t._v(" "),a("p",[t._v("For examples, see chartjs-plugin-zoom's "),a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/v1.0.1/src/scale.types.js#L128",target:"_blank",rel:"noopener noreferrer"}},[t._v("default zoomFunctions, zoomRectFunctions, and panFunctions handling for standard Chart.js axes"),a("OutboundLink")],1),t._v(".")])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{476:function(t,e,a){"use strict";a.r(e);var s=a(22),n=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"developers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#developers"}},[t._v("#")]),t._v(" Developers")]),t._v(" "),a("h2",{attrs:{id:"imperative-zoom-pan-api"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#imperative-zoom-pan-api"}},[t._v("#")]),t._v(" Imperative Zoom/Pan API")]),t._v(" "),a("p",[t._v("Alongside user-driven interactions, it is also possible to imperatively interact with the chart, either to manually zoom into a selected region, or to get information about the current zoom status.")]),t._v(" "),a("h3",{attrs:{id:"chart-pan-delta-scales-mode-none-void"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-pan-delta-scales-mode-none-void"}},[t._v("#")]),t._v(" "),a("code",[t._v("chart.pan(delta, scales?, mode = 'none'): void")])]),t._v(" "),a("p",[t._v("Pans the current chart by the specified amount in one or more axes. The value of "),a("code",[t._v("delta")]),t._v(" can be a number, in which case all axes are panned by the same amount, or it can be an "),a("code",[t._v("{x, y}")]),t._v(" object to pan different amounts in the horizontal and vertical directions. The value of "),a("code",[t._v("scales")]),t._v(" is a list of scale objects that should be panned - by default, all scales of the chart will be panned. The value of "),a("code",[t._v("mode")]),t._v(" should be one of the Chart.js "),a("a",{attrs:{href:"https://www.chartjs.org/docs/latest/configuration/animations.html#default-transitions",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation modes"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h3",{attrs:{id:"chart-zoom-zoomlevel-mode-none-void"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-zoom-zoomlevel-mode-none-void"}},[t._v("#")]),t._v(" "),a("code",[t._v("chart.zoom(zoomLevel, mode = 'none'): void")])]),t._v(" "),a("p",[t._v("Zooms the current chart by the specified amount in one more axes. The value of "),a("code",[t._v("zoomLevel")]),t._v(" can be a number, in which case all axes are zoomed by the same amount, or it can be an "),a("code",[t._v("{x, y}")]),t._v(" object to zoom different amounts in the horizontal and vertical directions. The value of "),a("code",[t._v("mode")]),t._v(" should be one of the Chart.js "),a("a",{attrs:{href:"https://www.chartjs.org/docs/latest/configuration/animations.html#default-transitions",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation modes"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h3",{attrs:{id:"chart-zoomscale-scaleid-newrange-mode-none-void"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-zoomscale-scaleid-newrange-mode-none-void"}},[t._v("#")]),t._v(" "),a("code",[t._v("chart.zoomScale(scaleId, newRange, mode = 'none'): void")])]),t._v(" "),a("p",[t._v("Zooms the specified scale to the range given by "),a("code",[t._v("newRange")]),t._v(". This is an object in the form "),a("code",[t._v("{min, max}")]),t._v(" and represents the new bounds of that scale. The value of "),a("code",[t._v("mode")]),t._v(" should be one of the Chart.js "),a("a",{attrs:{href:"https://www.chartjs.org/docs/latest/configuration/animations.html#default-transitions",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation modes"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h3",{attrs:{id:"chart-resetzoom-mode-none-void"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-resetzoom-mode-none-void"}},[t._v("#")]),t._v(" "),a("code",[t._v("chart.resetZoom(mode = 'none'): void")])]),t._v(" "),a("p",[t._v("Resets the current chart bounds to the defaults that were used before any zooming or panning occurred. The value of "),a("code",[t._v("mode")]),t._v(" should be one of the Chart.js "),a("a",{attrs:{href:"https://www.chartjs.org/docs/latest/configuration/animations.html#default-transitions",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation modes"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h3",{attrs:{id:"chart-getzoomlevel-number"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-getzoomlevel-number"}},[t._v("#")]),t._v(" "),a("code",[t._v("chart.getZoomLevel(): number")])]),t._v(" "),a("p",[t._v("Returns the current zoom level. If this is the same as the chart's initial scales, the value returned will be "),a("code",[t._v("1.0")]),t._v(". Otherwise, the value will be less than one if the chart has been zoomed out, and more than one if it has been zoomed in. If different axes have been zoomed by different amounts, the returned value will be the zoom level of the most zoomed out axis if any have been zoomed out, otherwise it will be the zoom level of the most zoomed-in axis.")]),t._v(" "),a("p",[t._v("If the chart has been panned but not zoomed, this method will still return "),a("code",[t._v("1.0")]),t._v(".")]),t._v(" "),a("h3",{attrs:{id:"chart-getinitialscalebounds-record-string-min-number-max-number"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-getinitialscalebounds-record-string-min-number-max-number"}},[t._v("#")]),t._v(" "),a("code",[t._v("chart.getInitialScaleBounds(): Record")])]),t._v(" "),a("p",[t._v("Returns the initial scale bounds of each scale before any zooming or panning took place. This is returned in the format of an object, e.g.")]),t._v(" "),a("div",{staticClass:"language-json extra-class"},[a("pre",{pre:!0,attrs:{class:"language-json"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" max"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("100")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y1"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" max"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("80")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y2"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0.1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" max"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0.8")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("h3",{attrs:{id:"chart-iszoomedorpanned-boolean"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-iszoomedorpanned-boolean"}},[t._v("#")]),t._v(" "),a("code",[t._v("chart.isZoomedOrPanned(): boolean")])]),t._v(" "),a("p",[t._v("Returns whether the chart has been zoomed or panned - i.e. whether the initial scale of any axis is different to the one used currently.")]),t._v(" "),a("h2",{attrs:{id:"custom-scales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#custom-scales"}},[t._v("#")]),t._v(" Custom Scales")]),t._v(" "),a("p",[t._v("You can extend chartjs-plugin-zoom with support for "),a("a",{attrs:{href:"https://www.chartjs.org/docs/latest/developers/axes.html",target:"_blank",rel:"noopener noreferrer"}},[t._v("custom scales"),a("OutboundLink")],1),t._v(" by using the zoom plugin's "),a("code",[t._v("zoomFunctions")]),t._v(", "),a("code",[t._v("zoomRectFunctions")]),t._v(", and "),a("code",[t._v("panFunctions")]),t._v(" members. These objects are indexed by scale types (scales' "),a("code",[t._v("id")]),t._v(" members) and give optional handlers for zoom and pan functionality.")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("Scale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" zoomPlugin "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chartjs-plugin-zoom'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("class")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("MyScale")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("extends")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Scale")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("/* extensions ... */")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\nMyScale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("id "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myScale'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nMyScale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" defaultConfigObject"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\nzoomPlugin"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("zoomFunctions"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("myScale")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("scale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" zoom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" center"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" limits")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nzoomPlugin"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("zoomRectFunctions"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("myScale")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("scale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" from"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" to"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" limits")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nzoomPlugin"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("panFunctions"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("myScale")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("scale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" delta"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" limits")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// zoomRectFunctions can normally be omitted, since zooming by specific pixel")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// coordinates rarely needs special handling.")]),t._v("\n")])])]),a("p",[t._v("The zoom, zoomRect, and pan functions take the following arguments:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("For")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("scale")])]),t._v(" "),a("td",[a("code",[t._v("Scale")])]),t._v(" "),a("td",[t._v("Zoom, Pan")]),t._v(" "),a("td",[t._v("The custom scale instance (usually derived from "),a("code",[t._v("Chart.Scale")]),t._v(")")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("zoom")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("Zoom")]),t._v(" "),a("td",[t._v("The zoom fraction; 1.0 is unzoomed, 0.5 means zoomed in to 50% of the original area, etc.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("center")])]),t._v(" "),a("td",[a("code",[t._v("{x, y}")])]),t._v(" "),a("td",[t._v("Zoom")]),t._v(" "),a("td",[t._v("Pixel coordinates of the center of the zoom operation. "),a("code",[t._v("{x: 0, y: 0}")]),t._v(" is the upper left corner of the chart's canvas.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("from")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("ZoomRect")]),t._v(" "),a("td",[t._v("Pixel coordinate of the start of the zoomRect operation.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("to")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("ZoomRect")]),t._v(" "),a("td",[t._v("Pixel coordinate of the end of the zoomRect operation.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("delta")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("Pan")]),t._v(" "),a("td",[t._v("Pixel amount to pan by")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("limits")])]),t._v(" "),a("td",[a("a",{attrs:{href:"./options#limits"}},[t._v("Limits")])]),t._v(" "),a("td",[t._v("Zoom, Pan")]),t._v(" "),a("td",[t._v("Zoom and pan limits (from chart options)")])])])]),t._v(" "),a("p",[t._v("For examples, see chartjs-plugin-zoom's "),a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/v1.0.1/src/scale.types.js#L128",target:"_blank",rel:"noopener noreferrer"}},[t._v("default zoomFunctions, zoomRectFunctions, and panFunctions handling for standard Chart.js axes"),a("OutboundLink")],1),t._v(".")])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/master/assets/js/11.beed2d49.js b/master/assets/js/11.20c784c3.js similarity index 96% rename from master/assets/js/11.beed2d49.js rename to master/assets/js/11.20c784c3.js index 49a5e626..3abe24fb 100644 --- a/master/assets/js/11.beed2d49.js +++ b/master/assets/js/11.20c784c3.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{477:function(t,a,e){"use strict";e.r(a);var n=e(22),r=Object(n.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"getting-started"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#getting-started"}},[t._v("#")]),t._v(" Getting Started")]),t._v(" "),e("p",[t._v("A zoom and pan plugin for Chart.js >= 3.0.0")]),t._v(" "),e("p",[t._v("Panning can be done via the mouse or with a finger.\nZooming is done via the mouse wheel or via a pinch gesture. "),e("a",{attrs:{href:"https://hammerjs.github.io/",target:"_blank",rel:"noopener noreferrer"}},[t._v("Hammer.js"),e("OutboundLink")],1),t._v(" is used for gesture recognition.")]),t._v(" "),e("h2",{attrs:{id:"installation"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#installation"}},[t._v("#")]),t._v(" Installation")]),t._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("npm")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("install")]),t._v(" chartjs-plugin-zoom\n")])])]),e("div",{staticClass:"custom-block tip"},[e("p",{staticClass:"custom-block-title"},[t._v("TIP")]),t._v(" "),e("p",[e("strong",[t._v("Important Note:")]),t._v(" For Chart.js 2.6.0 to 2.9.x support, use "),e("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/releases/tag/v0.7.7",target:"_blank",rel:"noopener noreferrer"}},[t._v("version 0.7.7 of this plugin"),e("OutboundLink")],1),t._v(".\nDocumentation for v0.7.7 can be found on "),e("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/v0.7.7/README.md",target:"_blank",rel:"noopener noreferrer"}},[t._v("GitHub"),e("OutboundLink")],1),t._v(".")])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{478:function(t,a,e){"use strict";e.r(a);var n=e(22),r=Object(n.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"getting-started"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#getting-started"}},[t._v("#")]),t._v(" Getting Started")]),t._v(" "),e("p",[t._v("A zoom and pan plugin for Chart.js >= 3.0.0")]),t._v(" "),e("p",[t._v("Panning can be done via the mouse or with a finger.\nZooming is done via the mouse wheel or via a pinch gesture. "),e("a",{attrs:{href:"https://hammerjs.github.io/",target:"_blank",rel:"noopener noreferrer"}},[t._v("Hammer.js"),e("OutboundLink")],1),t._v(" is used for gesture recognition.")]),t._v(" "),e("h2",{attrs:{id:"installation"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#installation"}},[t._v("#")]),t._v(" Installation")]),t._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("npm")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("install")]),t._v(" chartjs-plugin-zoom\n")])])]),e("div",{staticClass:"custom-block tip"},[e("p",{staticClass:"custom-block-title"},[t._v("TIP")]),t._v(" "),e("p",[e("strong",[t._v("Important Note:")]),t._v(" For Chart.js 2.6.0 to 2.9.x support, use "),e("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/releases/tag/v0.7.7",target:"_blank",rel:"noopener noreferrer"}},[t._v("version 0.7.7 of this plugin"),e("OutboundLink")],1),t._v(".\nDocumentation for v0.7.7 can be found on "),e("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/v0.7.7/README.md",target:"_blank",rel:"noopener noreferrer"}},[t._v("GitHub"),e("OutboundLink")],1),t._v(".")])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file diff --git a/master/assets/js/12.49e76b29.js b/master/assets/js/12.c93d12da.js similarity index 99% rename from master/assets/js/12.49e76b29.js rename to master/assets/js/12.c93d12da.js index 2b31d0ec..e9ea87e8 100644 --- a/master/assets/js/12.49e76b29.js +++ b/master/assets/js/12.c93d12da.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{480:function(t,s,a){"use strict";a.r(s);var n=a(22),r=Object(n.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"integration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#integration"}},[t._v("#")]),t._v(" Integration")]),t._v(" "),a("p",[a("strong",[t._v("chartjs-plugin-zoom")]),t._v(" can be integrated with plain JavaScript or with different module loaders. The examples below show how to load the plugin in different systems.")]),t._v(" "),a("h2",{attrs:{id:"script-tag"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#script-tag"}},[t._v("#")]),t._v(" Script Tag")]),t._v(" "),a("div",{staticClass:"language-html extra-class"},[a("pre",{pre:!0,attrs:{class:"language-html"}},[a("code",[a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("src")]),a("span",{pre:!0,attrs:{class:"token attr-value"}},[a("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("path/to/chartjs/dist/chart.min.js"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),a("span",{pre:!0,attrs:{class:"token script"}}),a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("src")]),a("span",{pre:!0,attrs:{class:"token attr-value"}},[a("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("https://cdn.jsdelivr.net/npm/hammerjs@2.0.8"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),a("span",{pre:!0,attrs:{class:"token script"}}),a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("src")]),a("span",{pre:!0,attrs:{class:"token attr-value"}},[a("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("path/to/chartjs-plugin-zoom/dist/chartjs-plugin-zoom.min.js"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),a("span",{pre:!0,attrs:{class:"token script"}}),a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),a("span",{pre:!0,attrs:{class:"token script"}},[a("span",{pre:!0,attrs:{class:"token language-javascript"}},[t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])]),a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),a("h2",{attrs:{id:"bundlers-webpack-rollup-etc"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bundlers-webpack-rollup-etc"}},[t._v("#")]),t._v(" Bundlers (Webpack, Rollup, etc.)")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" Chart "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" zoomPlugin "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chartjs-plugin-zoom'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\nChart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("register")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("zoomPlugin"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);s.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{479:function(t,s,a){"use strict";a.r(s);var n=a(22),r=Object(n.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"integration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#integration"}},[t._v("#")]),t._v(" Integration")]),t._v(" "),a("p",[a("strong",[t._v("chartjs-plugin-zoom")]),t._v(" can be integrated with plain JavaScript or with different module loaders. The examples below show how to load the plugin in different systems.")]),t._v(" "),a("h2",{attrs:{id:"script-tag"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#script-tag"}},[t._v("#")]),t._v(" Script Tag")]),t._v(" "),a("div",{staticClass:"language-html extra-class"},[a("pre",{pre:!0,attrs:{class:"language-html"}},[a("code",[a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("src")]),a("span",{pre:!0,attrs:{class:"token attr-value"}},[a("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("path/to/chartjs/dist/chart.min.js"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),a("span",{pre:!0,attrs:{class:"token script"}}),a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("src")]),a("span",{pre:!0,attrs:{class:"token attr-value"}},[a("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("https://cdn.jsdelivr.net/npm/hammerjs@2.0.8"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),a("span",{pre:!0,attrs:{class:"token script"}}),a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("src")]),a("span",{pre:!0,attrs:{class:"token attr-value"}},[a("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("path/to/chartjs-plugin-zoom/dist/chartjs-plugin-zoom.min.js"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),a("span",{pre:!0,attrs:{class:"token script"}}),a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),a("span",{pre:!0,attrs:{class:"token script"}},[a("span",{pre:!0,attrs:{class:"token language-javascript"}},[t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])]),a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token tag"}},[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),a("h2",{attrs:{id:"bundlers-webpack-rollup-etc"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bundlers-webpack-rollup-etc"}},[t._v("#")]),t._v(" Bundlers (Webpack, Rollup, etc.)")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" Chart "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" zoomPlugin "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chartjs-plugin-zoom'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\nChart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("register")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("zoomPlugin"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);s.default=r.exports}}]); \ No newline at end of file diff --git a/master/assets/js/13.6f5564af.js b/master/assets/js/13.3ddeec29.js similarity index 99% rename from master/assets/js/13.6f5564af.js rename to master/assets/js/13.3ddeec29.js index 94d54fd7..367d34b8 100644 --- a/master/assets/js/13.6f5564af.js +++ b/master/assets/js/13.3ddeec29.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{479:function(t,e,a){"use strict";a.r(e);var s=a(22),r=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" Options")]),t._v(" "),a("p",[t._v("The options for chartjs-plugin-zoom should be placed in "),a("code",[t._v("options.plugins.zoom")]),t._v(" in chart.js configuration.")]),t._v(" "),a("p",[t._v("The options are split in three sub-objects, "),a("a",{attrs:{href:"#limits"}},[t._v("limits")]),t._v(", "),a("a",{attrs:{href:"#pan"}},[t._v("pan")]),t._v(" and "),a("a",{attrs:{href:"#zoom"}},[t._v("zoom")]),t._v(".")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'id'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("type")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("data")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("options")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("plugins")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("zoom")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("pan")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// pan options and/or events")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("limits")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// axis limits")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("zoom")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// zoom options and/or events")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"pan"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pan"}},[t._v("#")]),t._v(" Pan")]),t._v(" "),a("h3",{attrs:{id:"pan-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pan-options"}},[t._v("#")]),t._v(" Pan Options")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("enabled")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Enable panning")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("mode")])]),t._v(" "),a("td",[a("code",[t._v("'x'")]),t._v("|"),a("code",[t._v("'y'")]),t._v("|"),a("code",[t._v("'xy'")])]),t._v(" "),a("td",[a("code",[t._v("'xy'")])]),t._v(" "),a("td",[t._v("Allowed panning directions")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("modifierKey")])]),t._v(" "),a("td",[a("code",[t._v("'ctrl'")]),t._v("|"),a("code",[t._v("'alt'")]),t._v("|"),a("code",[t._v("'shift'")]),t._v("|"),a("code",[t._v("'meta'")])]),t._v(" "),a("td",[a("code",[t._v("null")])]),t._v(" "),a("td",[t._v("Modifier key required for panning with mouse")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("scaleMode")])]),t._v(" "),a("td",[a("code",[t._v("'x'")]),t._v("|"),a("code",[t._v("'y'")]),t._v("|"),a("code",[t._v("'xy'")])]),t._v(" "),a("td",[a("code",[t._v("undefined")])]),t._v(" "),a("td",[t._v("Enable panning over a scale for that axis (regardless of mode)")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("overScaleMode")])]),t._v(" "),a("td",[a("code",[t._v("'x'")]),t._v("|"),a("code",[t._v("'y'")]),t._v("|"),a("code",[t._v("'xy'")])]),t._v(" "),a("td",[a("code",[t._v("undefined")])]),t._v(" "),a("td",[t._v("Enable panning over a scale for that axis (but only if mode is also enabled), and disables panning along that axis otherwise. Deprecated.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("threshold")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("10")])]),t._v(" "),a("td",[t._v("Minimal pan distance required before actually applying pan")])])])]),t._v(" "),a("h3",{attrs:{id:"pan-events"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pan-events"}},[t._v("#")]),t._v(" Pan Events")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Arguments")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("onPan")])]),t._v(" "),a("td",[a("code",[t._v("{chart}")])]),t._v(" "),a("td",[t._v("Called while the chart is being panned")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onPanComplete")])]),t._v(" "),a("td",[a("code",[t._v("{chart}")])]),t._v(" "),a("td",[t._v("Called once panning is completed")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onPanRejected")])]),t._v(" "),a("td",[a("code",[t._v("{chart,event}")])]),t._v(" "),a("td",[t._v("Called when panning is rejected due to missing modifier key. "),a("code",[t._v("event")]),t._v(" is the a "),a("a",{attrs:{href:"https://hammerjs.github.io/api#event-object",target:"_blank",rel:"noopener noreferrer"}},[t._v("hammer event"),a("OutboundLink")],1),t._v(" that failed")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onPanStart")])]),t._v(" "),a("td",[a("code",[t._v("{chart,event,point}")])]),t._v(" "),a("td",[t._v("Called when panning is about to start. If this callback returns false, panning is aborted and "),a("code",[t._v("onPanRejected")]),t._v(" is invoked")])])])]),t._v(" "),a("h2",{attrs:{id:"zoom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#zoom"}},[t._v("#")]),t._v(" Zoom")]),t._v(" "),a("h3",{attrs:{id:"zoom-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#zoom-options"}},[t._v("#")]),t._v(" Zoom Options")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("wheel")])]),t._v(" "),a("td",[a("a",{attrs:{href:"#wheel-options"}},[a("code",[t._v("WheelOptions")])])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Options of the mouse wheel behavior")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("drag")])]),t._v(" "),a("td",[a("a",{attrs:{href:"#drag-options"}},[a("code",[t._v("DragOptions")])])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Options of the drag-to-zoom behavior")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pinch")])]),t._v(" "),a("td",[a("a",{attrs:{href:"#pinch-options"}},[a("code",[t._v("PinchOptions")])])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Options of the pinch behavior")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("mode")])]),t._v(" "),a("td",[a("code",[t._v("'x'")]),t._v("|"),a("code",[t._v("'y'")]),t._v("|"),a("code",[t._v("'xy'")])]),t._v(" "),a("td",[a("code",[t._v("'xy'")])]),t._v(" "),a("td",[t._v("Allowed zoom directions")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("scaleMode")])]),t._v(" "),a("td",[a("code",[t._v("'x'")]),t._v("|"),a("code",[t._v("'y'")]),t._v("|"),a("code",[t._v("'xy'")])]),t._v(" "),a("td",[a("code",[t._v("undefined")])]),t._v(" "),a("td",[t._v("Which of the enabled zooming directions should only be available when the mouse cursor is over a scale for that axis")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("overScaleMode")])]),t._v(" "),a("td",[a("code",[t._v("'x'")]),t._v("|"),a("code",[t._v("'y'")]),t._v("|"),a("code",[t._v("'xy'")])]),t._v(" "),a("td",[a("code",[t._v("undefined")])]),t._v(" "),a("td",[t._v("Allowed zoom directions when the mouse cursor is over a scale for that axis (but only if mode is also enabled), and disables zooming along that axis otherwise. Deprecated; use "),a("code",[t._v("scaleMode")]),t._v(" instead.")])])])]),t._v(" "),a("h4",{attrs:{id:"wheel-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#wheel-options"}},[t._v("#")]),t._v(" Wheel options")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("enabled")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Enable zooming via mouse wheel")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("speed")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0.1")])]),t._v(" "),a("td",[t._v("Factor of zoom speed via mouse wheel")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("modifierKey")])]),t._v(" "),a("td",[a("code",[t._v("'ctrl'")]),t._v("|"),a("code",[t._v("'alt'")]),t._v("|"),a("code",[t._v("'shift'")]),t._v("|"),a("code",[t._v("'meta'")])]),t._v(" "),a("td",[a("code",[t._v("null")])]),t._v(" "),a("td",[t._v("Modifier key required for zooming via mouse wheel")])])])]),t._v(" "),a("h4",{attrs:{id:"drag-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drag-options"}},[t._v("#")]),t._v(" Drag options")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("enabled")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Enable drag-to-zoom")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",[a("code",[t._v("'rgba(225,225,225,0.3)'")])]),t._v(" "),a("td",[t._v("Fill color")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",[a("code",[t._v("'rgba(225,225,225)'")])]),t._v(" "),a("td",[t._v("Stroke color")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderWidth")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Stroke width")])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#draw-time"}},[a("code",[t._v("drawTime")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("beforeDatasetsDraw")])]),t._v(" "),a("td",[t._v("When the dragging box is dran on the chart")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("threshold")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Minimal zoom distance required before actually applying zoom")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("modifierKey")])]),t._v(" "),a("td",[a("code",[t._v("'ctrl'")]),t._v("|"),a("code",[t._v("'alt'")]),t._v("|"),a("code",[t._v("'shift'")]),t._v("|"),a("code",[t._v("'meta'")])]),t._v(" "),a("td",[a("code",[t._v("null")])]),t._v(" "),a("td",[t._v("Modifier key required for drag-to-zoom")])])])]),t._v(" "),a("h2",{attrs:{id:"draw-time"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw-time"}},[t._v("#")]),t._v(" Draw Time")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("drawTime")]),t._v(" option for zooming determines where in the chart lifecycle the drag box drawing occurs. Four potential options are available:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Option")]),t._v(" "),a("th",[t._v("Notes")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("'beforeDraw'")])]),t._v(" "),a("td",[t._v("Occurs before any drawing takes place")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("'beforeDatasetsDraw'")])]),t._v(" "),a("td",[t._v("Occurs after drawing of axes, but before datasets")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("'afterDatasetsDraw'")])]),t._v(" "),a("td",[t._v("Occurs after drawing of datasets but before items such as the tooltip")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("'afterDraw'")])]),t._v(" "),a("td",[t._v("After other drawing is completed")])])])]),t._v(" "),a("h4",{attrs:{id:"pinch-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pinch-options"}},[t._v("#")]),t._v(" Pinch options")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("enabled")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Enable zooming via pinch")])])])]),t._v(" "),a("h3",{attrs:{id:"zoom-events"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#zoom-events"}},[t._v("#")]),t._v(" Zoom Events")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Arguments")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("onZoom")])]),t._v(" "),a("td",[a("code",[t._v("{chart}")])]),t._v(" "),a("td",[t._v("Called while the chart is being zoomed")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onZoomComplete")])]),t._v(" "),a("td",[a("code",[t._v("{chart}")])]),t._v(" "),a("td",[t._v("Called once zooming is completed")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onZoomRejected")])]),t._v(" "),a("td",[a("code",[t._v("{chart,event}")])]),t._v(" "),a("td",[t._v("Called when zoom is rejected due to missing modifier key. "),a("code",[t._v("event")]),t._v(" is the a "),a("a",{attrs:{href:"https://hammerjs.github.io/api#event-object",target:"_blank",rel:"noopener noreferrer"}},[t._v("hammer event"),a("OutboundLink")],1),t._v(" that failed")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onZoomStart")])]),t._v(" "),a("td",[a("code",[t._v("{chart,event,point}")])]),t._v(" "),a("td",[t._v("Called when zooming is about to start. If this callback returns false, zooming is aborted and "),a("code",[t._v("onZoomRejected")]),t._v(" is invoked")])])])]),t._v(" "),a("h2",{attrs:{id:"limits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#limits"}},[t._v("#")]),t._v(" Limits")]),t._v(" "),a("p",[t._v("Limits options define the limits per axis for pan and zoom.")]),t._v(" "),a("h3",{attrs:{id:"limit-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#limit-options"}},[t._v("#")]),t._v(" Limit options")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("x")])]),t._v(" "),a("td",[a("a",{attrs:{href:"#scale-limits"}},[a("code",[t._v("ScaleLimits")])])]),t._v(" "),a("td",[t._v("Limits for x-axis")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("y")])]),t._v(" "),a("td",[a("a",{attrs:{href:"#scale-limits"}},[a("code",[t._v("ScaleLimits")])])]),t._v(" "),a("td",[t._v("Limits for y-axis")])])])]),t._v(" "),a("p",[t._v("If you're using multiple or custom axes (scales), you can define limits for those, too.")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'id'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("type")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("data")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("options")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("scales")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("y")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("min")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("max")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("80")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("y2")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("position")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'right'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("min")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("5")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("max")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("5")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("plugins")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("zoom")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("limits")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("y")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("min")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("max")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("100")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("y2")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("min")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("5")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("max")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("5")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h4",{attrs:{id:"scale-limits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scale-limits"}},[t._v("#")]),t._v(" Scale Limits")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("min")])]),t._v(" "),a("td",[a("code",[t._v("number | 'original'")])]),t._v(" "),a("td",[t._v("Minimum allowed value for scale.min")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("max")])]),t._v(" "),a("td",[a("code",[t._v("number | 'original'")])]),t._v(" "),a("td",[t._v("Maximum allowed value for scale.max")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("minRange")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("Minimum allowed range (max - min). This defines the max zoom level.")])])])]),t._v(" "),a("p",[t._v("You may use the keyword "),a("code",[t._v("'original'")]),t._v(" in place of a numeric limit to instruct chartjs-plugin-zoom to use whatever limits the scale had when the chart was first displayed.")])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{480:function(t,e,a){"use strict";a.r(e);var s=a(22),r=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" Options")]),t._v(" "),a("p",[t._v("The options for chartjs-plugin-zoom should be placed in "),a("code",[t._v("options.plugins.zoom")]),t._v(" in chart.js configuration.")]),t._v(" "),a("p",[t._v("The options are split in three sub-objects, "),a("a",{attrs:{href:"#limits"}},[t._v("limits")]),t._v(", "),a("a",{attrs:{href:"#pan"}},[t._v("pan")]),t._v(" and "),a("a",{attrs:{href:"#zoom"}},[t._v("zoom")]),t._v(".")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'id'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("type")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("data")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("options")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("plugins")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("zoom")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("pan")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// pan options and/or events")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("limits")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// axis limits")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("zoom")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// zoom options and/or events")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"pan"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pan"}},[t._v("#")]),t._v(" Pan")]),t._v(" "),a("h3",{attrs:{id:"pan-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pan-options"}},[t._v("#")]),t._v(" Pan Options")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("enabled")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Enable panning")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("mode")])]),t._v(" "),a("td",[a("code",[t._v("'x'")]),t._v("|"),a("code",[t._v("'y'")]),t._v("|"),a("code",[t._v("'xy'")])]),t._v(" "),a("td",[a("code",[t._v("'xy'")])]),t._v(" "),a("td",[t._v("Allowed panning directions")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("modifierKey")])]),t._v(" "),a("td",[a("code",[t._v("'ctrl'")]),t._v("|"),a("code",[t._v("'alt'")]),t._v("|"),a("code",[t._v("'shift'")]),t._v("|"),a("code",[t._v("'meta'")])]),t._v(" "),a("td",[a("code",[t._v("null")])]),t._v(" "),a("td",[t._v("Modifier key required for panning with mouse")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("scaleMode")])]),t._v(" "),a("td",[a("code",[t._v("'x'")]),t._v("|"),a("code",[t._v("'y'")]),t._v("|"),a("code",[t._v("'xy'")])]),t._v(" "),a("td",[a("code",[t._v("undefined")])]),t._v(" "),a("td",[t._v("Enable panning over a scale for that axis (regardless of mode)")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("overScaleMode")])]),t._v(" "),a("td",[a("code",[t._v("'x'")]),t._v("|"),a("code",[t._v("'y'")]),t._v("|"),a("code",[t._v("'xy'")])]),t._v(" "),a("td",[a("code",[t._v("undefined")])]),t._v(" "),a("td",[t._v("Enable panning over a scale for that axis (but only if mode is also enabled), and disables panning along that axis otherwise. Deprecated.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("threshold")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("10")])]),t._v(" "),a("td",[t._v("Minimal pan distance required before actually applying pan")])])])]),t._v(" "),a("h3",{attrs:{id:"pan-events"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pan-events"}},[t._v("#")]),t._v(" Pan Events")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Arguments")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("onPan")])]),t._v(" "),a("td",[a("code",[t._v("{chart}")])]),t._v(" "),a("td",[t._v("Called while the chart is being panned")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onPanComplete")])]),t._v(" "),a("td",[a("code",[t._v("{chart}")])]),t._v(" "),a("td",[t._v("Called once panning is completed")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onPanRejected")])]),t._v(" "),a("td",[a("code",[t._v("{chart,event}")])]),t._v(" "),a("td",[t._v("Called when panning is rejected due to missing modifier key. "),a("code",[t._v("event")]),t._v(" is the a "),a("a",{attrs:{href:"https://hammerjs.github.io/api#event-object",target:"_blank",rel:"noopener noreferrer"}},[t._v("hammer event"),a("OutboundLink")],1),t._v(" that failed")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onPanStart")])]),t._v(" "),a("td",[a("code",[t._v("{chart,event,point}")])]),t._v(" "),a("td",[t._v("Called when panning is about to start. If this callback returns false, panning is aborted and "),a("code",[t._v("onPanRejected")]),t._v(" is invoked")])])])]),t._v(" "),a("h2",{attrs:{id:"zoom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#zoom"}},[t._v("#")]),t._v(" Zoom")]),t._v(" "),a("h3",{attrs:{id:"zoom-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#zoom-options"}},[t._v("#")]),t._v(" Zoom Options")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("wheel")])]),t._v(" "),a("td",[a("a",{attrs:{href:"#wheel-options"}},[a("code",[t._v("WheelOptions")])])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Options of the mouse wheel behavior")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("drag")])]),t._v(" "),a("td",[a("a",{attrs:{href:"#drag-options"}},[a("code",[t._v("DragOptions")])])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Options of the drag-to-zoom behavior")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pinch")])]),t._v(" "),a("td",[a("a",{attrs:{href:"#pinch-options"}},[a("code",[t._v("PinchOptions")])])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Options of the pinch behavior")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("mode")])]),t._v(" "),a("td",[a("code",[t._v("'x'")]),t._v("|"),a("code",[t._v("'y'")]),t._v("|"),a("code",[t._v("'xy'")])]),t._v(" "),a("td",[a("code",[t._v("'xy'")])]),t._v(" "),a("td",[t._v("Allowed zoom directions")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("scaleMode")])]),t._v(" "),a("td",[a("code",[t._v("'x'")]),t._v("|"),a("code",[t._v("'y'")]),t._v("|"),a("code",[t._v("'xy'")])]),t._v(" "),a("td",[a("code",[t._v("undefined")])]),t._v(" "),a("td",[t._v("Which of the enabled zooming directions should only be available when the mouse cursor is over a scale for that axis")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("overScaleMode")])]),t._v(" "),a("td",[a("code",[t._v("'x'")]),t._v("|"),a("code",[t._v("'y'")]),t._v("|"),a("code",[t._v("'xy'")])]),t._v(" "),a("td",[a("code",[t._v("undefined")])]),t._v(" "),a("td",[t._v("Allowed zoom directions when the mouse cursor is over a scale for that axis (but only if mode is also enabled), and disables zooming along that axis otherwise. Deprecated; use "),a("code",[t._v("scaleMode")]),t._v(" instead.")])])])]),t._v(" "),a("h4",{attrs:{id:"wheel-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#wheel-options"}},[t._v("#")]),t._v(" Wheel options")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("enabled")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Enable zooming via mouse wheel")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("speed")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0.1")])]),t._v(" "),a("td",[t._v("Factor of zoom speed via mouse wheel")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("modifierKey")])]),t._v(" "),a("td",[a("code",[t._v("'ctrl'")]),t._v("|"),a("code",[t._v("'alt'")]),t._v("|"),a("code",[t._v("'shift'")]),t._v("|"),a("code",[t._v("'meta'")])]),t._v(" "),a("td",[a("code",[t._v("null")])]),t._v(" "),a("td",[t._v("Modifier key required for zooming via mouse wheel")])])])]),t._v(" "),a("h4",{attrs:{id:"drag-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drag-options"}},[t._v("#")]),t._v(" Drag options")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("enabled")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Enable drag-to-zoom")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",[a("code",[t._v("'rgba(225,225,225,0.3)'")])]),t._v(" "),a("td",[t._v("Fill color")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",[a("code",[t._v("'rgba(225,225,225)'")])]),t._v(" "),a("td",[t._v("Stroke color")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderWidth")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Stroke width")])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#draw-time"}},[a("code",[t._v("drawTime")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("beforeDatasetsDraw")])]),t._v(" "),a("td",[t._v("When the dragging box is dran on the chart")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("threshold")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Minimal zoom distance required before actually applying zoom")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("modifierKey")])]),t._v(" "),a("td",[a("code",[t._v("'ctrl'")]),t._v("|"),a("code",[t._v("'alt'")]),t._v("|"),a("code",[t._v("'shift'")]),t._v("|"),a("code",[t._v("'meta'")])]),t._v(" "),a("td",[a("code",[t._v("null")])]),t._v(" "),a("td",[t._v("Modifier key required for drag-to-zoom")])])])]),t._v(" "),a("h2",{attrs:{id:"draw-time"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw-time"}},[t._v("#")]),t._v(" Draw Time")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("drawTime")]),t._v(" option for zooming determines where in the chart lifecycle the drag box drawing occurs. Four potential options are available:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Option")]),t._v(" "),a("th",[t._v("Notes")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("'beforeDraw'")])]),t._v(" "),a("td",[t._v("Occurs before any drawing takes place")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("'beforeDatasetsDraw'")])]),t._v(" "),a("td",[t._v("Occurs after drawing of axes, but before datasets")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("'afterDatasetsDraw'")])]),t._v(" "),a("td",[t._v("Occurs after drawing of datasets but before items such as the tooltip")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("'afterDraw'")])]),t._v(" "),a("td",[t._v("After other drawing is completed")])])])]),t._v(" "),a("h4",{attrs:{id:"pinch-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pinch-options"}},[t._v("#")]),t._v(" Pinch options")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("enabled")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Enable zooming via pinch")])])])]),t._v(" "),a("h3",{attrs:{id:"zoom-events"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#zoom-events"}},[t._v("#")]),t._v(" Zoom Events")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Arguments")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("onZoom")])]),t._v(" "),a("td",[a("code",[t._v("{chart}")])]),t._v(" "),a("td",[t._v("Called while the chart is being zoomed")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onZoomComplete")])]),t._v(" "),a("td",[a("code",[t._v("{chart}")])]),t._v(" "),a("td",[t._v("Called once zooming is completed")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onZoomRejected")])]),t._v(" "),a("td",[a("code",[t._v("{chart,event}")])]),t._v(" "),a("td",[t._v("Called when zoom is rejected due to missing modifier key. "),a("code",[t._v("event")]),t._v(" is the a "),a("a",{attrs:{href:"https://hammerjs.github.io/api#event-object",target:"_blank",rel:"noopener noreferrer"}},[t._v("hammer event"),a("OutboundLink")],1),t._v(" that failed")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onZoomStart")])]),t._v(" "),a("td",[a("code",[t._v("{chart,event,point}")])]),t._v(" "),a("td",[t._v("Called when zooming is about to start. If this callback returns false, zooming is aborted and "),a("code",[t._v("onZoomRejected")]),t._v(" is invoked")])])])]),t._v(" "),a("h2",{attrs:{id:"limits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#limits"}},[t._v("#")]),t._v(" Limits")]),t._v(" "),a("p",[t._v("Limits options define the limits per axis for pan and zoom.")]),t._v(" "),a("h3",{attrs:{id:"limit-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#limit-options"}},[t._v("#")]),t._v(" Limit options")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("x")])]),t._v(" "),a("td",[a("a",{attrs:{href:"#scale-limits"}},[a("code",[t._v("ScaleLimits")])])]),t._v(" "),a("td",[t._v("Limits for x-axis")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("y")])]),t._v(" "),a("td",[a("a",{attrs:{href:"#scale-limits"}},[a("code",[t._v("ScaleLimits")])])]),t._v(" "),a("td",[t._v("Limits for y-axis")])])])]),t._v(" "),a("p",[t._v("If you're using multiple or custom axes (scales), you can define limits for those, too.")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'id'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("type")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("data")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("options")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("scales")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("y")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("min")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("max")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("80")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("y2")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("position")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'right'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("min")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("5")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("max")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("5")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("plugins")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("zoom")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("limits")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("y")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("min")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("max")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("100")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("y2")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("min")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("5")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("max")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("5")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h4",{attrs:{id:"scale-limits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scale-limits"}},[t._v("#")]),t._v(" Scale Limits")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("min")])]),t._v(" "),a("td",[a("code",[t._v("number | 'original'")])]),t._v(" "),a("td",[t._v("Minimum allowed value for scale.min")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("max")])]),t._v(" "),a("td",[a("code",[t._v("number | 'original'")])]),t._v(" "),a("td",[t._v("Maximum allowed value for scale.max")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("minRange")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("Minimum allowed range (max - min). This defines the max zoom level.")])])])]),t._v(" "),a("p",[t._v("You may use the keyword "),a("code",[t._v("'original'")]),t._v(" in place of a numeric limit to instruct chartjs-plugin-zoom to use whatever limits the scale had when the chart was first displayed.")])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/master/assets/js/14.97d6b0cb.js b/master/assets/js/14.dd2f48ce.js similarity index 95% rename from master/assets/js/14.97d6b0cb.js rename to master/assets/js/14.dd2f48ce.js index 553b7f86..7660535b 100644 --- a/master/assets/js/14.97d6b0cb.js +++ b/master/assets/js/14.dd2f48ce.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{481:function(n,e,t){"use strict";t.r(e);var o=t(22),a=Object(o.a)({},(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("ContentSlotsDistributor",{attrs:{"slot-key":n.$parent.slotKey}},[t("h1",{attrs:{id:"usage"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#usage"}},[n._v("#")]),n._v(" Usage")]),n._v(" "),t("p",[n._v("Using the zoom and pan plugin is very simple. Once the plugin is "),t("a",{attrs:{href:"./integration"}},[n._v("registered")]),n._v(" zoom options provided to the chart will be used. In this example, scroll zoom is enabled.")]),n._v(" "),t("chart-editor",{attrs:{code:"/* */\nconst config = {\n type: 'line',\n data: {\n labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],\n datasets: [{\n label: 'My First Dataset',\n data: [65, 59, 80, 81, 56, 55, 40],\n fill: false,\n borderColor: 'rgb(75, 192, 192)',\n tension: 0.1\n }]\n },\n options: {\n plugins: {\n zoom: {\n zoom: {\n wheel: {\n enabled: true,\n },\n pinch: {\n enabled: true\n },\n mode: 'xy',\n }\n }\n }\n }\n};\n/* */\n\nmodule.exports = {\n actions: [\n {\n name: 'Reset zoom',\n handler: function(chart) {\n chart.resetZoom();\n }\n }\n ],\n config\n};\n"}})],1)}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{483:function(n,e,t){"use strict";t.r(e);var o=t(22),a=Object(o.a)({},(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("ContentSlotsDistributor",{attrs:{"slot-key":n.$parent.slotKey}},[t("h1",{attrs:{id:"usage"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#usage"}},[n._v("#")]),n._v(" Usage")]),n._v(" "),t("p",[n._v("Using the zoom and pan plugin is very simple. Once the plugin is "),t("a",{attrs:{href:"./integration"}},[n._v("registered")]),n._v(" zoom options provided to the chart will be used. In this example, scroll zoom is enabled.")]),n._v(" "),t("chart-editor",{attrs:{code:"/* */\nconst config = {\n type: 'line',\n data: {\n labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],\n datasets: [{\n label: 'My First Dataset',\n data: [65, 59, 80, 81, 56, 55, 40],\n fill: false,\n borderColor: 'rgb(75, 192, 192)',\n tension: 0.1\n }]\n },\n options: {\n plugins: {\n zoom: {\n zoom: {\n wheel: {\n enabled: true,\n },\n pinch: {\n enabled: true\n },\n mode: 'xy',\n }\n }\n }\n }\n};\n/* */\n\nmodule.exports = {\n actions: [\n {\n name: 'Reset zoom',\n handler: function(chart) {\n chart.resetZoom();\n }\n }\n ],\n config\n};\n"}})],1)}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/master/assets/js/15.adc063da.js b/master/assets/js/15.ae3303d7.js similarity index 79% rename from master/assets/js/15.adc063da.js rename to master/assets/js/15.ae3303d7.js index 13e08969..126f4d1e 100644 --- a/master/assets/js/15.adc063da.js +++ b/master/assets/js/15.ae3303d7.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{482:function(t,e,n){"use strict";n.r(e);var s=n(22),l=Object(s.a)({},(function(){var t=this.$createElement;return(this._self._c||t)("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}})}),[],!1,null,null,null);e.default=l.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{481:function(t,e,n){"use strict";n.r(e);var s=n(22),l=Object(s.a)({},(function(){var t=this.$createElement;return(this._self._c||t)("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}})}),[],!1,null,null,null);e.default=l.exports}}]); \ No newline at end of file diff --git a/master/assets/js/16.56d6a58d.js b/master/assets/js/16.6fea9977.js similarity index 97% rename from master/assets/js/16.56d6a58d.js rename to master/assets/js/16.6fea9977.js index 99ac5982..fcabb477 100644 --- a/master/assets/js/16.56d6a58d.js +++ b/master/assets/js/16.6fea9977.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{483:function(n,o,t){"use strict";t.r(o);var a=t(22),r=Object(a.a)({},(function(){var n=this.$createElement,o=this._self._c||n;return o("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[o("h1",{attrs:{id:"api"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#api"}},[this._v("#")]),this._v(" API")]),this._v(" "),o("chart-editor",{attrs:{code:"// \nconst NUMBER_CFG = {count: 20, min: -100, max: 100};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }, {\n label: 'My Second dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n reverse: true,\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n position: 'top',\n },\n y: {\n position: 'right',\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n }\n};\n// \n\n// \n// Note: changes to these actions are not applied to the buttons.\nconst actions = [\n {\n name: 'Zoom +10%',\n handler(chart) {\n chart.zoom(1.1);\n }\n }, {\n name: 'Zoom -10%',\n handler(chart) {\n chart.zoom(0.9);\n },\n }, {\n name: 'Zoom x +10%',\n handler(chart) {\n chart.zoom({x: 1.1});\n }\n }, {\n name: 'Zoom x -10%',\n handler(chart) {\n chart.zoom({x: 0.9});\n },\n }, {\n name: 'Pan x 100px (anim)',\n handler(chart) {\n chart.pan({x: 100}, undefined, 'default');\n }\n }, {\n name: 'Pan x -100px (anim)',\n handler(chart) {\n chart.pan({x: -100}, undefined, 'default');\n },\n }, {\n name: 'Zoom x: 0..-100, y: 0..100',\n handler(chart) {\n chart.zoomScale('x', {min: -100, max: 0}, 'default');\n chart.zoomScale('y', {min: 0, max: 100}, 'default');\n }\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n// \n\nmodule.exports = {\n actions,\n config\n};\n"}})],1)}),[],!1,null,null,null);o.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{482:function(n,o,t){"use strict";t.r(o);var a=t(22),r=Object(a.a)({},(function(){var n=this.$createElement,o=this._self._c||n;return o("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[o("h1",{attrs:{id:"api"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#api"}},[this._v("#")]),this._v(" API")]),this._v(" "),o("chart-editor",{attrs:{code:"// \nconst NUMBER_CFG = {count: 20, min: -100, max: 100};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }, {\n label: 'My Second dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n reverse: true,\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n position: 'top',\n },\n y: {\n position: 'right',\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n }\n};\n// \n\n// \n// Note: changes to these actions are not applied to the buttons.\nconst actions = [\n {\n name: 'Zoom +10%',\n handler(chart) {\n chart.zoom(1.1);\n }\n }, {\n name: 'Zoom -10%',\n handler(chart) {\n chart.zoom(0.9);\n },\n }, {\n name: 'Zoom x +10%',\n handler(chart) {\n chart.zoom({x: 1.1});\n }\n }, {\n name: 'Zoom x -10%',\n handler(chart) {\n chart.zoom({x: 0.9});\n },\n }, {\n name: 'Pan x 100px (anim)',\n handler(chart) {\n chart.pan({x: 100}, undefined, 'default');\n }\n }, {\n name: 'Pan x -100px (anim)',\n handler(chart) {\n chart.pan({x: -100}, undefined, 'default');\n },\n }, {\n name: 'Zoom x: 0..-100, y: 0..100',\n handler(chart) {\n chart.zoomScale('x', {min: -100, max: 0}, 'default');\n chart.zoomScale('y', {min: 0, max: 100}, 'default');\n }\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n// \n\nmodule.exports = {\n actions,\n config\n};\n"}})],1)}),[],!1,null,null,null);o.default=r.exports}}]); \ No newline at end of file diff --git a/master/assets/js/18.4b9a7c96.js b/master/assets/js/18.b867084d.js similarity index 97% rename from master/assets/js/18.4b9a7c96.js rename to master/assets/js/18.b867084d.js index 80e47fcf..75ee381d 100644 --- a/master/assets/js/18.4b9a7c96.js +++ b/master/assets/js/18.b867084d.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{486:function(n,t,o){"use strict";o.r(t);var a=o(22),e=Object(a.a)({},(function(){var n=this,t=n.$createElement,o=n._self._c||t;return o("ContentSlotsDistributor",{attrs:{"slot-key":n.$parent.slotKey}},[o("h1",{attrs:{id:"category-scale"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#category-scale"}},[n._v("#")]),n._v(" Category Scale")]),n._v(" "),o("p",[n._v("Zooming is performed by clicking and selecting an area over the chart with the mouse. Pan is activated by keeping "),o("code",[n._v("ctrl")]),n._v(" pressed.")]),n._v(" "),o("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 20;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n label: 'Dataset 1',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dataset 2',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dataset 3',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n type: 'category',\n },\n y: {\n type: 'linear',\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n scales: scales,\n plugins: {\n tooltip: false,\n zoom: {\n pan: {\n enabled: true,\n mode: 'x',\n modifierKey: 'ctrl',\n },\n zoom: {\n drag: {\n enabled: true\n },\n mode: 'x',\n },\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{485:function(n,t,o){"use strict";o.r(t);var a=o(22),e=Object(a.a)({},(function(){var n=this,t=n.$createElement,o=n._self._c||t;return o("ContentSlotsDistributor",{attrs:{"slot-key":n.$parent.slotKey}},[o("h1",{attrs:{id:"category-scale"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#category-scale"}},[n._v("#")]),n._v(" Category Scale")]),n._v(" "),o("p",[n._v("Zooming is performed by clicking and selecting an area over the chart with the mouse. Pan is activated by keeping "),o("code",[n._v("ctrl")]),n._v(" pressed.")]),n._v(" "),o("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 20;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n label: 'Dataset 1',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dataset 2',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dataset 3',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n type: 'category',\n },\n y: {\n type: 'linear',\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n scales: scales,\n plugins: {\n tooltip: false,\n zoom: {\n pan: {\n enabled: true,\n mode: 'x',\n modifierKey: 'ctrl',\n },\n zoom: {\n drag: {\n enabled: true\n },\n mode: 'x',\n },\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file diff --git a/master/assets/js/19.14cdd0de.js b/master/assets/js/19.421068fa.js similarity index 97% rename from master/assets/js/19.14cdd0de.js rename to master/assets/js/19.421068fa.js index e51d7335..0f637041 100644 --- a/master/assets/js/19.14cdd0de.js +++ b/master/assets/js/19.421068fa.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{485:function(n,o,t){"use strict";t.r(o);var a=t(22),e=Object(a.a)({},(function(){var n=this,o=n.$createElement,t=n._self._c||o;return t("ContentSlotsDistributor",{attrs:{"slot-key":n.$parent.slotKey}},[t("h1",{attrs:{id:"linear-scales"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#linear-scales"}},[n._v("#")]),n._v(" Linear Scales")]),n._v(" "),t("p",[n._v("Zooming is performed by clicking and selecting an area over the chart with the mouse. Pan is activated by keeping "),t("code",[n._v("ctrl")]),n._v(" pressed.")]),n._v(" "),t("chart-editor",{attrs:{code:"// \nconst NUMBER_CFG = {count: 20, min: -100, max: 100};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }, {\n label: 'My Second dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n reverse: true,\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n position: 'top',\n },\n y: {\n position: 'right',\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst dragColor = Utils.randomColor(0.4);\nconst zoomOptions = {\n pan: {\n enabled: true,\n mode: 'xy',\n modifierKey: 'ctrl',\n },\n zoom: {\n mode: 'xy',\n drag: {\n enabled: true,\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n backgroundColor: 'rgba(54, 162, 235, 0.3)'\n }\n }\n};\n// \n\nconst zoomStatus = () => zoomOptions.zoom.drag.enabled ? 'enabled' : 'disabled';\n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => 'Zoom: ' + zoomStatus()\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.drag.enabled = !zoomOptions.zoom.drag.enabled;\n chart.update();\n }\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);o.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{486:function(n,o,t){"use strict";t.r(o);var a=t(22),e=Object(a.a)({},(function(){var n=this,o=n.$createElement,t=n._self._c||o;return t("ContentSlotsDistributor",{attrs:{"slot-key":n.$parent.slotKey}},[t("h1",{attrs:{id:"linear-scales"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#linear-scales"}},[n._v("#")]),n._v(" Linear Scales")]),n._v(" "),t("p",[n._v("Zooming is performed by clicking and selecting an area over the chart with the mouse. Pan is activated by keeping "),t("code",[n._v("ctrl")]),n._v(" pressed.")]),n._v(" "),t("chart-editor",{attrs:{code:"// \nconst NUMBER_CFG = {count: 20, min: -100, max: 100};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }, {\n label: 'My Second dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n reverse: true,\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n position: 'top',\n },\n y: {\n position: 'right',\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst dragColor = Utils.randomColor(0.4);\nconst zoomOptions = {\n pan: {\n enabled: true,\n mode: 'xy',\n modifierKey: 'ctrl',\n },\n zoom: {\n mode: 'xy',\n drag: {\n enabled: true,\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n backgroundColor: 'rgba(54, 162, 235, 0.3)'\n }\n }\n};\n// \n\nconst zoomStatus = () => zoomOptions.zoom.drag.enabled ? 'enabled' : 'disabled';\n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => 'Zoom: ' + zoomStatus()\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.drag.enabled = !zoomOptions.zoom.drag.enabled;\n chart.update();\n }\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);o.default=e.exports}}]); \ No newline at end of file diff --git a/master/assets/js/21.ec337c33.js b/master/assets/js/21.b5e6b612.js similarity index 98% rename from master/assets/js/21.ec337c33.js rename to master/assets/js/21.b5e6b612.js index ec9e2255..bf667f68 100644 --- a/master/assets/js/21.ec337c33.js +++ b/master/assets/js/21.b5e6b612.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{491:function(n,o,t){"use strict";t.r(o);var a=t(22),e=Object(a.a)({},(function(){var n=this,o=n.$createElement,t=n._self._c||o;return t("ContentSlotsDistributor",{attrs:{"slot-key":n.$parent.slotKey}},[t("h1",{attrs:{id:"time-scale"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#time-scale"}},[n._v("#")]),n._v(" Time Scale")]),n._v(" "),t("p",[n._v("Zooming is performed by clicking and selecting an area over the chart with the mouse. Pan is activated by keeping "),t("code",[n._v("ctrl")]),n._v(" pressed.")]),n._v(" "),t("chart-editor",{attrs:{code:"// \nconst NUMBER_CFG = {count: 500, min: 0, max: 1000};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.hourlyPoints(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scales = {\n x: {\n position: 'bottom',\n type: 'time',\n ticks: {\n autoSkip: true,\n autoSkipPadding: 50,\n maxRotation: 0\n },\n time: {\n displayFormats: {\n hour: 'HH:mm',\n minute: 'HH:mm',\n second: 'HH:mm:ss'\n }\n }\n },\n y: {\n position: 'right',\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n },\n};\n// \n\n// \nconst zoomOptions = {\n pan: {\n enabled: true,\n modifierKey: 'ctrl',\n },\n zoom: {\n drag: {\n enabled: true\n },\n mode: 'xy',\n },\n};\n// \n\nconst panStatus = () => zoomOptions.pan.enabled ? 'enabled' : 'disabled';\nconst zoomStatus = () => zoomOptions.zoom.drag.enabled ? 'enabled' : 'disabled';\n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => 'Zoom: ' + zoomStatus() + ', Pan: ' + panStatus()\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.drag.enabled = !zoomOptions.zoom.drag.enabled;\n chart.update();\n }\n }, {\n name: 'Toggle pan',\n handler(chart) {\n zoomOptions.pan.enabled = !zoomOptions.pan.enabled;\n chart.update();\n },\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }, {\n name: 'Zoom to next week',\n handler(chart) {\n chart.zoomScale('x', Utils.nextWeek(), 'default');\n chart.update();\n }\n }, {\n name: 'Zoom to 400-600',\n handler(chart) {\n chart.zoomScale('y', {min: 400, max: 600}, 'default');\n chart.update();\n }\n }\n\n];\n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);o.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{488:function(n,o,t){"use strict";t.r(o);var a=t(22),e=Object(a.a)({},(function(){var n=this,o=n.$createElement,t=n._self._c||o;return t("ContentSlotsDistributor",{attrs:{"slot-key":n.$parent.slotKey}},[t("h1",{attrs:{id:"time-scale"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#time-scale"}},[n._v("#")]),n._v(" Time Scale")]),n._v(" "),t("p",[n._v("Zooming is performed by clicking and selecting an area over the chart with the mouse. Pan is activated by keeping "),t("code",[n._v("ctrl")]),n._v(" pressed.")]),n._v(" "),t("chart-editor",{attrs:{code:"// \nconst NUMBER_CFG = {count: 500, min: 0, max: 1000};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.hourlyPoints(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scales = {\n x: {\n position: 'bottom',\n type: 'time',\n ticks: {\n autoSkip: true,\n autoSkipPadding: 50,\n maxRotation: 0\n },\n time: {\n displayFormats: {\n hour: 'HH:mm',\n minute: 'HH:mm',\n second: 'HH:mm:ss'\n }\n }\n },\n y: {\n position: 'right',\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n },\n};\n// \n\n// \nconst zoomOptions = {\n pan: {\n enabled: true,\n modifierKey: 'ctrl',\n },\n zoom: {\n drag: {\n enabled: true\n },\n mode: 'xy',\n },\n};\n// \n\nconst panStatus = () => zoomOptions.pan.enabled ? 'enabled' : 'disabled';\nconst zoomStatus = () => zoomOptions.zoom.drag.enabled ? 'enabled' : 'disabled';\n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => 'Zoom: ' + zoomStatus() + ', Pan: ' + panStatus()\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.drag.enabled = !zoomOptions.zoom.drag.enabled;\n chart.update();\n }\n }, {\n name: 'Toggle pan',\n handler(chart) {\n zoomOptions.pan.enabled = !zoomOptions.pan.enabled;\n chart.update();\n },\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }, {\n name: 'Zoom to next week',\n handler(chart) {\n chart.zoomScale('x', Utils.nextWeek(), 'default');\n chart.update();\n }\n }, {\n name: 'Zoom to 400-600',\n handler(chart) {\n chart.zoomScale('y', {min: 400, max: 600}, 'default');\n chart.update();\n }\n }\n\n];\n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);o.default=e.exports}}]); \ No newline at end of file diff --git a/master/assets/js/22.5b98f5d3.js b/master/assets/js/22.ec31d7e1.js similarity index 97% rename from master/assets/js/22.5b98f5d3.js rename to master/assets/js/22.ec31d7e1.js index a650eee3..8996714f 100644 --- a/master/assets/js/22.5b98f5d3.js +++ b/master/assets/js/22.ec31d7e1.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{488:function(n,o,t){"use strict";t.r(o);var e=t(22),a=Object(e.a)({},(function(){var n=this,o=n.$createElement,t=n._self._c||o;return t("ContentSlotsDistributor",{attrs:{"slot-key":n.$parent.slotKey}},[t("h1",{attrs:{id:"timeseries-scale"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#timeseries-scale"}},[n._v("#")]),n._v(" Timeseries Scale")]),n._v(" "),t("p",[n._v("Zooming is performed by clicking and selecting an area over the chart with the mouse. Pan is activated by keeping "),t("code",[n._v("ctrl")]),n._v(" pressed.")]),n._v(" "),t("chart-editor",{attrs:{code:"// \nconst NUMBER_CFG = {count: 200, min: 0, max: 100};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.officeHourPoints(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scales = {\n x: {\n position: 'bottom',\n type: 'timeseries',\n ticks: {\n autoSkip: true,\n autoSkipPadding: 50,\n maxRotation: 0,\n major: {\n enabled: true\n }\n },\n time: {\n displayFormats: {\n hour: 'HH:mm',\n minute: 'HH:mm',\n second: 'HH:mm:ss'\n }\n }\n },\n y: {\n position: 'right',\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n },\n};\n// \n\n// \nconst zoomOptions = {\n pan: {\n enabled: true,\n modifierKey: 'ctrl',\n },\n zoom: {\n drag: {\n enabled: true,\n },\n mode: 'xy',\n },\n};\n// \n\nconst panStatus = () => zoomOptions.pan.enabled ? 'enabled' : 'disabled';\nconst zoomStatus = () => zoomOptions.zoom.drag.enabled ? 'enabled' : 'disabled';\n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => 'Zoom: ' + zoomStatus() + ', Pan: ' + panStatus()\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.drag.enabled = !zoomOptions.zoom.drag.enabled;\n chart.update();\n }\n }, {\n name: 'Toggle pan',\n handler(chart) {\n zoomOptions.pan.enabled = !zoomOptions.pan.enabled;\n chart.update();\n },\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n\n];\n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);o.default=a.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{489:function(n,o,t){"use strict";t.r(o);var e=t(22),a=Object(e.a)({},(function(){var n=this,o=n.$createElement,t=n._self._c||o;return t("ContentSlotsDistributor",{attrs:{"slot-key":n.$parent.slotKey}},[t("h1",{attrs:{id:"timeseries-scale"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#timeseries-scale"}},[n._v("#")]),n._v(" Timeseries Scale")]),n._v(" "),t("p",[n._v("Zooming is performed by clicking and selecting an area over the chart with the mouse. Pan is activated by keeping "),t("code",[n._v("ctrl")]),n._v(" pressed.")]),n._v(" "),t("chart-editor",{attrs:{code:"// \nconst NUMBER_CFG = {count: 200, min: 0, max: 100};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.officeHourPoints(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scales = {\n x: {\n position: 'bottom',\n type: 'timeseries',\n ticks: {\n autoSkip: true,\n autoSkipPadding: 50,\n maxRotation: 0,\n major: {\n enabled: true\n }\n },\n time: {\n displayFormats: {\n hour: 'HH:mm',\n minute: 'HH:mm',\n second: 'HH:mm:ss'\n }\n }\n },\n y: {\n position: 'right',\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n },\n};\n// \n\n// \nconst zoomOptions = {\n pan: {\n enabled: true,\n modifierKey: 'ctrl',\n },\n zoom: {\n drag: {\n enabled: true,\n },\n mode: 'xy',\n },\n};\n// \n\nconst panStatus = () => zoomOptions.pan.enabled ? 'enabled' : 'disabled';\nconst zoomStatus = () => zoomOptions.zoom.drag.enabled ? 'enabled' : 'disabled';\n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => 'Zoom: ' + zoomStatus() + ', Pan: ' + panStatus()\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.drag.enabled = !zoomOptions.zoom.drag.enabled;\n chart.update();\n }\n }, {\n name: 'Toggle pan',\n handler(chart) {\n zoomOptions.pan.enabled = !zoomOptions.pan.enabled;\n chart.update();\n },\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n\n];\n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);o.default=a.exports}}]); \ No newline at end of file diff --git a/master/assets/js/23.52240d50.js b/master/assets/js/23.0f9e485e.js similarity index 98% rename from master/assets/js/23.52240d50.js rename to master/assets/js/23.0f9e485e.js index 60ab0e14..2897c0e6 100644 --- a/master/assets/js/23.52240d50.js +++ b/master/assets/js/23.0f9e485e.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{489:function(n,t,a){"use strict";a.r(t);var o=a(22),e=Object(o.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"fetch-data"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#fetch-data"}},[this._v("#")]),this._v(" Fetch data")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst start = new Date().valueOf();\nconst end = start + 1000 * 60 * 60 * 24 * 2;\nconst allData = [];\nlet y = 100;\nfor (let x = start; x <= end; x += 1000) {\n y += 5 - Math.random() * 10;\n allData.push({x, y});\n}\n\nfunction fetchData(x1, x2) {\n const step = Math.max(1, Math.round((x2 - x1) / 100000));\n const data = [];\n let i = 0;\n while (i < allData.length && allData[i].x < x1) {\n i++;\n }\n while (i < allData.length && allData[i].x <= x2) {\n data.push(allData[i]);\n i += step;\n }\n return data;\n}\n// \n\n// \nlet timer;\nfunction startFetch({chart}) {\n const {min, max} = chart.scales.x;\n clearTimeout(timer);\n timer = setTimeout(() => {\n console.log('Fetched data between ' + min + ' and ' + max);\n chart.data.datasets[0].data = fetchData(min, max);\n chart.stop(); // make sure animations are not running\n chart.update('none');\n }, 500);\n}\n// \n\n// \nconst scales = {\n x: {\n position: 'bottom',\n min: start,\n max: end,\n type: 'time',\n ticks: {\n autoSkip: true,\n autoSkipPadding: 50,\n maxRotation: 0\n },\n time: {\n displayFormats: {\n hour: 'HH:mm',\n minute: 'HH:mm',\n second: 'HH:mm:ss'\n }\n }\n },\n y: {\n type: 'linear',\n position: 'left',\n },\n};\n// \n\n// \nconst zoomOptions = {\n limits: {\n x: {min: 'original', max: 'original', minRange: 60 * 1000},\n },\n pan: {\n enabled: true,\n mode: 'x',\n modifierKey: 'ctrl',\n onPanComplete: startFetch\n },\n zoom: {\n wheel: {\n enabled: true,\n },\n drag: {\n enabled: true,\n },\n pinch: {\n enabled: true\n },\n mode: 'x',\n onZoomComplete: startFetch\n }\n};\n// \n\nconst zoomStatus = (chart) => 'zoom level: ' + chart.getZoomLevel() + '';\n\n// \nconst config = {\n type: 'line',\n data: {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: fetchData(start, end),\n }]\n },\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => zoomStatus(ctx.chart)\n }\n },\n transitions: {\n zoom: {\n animation: {\n duration: 100\n }\n }\n }\n }\n};\n// \n\nconst actions = [\n {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom('zoom');\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n output: 'console.log output'\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{490:function(n,t,a){"use strict";a.r(t);var o=a(22),e=Object(o.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"fetch-data"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#fetch-data"}},[this._v("#")]),this._v(" Fetch data")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst start = new Date().valueOf();\nconst end = start + 1000 * 60 * 60 * 24 * 2;\nconst allData = [];\nlet y = 100;\nfor (let x = start; x <= end; x += 1000) {\n y += 5 - Math.random() * 10;\n allData.push({x, y});\n}\n\nfunction fetchData(x1, x2) {\n const step = Math.max(1, Math.round((x2 - x1) / 100000));\n const data = [];\n let i = 0;\n while (i < allData.length && allData[i].x < x1) {\n i++;\n }\n while (i < allData.length && allData[i].x <= x2) {\n data.push(allData[i]);\n i += step;\n }\n return data;\n}\n// \n\n// \nlet timer;\nfunction startFetch({chart}) {\n const {min, max} = chart.scales.x;\n clearTimeout(timer);\n timer = setTimeout(() => {\n console.log('Fetched data between ' + min + ' and ' + max);\n chart.data.datasets[0].data = fetchData(min, max);\n chart.stop(); // make sure animations are not running\n chart.update('none');\n }, 500);\n}\n// \n\n// \nconst scales = {\n x: {\n position: 'bottom',\n min: start,\n max: end,\n type: 'time',\n ticks: {\n autoSkip: true,\n autoSkipPadding: 50,\n maxRotation: 0\n },\n time: {\n displayFormats: {\n hour: 'HH:mm',\n minute: 'HH:mm',\n second: 'HH:mm:ss'\n }\n }\n },\n y: {\n type: 'linear',\n position: 'left',\n },\n};\n// \n\n// \nconst zoomOptions = {\n limits: {\n x: {min: 'original', max: 'original', minRange: 60 * 1000},\n },\n pan: {\n enabled: true,\n mode: 'x',\n modifierKey: 'ctrl',\n onPanComplete: startFetch\n },\n zoom: {\n wheel: {\n enabled: true,\n },\n drag: {\n enabled: true,\n },\n pinch: {\n enabled: true\n },\n mode: 'x',\n onZoomComplete: startFetch\n }\n};\n// \n\nconst zoomStatus = (chart) => 'zoom level: ' + chart.getZoomLevel() + '';\n\n// \nconst config = {\n type: 'line',\n data: {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: fetchData(start, end),\n }]\n },\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => zoomStatus(ctx.chart)\n }\n },\n transitions: {\n zoom: {\n animation: {\n duration: 100\n }\n }\n }\n }\n};\n// \n\nconst actions = [\n {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom('zoom');\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n output: 'console.log output'\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file diff --git a/master/assets/js/25.f80fd3b4.js b/master/assets/js/25.518030f2.js similarity index 97% rename from master/assets/js/25.f80fd3b4.js rename to master/assets/js/25.518030f2.js index 3b593f3d..7d60c243 100644 --- a/master/assets/js/25.f80fd3b4.js +++ b/master/assets/js/25.518030f2.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{490:function(n,t,o){"use strict";o.r(t);var a=o(22),s=Object(a.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"category-scale"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#category-scale"}},[this._v("#")]),this._v(" Category Scale")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 20;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n label: 'Dataset 1',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dataset 2',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dataset 3',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n type: 'category',\n min: 5,\n max: 11,\n },\n y: {\n type: 'linear'\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: {\n pan: {\n enabled: true,\n mode: 'xy',\n threshold: 5,\n },\n zoom: {\n wheel: {\n enabled: true\n },\n pinch: {\n enabled: true\n },\n mode: 'xy',\n },\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{491:function(n,t,o){"use strict";o.r(t);var a=o(22),s=Object(a.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"category-scale"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#category-scale"}},[this._v("#")]),this._v(" Category Scale")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 20;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n label: 'Dataset 1',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dataset 2',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dataset 3',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n type: 'category',\n min: 5,\n max: 11,\n },\n y: {\n type: 'linear'\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: {\n pan: {\n enabled: true,\n mode: 'xy',\n threshold: 5,\n },\n zoom: {\n wheel: {\n enabled: true\n },\n pinch: {\n enabled: true\n },\n mode: 'xy',\n },\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/master/assets/js/26.c0eecfa7.js b/master/assets/js/26.a9dc1653.js similarity index 99% rename from master/assets/js/26.c0eecfa7.js rename to master/assets/js/26.a9dc1653.js index ca14760f..b98a06cc 100644 --- a/master/assets/js/26.c0eecfa7.js +++ b/master/assets/js/26.a9dc1653.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{494:function(e,t,i){"use strict";i.r(t);var a=i(22),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[i("h1",{attrs:{id:"click-to-zoom"}},[i("a",{staticClass:"header-anchor",attrs:{href:"#click-to-zoom"}},[e._v("#")]),e._v(" Click to Zoom")]),e._v(" "),i("div",{staticClass:"custom-block tip"},[i("p",{staticClass:"custom-block-title"},[e._v("NOTE")]),e._v(" "),i("p",[e._v("The following text is there on purpose, so the page is scrollable.\nThis demoes that the chart does not consume the wheel until clicked.")])]),e._v(" "),i("p",[e._v("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Fringilla ut morbi tincidunt augue interdum velit euismod. Elit pellentesque habitant morbi tristique senectus et netus. Consectetur adipiscing elit pellentesque habitant morbi. Id faucibus nisl tincidunt eget nullam non nisi est sit. Blandit turpis cursus in hac habitasse. Vulputate eu scelerisque felis imperdiet proin fermentum leo vel. Ornare massa eget egestas purus. A diam sollicitudin tempor id eu nisl nunc. Augue mauris augue neque gravida in fermentum et sollicitudin. Dolor purus non enim praesent elementum facilisis leo vel fringilla. Habitant morbi tristique senectus et netus et malesuada. Nulla pharetra diam sit amet nisl suscipit adipiscing bibendum est. Gravida dictum fusce ut placerat orci nulla pellentesque.")]),e._v(" "),i("p",[e._v("Semper viverra nam libero justo laoreet sit. Pretium vulputate sapien nec sagittis aliquam malesuada bibendum arcu vitae. Risus ultricies tristique nulla aliquet enim tortor at auctor urna. Consequat semper viverra nam libero justo laoreet sit amet. Magna ac placerat vestibulum lectus mauris ultrices eros. Dolor purus non enim praesent elementum facilisis leo vel. Enim eu turpis egestas pretium aenean pharetra. Vitae purus faucibus ornare suspendisse sed nisi lacus. Senectus et netus et malesuada fames. Nec feugiat in fermentum posuere urna nec tincidunt praesent. Accumsan lacus vel facilisis volutpat. Lectus quam id leo in vitae turpis massa. Cras sed felis eget velit aliquet. Volutpat maecenas volutpat blandit aliquam.")]),e._v(" "),i("p",[e._v("Volutpat lacus laoreet non curabitur. Diam donec adipiscing tristique risus. Fusce id velit ut tortor pretium viverra suspendisse. Dui ut ornare lectus sit amet est. Pharetra sit amet aliquam id. Porttitor massa id neque aliquam vestibulum morbi blandit. Viverra adipiscing at in tellus integer feugiat scelerisque varius morbi. Quam elementum pulvinar etiam non quam. Congue quisque egestas diam in arcu cursus euismod quis. Dictum fusce ut placerat orci nulla pellentesque. Ut placerat orci nulla pellentesque dignissim enim sit amet. Sagittis id consectetur purus ut faucibus pulvinar elementum integer. Dui ut ornare lectus sit amet est.")]),e._v(" "),i("p",[e._v("Ut tortor pretium viverra suspendisse potenti nullam ac tortor. Mauris a diam maecenas sed enim. Tellus in hac habitasse platea dictumst vestibulum rhoncus. Cras sed felis eget velit aliquet. Purus viverra accumsan in nisl nisi. Sed risus ultricies tristique nulla aliquet enim tortor at. Integer quis auctor elit sed vulputate mi sit amet mauris. Adipiscing elit duis tristique sollicitudin nibh sit amet commodo. Risus feugiat in ante metus dictum at. Posuere urna nec tincidunt praesent semper. Auctor elit sed vulputate mi sit amet mauris commodo. Senectus et netus et malesuada fames ac turpis egestas integer. Varius morbi enim nunc faucibus a pellentesque. Sed felis eget velit aliquet sagittis id. Ac auctor augue mauris augue neque gravida. Etiam erat velit scelerisque in dictum non consectetur a erat.")]),e._v(" "),i("p",[e._v("Tortor condimentum lacinia quis vel eros donec ac. Phasellus vestibulum lorem sed risus ultricies tristique. Vitae tortor condimentum lacinia quis vel eros donec. Morbi tempus iaculis urna id volutpat lacus laoreet non curabitur. Ut pharetra sit amet aliquam id diam. Eu non diam phasellus vestibulum lorem. Pharetra pharetra massa massa ultricies mi. Donec ultrices tincidunt arcu non. Sagittis orci a scelerisque purus semper eget duis. In iaculis nunc sed augue lacus viverra. Vitae proin sagittis nisl rhoncus mattis rhoncus urna neque. Consequat mauris nunc congue nisi vitae suscipit tellus mauris a. Massa placerat duis ultricies lacus sed turpis tincidunt id. Sit amet tellus cras adipiscing enim eu turpis. Amet porttitor eget dolor morbi non arcu risus quis varius. Potenti nullam ac tortor vitae purus.")]),e._v(" "),i("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 70;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: DATA_COUNT});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n stack: 'combined',\n type: 'bar'\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n stack: 'combined'\n }\n ]\n};\n// \n\n// \nconst zoomOptions = {\n limits: {\n y: {min: 0, max: 200, minRange: 50}\n },\n pan: {\n enabled: true,\n mode: 'xy',\n },\n zoom: {\n wheel: {\n enabled: false,\n },\n pinch: {\n enabled: false\n },\n mode: 'xy',\n }\n};\n// \n\n// \nconst borderPlugin = {\n id: 'chartAreaBorder',\n beforeDraw(chart, args, options) {\n const {ctx, chartArea: {left, top, width, height}} = chart;\n if (chart.options.plugins.zoom.zoom.wheel.enabled) {\n ctx.save();\n ctx.strokeStyle = 'red';\n ctx.lineWidth = 1;\n ctx.strokeRect(left, top, width, height);\n ctx.restore();\n }\n }\n};\n// \n\nconst zoomStatus = () => 'Zoom: ' + (zoomOptions.zoom.wheel.enabled ? 'enabled' : 'disabled');\n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n scales: {y: {stacked: true, min: 0}},\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: zoomStatus\n }\n },\n onClick(e) {\n const chart = e.chart;\n chart.options.plugins.zoom.zoom.wheel.enabled = !chart.options.plugins.zoom.zoom.wheel.enabled;\n chart.options.plugins.zoom.zoom.pinch.enabled = !chart.options.plugins.zoom.zoom.pinch.enabled;\n chart.update();\n }\n },\n plugins: [borderPlugin]\n};\n// \n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers(NUMBER_CFG);\n });\n chart.update();\n }\n }, {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.wheel.enabled = !zoomOptions.zoom.wheel.enabled;\n chart.update();\n }\n }, {\n name: 'Toggle pan',\n handler(chart) {\n zoomOptions.pan.enabled = !zoomOptions.pan.enabled;\n chart.update();\n },\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n"}}),i("p",[e._v("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Fringilla ut morbi tincidunt augue interdum velit euismod. Elit pellentesque habitant morbi tristique senectus et netus. Consectetur adipiscing elit pellentesque habitant morbi. Id faucibus nisl tincidunt eget nullam non nisi est sit. Blandit turpis cursus in hac habitasse. Vulputate eu scelerisque felis imperdiet proin fermentum leo vel. Ornare massa eget egestas purus. A diam sollicitudin tempor id eu nisl nunc. Augue mauris augue neque gravida in fermentum et sollicitudin. Dolor purus non enim praesent elementum facilisis leo vel fringilla. Habitant morbi tristique senectus et netus et malesuada. Nulla pharetra diam sit amet nisl suscipit adipiscing bibendum est. Gravida dictum fusce ut placerat orci nulla pellentesque.")]),e._v(" "),i("p",[e._v("Semper viverra nam libero justo laoreet sit. Pretium vulputate sapien nec sagittis aliquam malesuada bibendum arcu vitae. Risus ultricies tristique nulla aliquet enim tortor at auctor urna. Consequat semper viverra nam libero justo laoreet sit amet. Magna ac placerat vestibulum lectus mauris ultrices eros. Dolor purus non enim praesent elementum facilisis leo vel. Enim eu turpis egestas pretium aenean pharetra. Vitae purus faucibus ornare suspendisse sed nisi lacus. Senectus et netus et malesuada fames. Nec feugiat in fermentum posuere urna nec tincidunt praesent. Accumsan lacus vel facilisis volutpat. Lectus quam id leo in vitae turpis massa. Cras sed felis eget velit aliquet. Volutpat maecenas volutpat blandit aliquam.")]),e._v(" "),i("p",[e._v("Volutpat lacus laoreet non curabitur. Diam donec adipiscing tristique risus. Fusce id velit ut tortor pretium viverra suspendisse. Dui ut ornare lectus sit amet est. Pharetra sit amet aliquam id. Porttitor massa id neque aliquam vestibulum morbi blandit. Viverra adipiscing at in tellus integer feugiat scelerisque varius morbi. Quam elementum pulvinar etiam non quam. Congue quisque egestas diam in arcu cursus euismod quis. Dictum fusce ut placerat orci nulla pellentesque. Ut placerat orci nulla pellentesque dignissim enim sit amet. Sagittis id consectetur purus ut faucibus pulvinar elementum integer. Dui ut ornare lectus sit amet est.")]),e._v(" "),i("p",[e._v("Ut tortor pretium viverra suspendisse potenti nullam ac tortor. Mauris a diam maecenas sed enim. Tellus in hac habitasse platea dictumst vestibulum rhoncus. Cras sed felis eget velit aliquet. Purus viverra accumsan in nisl nisi. Sed risus ultricies tristique nulla aliquet enim tortor at. Integer quis auctor elit sed vulputate mi sit amet mauris. Adipiscing elit duis tristique sollicitudin nibh sit amet commodo. Risus feugiat in ante metus dictum at. Posuere urna nec tincidunt praesent semper. Auctor elit sed vulputate mi sit amet mauris commodo. Senectus et netus et malesuada fames ac turpis egestas integer. Varius morbi enim nunc faucibus a pellentesque. Sed felis eget velit aliquet sagittis id. Ac auctor augue mauris augue neque gravida. Etiam erat velit scelerisque in dictum non consectetur a erat.")]),e._v(" "),i("p",[e._v("Tortor condimentum lacinia quis vel eros donec ac. Phasellus vestibulum lorem sed risus ultricies tristique. Vitae tortor condimentum lacinia quis vel eros donec. Morbi tempus iaculis urna id volutpat lacus laoreet non curabitur. Ut pharetra sit amet aliquam id diam. Eu non diam phasellus vestibulum lorem. Pharetra pharetra massa massa ultricies mi. Donec ultrices tincidunt arcu non. Sagittis orci a scelerisque purus semper eget duis. In iaculis nunc sed augue lacus viverra. Vitae proin sagittis nisl rhoncus mattis rhoncus urna neque. Consequat mauris nunc congue nisi vitae suscipit tellus mauris a. Massa placerat duis ultricies lacus sed turpis tincidunt id. Sit amet tellus cras adipiscing enim eu turpis. Amet porttitor eget dolor morbi non arcu risus quis varius. Potenti nullam ac tortor vitae purus.")])],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{493:function(e,t,i){"use strict";i.r(t);var a=i(22),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[i("h1",{attrs:{id:"click-to-zoom"}},[i("a",{staticClass:"header-anchor",attrs:{href:"#click-to-zoom"}},[e._v("#")]),e._v(" Click to Zoom")]),e._v(" "),i("div",{staticClass:"custom-block tip"},[i("p",{staticClass:"custom-block-title"},[e._v("NOTE")]),e._v(" "),i("p",[e._v("The following text is there on purpose, so the page is scrollable.\nThis demoes that the chart does not consume the wheel until clicked.")])]),e._v(" "),i("p",[e._v("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Fringilla ut morbi tincidunt augue interdum velit euismod. Elit pellentesque habitant morbi tristique senectus et netus. Consectetur adipiscing elit pellentesque habitant morbi. Id faucibus nisl tincidunt eget nullam non nisi est sit. Blandit turpis cursus in hac habitasse. Vulputate eu scelerisque felis imperdiet proin fermentum leo vel. Ornare massa eget egestas purus. A diam sollicitudin tempor id eu nisl nunc. Augue mauris augue neque gravida in fermentum et sollicitudin. Dolor purus non enim praesent elementum facilisis leo vel fringilla. Habitant morbi tristique senectus et netus et malesuada. Nulla pharetra diam sit amet nisl suscipit adipiscing bibendum est. Gravida dictum fusce ut placerat orci nulla pellentesque.")]),e._v(" "),i("p",[e._v("Semper viverra nam libero justo laoreet sit. Pretium vulputate sapien nec sagittis aliquam malesuada bibendum arcu vitae. Risus ultricies tristique nulla aliquet enim tortor at auctor urna. Consequat semper viverra nam libero justo laoreet sit amet. Magna ac placerat vestibulum lectus mauris ultrices eros. Dolor purus non enim praesent elementum facilisis leo vel. Enim eu turpis egestas pretium aenean pharetra. Vitae purus faucibus ornare suspendisse sed nisi lacus. Senectus et netus et malesuada fames. Nec feugiat in fermentum posuere urna nec tincidunt praesent. Accumsan lacus vel facilisis volutpat. Lectus quam id leo in vitae turpis massa. Cras sed felis eget velit aliquet. Volutpat maecenas volutpat blandit aliquam.")]),e._v(" "),i("p",[e._v("Volutpat lacus laoreet non curabitur. Diam donec adipiscing tristique risus. Fusce id velit ut tortor pretium viverra suspendisse. Dui ut ornare lectus sit amet est. Pharetra sit amet aliquam id. Porttitor massa id neque aliquam vestibulum morbi blandit. Viverra adipiscing at in tellus integer feugiat scelerisque varius morbi. Quam elementum pulvinar etiam non quam. Congue quisque egestas diam in arcu cursus euismod quis. Dictum fusce ut placerat orci nulla pellentesque. Ut placerat orci nulla pellentesque dignissim enim sit amet. Sagittis id consectetur purus ut faucibus pulvinar elementum integer. Dui ut ornare lectus sit amet est.")]),e._v(" "),i("p",[e._v("Ut tortor pretium viverra suspendisse potenti nullam ac tortor. Mauris a diam maecenas sed enim. Tellus in hac habitasse platea dictumst vestibulum rhoncus. Cras sed felis eget velit aliquet. Purus viverra accumsan in nisl nisi. Sed risus ultricies tristique nulla aliquet enim tortor at. Integer quis auctor elit sed vulputate mi sit amet mauris. Adipiscing elit duis tristique sollicitudin nibh sit amet commodo. Risus feugiat in ante metus dictum at. Posuere urna nec tincidunt praesent semper. Auctor elit sed vulputate mi sit amet mauris commodo. Senectus et netus et malesuada fames ac turpis egestas integer. Varius morbi enim nunc faucibus a pellentesque. Sed felis eget velit aliquet sagittis id. Ac auctor augue mauris augue neque gravida. Etiam erat velit scelerisque in dictum non consectetur a erat.")]),e._v(" "),i("p",[e._v("Tortor condimentum lacinia quis vel eros donec ac. Phasellus vestibulum lorem sed risus ultricies tristique. Vitae tortor condimentum lacinia quis vel eros donec. Morbi tempus iaculis urna id volutpat lacus laoreet non curabitur. Ut pharetra sit amet aliquam id diam. Eu non diam phasellus vestibulum lorem. Pharetra pharetra massa massa ultricies mi. Donec ultrices tincidunt arcu non. Sagittis orci a scelerisque purus semper eget duis. In iaculis nunc sed augue lacus viverra. Vitae proin sagittis nisl rhoncus mattis rhoncus urna neque. Consequat mauris nunc congue nisi vitae suscipit tellus mauris a. Massa placerat duis ultricies lacus sed turpis tincidunt id. Sit amet tellus cras adipiscing enim eu turpis. Amet porttitor eget dolor morbi non arcu risus quis varius. Potenti nullam ac tortor vitae purus.")]),e._v(" "),i("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 70;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: DATA_COUNT});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n stack: 'combined',\n type: 'bar'\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n stack: 'combined'\n }\n ]\n};\n// \n\n// \nconst zoomOptions = {\n limits: {\n y: {min: 0, max: 200, minRange: 50}\n },\n pan: {\n enabled: true,\n mode: 'xy',\n },\n zoom: {\n wheel: {\n enabled: false,\n },\n pinch: {\n enabled: false\n },\n mode: 'xy',\n }\n};\n// \n\n// \nconst borderPlugin = {\n id: 'chartAreaBorder',\n beforeDraw(chart, args, options) {\n const {ctx, chartArea: {left, top, width, height}} = chart;\n if (chart.options.plugins.zoom.zoom.wheel.enabled) {\n ctx.save();\n ctx.strokeStyle = 'red';\n ctx.lineWidth = 1;\n ctx.strokeRect(left, top, width, height);\n ctx.restore();\n }\n }\n};\n// \n\nconst zoomStatus = () => 'Zoom: ' + (zoomOptions.zoom.wheel.enabled ? 'enabled' : 'disabled');\n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n scales: {y: {stacked: true, min: 0}},\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: zoomStatus\n }\n },\n onClick(e) {\n const chart = e.chart;\n chart.options.plugins.zoom.zoom.wheel.enabled = !chart.options.plugins.zoom.zoom.wheel.enabled;\n chart.options.plugins.zoom.zoom.pinch.enabled = !chart.options.plugins.zoom.zoom.pinch.enabled;\n chart.update();\n }\n },\n plugins: [borderPlugin]\n};\n// \n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers(NUMBER_CFG);\n });\n chart.update();\n }\n }, {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.wheel.enabled = !zoomOptions.zoom.wheel.enabled;\n chart.update();\n }\n }, {\n name: 'Toggle pan',\n handler(chart) {\n zoomOptions.pan.enabled = !zoomOptions.pan.enabled;\n chart.update();\n },\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n"}}),i("p",[e._v("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Fringilla ut morbi tincidunt augue interdum velit euismod. Elit pellentesque habitant morbi tristique senectus et netus. Consectetur adipiscing elit pellentesque habitant morbi. Id faucibus nisl tincidunt eget nullam non nisi est sit. Blandit turpis cursus in hac habitasse. Vulputate eu scelerisque felis imperdiet proin fermentum leo vel. Ornare massa eget egestas purus. A diam sollicitudin tempor id eu nisl nunc. Augue mauris augue neque gravida in fermentum et sollicitudin. Dolor purus non enim praesent elementum facilisis leo vel fringilla. Habitant morbi tristique senectus et netus et malesuada. Nulla pharetra diam sit amet nisl suscipit adipiscing bibendum est. Gravida dictum fusce ut placerat orci nulla pellentesque.")]),e._v(" "),i("p",[e._v("Semper viverra nam libero justo laoreet sit. Pretium vulputate sapien nec sagittis aliquam malesuada bibendum arcu vitae. Risus ultricies tristique nulla aliquet enim tortor at auctor urna. Consequat semper viverra nam libero justo laoreet sit amet. Magna ac placerat vestibulum lectus mauris ultrices eros. Dolor purus non enim praesent elementum facilisis leo vel. Enim eu turpis egestas pretium aenean pharetra. Vitae purus faucibus ornare suspendisse sed nisi lacus. Senectus et netus et malesuada fames. Nec feugiat in fermentum posuere urna nec tincidunt praesent. Accumsan lacus vel facilisis volutpat. Lectus quam id leo in vitae turpis massa. Cras sed felis eget velit aliquet. Volutpat maecenas volutpat blandit aliquam.")]),e._v(" "),i("p",[e._v("Volutpat lacus laoreet non curabitur. Diam donec adipiscing tristique risus. Fusce id velit ut tortor pretium viverra suspendisse. Dui ut ornare lectus sit amet est. Pharetra sit amet aliquam id. Porttitor massa id neque aliquam vestibulum morbi blandit. Viverra adipiscing at in tellus integer feugiat scelerisque varius morbi. Quam elementum pulvinar etiam non quam. Congue quisque egestas diam in arcu cursus euismod quis. Dictum fusce ut placerat orci nulla pellentesque. Ut placerat orci nulla pellentesque dignissim enim sit amet. Sagittis id consectetur purus ut faucibus pulvinar elementum integer. Dui ut ornare lectus sit amet est.")]),e._v(" "),i("p",[e._v("Ut tortor pretium viverra suspendisse potenti nullam ac tortor. Mauris a diam maecenas sed enim. Tellus in hac habitasse platea dictumst vestibulum rhoncus. Cras sed felis eget velit aliquet. Purus viverra accumsan in nisl nisi. Sed risus ultricies tristique nulla aliquet enim tortor at. Integer quis auctor elit sed vulputate mi sit amet mauris. Adipiscing elit duis tristique sollicitudin nibh sit amet commodo. Risus feugiat in ante metus dictum at. Posuere urna nec tincidunt praesent semper. Auctor elit sed vulputate mi sit amet mauris commodo. Senectus et netus et malesuada fames ac turpis egestas integer. Varius morbi enim nunc faucibus a pellentesque. Sed felis eget velit aliquet sagittis id. Ac auctor augue mauris augue neque gravida. Etiam erat velit scelerisque in dictum non consectetur a erat.")]),e._v(" "),i("p",[e._v("Tortor condimentum lacinia quis vel eros donec ac. Phasellus vestibulum lorem sed risus ultricies tristique. Vitae tortor condimentum lacinia quis vel eros donec. Morbi tempus iaculis urna id volutpat lacus laoreet non curabitur. Ut pharetra sit amet aliquam id diam. Eu non diam phasellus vestibulum lorem. Pharetra pharetra massa massa ultricies mi. Donec ultrices tincidunt arcu non. Sagittis orci a scelerisque purus semper eget duis. In iaculis nunc sed augue lacus viverra. Vitae proin sagittis nisl rhoncus mattis rhoncus urna neque. Consequat mauris nunc congue nisi vitae suscipit tellus mauris a. Massa placerat duis ultricies lacus sed turpis tincidunt id. Sit amet tellus cras adipiscing enim eu turpis. Amet porttitor eget dolor morbi non arcu risus quis varius. Potenti nullam ac tortor vitae purus.")])],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/master/assets/js/27.6cc90491.js b/master/assets/js/27.faa37412.js similarity index 98% rename from master/assets/js/27.6cc90491.js rename to master/assets/js/27.faa37412.js index fcec128a..507bfaed 100644 --- a/master/assets/js/27.6cc90491.js +++ b/master/assets/js/27.faa37412.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{493:function(n,e,t){"use strict";t.r(e);var o=t(22),a=Object(o.a)({},(function(){var n=this.$createElement,e=this._self._c||n;return e("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[e("h1",{attrs:{id:"logarithmic-scale"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#logarithmic-scale"}},[this._v("#")]),this._v(" Logarithmic Scale")]),this._v(" "),e("chart-editor",{attrs:{code:"// \nconst data = {\n datasets: [{\n label: 'V(node2)',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: [{\n x: 1,\n y: -1.711e-2,\n }, {\n x: 1.26,\n y: -2.708e-2,\n }, {\n x: 1.58,\n y: -4.285e-2,\n }, {\n x: 2.0,\n y: -6.772e-2,\n }, {\n x: 2.51,\n y: -1.068e-1,\n }, {\n x: 3.16,\n y: -1.681e-1,\n }, {\n x: 3.98,\n y: -2.635e-1,\n }, {\n x: 5.01,\n y: -4.106e-1,\n }, {\n x: 6.31,\n y: -6.339e-1,\n }, {\n x: 7.94,\n y: -9.659e-1,\n }, {\n x: 10.00,\n y: -1.445,\n }, {\n x: 12.6,\n y: -2.110,\n }, {\n x: 15.8,\n y: -2.992,\n }, {\n x: 20.0,\n y: -4.102,\n }, {\n x: 25.1,\n y: -5.429,\n }, {\n x: 31.6,\n y: -6.944,\n }, {\n x: 39.8,\n y: -8.607,\n }, {\n x: 50.1,\n y: -1.038e1,\n }, {\n x: 63.1,\n y: -1.223e1,\n }, {\n x: 79.4,\n y: -1.413e1,\n }, {\n x: 100.00,\n y: -1.607e1,\n }, {\n x: 126,\n y: -1.803e1,\n }, {\n x: 158,\n y: -2e1,\n }, {\n x: 200,\n y: -2.199e1,\n }, {\n x: 251,\n y: -2.398e1,\n }, {\n x: 316,\n y: -2.597e1,\n }, {\n x: 398,\n y: -2.797e1,\n }, {\n x: 501,\n y: -2.996e1,\n }, {\n x: 631,\n y: -3.196e1,\n }, {\n x: 794,\n y: -3.396e1,\n }, {\n x: 1000,\n y: -3.596e1\n }]\n }]\n};\n// \n\n// \nconst scales = {\n x: {\n type: 'logarithmic',\n ticks: {\n callback: function(tick) {\n const remain = tick / (Math.pow(10, Math.floor(Math.log10(tick))));\n if (remain === 1 || remain === 2 || remain === 5) {\n return tick.toString() + 'Hz';\n }\n return '';\n },\n maxRotation: 0\n },\n title: {\n display: true,\n text: 'Frequency',\n },\n }\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: {\n limits: {\n x: {min: 0.5, max: 2e3, minRange: 100},\n y: {min: -50, max: 10, minRange: 10}\n },\n pan: {\n enabled: true,\n mode: 'xy',\n },\n zoom: {\n wheel: {\n enabled: true\n },\n pinch: {\n enabled: true,\n },\n mode: 'xy',\n },\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{494:function(n,e,t){"use strict";t.r(e);var o=t(22),a=Object(o.a)({},(function(){var n=this.$createElement,e=this._self._c||n;return e("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[e("h1",{attrs:{id:"logarithmic-scale"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#logarithmic-scale"}},[this._v("#")]),this._v(" Logarithmic Scale")]),this._v(" "),e("chart-editor",{attrs:{code:"// \nconst data = {\n datasets: [{\n label: 'V(node2)',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: [{\n x: 1,\n y: -1.711e-2,\n }, {\n x: 1.26,\n y: -2.708e-2,\n }, {\n x: 1.58,\n y: -4.285e-2,\n }, {\n x: 2.0,\n y: -6.772e-2,\n }, {\n x: 2.51,\n y: -1.068e-1,\n }, {\n x: 3.16,\n y: -1.681e-1,\n }, {\n x: 3.98,\n y: -2.635e-1,\n }, {\n x: 5.01,\n y: -4.106e-1,\n }, {\n x: 6.31,\n y: -6.339e-1,\n }, {\n x: 7.94,\n y: -9.659e-1,\n }, {\n x: 10.00,\n y: -1.445,\n }, {\n x: 12.6,\n y: -2.110,\n }, {\n x: 15.8,\n y: -2.992,\n }, {\n x: 20.0,\n y: -4.102,\n }, {\n x: 25.1,\n y: -5.429,\n }, {\n x: 31.6,\n y: -6.944,\n }, {\n x: 39.8,\n y: -8.607,\n }, {\n x: 50.1,\n y: -1.038e1,\n }, {\n x: 63.1,\n y: -1.223e1,\n }, {\n x: 79.4,\n y: -1.413e1,\n }, {\n x: 100.00,\n y: -1.607e1,\n }, {\n x: 126,\n y: -1.803e1,\n }, {\n x: 158,\n y: -2e1,\n }, {\n x: 200,\n y: -2.199e1,\n }, {\n x: 251,\n y: -2.398e1,\n }, {\n x: 316,\n y: -2.597e1,\n }, {\n x: 398,\n y: -2.797e1,\n }, {\n x: 501,\n y: -2.996e1,\n }, {\n x: 631,\n y: -3.196e1,\n }, {\n x: 794,\n y: -3.396e1,\n }, {\n x: 1000,\n y: -3.596e1\n }]\n }]\n};\n// \n\n// \nconst scales = {\n x: {\n type: 'logarithmic',\n ticks: {\n callback: function(tick) {\n const remain = tick / (Math.pow(10, Math.floor(Math.log10(tick))));\n if (remain === 1 || remain === 2 || remain === 5) {\n return tick.toString() + 'Hz';\n }\n return '';\n },\n maxRotation: 0\n },\n title: {\n display: true,\n text: 'Frequency',\n },\n }\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: {\n limits: {\n x: {min: 0.5, max: 2e3, minRange: 100},\n y: {min: -50, max: 10, minRange: 10}\n },\n pan: {\n enabled: true,\n mode: 'xy',\n },\n zoom: {\n wheel: {\n enabled: true\n },\n pinch: {\n enabled: true,\n },\n mode: 'xy',\n },\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/master/assets/js/28.3a13df1c.js b/master/assets/js/28.5f0f9d57.js similarity index 97% rename from master/assets/js/28.3a13df1c.js rename to master/assets/js/28.5f0f9d57.js index cb935e7b..d0f344b1 100644 --- a/master/assets/js/28.3a13df1c.js +++ b/master/assets/js/28.5f0f9d57.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{496:function(n,o,t){"use strict";t.r(o);var e=t(22),a=Object(e.a)({},(function(){var n=this.$createElement,o=this._self._c||n;return o("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[o("h1",{attrs:{id:"over-scale-mode"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#over-scale-mode"}},[this._v("#")]),this._v(" Over Scale Mode")]),this._v(" "),o("p",[this._v("Pan and Zoom are allowed only when mouse is over the axis.")]),this._v(" "),o("chart-editor",{attrs:{code:"// \nconst NUMBER_CFG = {count: 20, min: -100, max: 100};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }, {\n label: 'My Second dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n reverse: true,\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n position: 'top',\n },\n y: {\n position: 'right',\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst zoomOptions = {\n zoom: {\n wheel: {\n enabled: true,\n },\n pinch: {\n enabled: true,\n },\n mode: 'xy',\n scaleMode: 'xy',\n },\n pan: {\n enabled: true,\n mode: 'xy',\n scaleMode: 'xy',\n }\n};\n// \n\nconst panStatus = () => zoomOptions.pan.enabled ? 'enabled' : 'disabled';\nconst zoomStatus = () => zoomOptions.zoom.wheel.enabled ? 'enabled' : 'disabled';\n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => 'Zoom: ' + zoomStatus() + ', Pan: ' + panStatus(),\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.wheel.enabled = !zoomOptions.zoom.wheel.enabled;\n zoomOptions.zoom.pinch.enabled = !zoomOptions.zoom.pinch.enabled;\n chart.update();\n }\n }, {\n name: 'Toggle pan',\n handler(chart) {\n zoomOptions.pan.enabled = !zoomOptions.pan.enabled;\n chart.update();\n },\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);o.default=a.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{495:function(n,o,t){"use strict";t.r(o);var e=t(22),a=Object(e.a)({},(function(){var n=this.$createElement,o=this._self._c||n;return o("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[o("h1",{attrs:{id:"over-scale-mode"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#over-scale-mode"}},[this._v("#")]),this._v(" Over Scale Mode")]),this._v(" "),o("p",[this._v("Pan and Zoom are allowed only when mouse is over the axis.")]),this._v(" "),o("chart-editor",{attrs:{code:"// \nconst NUMBER_CFG = {count: 20, min: -100, max: 100};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }, {\n label: 'My Second dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n reverse: true,\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n position: 'top',\n },\n y: {\n position: 'right',\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst zoomOptions = {\n zoom: {\n wheel: {\n enabled: true,\n },\n pinch: {\n enabled: true,\n },\n mode: 'xy',\n scaleMode: 'xy',\n },\n pan: {\n enabled: true,\n mode: 'xy',\n scaleMode: 'xy',\n }\n};\n// \n\nconst panStatus = () => zoomOptions.pan.enabled ? 'enabled' : 'disabled';\nconst zoomStatus = () => zoomOptions.zoom.wheel.enabled ? 'enabled' : 'disabled';\n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => 'Zoom: ' + zoomStatus() + ', Pan: ' + panStatus(),\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.wheel.enabled = !zoomOptions.zoom.wheel.enabled;\n zoomOptions.zoom.pinch.enabled = !zoomOptions.zoom.pinch.enabled;\n chart.update();\n }\n }, {\n name: 'Toggle pan',\n handler(chart) {\n zoomOptions.pan.enabled = !zoomOptions.pan.enabled;\n chart.update();\n },\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);o.default=a.exports}}]); \ No newline at end of file diff --git a/master/assets/js/29.f55a7a8a.js b/master/assets/js/29.df663c6d.js similarity index 98% rename from master/assets/js/29.f55a7a8a.js rename to master/assets/js/29.df663c6d.js index d8fce379..ac09ea68 100644 --- a/master/assets/js/29.f55a7a8a.js +++ b/master/assets/js/29.df663c6d.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{495:function(n,o,t){"use strict";t.r(o);var e=t(22),a=Object(e.a)({},(function(){var n=this.$createElement,o=this._self._c||n;return o("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[o("h1",{attrs:{id:"time-scale"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#time-scale"}},[this._v("#")]),this._v(" Time Scale")]),this._v(" "),o("chart-editor",{attrs:{code:"// \nconst NUMBER_CFG = {count: 500, min: 0, max: 1000};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.hourlyPoints(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scales = {\n x: {\n position: 'bottom',\n type: 'time',\n ticks: {\n autoSkip: true,\n autoSkipPadding: 50,\n maxRotation: 0\n },\n time: {\n displayFormats: {\n hour: 'HH:mm',\n minute: 'HH:mm',\n second: 'HH:mm:ss'\n }\n }\n },\n y: {\n position: 'right',\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n },\n};\n// \n\n// \nconst zoomOptions = {\n zoom: {\n wheel: {\n enabled: true,\n },\n pinch: {\n enabled: true,\n },\n mode: 'xy',\n },\n pan: {\n enabled: true,\n mode: 'xy',\n }\n};\n// \n\nconst panStatus = () => zoomOptions.pan.enabled ? 'enabled' : 'disabled';\nconst zoomStatus = () => zoomOptions.zoom.wheel.enabled ? 'enabled' : 'disabled';\n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => 'Zoom: ' + zoomStatus() + ', Pan: ' + panStatus()\n }\n },\n onClick(e) {\n console.log(e.type);\n }\n }\n};\n// \n\nconst actions = [\n {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.wheel.enabled = !zoomOptions.zoom.wheel.enabled;\n zoomOptions.zoom.pinch.enabled = !zoomOptions.zoom.pinch.enabled;\n chart.update();\n }\n }, {\n name: 'Toggle pan',\n handler(chart) {\n zoomOptions.pan.enabled = !zoomOptions.pan.enabled;\n chart.update();\n },\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }, {\n name: 'Zoom to next week',\n handler(chart) {\n chart.zoomScale('x', Utils.nextWeek(), 'default');\n chart.update();\n }\n }, {\n name: 'Zoom to 400-600',\n handler(chart) {\n chart.zoomScale('y', {min: 400, max: 600}, 'default');\n chart.update();\n }\n }\n\n];\n\nmodule.exports = {\n actions,\n config,\n output: 'Clicks are logged here'\n};\n"}})],1)}),[],!1,null,null,null);o.default=a.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{496:function(n,o,t){"use strict";t.r(o);var e=t(22),a=Object(e.a)({},(function(){var n=this.$createElement,o=this._self._c||n;return o("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[o("h1",{attrs:{id:"time-scale"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#time-scale"}},[this._v("#")]),this._v(" Time Scale")]),this._v(" "),o("chart-editor",{attrs:{code:"// \nconst NUMBER_CFG = {count: 500, min: 0, max: 1000};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.hourlyPoints(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scales = {\n x: {\n position: 'bottom',\n type: 'time',\n ticks: {\n autoSkip: true,\n autoSkipPadding: 50,\n maxRotation: 0\n },\n time: {\n displayFormats: {\n hour: 'HH:mm',\n minute: 'HH:mm',\n second: 'HH:mm:ss'\n }\n }\n },\n y: {\n position: 'right',\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n },\n};\n// \n\n// \nconst zoomOptions = {\n zoom: {\n wheel: {\n enabled: true,\n },\n pinch: {\n enabled: true,\n },\n mode: 'xy',\n },\n pan: {\n enabled: true,\n mode: 'xy',\n }\n};\n// \n\nconst panStatus = () => zoomOptions.pan.enabled ? 'enabled' : 'disabled';\nconst zoomStatus = () => zoomOptions.zoom.wheel.enabled ? 'enabled' : 'disabled';\n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => 'Zoom: ' + zoomStatus() + ', Pan: ' + panStatus()\n }\n },\n onClick(e) {\n console.log(e.type);\n }\n }\n};\n// \n\nconst actions = [\n {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.wheel.enabled = !zoomOptions.zoom.wheel.enabled;\n zoomOptions.zoom.pinch.enabled = !zoomOptions.zoom.pinch.enabled;\n chart.update();\n }\n }, {\n name: 'Toggle pan',\n handler(chart) {\n zoomOptions.pan.enabled = !zoomOptions.pan.enabled;\n chart.update();\n },\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }, {\n name: 'Zoom to next week',\n handler(chart) {\n chart.zoomScale('x', Utils.nextWeek(), 'default');\n chart.update();\n }\n }, {\n name: 'Zoom to 400-600',\n handler(chart) {\n chart.zoomScale('y', {min: 400, max: 600}, 'default');\n chart.update();\n }\n }\n\n];\n\nmodule.exports = {\n actions,\n config,\n output: 'Clicks are logged here'\n};\n"}})],1)}),[],!1,null,null,null);o.default=a.exports}}]); \ No newline at end of file diff --git a/master/assets/js/8.232417d2.js b/master/assets/js/8.01846fa0.js similarity index 97% rename from master/assets/js/8.232417d2.js rename to master/assets/js/8.01846fa0.js index 59ba14a6..b7ccf553 100644 --- a/master/assets/js/8.232417d2.js +++ b/master/assets/js/8.01846fa0.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{475:function(t,e,a){"use strict";a.r(e);var v=a(22),_=Object(v.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"chartjs-plugin-zoom-v2-0-1"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chartjs-plugin-zoom-v2-0-1"}},[t._v("#")]),t._v(" chartjs-plugin-zoom - v2.0.1")]),t._v(" "),a("h2",{attrs:{id:"type-aliases"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-aliases"}},[t._v("#")]),t._v(" Type aliases")]),t._v(" "),a("h3",{attrs:{id:"panfunction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#panfunction"}},[t._v("#")]),t._v(" PanFunction")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PanFunction")]),t._v(": ("),a("code",[t._v("scale")]),t._v(": "),a("code",[t._v("Scale")]),t._v(", "),a("code",[t._v("delta")]),t._v(": "),a("code",[t._v("number")]),t._v(", "),a("code",[t._v("limits")]),t._v(": "),a("code",[t._v("LimitOptions")]),t._v(") => "),a("code",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration")]),t._v(" "),a("p",[t._v("▸ ("),a("code",[t._v("scale")]),t._v(", "),a("code",[t._v("delta")]),t._v(", "),a("code",[t._v("limits")]),t._v("): "),a("code",[t._v("boolean")])]),t._v(" "),a("h5",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Scale")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("delta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("limits")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("LimitOptions")])])])])]),t._v(" "),a("h5",{attrs:{id:"returns"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("code",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"defined-in"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/ed637e6/types/index.d.ts#L35",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:35"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"zoomfunction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#zoomfunction"}},[t._v("#")]),t._v(" ZoomFunction")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ZoomFunction")]),t._v(": ("),a("code",[t._v("scale")]),t._v(": "),a("code",[t._v("Scale")]),t._v(", "),a("code",[t._v("zoom")]),t._v(": "),a("code",[t._v("number")]),t._v(", "),a("code",[t._v("center")]),t._v(": "),a("code",[t._v("Point")]),t._v(", "),a("code",[t._v("limits")]),t._v(": "),a("code",[t._v("LimitOptions")]),t._v(") => "),a("code",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration")]),t._v(" "),a("p",[t._v("▸ ("),a("code",[t._v("scale")]),t._v(", "),a("code",[t._v("zoom")]),t._v(", "),a("code",[t._v("center")]),t._v(", "),a("code",[t._v("limits")]),t._v("): "),a("code",[t._v("boolean")])]),t._v(" "),a("h5",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Scale")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("zoom")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("center")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Point")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("limits")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("LimitOptions")])])])])]),t._v(" "),a("h5",{attrs:{id:"returns-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns-2"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("code",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"defined-in-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-2"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/ed637e6/types/index.d.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:33"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"zoomrectfunction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#zoomrectfunction"}},[t._v("#")]),t._v(" ZoomRectFunction")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ZoomRectFunction")]),t._v(": ("),a("code",[t._v("scale")]),t._v(": "),a("code",[t._v("Scale")]),t._v(", "),a("code",[t._v("from")]),t._v(": "),a("code",[t._v("number")]),t._v(", "),a("code",[t._v("to")]),t._v(": "),a("code",[t._v("number")]),t._v(", "),a("code",[t._v("limits")]),t._v(": "),a("code",[t._v("LimitOptions")]),t._v(") => "),a("code",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-3"}},[t._v("#")]),t._v(" Type declaration")]),t._v(" "),a("p",[t._v("▸ ("),a("code",[t._v("scale")]),t._v(", "),a("code",[t._v("from")]),t._v(", "),a("code",[t._v("to")]),t._v(", "),a("code",[t._v("limits")]),t._v("): "),a("code",[t._v("boolean")])]),t._v(" "),a("h5",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Scale")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("from")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("to")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("limits")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("LimitOptions")])])])])]),t._v(" "),a("h5",{attrs:{id:"returns-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns-3"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("code",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"defined-in-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-3"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/ed637e6/types/index.d.ts#L34",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:34"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"variables"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#variables"}},[t._v("#")]),t._v(" Variables")]),t._v(" "),a("h3",{attrs:{id:"default"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default"}},[t._v("#")]),t._v(" default")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("default")]),t._v(": "),a("code",[t._v("Plugin")]),t._v(" & { "),a("code",[t._v("panFunctions")]),t._v(": "),a("code",[t._v("ScaleFunctions")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#panfunction"}},[a("code",[t._v("PanFunction")])]),t._v("> ; "),a("code",[t._v("zoomFunctions")]),t._v(": "),a("code",[t._v("ScaleFunctions")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#zoomfunction"}},[a("code",[t._v("ZoomFunction")])]),t._v("> ; "),a("code",[t._v("zoomRectFunctions")]),t._v(": "),a("code",[t._v("ScaleFunctions")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#zoomrectfunction"}},[a("code",[t._v("ZoomRectFunction")])]),t._v("> }")],1),t._v(" "),a("h4",{attrs:{id:"defined-in-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-4"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/ed637e6/types/index.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:43"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"functions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#functions"}},[t._v("#")]),t._v(" Functions")]),t._v(" "),a("h3",{attrs:{id:"getinitialscalebounds"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getinitialscalebounds"}},[t._v("#")]),t._v(" getInitialScaleBounds")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getInitialScaleBounds")]),t._v("("),a("code",[t._v("chart")]),t._v("): "),a("code",[t._v("Record")]),t._v("<"),a("code",[t._v("string")]),t._v(", "),a("code",[t._v("Object")]),t._v(">")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Chart")]),t._v("")])])])]),t._v(" "),a("h4",{attrs:{id:"returns-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns-4"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("code",[t._v("Record")]),t._v("<"),a("code",[t._v("string")]),t._v(", "),a("code",[t._v("Object")]),t._v(">")]),t._v(" "),a("h4",{attrs:{id:"defined-in-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-5"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/ed637e6/types/index.d.ts#L57",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:57"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getzoomlevel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getzoomlevel"}},[t._v("#")]),t._v(" getZoomLevel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getZoomLevel")]),t._v("("),a("code",[t._v("chart")]),t._v("): "),a("code",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Chart")]),t._v("")])])])]),t._v(" "),a("h4",{attrs:{id:"returns-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns-5"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("code",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"defined-in-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-6"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/ed637e6/types/index.d.ts#L56",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:56"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"iszoomedorpanned"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#iszoomedorpanned"}},[t._v("#")]),t._v(" isZoomedOrPanned")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isZoomedOrPanned")]),t._v("("),a("code",[t._v("chart")]),t._v("): "),a("code",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Chart")]),t._v("")])])])]),t._v(" "),a("h4",{attrs:{id:"returns-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns-6"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("code",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"defined-in-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-7"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/ed637e6/types/index.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"pan"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pan"}},[t._v("#")]),t._v(" pan")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("pan")]),t._v("("),a("code",[t._v("chart")]),t._v(", "),a("code",[t._v("amount")]),t._v(", "),a("code",[t._v("scales?")]),t._v(", "),a("code",[t._v("mode?")]),t._v("): "),a("code",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Chart")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("amount")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("PanAmount")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Scale")]),t._v("<"),a("code",[t._v("CoreScaleOptions")]),t._v(">[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v('"resize"')]),t._v(" | "),a("code",[t._v('"reset"')]),t._v(" | "),a("code",[t._v('"none"')]),t._v(" | "),a("code",[t._v('"hide"')]),t._v(" | "),a("code",[t._v('"show"')]),t._v(" | "),a("code",[t._v('"default"')]),t._v(" | "),a("code",[t._v('"active"')]),t._v(" | "),a("code",[t._v('"zoom"')])])])])]),t._v(" "),a("h4",{attrs:{id:"returns-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns-7"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("code",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"defined-in-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-8"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/ed637e6/types/index.d.ts#L51",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:51"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resetzoom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resetzoom"}},[t._v("#")]),t._v(" resetZoom")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("resetZoom")]),t._v("("),a("code",[t._v("chart")]),t._v(", "),a("code",[t._v("mode?")]),t._v("): "),a("code",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Chart")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v('"resize"')]),t._v(" | "),a("code",[t._v('"reset"')]),t._v(" | "),a("code",[t._v('"none"')]),t._v(" | "),a("code",[t._v('"hide"')]),t._v(" | "),a("code",[t._v('"show"')]),t._v(" | "),a("code",[t._v('"default"')]),t._v(" | "),a("code",[t._v('"active"')]),t._v(" | "),a("code",[t._v('"zoom"')])])])])]),t._v(" "),a("h4",{attrs:{id:"returns-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns-8"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("code",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"defined-in-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-9"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/ed637e6/types/index.d.ts#L55",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:55"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"zoom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#zoom"}},[t._v("#")]),t._v(" zoom")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("zoom")]),t._v("("),a("code",[t._v("chart")]),t._v(", "),a("code",[t._v("amount")]),t._v(", "),a("code",[t._v("mode?")]),t._v("): "),a("code",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Chart")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("amount")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ZoomAmount")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v('"resize"')]),t._v(" | "),a("code",[t._v('"reset"')]),t._v(" | "),a("code",[t._v('"none"')]),t._v(" | "),a("code",[t._v('"hide"')]),t._v(" | "),a("code",[t._v('"show"')]),t._v(" | "),a("code",[t._v('"default"')]),t._v(" | "),a("code",[t._v('"active"')]),t._v(" | "),a("code",[t._v('"zoom"')])])])])]),t._v(" "),a("h4",{attrs:{id:"returns-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns-9"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("code",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"defined-in-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-10"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/ed637e6/types/index.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:52"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"zoomrect"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#zoomrect"}},[t._v("#")]),t._v(" zoomRect")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("zoomRect")]),t._v("("),a("code",[t._v("chart")]),t._v(", "),a("code",[t._v("p0")]),t._v(", "),a("code",[t._v("p1")]),t._v(", "),a("code",[t._v("mode?")]),t._v("): "),a("code",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Chart")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("p0")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Point")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("p1")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Point")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v('"resize"')]),t._v(" | "),a("code",[t._v('"reset"')]),t._v(" | "),a("code",[t._v('"none"')]),t._v(" | "),a("code",[t._v('"hide"')]),t._v(" | "),a("code",[t._v('"show"')]),t._v(" | "),a("code",[t._v('"default"')]),t._v(" | "),a("code",[t._v('"active"')]),t._v(" | "),a("code",[t._v('"zoom"')])])])])]),t._v(" "),a("h4",{attrs:{id:"returns-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns-10"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("code",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"defined-in-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-11"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/ed637e6/types/index.d.ts#L53",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:53"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"zoomscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#zoomscale"}},[t._v("#")]),t._v(" zoomScale")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("zoomScale")]),t._v("("),a("code",[t._v("chart")]),t._v(", "),a("code",[t._v("scaleId")]),t._v(", "),a("code",[t._v("range")]),t._v(", "),a("code",[t._v("mode?")]),t._v("): "),a("code",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Chart")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scaleId")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ScaleRange")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v('"resize"')]),t._v(" | "),a("code",[t._v('"reset"')]),t._v(" | "),a("code",[t._v('"none"')]),t._v(" | "),a("code",[t._v('"hide"')]),t._v(" | "),a("code",[t._v('"show"')]),t._v(" | "),a("code",[t._v('"default"')]),t._v(" | "),a("code",[t._v('"active"')]),t._v(" | "),a("code",[t._v('"zoom"')])])])])]),t._v(" "),a("h4",{attrs:{id:"returns-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns-11"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("code",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"defined-in-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-12"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/ed637e6/types/index.d.ts#L54",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:54"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{475:function(t,e,a){"use strict";a.r(e);var v=a(22),_=Object(v.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"chartjs-plugin-zoom-v2-0-1"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chartjs-plugin-zoom-v2-0-1"}},[t._v("#")]),t._v(" chartjs-plugin-zoom - v2.0.1")]),t._v(" "),a("h2",{attrs:{id:"type-aliases"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-aliases"}},[t._v("#")]),t._v(" Type aliases")]),t._v(" "),a("h3",{attrs:{id:"panfunction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#panfunction"}},[t._v("#")]),t._v(" PanFunction")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PanFunction")]),t._v(": ("),a("code",[t._v("scale")]),t._v(": "),a("code",[t._v("Scale")]),t._v(", "),a("code",[t._v("delta")]),t._v(": "),a("code",[t._v("number")]),t._v(", "),a("code",[t._v("limits")]),t._v(": "),a("code",[t._v("LimitOptions")]),t._v(") => "),a("code",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration")]),t._v(" "),a("p",[t._v("▸ ("),a("code",[t._v("scale")]),t._v(", "),a("code",[t._v("delta")]),t._v(", "),a("code",[t._v("limits")]),t._v("): "),a("code",[t._v("boolean")])]),t._v(" "),a("h5",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Scale")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("delta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("limits")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("LimitOptions")])])])])]),t._v(" "),a("h5",{attrs:{id:"returns"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("code",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"defined-in"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/85b9d08/types/index.d.ts#L35",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:35"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"zoomfunction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#zoomfunction"}},[t._v("#")]),t._v(" ZoomFunction")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ZoomFunction")]),t._v(": ("),a("code",[t._v("scale")]),t._v(": "),a("code",[t._v("Scale")]),t._v(", "),a("code",[t._v("zoom")]),t._v(": "),a("code",[t._v("number")]),t._v(", "),a("code",[t._v("center")]),t._v(": "),a("code",[t._v("Point")]),t._v(", "),a("code",[t._v("limits")]),t._v(": "),a("code",[t._v("LimitOptions")]),t._v(") => "),a("code",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration")]),t._v(" "),a("p",[t._v("▸ ("),a("code",[t._v("scale")]),t._v(", "),a("code",[t._v("zoom")]),t._v(", "),a("code",[t._v("center")]),t._v(", "),a("code",[t._v("limits")]),t._v("): "),a("code",[t._v("boolean")])]),t._v(" "),a("h5",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Scale")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("zoom")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("center")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Point")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("limits")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("LimitOptions")])])])])]),t._v(" "),a("h5",{attrs:{id:"returns-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns-2"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("code",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"defined-in-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-2"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/85b9d08/types/index.d.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:33"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"zoomrectfunction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#zoomrectfunction"}},[t._v("#")]),t._v(" ZoomRectFunction")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ZoomRectFunction")]),t._v(": ("),a("code",[t._v("scale")]),t._v(": "),a("code",[t._v("Scale")]),t._v(", "),a("code",[t._v("from")]),t._v(": "),a("code",[t._v("number")]),t._v(", "),a("code",[t._v("to")]),t._v(": "),a("code",[t._v("number")]),t._v(", "),a("code",[t._v("limits")]),t._v(": "),a("code",[t._v("LimitOptions")]),t._v(") => "),a("code",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-3"}},[t._v("#")]),t._v(" Type declaration")]),t._v(" "),a("p",[t._v("▸ ("),a("code",[t._v("scale")]),t._v(", "),a("code",[t._v("from")]),t._v(", "),a("code",[t._v("to")]),t._v(", "),a("code",[t._v("limits")]),t._v("): "),a("code",[t._v("boolean")])]),t._v(" "),a("h5",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Scale")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("from")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("to")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("limits")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("LimitOptions")])])])])]),t._v(" "),a("h5",{attrs:{id:"returns-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns-3"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("code",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"defined-in-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-3"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/85b9d08/types/index.d.ts#L34",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:34"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"variables"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#variables"}},[t._v("#")]),t._v(" Variables")]),t._v(" "),a("h3",{attrs:{id:"default"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default"}},[t._v("#")]),t._v(" default")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("default")]),t._v(": "),a("code",[t._v("Plugin")]),t._v(" & { "),a("code",[t._v("panFunctions")]),t._v(": "),a("code",[t._v("ScaleFunctions")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#panfunction"}},[a("code",[t._v("PanFunction")])]),t._v("> ; "),a("code",[t._v("zoomFunctions")]),t._v(": "),a("code",[t._v("ScaleFunctions")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#zoomfunction"}},[a("code",[t._v("ZoomFunction")])]),t._v("> ; "),a("code",[t._v("zoomRectFunctions")]),t._v(": "),a("code",[t._v("ScaleFunctions")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#zoomrectfunction"}},[a("code",[t._v("ZoomRectFunction")])]),t._v("> }")],1),t._v(" "),a("h4",{attrs:{id:"defined-in-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-4"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/85b9d08/types/index.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:43"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"functions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#functions"}},[t._v("#")]),t._v(" Functions")]),t._v(" "),a("h3",{attrs:{id:"getinitialscalebounds"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getinitialscalebounds"}},[t._v("#")]),t._v(" getInitialScaleBounds")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getInitialScaleBounds")]),t._v("("),a("code",[t._v("chart")]),t._v("): "),a("code",[t._v("Record")]),t._v("<"),a("code",[t._v("string")]),t._v(", "),a("code",[t._v("Object")]),t._v(">")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Chart")]),t._v("")])])])]),t._v(" "),a("h4",{attrs:{id:"returns-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns-4"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("code",[t._v("Record")]),t._v("<"),a("code",[t._v("string")]),t._v(", "),a("code",[t._v("Object")]),t._v(">")]),t._v(" "),a("h4",{attrs:{id:"defined-in-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-5"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/85b9d08/types/index.d.ts#L57",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:57"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getzoomlevel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getzoomlevel"}},[t._v("#")]),t._v(" getZoomLevel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getZoomLevel")]),t._v("("),a("code",[t._v("chart")]),t._v("): "),a("code",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Chart")]),t._v("")])])])]),t._v(" "),a("h4",{attrs:{id:"returns-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns-5"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("code",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"defined-in-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-6"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/85b9d08/types/index.d.ts#L56",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:56"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"iszoomedorpanned"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#iszoomedorpanned"}},[t._v("#")]),t._v(" isZoomedOrPanned")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isZoomedOrPanned")]),t._v("("),a("code",[t._v("chart")]),t._v("): "),a("code",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Chart")]),t._v("")])])])]),t._v(" "),a("h4",{attrs:{id:"returns-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns-6"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("code",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"defined-in-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-7"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/85b9d08/types/index.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"pan"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pan"}},[t._v("#")]),t._v(" pan")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("pan")]),t._v("("),a("code",[t._v("chart")]),t._v(", "),a("code",[t._v("amount")]),t._v(", "),a("code",[t._v("scales?")]),t._v(", "),a("code",[t._v("mode?")]),t._v("): "),a("code",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Chart")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("amount")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("PanAmount")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Scale")]),t._v("<"),a("code",[t._v("CoreScaleOptions")]),t._v(">[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v('"resize"')]),t._v(" | "),a("code",[t._v('"reset"')]),t._v(" | "),a("code",[t._v('"none"')]),t._v(" | "),a("code",[t._v('"hide"')]),t._v(" | "),a("code",[t._v('"show"')]),t._v(" | "),a("code",[t._v('"default"')]),t._v(" | "),a("code",[t._v('"active"')]),t._v(" | "),a("code",[t._v('"zoom"')])])])])]),t._v(" "),a("h4",{attrs:{id:"returns-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns-7"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("code",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"defined-in-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-8"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/85b9d08/types/index.d.ts#L51",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:51"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resetzoom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resetzoom"}},[t._v("#")]),t._v(" resetZoom")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("resetZoom")]),t._v("("),a("code",[t._v("chart")]),t._v(", "),a("code",[t._v("mode?")]),t._v("): "),a("code",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Chart")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v('"resize"')]),t._v(" | "),a("code",[t._v('"reset"')]),t._v(" | "),a("code",[t._v('"none"')]),t._v(" | "),a("code",[t._v('"hide"')]),t._v(" | "),a("code",[t._v('"show"')]),t._v(" | "),a("code",[t._v('"default"')]),t._v(" | "),a("code",[t._v('"active"')]),t._v(" | "),a("code",[t._v('"zoom"')])])])])]),t._v(" "),a("h4",{attrs:{id:"returns-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns-8"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("code",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"defined-in-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-9"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/85b9d08/types/index.d.ts#L55",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:55"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"zoom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#zoom"}},[t._v("#")]),t._v(" zoom")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("zoom")]),t._v("("),a("code",[t._v("chart")]),t._v(", "),a("code",[t._v("amount")]),t._v(", "),a("code",[t._v("mode?")]),t._v("): "),a("code",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Chart")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("amount")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ZoomAmount")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v('"resize"')]),t._v(" | "),a("code",[t._v('"reset"')]),t._v(" | "),a("code",[t._v('"none"')]),t._v(" | "),a("code",[t._v('"hide"')]),t._v(" | "),a("code",[t._v('"show"')]),t._v(" | "),a("code",[t._v('"default"')]),t._v(" | "),a("code",[t._v('"active"')]),t._v(" | "),a("code",[t._v('"zoom"')])])])])]),t._v(" "),a("h4",{attrs:{id:"returns-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns-9"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("code",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"defined-in-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-10"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/85b9d08/types/index.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:52"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"zoomrect"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#zoomrect"}},[t._v("#")]),t._v(" zoomRect")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("zoomRect")]),t._v("("),a("code",[t._v("chart")]),t._v(", "),a("code",[t._v("p0")]),t._v(", "),a("code",[t._v("p1")]),t._v(", "),a("code",[t._v("mode?")]),t._v("): "),a("code",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Chart")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("p0")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Point")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("p1")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Point")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v('"resize"')]),t._v(" | "),a("code",[t._v('"reset"')]),t._v(" | "),a("code",[t._v('"none"')]),t._v(" | "),a("code",[t._v('"hide"')]),t._v(" | "),a("code",[t._v('"show"')]),t._v(" | "),a("code",[t._v('"default"')]),t._v(" | "),a("code",[t._v('"active"')]),t._v(" | "),a("code",[t._v('"zoom"')])])])])]),t._v(" "),a("h4",{attrs:{id:"returns-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns-10"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("code",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"defined-in-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-11"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/85b9d08/types/index.d.ts#L53",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:53"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"zoomscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#zoomscale"}},[t._v("#")]),t._v(" zoomScale")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("zoomScale")]),t._v("("),a("code",[t._v("chart")]),t._v(", "),a("code",[t._v("scaleId")]),t._v(", "),a("code",[t._v("range")]),t._v(", "),a("code",[t._v("mode?")]),t._v("): "),a("code",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Chart")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scaleId")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ScaleRange")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v('"resize"')]),t._v(" | "),a("code",[t._v('"reset"')]),t._v(" | "),a("code",[t._v('"none"')]),t._v(" | "),a("code",[t._v('"hide"')]),t._v(" | "),a("code",[t._v('"show"')]),t._v(" | "),a("code",[t._v('"default"')]),t._v(" | "),a("code",[t._v('"active"')]),t._v(" | "),a("code",[t._v('"zoom"')])])])])]),t._v(" "),a("h4",{attrs:{id:"returns-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns-11"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("code",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"defined-in-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-12"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/chartjs/chartjs-plugin-zoom/blob/85b9d08/types/index.d.ts#L54",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.d.ts:54"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file diff --git a/master/assets/js/9.78ea1b73.js b/master/assets/js/9.a7305d96.js similarity index 98% rename from master/assets/js/9.78ea1b73.js rename to master/assets/js/9.a7305d96.js index f1ce7964..728c84cc 100644 --- a/master/assets/js/9.78ea1b73.js +++ b/master/assets/js/9.a7305d96.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{476:function(t,a,s){"use strict";s.r(a);var n=s(22),r=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"animations"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" Animations")]),t._v(" "),s("p",[t._v("The drag-to-zoom animation can be customized by configuring the "),s("code",[t._v("zoom")]),t._v(" transition in your chart config:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("options")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("transitions")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("zoom")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("animation")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("duration")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1000")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("easing")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'easeOutCubic'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("If you want to disable zoom animations:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("options")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("transitions")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("zoom")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("animation")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("duration")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{477:function(t,a,s){"use strict";s.r(a);var n=s(22),r=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"animations"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" Animations")]),t._v(" "),s("p",[t._v("The drag-to-zoom animation can be customized by configuring the "),s("code",[t._v("zoom")]),t._v(" transition in your chart config:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("options")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("transitions")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("zoom")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("animation")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("duration")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1000")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("easing")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'easeOutCubic'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("If you want to disable zoom animations:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("options")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("transitions")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("zoom")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("animation")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token literal-property property"}},[t._v("duration")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file diff --git a/master/assets/js/app.4b8dcd06.js b/master/assets/js/app.0b21ea59.js similarity index 91% rename from master/assets/js/app.4b8dcd06.js rename to master/assets/js/app.0b21ea59.js index 036d8bf2..45110d2f 100644 --- a/master/assets/js/app.4b8dcd06.js +++ b/master/assets/js/app.0b21ea59.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[]]);!function(t){function e(e){for(var r,a,s=e[0],u=e[1],c=e[2],f=0,h=[];f=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function c(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function c(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nMath.max(Math.min(t,n),e);function o(t){return i(r(2.55*t),0,255)}function a(t){return i(r(255*t),0,255)}function s(t){return i(r(t/2.55)/100,0,1)}function u(t){return i(r(100*t),0,100)}const c={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},l=[..."0123456789ABCDEF"],f=t=>l[15&t],h=t=>l[(240&t)>>4]+l[15&t],d=t=>(240&t)>>4==(15&t);function p(t){var e=(t=>d(t.r)&&d(t.g)&&d(t.b)&&d(t.a))(t)?f:h;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const v=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function m(t,e,n){const r=e*Math.min(n,1-n),i=(e,i=(e+t/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function g(t,e,n){const r=(r,i=(r+t/60)%6)=>n-n*e*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function b(t,e,n){const r=m(t,1,.5);let i;for(e+n>1&&(i=1/(e+n),e*=i,n*=i),i=0;i<3;i++)r[i]*=1-e-n,r[i]+=e;return r}function y(t){const e=t.r/255,n=t.g/255,r=t.b/255,i=Math.max(e,n,r),o=Math.min(e,n,r),a=(i+o)/2;let s,u,c;return i!==o&&(c=i-o,u=a>.5?c/(2-i-o):c/(i+o),s=function(t,e,n,r,i){return t===i?(e-n)/r+(e>16&255,o>>8&255,255&o]}return t}(),C.transparent=[0,0,0,0]);const e=C[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const M=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const T=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,P=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function E(t,e,n){if(t){let r=y(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=w(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function A(t,e){return t?Object.assign(e||{},t):t}function D(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=a(t[3]))):(e=A(t,{r:0,g:0,b:0,a:1})).a=a(e.a),e}function z(t){return"r"===t.charAt(0)?function(t){const e=M.exec(t);let n,r,a,s=255;if(e){if(e[7]!==n){const t=+e[7];s=e[8]?o(t):i(255*t,0,255)}return n=+e[1],r=+e[3],a=+e[5],n=255&(e[2]?o(n):i(n,0,255)),r=255&(e[4]?o(r):i(r,0,255)),a=255&(e[6]?o(a):i(a,0,255)),{r:n,g:r,b:a,a:s}}}(t):k(t)}class L{constructor(t){if(t instanceof L)return t;const e=typeof t;let n;var r,i,o;"object"===e?n=D(t):"string"===e&&(o=(r=t).length,"#"===r[0]&&(4===o||5===o?i={r:255&17*c[r[1]],g:255&17*c[r[2]],b:255&17*c[r[3]],a:5===o?17*c[r[4]]:255}:7!==o&&9!==o||(i={r:c[r[1]]<<4|c[r[2]],g:c[r[3]]<<4|c[r[4]],b:c[r[5]]<<4|c[r[6]],a:9===o?c[r[7]]<<4|c[r[8]]:255})),n=i||S(t)||z(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=A(this._rgb);return t&&(t.a=s(t.a)),t}set rgb(t){this._rgb=D(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${s(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?p(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=y(t),n=e[0],r=u(e[1]),i=u(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${i}%, ${s(t.a)})`:`hsl(${n}, ${r}%, ${i}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,r=t.rgb;let i;const o=e===i?.5:e,a=2*o-1,s=n.a-r.a,u=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;i=1-u,n.r=255&u*n.r+i*r.r+.5,n.g=255&u*n.g+i*r.g+.5,n.b=255&u*n.b+i*r.b+.5,n.a=o*n.a+(1-o)*r.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const r=P(s(t.r)),i=P(s(t.g)),o=P(s(t.b));return{r:a(T(r+n*(P(s(e.r))-r))),g:a(T(i+n*(P(s(e.g))-i))),b:a(T(o+n*(P(s(e.b))-o))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new L(this.rgb)}alpha(t){return this._rgb.a=a(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=r(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return E(this._rgb,2,t),this}darken(t){return E(this._rgb,2,-t),this}saturate(t){return E(this._rgb,1,t),this}desaturate(t){return E(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=y(t);n[0]=_(n[0]+e),n=w(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n\\w+)\\s*",")?}}"),"g");t=t.replace(c,(function(t,r,i){var o=i&&n[i]?n[i](u,e):u;return null==o?"":o}))},o=0,a=Object.entries(e);o]+)>/g,(function(t,e){var n=a[e];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var s=this;return t[Symbol.replace].call(this,n,(function(){var t=arguments;return"object"!=r(t[t.length-1])&&(t=[].slice.call(t)).push(i(t,s)),o.apply(this,t)}))}return t[Symbol.replace].call(this,n,o)},u.apply(this,arguments)}n(36),n(20),n(89),n(254),n(28),n(6);var c=n(394),l=u(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:\x2D((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,{major:1,minor:2,patch:3,prerelease:4,build:5}),f={major:/^\d\./,minor:/^\d\.\d\./,patch:/^\d\.\d\.\d/};t.exports={collapseVersions:function(t,e){var n=t.group,r=i(e).sort((function(t,e){return-c(t.name,e.name)})),o=f[n],a={};return o?r.filter((function(t){var e=o.exec(t.name),n=e&&e[0];if(n&&!a[n])return a[n]=t,!0})):r},describeVersion:function(t){var e=t.name,n=t.tag,r=l.exec(e);if(!r)return{};var i=e,a=r.groups,s="".concat(a.major,".").concat(a.minor,".").concat(a.patch);return o(o({},a),{},{version:i,core:s,tag:n})}}},function(t,e,n){"use strict";var r=n(2),i=n(55).some;r({target:"Array",proto:!0,forced:!n(65)("some")},{some:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(2),i=n(3),o=n(73),a=n(23),s=n(65),u=i([].join),c=o!=Object,l=s("join",",");r({target:"Array",proto:!0,forced:c||!l},{join:function(t){return u(a(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(2),i=n(1),o=n(5),a=n(63),s=n(9),u=n(24),c=n(45),l=n(114),f=n(201),h=n(115),d=n(8),p=n(62),v=d("isConcatSpreadable"),m=i.TypeError,g=p>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),b=h("concat"),y=function(t){if(!s(t))return!1;var e=t[v];return void 0!==e?!!e:a(t)};r({target:"Array",proto:!0,forced:!g||!b},{concat:function(t){var e,n,r,i,o,a=u(this),s=f(a,0),h=0;for(e=-1,r=arguments.length;e9007199254740991)throw m("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw m("Maximum allowed index exceeded");l(s,h++,o)}return s.length=h,s}})},function(t,e,n){var r=n(10),i=n(1),o=n(3),a=n(96),s=n(172),u=n(46),c=n(16).f,l=n(71).f,f=n(52),h=n(168),d=n(18),p=n(148),v=n(127),m=n(21),g=n(5),b=n(13),y=n(27).enforce,x=n(190),w=n(8),_=n(149),k=n(208),O=w("match"),j=i.RegExp,C=j.prototype,S=i.SyntaxError,M=o(p),T=o(C.exec),P=o("".charAt),E=o("".replace),A=o("".indexOf),D=o("".slice),z=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,R=/a/g,I=new j(L)!==L,F=v.UNSUPPORTED_Y,N=r&&(!I||F||_||k||g((function(){return R[O]=!1,j(L)!=L||j(R)==R||"/a/i"!=j(L,"i")})));if(a("RegExp",N)){for(var U=function(t,e){var n,r,i,o,a,c,l=f(C,this),p=h(t),v=void 0===e,m=[],g=t;if(!l&&p&&v&&t.constructor===U)return t;if((p||f(C,t))&&(t=t.source,v&&(e="flags"in g?g.flags:M(g))),t=void 0===t?"":d(t),e=void 0===e?"":d(e),g=t,_&&"dotAll"in L&&(r=!!e&&A(e,"s")>-1)&&(e=E(e,/s/g,"")),n=e,F&&"sticky"in L&&(i=!!e&&A(e,"y")>-1)&&(e=E(e,/y/g,"")),k&&(t=(o=function(t){for(var e,n=t.length,r=0,i="",o=[],a={},s=!1,u=!1,c=0,l="";r<=n;r++){if("\\"===(e=P(t,r)))e+=P(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:T(z,D(t,r+1))&&(r+=2,u=!0),i+=e,c++;continue;case">"===e&&u:if(""===l||b(a,l))throw new S("Invalid capture group name");a[l]=!0,o[o.length]=[l,c],u=!1,l="";continue}u?l+=e:i+=e}return[i,o]}(t))[0],m=o[1]),a=s(j(t,e),l?this:C,U),(r||i||m.length)&&(c=y(a),r&&(c.dotAll=!0,c.raw=U(function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(e=P(t,r))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+P(t,++r);return i}(t),n)),i&&(c.sticky=!0),m.length&&(c.groups=m)),t!==g)try{u(a,"source",""===g?"(?:)":g)}catch(t){}return a},$=function(t){t in U||c(U,t,{configurable:!0,get:function(){return j[t]},set:function(e){j[t]=e}})},B=l(j),H=0;B.length>H;)$(B[H++]);C.constructor=U,U.prototype=C,m(i,"RegExp",U)}x("RegExp")},function(t,e,n){var r=n(1),i=n(10),o=n(149),a=n(30),s=n(16).f,u=n(27).get,c=RegExp.prototype,l=r.TypeError;i&&o&&s(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===a(this))return!!u(this).dotAll;throw l("Incompatible receiver, RegExp required")}}})},function(t,e,n){var r=n(1),i=n(10),o=n(127).UNSUPPORTED_Y,a=n(30),s=n(16).f,u=n(27).get,c=RegExp.prototype,l=r.TypeError;i&&o&&s(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===a(this))return!!u(this).sticky;throw l("Incompatible receiver, RegExp required")}}})},function(t,e,n){"use strict";var r=n(3),i=n(78).PROPER,o=n(21),a=n(11),s=n(52),u=n(18),c=n(5),l=n(148),f=RegExp.prototype,h=f.toString,d=r(l),p=c((function(){return"/a/b"!=h.call({source:"a",flags:"b"})})),v=i&&"toString"!=h.name;(p||v)&&o(RegExp.prototype,"toString",(function(){var t=a(this),e=u(t.source),n=t.flags;return"/"+e+"/"+u(void 0===n&&s(f,t)&&!("flags"in f)?d(t):n)}),{unsafe:!0})},function(t,e,n){var r=n(95),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){var e=+t;return e!=e||0===e?0:(e>0?r:n)(e)}},function(t,e,n){var r=n(5),i=n(7),o=/#|\.prototype\./,a=function(t,e){var n=u[s(t)];return n==l||n!=c&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},function(t,e,n){"use strict";var r=n(2),i=n(3),o=n(63),a=i([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),a(this)}})},function(t,e,n){var r=n(51),i=n(132);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(3),i=0,o=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},function(t,e,n){var r=n(1),i=n(9),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,n){var r=n(251),i=n(125);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},function(t,e,n){var r=n(1).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,e,n){var r=n(98),i=n(99),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},function(t,e,n){var r=n(3),i=n(7),o=n(132),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(3),i=n(11),o=n(260);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},function(t,e,n){var r=n(1),i=n(143),o=n(7),a=n(30),s=n(8)("toStringTag"),u=r.Object,c="Arguments"==a(function(){return arguments}());t.exports=i?a:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=u(t),s))?n:c?a(e):"Object"==(r=a(e))&&o(e.callee)?"Arguments":r}},function(t,e,n){var r=n(3),i=n(5),o=n(7),a=n(107),s=n(26),u=n(104),c=function(){},l=[],f=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=r(h.exec),p=!h.exec(c),v=function(t){if(!o(t))return!1;try{return f(c,l,t),!0}catch(t){return!1}};t.exports=!f||i((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return p||!!d(h,u(t))}:v},function(t,e,n){var r=n(30),i=n(1);t.exports="process"==r(i.process)},function(t,e,n){n(80)("asyncIterator")},function(t,e,n){n(80)("toStringTag")},function(t,e,n){var r=n(1);n(47)(r.JSON,"JSON",!0)},function(t,e,n){n(47)(Math,"Math",!0)},function(t,e,n){"use strict";var r=n(101),i=n(16),o=n(77);t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},function(t,e,n){var r=n(5),i=n(8),o=n(62),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var r=n(2),i=n(3),o=n(75),a=n(9),s=n(13),u=n(16).f,c=n(71),l=n(199),f=n(207),h=n(99),d=n(206),p=!1,v=h("meta"),m=0,g=function(t){u(t,v,{value:{objectID:"O"+m++,weakData:{}}})},b=t.exports={enable:function(){b.enable=function(){},p=!0;var t=c.f,e=i([].splice),n={};n[v]=1,t(n).length&&(c.f=function(n){for(var r=t(n),i=0,o=r.length;i
'};function i(t,e,n){return tn?n:t}function o(t){return 100*(-1+t)}n.configure=function(t){var e,n;for(e in t)void 0!==(n=t[e])&&t.hasOwnProperty(e)&&(r[e]=n);return this},n.status=null,n.set=function(t){var e=n.isStarted();t=i(t,r.minimum,1),n.status=1===t?null:t;var u=n.render(!e),c=u.querySelector(r.barSelector),l=r.speed,f=r.easing;return u.offsetWidth,a((function(e){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),s(c,function(t,e,n){var i;return(i="translate3d"===r.positionUsing?{transform:"translate3d("+o(t)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+o(t)+"%,0)"}:{"margin-left":o(t)+"%"}).transition="all "+e+"ms "+n,i}(t,l,f)),1===t?(s(u,{transition:"none",opacity:1}),u.offsetWidth,setTimeout((function(){s(u,{transition:"all "+l+"ms linear",opacity:0}),setTimeout((function(){n.remove(),e()}),l)}),l)):setTimeout(e,l)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var t=function(){setTimeout((function(){n.status&&(n.trickle(),t())}),r.trickleSpeed)};return r.trickle&&t(),this},n.done=function(t){return t||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(t){var e=n.status;return e?("number"!=typeof t&&(t=(1-e)*i(Math.random()*e,.1,.95)),e=i(e+t,0,.994),n.set(e)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},t=0,e=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===e&&n.start(),t++,e++,r.always((function(){0==--e?(t=0,n.done()):n.set((t-e)/t)})),this):this},n.render=function(t){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var e=document.createElement("div");e.id="nprogress",e.innerHTML=r.template;var i,a=e.querySelector(r.barSelector),u=t?"-100":o(n.status||0),l=document.querySelector(r.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+u+"%,0,0)"}),r.showSpinner||(i=e.querySelector(r.spinnerSelector))&&h(i),l!=document.body&&c(l,"nprogress-custom-parent"),l.appendChild(e),e},n.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(r.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&h(t)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var a=function(){var t=[];function e(){var n=t.shift();n&&n(e)}return function(n){t.push(n),1==t.length&&e()}}(),s=function(){var t=["Webkit","O","Moz","ms"],e={};function n(n){return n=n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()})),e[n]||(e[n]=function(e){var n=document.body.style;if(e in n)return e;for(var r,i=t.length,o=e.charAt(0).toUpperCase()+e.slice(1);i--;)if((r=t[i]+o)in n)return r;return e}(n))}function r(t,e,r){e=n(e),t.style[e]=r}return function(t,e){var n,i,o=arguments;if(2==o.length)for(n in e)void 0!==(i=e[n])&&e.hasOwnProperty(n)&&r(t,n,i);else r(t,o[1],o[2])}}();function u(t,e){return("string"==typeof t?t:f(t)).indexOf(" "+e+" ")>=0}function c(t,e){var n=f(t),r=n+e;u(n,e)||(t.className=r.substring(1))}function l(t,e){var n,r=f(t);u(t,e)&&(n=r.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function f(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function h(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return n})?r.call(e,n,e,t):r)||(t.exports=i)},function(t,e,n){"use strict";var r=n(2),i=n(3),o=n(135).indexOf,a=n(65),s=i([].indexOf),u=!!s&&1/s([1],1,-0)<0,c=a("indexOf");r({target:"Array",proto:!0,forced:u||!c},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return u?s(this,t,e)||0:o(this,t,e)}})},function(t,e,n){var r=n(1),i=n(26),o=n(7),a=n(52),s=n(177),u=r.Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return o(e)&&a(e.prototype,u(t))}},function(t,e,n){"use strict";var r,i,o=n(15),a=n(3),s=n(18),u=n(148),c=n(127),l=n(98),f=n(54),h=n(27).get,d=n(149),p=n(208),v=l("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,g=m,b=a("".charAt),y=a("".indexOf),x=a("".replace),w=a("".slice),_=(i=/b*/g,o(m,r=/a/,"a"),o(m,i,"a"),0!==r.lastIndex||0!==i.lastIndex),k=c.UNSUPPORTED_Y||c.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];(_||O||k||d||p)&&(g=function(t){var e,n,r,i,a,c,l,d=this,p=h(d),j=s(t),C=p.raw;if(C)return C.lastIndex=d.lastIndex,e=o(g,C,j),d.lastIndex=C.lastIndex,e;var S=p.groups,M=k&&d.sticky,T=o(u,d),P=d.source,E=0,A=j;if(M&&(T=x(T,"y",""),-1===y(T,"g")&&(T+="g"),A=w(j,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==b(j,d.lastIndex-1))&&(P="(?: "+P+")",A=" "+A,E++),n=new RegExp("^(?:"+P+")",T)),O&&(n=new RegExp("^"+P+"$(?!\\s)",T)),_&&(r=d.lastIndex),i=o(m,M?n:d,A),M?i?(i.input=w(i.input,E),i[0]=w(i[0],E),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:_&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),O&&i&&i.length>1&&o(v,i[0],n,(function(){for(a=1;a1?arguments[1]:void 0)}}),o("includes")},function(t,e,n){"use strict";var r=n(2),i=n(3),o=n(167),a=n(32),s=n(18),u=n(169),c=i("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~c(s(a(this)),s(o(t)),arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(2),i=n(55).find,o=n(131),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("find")},function(t,e,n){var r=n(8),i=n(54),o=n(16),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},function(t,e,n){var r=n(1),i=n(133),o=r["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},function(t,e,n){var r=n(1),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(62),i=n(5);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e,n){var r=n(23),i=n(181),o=n(45),a=function(t){return function(e,n,a){var s,u=r(e),c=o(u),l=i(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(1),i=n(13),o=n(7),a=n(24),s=n(103),u=n(188),c=s("IE_PROTO"),l=r.Object,f=l.prototype;t.exports=u?l.getPrototypeOf:function(t){var e=a(t);if(i(e,c))return e[c];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof l?f:null}},function(t,e,n){var r=n(21);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){var r=n(1),i=n(52),o=r.TypeError;t.exports=function(t,e){if(i(e,t))return t;throw o("Incorrect invocation")}},function(t,e,n){var r=n(1),i=n(79),o=n(15),a=n(11),s=n(102),u=n(191),c=n(45),l=n(52),f=n(192),h=n(142),d=n(193),p=r.TypeError,v=function(t,e){this.stopped=t,this.result=e},m=v.prototype;t.exports=function(t,e,n){var r,g,b,y,x,w,_,k=n&&n.that,O=!(!n||!n.AS_ENTRIES),j=!(!n||!n.IS_ITERATOR),C=!(!n||!n.INTERRUPTED),S=i(e,k),M=function(t){return r&&d(r,"normal",t),new v(!0,t)},T=function(t){return O?(a(t),C?S(t[0],t[1],M):S(t[0],t[1])):C?S(t,M):S(t)};if(j)r=t;else{if(!(g=h(t)))throw p(s(t)+" is not iterable");if(u(g)){for(b=0,y=c(t);y>b;b++)if((x=T(t[b]))&&l(m,x))return x;return new v(!1)}r=f(t,g)}for(w=r.next;!(_=o(w,r)).done;){try{x=T(_.value)}catch(t){d(r,"throw",t)}if("object"==typeof x&&x&&l(m,x))return x}return new v(!1)}},function(t,e,n){var r=n(107),i=n(70),o=n(76),a=n(8)("iterator");t.exports=function(t){if(null!=t)return i(t,a)||i(t,"@@iterator")||o[r(t)]}},function(t,e,n){var r={};r[n(8)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r=n(8)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},function(t,e,n){var r=n(2),i=n(10),o=n(186),a=n(23),s=n(50),u=n(114);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),i=s.f,c=o(r),l={},f=0;c.length>f;)void 0!==(n=i(r,e=c[f++]))&&u(l,e,n);return l}})},function(t,e,n){"use strict";var r=n(2),i=n(274).left,o=n(65),a=n(62),s=n(109);r({target:"Array",proto:!0,forced:!o("reduce")||!s&&a>79&&a<83},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r,i=n(2),o=n(3),a=n(50).f,s=n(94),u=n(18),c=n(167),l=n(32),f=n(169),h=n(51),d=o("".startsWith),p=o("".slice),v=Math.min,m=f("startsWith");i({target:"String",proto:!0,forced:!!(h||m||(r=a(String.prototype,"startsWith"),!r||r.writable))&&!m},{startsWith:function(t){var e=u(l(this));c(t);var n=s(v(arguments.length>1?arguments[1]:void 0,e.length)),r=u(t);return d?d(e,r,n):p(e,n,n+r.length)===r}})},function(t,e,n){"use strict";var r=n(11);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(5),i=n(1).RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,n){var r=n(282),i=n(61),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e,n){var r=n(57)(n(39),"Map");t.exports=r},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(302),i=n(309),o=n(311),a=n(312),s=n(313);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){var r=n(37),i=n(157),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(a.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e,n){var r=n(72),i=n(61);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},function(t,e){t.exports=function(t){return t}},function(t,e,n){"use strict";var r,i=n(1),o=n(3),a=n(139),s=n(116),u=n(375),c=n(376),l=n(9),f=n(207),h=n(27).enforce,d=n(183),p=!i.ActiveXObject&&"ActiveXObject"in i,v=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},m=u("WeakMap",v,c);if(d&&p){r=c.getConstructor(v,"WeakMap",!0),s.enable();var g=m.prototype,b=o(g.delete),y=o(g.has),x=o(g.get),w=o(g.set);a(g,{delete:function(t){if(l(t)&&!f(t)){var e=h(this);return e.frozen||(e.frozen=new r),b(this,t)||e.frozen.delete(t)}return b(this,t)},has:function(t){if(l(t)&&!f(t)){var e=h(this);return e.frozen||(e.frozen=new r),y(this,t)||e.frozen.has(t)}return y(this,t)},get:function(t){if(l(t)&&!f(t)){var e=h(this);return e.frozen||(e.frozen=new r),y(this,t)?x(this,t):e.frozen.get(t)}return x(this,t)},set:function(t,e){if(l(t)&&!f(t)){var n=h(this);n.frozen||(n.frozen=new r),y(this,t)?w(this,t,e):n.frozen.set(t,e)}else w(this,t,e);return this}})}},function(t,e,n){function r(e,n){return t.exports=r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.default=t.exports,t.exports.__esModule=!0,r(e,n)}n(56),t.exports=r,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r=-1&&!e;i--){var o=i>=0?arguments[i]:process.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,e="/"===o.charAt(0))}return(e?"/":"")+(t=n(r(t.split("/"),(function(t){return!!t})),!e).join("/"))||"."},e.normalize=function(t){var o=e.isAbsolute(t),a="/"===i(t,-1);return(t=n(r(t.split("/"),(function(t){return!!t})),!o).join("/"))||o||(t="."),t&&a&&(t+="/"),(o?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u=1;--o)if(47===(e=t.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=function(t){"string"!=typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!=typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=a+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?"":t.slice(e,r)};var i="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}},function(t,e,n){"use strict";var r=n(15),i=n(164),o=n(11),a=n(94),s=n(18),u=n(32),c=n(70),l=n(170),f=n(165);i("match",(function(t,e,n){return[function(e){var n=u(this),i=null==e?void 0:c(e,t);return i?r(i,e,n):new RegExp(e)[t](s(n))},function(t){var r=o(this),i=s(t),u=n(e,r,i);if(u.done)return u.value;if(!r.global)return f(r,i);var c=r.unicode;r.lastIndex=0;for(var h,d=[],p=0;null!==(h=f(r,i));){var v=s(h[0]);d[p]=v,""===v&&(r.lastIndex=l(i,a(r.lastIndex),c)),p++}return 0===p?null:d}]}))},function(t,e,n){"use strict";n(20);var r=n(3),i=n(21),o=n(126),a=n(5),s=n(8),u=n(46),c=s("species"),l=RegExp.prototype;t.exports=function(t,e,n,f){var h=s(t),d=!a((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),p=d&&!a((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return e=!0,null},n[h](""),!e}));if(!d||!p||n){var v=r(/./[h]),m=e(h,""[t],(function(t,e,n,i,a){var s=r(t),u=e.exec;return u===o||u===l.exec?d&&!a?{done:!0,value:v(e,n,i)}:{done:!0,value:s(n,e,i)}:{done:!1}}));i(String.prototype,t,m[0]),i(l,h,m[1])}f&&u(l[h],"sham",!0)}},function(t,e,n){var r=n(1),i=n(15),o=n(11),a=n(7),s=n(30),u=n(126),c=r.TypeError;t.exports=function(t,e){var n=t.exec;if(a(n)){var r=i(n,t,e);return null!==r&&o(r),r}if("RegExp"===s(t))return i(u,t,e);throw c("RegExp#exec called on incompatible receiver")}},function(t,e,n){var r=n(11),i=n(194),o=n(8)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[o])?e:i(n)}},function(t,e,n){var r=n(1),i=n(168),o=r.TypeError;t.exports=function(t){if(i(t))throw o("The method doesn't accept regular expressions");return t}},function(t,e,n){var r=n(9),i=n(30),o=n(8)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},function(t,e,n){var r=n(8)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,n){"use strict";var r=n(205).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(7),i=n(9),o=n(106);t.exports=function(t,e,n){var a,s;return o&&r(a=e.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(t,e,n){n(29),n(6),n(36),n(117),n(12),n(20),n(69);var r=n(235);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n(231),n(87),n(6),n(33);var r=n(59),i={name:"NavLink",props:{item:{required:!0}},computed:{link:function(){return Object(r.b)(this.item.link)},exact:function(){var t=this;return this.$site.locales?Object.keys(this.$site.locales).some((function(e){return e===t.link})):"/"===this.link},isNonHttpURI:function(){return Object(r.g)(this.link)||Object(r.h)(this.link)},isBlankTarget:function(){return"_blank"===this.target},isInternal:function(){return!Object(r.f)(this.link)&&!this.isBlankTarget},target:function(){return this.isNonHttpURI?null:this.item.target?this.item.target:Object(r.f)(this.link)?"_blank":""},rel:function(){return this.isNonHttpURI||!1===this.item.rel?null:this.item.rel?this.item.rel:this.isBlankTarget?"noopener noreferrer":null}},methods:{focusoutAction:function(){this.$emit("focusout")}}},o=n(22),a=Object(o.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isInternal?n("RouterLink",{staticClass:"nav-link",attrs:{to:t.link,exact:t.exact},nativeOn:{focusout:function(e){return t.focusoutAction.apply(null,arguments)}}},[t._v("\n "+t._s(t.item.text)+"\n")]):n("a",{staticClass:"nav-link external",attrs:{href:t.link,target:t.target,rel:t.rel},on:{focusout:t.focusoutAction}},[t._v("\n "+t._s(t.item.text)+"\n "),t.isBlankTarget?n("OutboundLink"):t._e()],1)}),[],!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r=n(23),i=n(131),o=n(76),a=n(27),s=n(184),u=a.set,c=a.getterFor("Array Iterator");t.exports=s(Array,"Array",(function(t,e){u(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=c(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e,n){var r=n(134);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(10),i=n(16),o=n(11),a=n(23),s=n(74);t.exports=r?Object.defineProperties:function(t,e){o(t);for(var n,r=a(e),u=s(e),c=u.length,l=0;c>l;)i.f(t,n=u[l++],r[n]);return t}},function(t,e,n){var r=n(10),i=n(5),o=n(100);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(3),i=n(13),o=n(23),a=n(135).indexOf,s=n(75),u=r([].push);t.exports=function(t,e){var n,r=o(t),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);for(;e.length>c;)i(r,n=e[c++])&&(~a(l,n)||u(l,n));return l}},function(t,e,n){var r=n(95),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},function(t,e,n){var r=n(26);t.exports=r("document","documentElement")},function(t,e,n){var r=n(1),i=n(7),o=n(104),a=r.WeakMap;t.exports=i(a)&&/native code/.test(o(a))},function(t,e,n){"use strict";var r=n(2),i=n(15),o=n(51),a=n(78),s=n(7),u=n(259),c=n(138),l=n(106),f=n(47),h=n(46),d=n(21),p=n(8),v=n(76),m=n(187),g=a.PROPER,b=a.CONFIGURABLE,y=m.IteratorPrototype,x=m.BUGGY_SAFARI_ITERATORS,w=p("iterator"),_=function(){return this};t.exports=function(t,e,n,a,p,m,k){u(n,e,a);var O,j,C,S=function(t){if(t===p&&A)return A;if(!x&&t in P)return P[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},M=e+" Iterator",T=!1,P=t.prototype,E=P[w]||P["@@iterator"]||p&&P[p],A=!x&&E||S(p),D="Array"==e&&P.entries||E;if(D&&(O=c(D.call(new t)))!==Object.prototype&&O.next&&(o||c(O)===y||(l?l(O,y):s(O[w])||d(O,w,_)),f(O,M,!0,!0),o&&(v[M]=_)),g&&"values"==p&&E&&"values"!==E.name&&(!o&&b?h(P,"name","values"):(T=!0,A=function(){return i(E,this)})),p)if(j={values:S("values"),keys:m?A:S("keys"),entries:S("entries")},k)for(C in j)(x||T||!(C in P))&&d(P,C,j[C]);else r({target:e,proto:!0,forced:x||T},j);return o&&!k||P[w]===A||d(P,w,A,{name:p}),v[e]=A,j}},function(t,e,n){var r=n(13),i=n(186),o=n(50),a=n(16);t.exports=function(t,e){for(var n=i(e),s=a.f,u=o.f,c=0;c1?arguments[1]:void 0)}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(100)("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},function(t,e,n){var r=n(3),i=n(95),o=n(18),a=n(32),s=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(t){return function(e,n){var r,l,f=o(a(e)),h=i(n),d=f.length;return h<0||h>=d?t?"":void 0:(r=u(f,h))<55296||r>56319||h+1===d||(l=u(f,h+1))<56320||l>57343?t?s(f,h):r:t?c(f,h,h+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},function(t,e,n){var r=n(5);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,n){var r=n(5),i=n(9),o=n(30),a=n(275),s=Object.isExtensible,u=r((function(){s(1)}));t.exports=u||a?function(t){return!!i(t)&&((!a||"ArrayBuffer"!=o(t))&&(!s||s(t)))}:s},function(t,e,n){var r=n(5),i=n(1).RegExp;t.exports=r((function(){var t=i("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++nl))return!1;var h=u.get(t),d=u.get(e);if(h&&d)return h==e&&d==t;var p=-1,v=!0,m=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++p-1&&t%1==0&&tt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=e||n<0||m&&t-c>=o}function w(){var t=d();if(x(t))return _(t);s=setTimeout(w,function(t){var n=e-(t-u);return m?h(n,o-(t-c)):n}(t))}function _(t){return s=void 0,g&&r?b(t):(r=i=void 0,a)}function k(){var t=d(),n=x(t);if(r=arguments,i=this,u=t,n){if(void 0===s)return y(u);if(m)return s=setTimeout(w,e),b(u)}return void 0===s&&(s=setTimeout(w,e)),a}return e=v(e)||0,p(n)&&(l=!!n.leading,o=(m="maxWait"in n)?f(v(n.maxWait)||0,e):o,g="trailing"in n?!!n.trailing:g),k.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=i=s=void 0},k.flush=function(){return void 0===s?a:_(d())},k}},function(t,e,n){n(90),n(91),n(92),n(93),n(6),n(12),n(159),n(14),n(146),n(33),n(48),n(232),n(41),n(17),n(19),n(42),n(88),n(29);var r=n(82).default,i=n(233).default,o=n(160).default;function a(){a=function(t,e){return new n(t,void 0,e)};var t=RegExp.prototype,e=new WeakMap;function n(t,r,i){var a=new RegExp(t,r);return e.set(a,i||e.get(t)),o(a,n.prototype)}function s(t,n){var r=e.get(n);return Object.keys(r).reduce((function(e,n){var i=r[n];if("number"==typeof i)e[n]=t[i];else{for(var o=0;void 0===t[i[o]]&&o+1]+)>/g,(function(t,e){var n=o[e];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var a=this;return t[Symbol.replace].call(this,n,(function(){var t=arguments;return"object"!=r(t[t.length-1])&&(t=[].slice.call(t)).push(s(t,a)),i.apply(this,t)}))}return t[Symbol.replace].call(this,n,i)},a.apply(this,arguments)}n(20),n(249);var s=a(/^(.+?)(::(after|before))?$/,{selector:1,position:3});t.exports={injectElement:function(t,e,n){var r=s.exec(n.trim());if(r){var i=r.groups,o=i.selector,a=i.position,u=t.querySelector(o.trim());if(u)if(a){var c="before"===a?u:u.nextSibling;c?u.parentNode.insertBefore(e,c):u.parentNode.appendChild(e)}else u.appendChild(e);else console.error("Target '".concat(u,"' does not match any element"))}else console.error("Invalid query selector: ".concat(n))}}},function(t,e,n){var r=n(82).default,i=n(378).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,a=Object.create(o.prototype),s=new S(r||[]);return i(a,"_invoke",{value:k(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var d={};function p(){}function v(){}function m(){}var g={};l(g,s,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(M([])));y&&y!==e&&n.call(y,s)&&(g=y);var x=m.prototype=p.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){var o;i(this,"_invoke",{value:function(i,a){function s(){return new e((function(o,s){!function i(o,a,s,u){var c=h(t[o],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==r(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,s,u)}),(function(t){i("throw",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return i("throw",t,s,u)}))}u(c.arg)}(i,a,o,s)}))}return o=o?o.then(s,s):s()}})}function k(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=h(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function O(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=h(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function M(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:M(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function a(){return(a=i(o().mark((function t(e,n){var r,i,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r="https://data.jsdelivr.com/v1/package/npm/".concat(n),t.next=3,e(r);case 3:return t.next=5,t.sent.json();case 5:return i=t.sent,a=Object.entries(i.tags||[]),t.abrupt("return",i.versions.map((function(t){return{tag:(a.find((function(e){return e[1]===t}))||[null])[0],name:t}})));case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}n(234),n(40),n(130),n(6),n(38),n(17),n(19),n(25),n(12),n(14),n(110),n(111),n(112),n(113),n(48),n(64),n(34),n(35),n(36),n(56),n(97),n(29),t.exports={fetchNpmVersions:function(t,e){return a.apply(this,arguments)}}},function(t,e,n){"use strict";var r=n(2),i=n(250).trim;r({target:"String",proto:!0,forced:n(377)("trim")},{trim:function(){return i(this)}})},function(t,e,n){var r=n(3),i=n(32),o=n(18),a=n(173),s=r("".replace),u="["+a+"]",c=RegExp("^"+u+u+"*"),l=RegExp(u+u+"*$"),f=function(t){return function(e){var n=o(i(e));return 1&t&&(n=s(n,c,"")),2&t&&(n=s(n,l,"")),n}};t.exports={start:f(1),end:f(2),trim:f(3)}},function(t,e,n){var r=n(1),i=n(15),o=n(9),a=n(125),s=n(70),u=n(258),c=n(8),l=r.TypeError,f=c("toPrimitive");t.exports=function(t,e){if(!o(t)||a(t))return t;var n,r=s(t,f);if(r){if(void 0===e&&(e="default"),n=i(r,t,e),!o(n)||a(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},function(t,e,n){var r=n(2),i=n(206),o=n(5),a=n(9),s=n(116).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!i},{freeze:function(t){return u&&a(t)?u(s(t)):t}})},function(t,e,n){var r=n(227);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},function(t,e,n){"use strict";var r=n(2),i=n(3),o=n(44),a=n(24),s=n(45),u=n(18),c=n(5),l=n(390),f=n(65),h=n(391),d=n(392),p=n(62),v=n(393),m=[],g=i(m.sort),b=i(m.push),y=c((function(){m.sort(void 0)})),x=c((function(){m.sort(null)})),w=f("sort"),_=!c((function(){if(p)return p<70;if(!(h&&h>3)){if(d)return!0;if(v)return v<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)m.push({k:e+r,v:n})}for(m.sort((function(t,e){return e.v-t.v})),r=0;ru(n)?1:-1}}(t)),n=i.length,r=0;r2,i=r?u(arguments,2):void 0;return t(r?function(){o(a(e)?e:l(e),this,i)}:e,n)}};r({global:!0,bind:!0,forced:c},{setTimeout:f(i.setTimeout),setInterval:f(i.setInterval)})},,function(t,e,n){t.exports=n(406)},function(t,e,n){var r=n(1),i=n(15),o=n(7),a=n(9),s=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&o(n=t.toString)&&!a(r=i(n,t)))return r;if(o(n=t.valueOf)&&!a(r=i(n,t)))return r;if("string"!==e&&o(n=t.toString)&&!a(r=i(n,t)))return r;throw s("Can't convert object to primitive value")}},function(t,e,n){"use strict";var r=n(187).IteratorPrototype,i=n(54),o=n(77),a=n(47),s=n(76),u=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,c,!1,!0),s[c]=u,t}},function(t,e,n){var r=n(1),i=n(7),o=r.String,a=r.TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw a("Can't set "+o(t)+" as a prototype")}},function(t,e,n){"use strict";var r,i,o,a,s=n(2),u=n(51),c=n(1),l=n(26),f=n(15),h=n(189),d=n(21),p=n(139),v=n(106),m=n(47),g=n(190),b=n(44),y=n(7),x=n(9),w=n(140),_=n(104),k=n(141),O=n(144),j=n(166),C=n(195).set,S=n(262),M=n(197),T=n(265),P=n(198),E=n(266),A=n(27),D=n(96),z=n(8),L=n(267),R=n(109),I=n(62),F=z("species"),N=A.get,U=A.set,$=A.getterFor("Promise"),B=h&&h.prototype,H=h,W=B,V=c.TypeError,q=c.document,Y=c.process,X=P.f,G=X,Z=!!(q&&q.createEvent&&c.dispatchEvent),K=y(c.PromiseRejectionEvent),Q=!1,J=D("Promise",(function(){var t=_(H),e=t!==String(H);if(!e&&66===I)return!0;if(u&&!W.finally)return!0;if(I>=51&&/native code/.test(t))return!1;var n=new H((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[F]=r,!(Q=n.then((function(){}))instanceof r)||!e&&L&&!K})),tt=J||!O((function(t){H.all(t).catch((function(){}))})),et=function(t){var e;return!(!x(t)||!y(e=t.then))&&e},nt=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;S((function(){for(var r=t.value,i=1==t.state,o=0;n.length>o;){var a,s,u,c=n[o++],l=i?c.ok:c.fail,h=c.resolve,d=c.reject,p=c.domain;try{l?(i||(2===t.rejection&&at(t),t.rejection=1),!0===l?a=r:(p&&p.enter(),a=l(r),p&&(p.exit(),u=!0)),a===c.promise?d(V("Promise-chain cycle")):(s=et(a))?f(s,a,h,d):h(a)):d(r)}catch(t){p&&!u&&p.exit(),d(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&it(t)}))}},rt=function(t,e,n){var r,i;Z?((r=q.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!K&&(i=c["on"+t])?i(r):"unhandledrejection"===t&&T("Unhandled promise rejection",n)},it=function(t){f(C,c,(function(){var e,n=t.facade,r=t.value;if(ot(t)&&(e=E((function(){R?Y.emit("unhandledRejection",r,n):rt("unhandledrejection",n,r)})),t.rejection=R||ot(t)?2:1,e.error))throw e.value}))},ot=function(t){return 1!==t.rejection&&!t.parent},at=function(t){f(C,c,(function(){var e=t.facade;R?Y.emit("rejectionHandled",e):rt("rejectionhandled",e,t.value)}))},st=function(t,e,n){return function(r){t(e,r,n)}},ut=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,nt(t,!0))},ct=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw V("Promise can't be resolved itself");var r=et(e);r?S((function(){var n={done:!1};try{f(r,e,st(ct,n,t),st(ut,n,t))}catch(e){ut(n,e,t)}})):(t.value=e,t.state=1,nt(t,!1))}catch(e){ut({done:!1},e,t)}}};if(J&&(W=(H=function(t){w(this,W),b(t),f(r,this);var e=N(this);try{t(st(ct,e),st(ut,e))}catch(t){ut(e,t)}}).prototype,(r=function(t){U(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(W,{then:function(t,e){var n=$(this),r=n.reactions,i=X(j(this,H));return i.ok=!y(t)||t,i.fail=y(e)&&e,i.domain=R?Y.domain:void 0,n.parent=!0,r[r.length]=i,0!=n.state&&nt(n,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=N(t);this.promise=t,this.resolve=st(ct,e),this.reject=st(ut,e)},P.f=X=function(t){return t===H||t===o?new i(t):G(t)},!u&&y(h)&&B!==Object.prototype)){a=B.then,Q||(d(B,"then",(function(t,e){var n=this;return new H((function(t,e){f(a,n,t,e)})).then(t,e)}),{unsafe:!0}),d(B,"catch",W.catch,{unsafe:!0}));try{delete B.constructor}catch(t){}v&&v(B,W)}s({global:!0,wrap:!0,forced:J},{Promise:H}),m(H,"Promise",!1,!0),g("Promise"),o=l("Promise"),s({target:"Promise",stat:!0,forced:J},{reject:function(t){var e=X(this);return f(e.reject,void 0,t),e.promise}}),s({target:"Promise",stat:!0,forced:u||J},{resolve:function(t){return M(u&&this===o?H:this,t)}}),s({target:"Promise",stat:!0,forced:tt},{all:function(t){var e=this,n=X(e),r=n.resolve,i=n.reject,o=E((function(){var n=b(e.resolve),o=[],a=0,s=1;k(t,(function(t){var u=a++,c=!1;s++,f(n,e,t).then((function(t){c||(c=!0,o[u]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=X(e),r=n.reject,i=E((function(){var i=b(e.resolve);k(t,(function(t){f(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},function(t,e,n){var r,i,o,a,s,u,c,l,f=n(1),h=n(79),d=n(50).f,p=n(195).set,v=n(196),m=n(263),g=n(264),b=n(109),y=f.MutationObserver||f.WebKitMutationObserver,x=f.document,w=f.process,_=f.Promise,k=d(f,"queueMicrotask"),O=k&&k.value;O||(r=function(){var t,e;for(b&&(t=w.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},v||b||g||!y||!x?!m&&_&&_.resolve?((c=_.resolve(void 0)).constructor=_,l=h(c.then,c),a=function(){l(r)}):b?a=function(){w.nextTick(r)}:(p=h(p,f),a=function(){p(r)}):(s=!0,u=x.createTextNode(""),new y(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s})),t.exports=O||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},function(t,e,n){var r=n(43),i=n(1);t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},function(t,e,n){var r=n(43);t.exports=/web0s(?!.*chrome)/i.test(r)},function(t,e,n){var r=n(1);t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e){t.exports="object"==typeof window},function(t,e,n){var r=n(2),i=n(269);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(t,e,n){"use strict";var r=n(10),i=n(3),o=n(15),a=n(5),s=n(74),u=n(137),c=n(105),l=n(24),f=n(73),h=Object.assign,d=Object.defineProperty,p=i([].concat);t.exports=!h||a((function(){if(r&&1!==h({b:1},h(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=h({},t)[n]||"abcdefghijklmnopqrst"!=s(h({},e)).join("")}))?function(t,e){for(var n=l(t),i=arguments.length,a=1,h=u.f,d=c.f;i>a;)for(var v,m=f(arguments[a++]),g=h?p(s(m),h(m)):s(m),b=g.length,y=0;b>y;)v=g[y++],r&&!o(d,m,v)||(n[v]=m[v]);return n}:h},function(t,e,n){"use strict";var r=n(2),i=n(51),o=n(189),a=n(5),s=n(26),u=n(7),c=n(166),l=n(197),f=n(21);if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){o.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=c(this,s("Promise")),n=u(t);return this.then(n?function(n){return l(e,t()).then((function(){return n}))}:t,n?function(n){return l(e,t()).then((function(){throw n}))}:t)}}),!i&&u(o)){var h=s("Promise").prototype.finally;o.prototype.finally!==h&&f(o.prototype,"finally",h,{unsafe:!0})}},function(t,e,n){var r=n(1);t.exports=r},function(t,e,n){var r=n(1),i=n(63),o=n(108),a=n(9),s=n(8)("species"),u=r.Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(o(e)&&(e===u||i(e.prototype))||a(e)&&null===(e=e[s]))&&(e=void 0)),void 0===e?u:e}},function(t,e,n){"use strict";var r=n(143),i=n(107);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,e,n){var r=n(1),i=n(44),o=n(24),a=n(73),s=n(45),u=r.TypeError,c=function(t){return function(e,n,r,c){i(n);var l=o(e),f=a(l),h=s(l),d=t?h-1:0,p=t?-1:1;if(r<2)for(;;){if(d in f){c=f[d],d+=p;break}if(d+=p,t?d<0:h<=d)throw u("Reduce of empty array with no initial value")}for(;t?d>=0:h>d;d+=p)d in f&&(c=n(c,f[d],d,l));return c}};t.exports={left:c(!1),right:c(!0)}},function(t,e,n){var r=n(5);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,e,n){"use strict";var r=n(1),i=n(79),o=n(15),a=n(24),s=n(277),u=n(191),c=n(108),l=n(45),f=n(114),h=n(192),d=n(142),p=r.Array;t.exports=function(t){var e=a(t),n=c(this),r=arguments.length,v=r>1?arguments[1]:void 0,m=void 0!==v;m&&(v=i(v,r>2?arguments[2]:void 0));var g,b,y,x,w,_,k=d(e),O=0;if(!k||this==p&&u(k))for(g=l(e),b=n?new this(g):p(g);g>O;O++)_=m?v(e[O],O):e[O],f(b,O,_);else for(w=(x=h(e,k)).next,b=n?new this:[];!(y=o(w,x)).done;O++)_=m?s(x,v,[y.value,O],!0):y.value,f(b,O,_);return b.length=O,b}},function(t,e,n){var r=n(11),i=n(193);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){i(t,"throw",e)}}},function(t,e,n){var r=n(3),i=n(24),o=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,h){var d=n+t.length,p=r.length,v=l;return void 0!==f&&(f=i(f),v=c),s(h,v,(function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,n);case"'":return u(e,d);case"<":c=f[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>p){var h=o(l/10);return 0===h?i:h<=p?void 0===r[h-1]?a(s,1):r[h-1]+a(s,1):i}c=r[l-1]}return void 0===c?"":c}))}},function(t,e,n){var r=n(2),i=n(1),o=n(26),a=n(60),s=n(3),u=n(5),c=i.Array,l=o("JSON","stringify"),f=s(/./.exec),h=s("".charAt),d=s("".charCodeAt),p=s("".replace),v=s(1..toString),m=/[\uD800-\uDFFF]/g,g=/^[\uD800-\uDBFF]$/,b=/^[\uDC00-\uDFFF]$/,y=function(t,e,n){var r=h(n,e-1),i=h(n,e+1);return f(g,t)&&!f(b,i)||f(b,t)&&!f(g,r)?"\\u"+v(d(t,0),16):t},x=u((function(){return'"\\udf06\\ud834"'!==l("\udf06\ud834")||'"\\udead"'!==l("\udead")}));l&&r({target:"JSON",stat:!0,forced:x},{stringify:function(t,e,n){for(var r=0,i=arguments.length,o=c(i);r0&&o(l)?n>1?t(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},function(t,e,n){var r=n(81),i=n(150),o=n(37),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},function(t,e,n){var r=n(72),i=n(61);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},function(t,e,n){var r=n(81),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=n(286),i=n(342),o=n(158),a=n(37),s=n(352);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}},function(t,e,n){var r=n(287),i=n(341),o=n(226);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(211),i=n(215);t.exports=function(t,e,n,o){var a=n.length,s=a,u=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a-1}},function(t,e,n){var r=n(119);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},function(t,e,n){var r=n(118);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(118),i=n(151),o=n(153);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(213),i=n(299),o=n(152),a=n(214),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,h=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?h:s).test(a(t))}},function(t,e,n){var r,i=n(300),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var r=n(39)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(303),i=n(118),o=n(151);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(t,e,n){var r=n(304),i=n(305),o=n(306),a=n(307),s=n(308);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(217),i=n(364),o=n(369),a=n(218),s=n(370),u=n(154);t.exports=function(t,e,n){var c=-1,l=i,f=t.length,h=!0,d=[],p=d;if(n)h=!1,l=o;else if(f>=200){var v=e?null:s(t);if(v)return u(v);h=!1,l=a,p=new r}else p=e?[]:d;t:for(;++c-1}},function(t,e,n){var r=n(366),i=n(367),o=n(368);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o"+u+""}},function(t,e,n){var r=n(5);t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},function(t,e,n){"use strict";var r=n(2),i=n(1),o=n(3),a=n(96),s=n(21),u=n(116),c=n(141),l=n(140),f=n(7),h=n(9),d=n(5),p=n(144),v=n(47),m=n(172);t.exports=function(t,e,n){var g=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),y=g?"set":"add",x=i[t],w=x&&x.prototype,_=x,k={},O=function(t){var e=o(w[t]);s(w,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!h(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return b&&!h(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!h(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(a(t,!f(x)||!(b||w.forEach&&!d((function(){(new x).entries().next()})))))_=n.getConstructor(e,t,g,y),u.enable();else if(a(t,!0)){var j=new _,C=j[y](b?{}:-0,1)!=j,S=d((function(){j.has(1)})),M=p((function(t){new x(t)})),T=!b&&d((function(){for(var t=new x,e=5;e--;)t[y](e,e);return!t.has(-0)}));M||((_=e((function(t,e){l(t,w);var n=m(new x,t,_);return null!=e&&c(e,n[y],{that:n,AS_ENTRIES:g}),n}))).prototype=w,w.constructor=_),(S||T)&&(O("delete"),O("has"),g&&O("get")),(T||C)&&O(y),b&&w.clear&&delete w.clear}return k[t]=_,r({global:!0,forced:_!=x},k),v(_,t),b||n.setStrong(_,t,g),_}},function(t,e,n){"use strict";var r=n(3),i=n(139),o=n(116).getWeakData,a=n(11),s=n(9),u=n(140),c=n(141),l=n(55),f=n(13),h=n(27),d=h.set,p=h.getterFor,v=l.find,m=l.findIndex,g=r([].splice),b=0,y=function(t){return t.frozen||(t.frozen=new x)},x=function(){this.entries=[]},w=function(t,e){return v(t.entries,(function(t){return t[0]===e}))};x.prototype={get:function(t){var e=w(this,t);if(e)return e[1]},has:function(t){return!!w(this,t)},set:function(t,e){var n=w(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=m(this.entries,(function(e){return e[0]===t}));return~e&&g(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var l=t((function(t,i){u(t,h),d(t,{type:e,id:b++,frozen:void 0}),null!=i&&c(i,t[r],{that:t,AS_ENTRIES:n})})),h=l.prototype,v=p(e),m=function(t,e,n){var r=v(t),i=o(a(e),!0);return!0===i?y(r).set(e,n):i[r.id]=n,t};return i(h,{delete:function(t){var e=v(this);if(!s(t))return!1;var n=o(t);return!0===n?y(e).delete(t):n&&f(n,e.id)&&delete n[e.id]},has:function(t){var e=v(this);if(!s(t))return!1;var n=o(t);return!0===n?y(e).has(t):n&&f(n,e.id)}}),i(h,n?{get:function(t){var e=v(this);if(s(t)){var n=o(t);return!0===n?y(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return m(this,t,e)}}:{add:function(t){return m(this,t,!0)}}),l}}},function(t,e,n){var r=n(78).PROPER,i=n(5),o=n(173);t.exports=function(t){return i((function(){return!!o[t]()||"​…᠎"!=="​…᠎"[t]()||r&&o[t].name!==t}))}},function(t,e,n){function r(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}n(6),t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,u,"next",t)}function u(t){r(a,i,o,s,u,"throw",t)}s(void 0)}))}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(10),i=n(3),o=n(74),a=n(23),s=i(n(105).f),u=i([].push),c=function(t){return function(e){for(var n,i=a(e),c=o(i),l=c.length,f=0,h=[];l>f;)n=c[f++],r&&!s(i,n)||u(h,t?[n,i[n]]:i[n]);return h}};t.exports={entries:c(!0),values:c(!1)}},function(t,e,n){var r=n(381),i=n(382),o=n(174),a=n(383);t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){n(42),t.exports=function(t){if(Array.isArray(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){n(17),n(19),n(6),n(25),n(12),n(14),t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(385),i=n(386),o=n(174),a=n(387);t.exports=function(t){return r(t)||i(t)||o(t)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){n(42);var r=n(235);t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){n(17),n(19),n(6),n(25),n(12),n(14),n(117),t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){n(33),n(17),n(28),n(6),n(229),n(34),n(35),n(145),n(230),n(38);var r=n(389);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}t.exports=function(t){for(var e=1;e0;)t[r]=t[--r];r!==o++&&(t[r]=n)}return t},s=function(t,e,n,r){for(var i=e.length,o=n.length,a=0,s=0;a=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(i.path||""),l=e&&e.path||"/",f=c.path?M(c.path,l,n||i.append):l,h=function(t,e,n){void 0===e&&(e={});var r,i=n||v;try{r=i(t||"")}catch(t){r={}}for(var o in e){var a=e[o];r[o]=Array.isArray(a)?a.map(p):p(a)}return r}(c.query,i.query,r&&r.options.parseQuery),d=i.hash||c.hash;return d&&"#"!==d.charAt(0)&&(d="#"+d),{_normalized:!0,path:f,query:h,hash:d}}var G,Z=function(){},K={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.location,a=i.route,s=i.href,c={},l=n.options.linkActiveClass,f=n.options.linkExactActiveClass,h=null==l?"router-link-active":l,d=null==f?"router-link-exact-active":f,p=null==this.activeClass?h:this.activeClass,v=null==this.exactActiveClass?d:this.exactActiveClass,m=a.redirectedFrom?b(null,X(a.redirectedFrom),null,n):a;c[v]=k(r,m,this.exactPath),c[p]=this.exact||this.exactPath?c[v]:function(t,e){return 0===t.path.replace(g,"/").indexOf(e.path.replace(g,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,m);var y=c[v]?this.ariaCurrentValue:null,x=function(t){Q(t)&&(e.replace?n.replace(o,Z):n.push(o,Z))},w={click:Q};Array.isArray(this.event)?this.event.forEach((function(t){w[t]=x})):w[this.event]=x;var _={class:c},O=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:s,route:a,navigate:x,isActive:c[p],isExactActive:c[v]});if(O){if(1===O.length)return O[0];if(O.length>1||!O.length)return 0===O.length?t():t("span",{},O)}if("a"===this.tag)_.on=w,_.attrs={href:s,"aria-current":y};else{var j=function t(e){var n;if(e)for(var r=0;r-1&&(s.params[h]=n.params[h]);return s.path=Y(l.path,s.params),u(l,s,a)}if(s.path){s.params={};for(var d=0;d=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}var Ot={redirected:2,aborted:4,cancelled:8,duplicated:16};function jt(t,e){return St(t,e,Ot.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return Mt.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function Ct(t,e){return St(t,e,Ot.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function St(t,e,n,r){var i=new Error(r);return i._isRouter=!0,i.from=t,i.to=e,i.type=n,i}var Mt=["params","query","hash"];function Tt(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Pt(t,e){return Tt(t)&&t._isRouter&&(null==e||t.type===e)}function Et(t){return function(e,n,r){var i=!1,o=0,a=null;At(t,(function(t,e,n,s){if("function"==typeof t&&void 0===t.cid){i=!0,o++;var u,c=Lt((function(e){var i;((i=e).__esModule||zt&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:G.extend(e),n.components[s]=e,--o<=0&&r()})),l=Lt((function(t){var e="Failed to resolve async component "+s+": "+t;a||(a=Tt(t)?t:new Error(e),r(a))}));try{u=t(c,l)}catch(t){l(t)}if(u)if("function"==typeof u.then)u.then(c,l);else{var f=u.component;f&&"function"==typeof f.then&&f.then(c,l)}}})),i||r()}}function At(t,e){return Dt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Dt(t){return Array.prototype.concat.apply([],t)}var zt="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Lt(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Rt=function(t,e){this.router=t,this.base=function(t){if(!t)if(J){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=x,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function It(t,e,n,r){var i=At(t,(function(t,r,i,o){var a=function(t,e){"function"!=typeof t&&(t=G.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map((function(t){return n(t,r,i,o)})):n(a,r,i,o)}));return Dt(r?i.reverse():i)}function Ft(t,e){if(e)return function(){return t.apply(e,arguments)}}Rt.prototype.listen=function(t){this.cb=t},Rt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Rt.prototype.onError=function(t){this.errorCbs.push(t)},Rt.prototype.transitionTo=function(t,e,n){var r,i=this;try{r=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}var o=this.current;this.confirmTransition(r,(function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.router.afterHooks.forEach((function(t){t&&t(r,o)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!i.ready&&(Pt(t,Ot.redirected)&&o===x||(i.ready=!0,i.readyErrorCbs.forEach((function(e){e(t)}))))}))},Rt.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current;this.pending=t;var o,a,s=function(t){!Pt(t)&&Tt(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)},u=t.matched.length-1,c=i.matched.length-1;if(k(t,i)&&u===c&&t.matched[u]===i.matched[c])return this.ensureURL(),t.hash&&ft(this.router,i,t,!1),s(((a=St(o=i,t,Ot.duplicated,'Avoided redundant navigation to current location: "'+o.fullPath+'".')).name="NavigationDuplicated",a));var l=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n0)){var e=this.router,n=e.options.scrollBehavior,r=xt&&n;r&&this.listeners.push(lt());var i=function(){var n=t.current,i=Ut(t.base);t.current===x&&i===t._startLocation||t.transitionTo(i,(function(t){r&&ft(e,t,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){wt(T(r.base+t.fullPath)),ft(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){_t(T(r.base+t.fullPath)),ft(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(Ut(this.base)!==this.current.fullPath){var e=T(this.base+this.current.fullPath);t?wt(e):_t(e)}},e.prototype.getCurrentLocation=function(){return Ut(this.base)},e}(Rt);function Ut(t){var e=window.location.pathname,n=e.toLowerCase(),r=t.toLowerCase();return!t||n!==r&&0!==n.indexOf(T(r+"/"))||(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var $t=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=Ut(t);if(!/^\/#/.test(e))return window.location.replace(T(t+"/#"+e)),!0}(this.base)||Bt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=xt&&e;n&&this.listeners.push(lt());var r=function(){var e=t.current;Bt()&&t.transitionTo(Ht(),(function(r){n&&ft(t.router,r,e,!0),xt||qt(r.fullPath)}))},i=xt?"popstate":"hashchange";window.addEventListener(i,r),this.listeners.push((function(){window.removeEventListener(i,r)}))}},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){Vt(t.fullPath),ft(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){qt(t.fullPath),ft(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Ht()!==e&&(t?Vt(e):qt(e))},e.prototype.getCurrentLocation=function(){return Ht()},e}(Rt);function Bt(){var t=Ht();return"/"===t.charAt(0)||(qt("/"+t),!1)}function Ht(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function Wt(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Vt(t){xt?wt(Wt(t)):window.location.hash=t}function qt(t){xt?_t(Wt(t)):window.location.replace(Wt(t))}var Yt=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){Pt(t,Ot.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Rt),Xt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=nt(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!xt&&!1!==t.fallback,this.fallback&&(e="hash"),J||(e="abstract"),this.mode=e,e){case"history":this.history=new Nt(this,t.base);break;case"hash":this.history=new $t(this,t.base,this.fallback);break;case"abstract":this.history=new Yt(this,t.base);break;default:0}},Gt={currentRoute:{configurable:!0}};function Zt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Xt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Gt.currentRoute.get=function(){return this.history&&this.history.current},Xt.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var n=this.history;if(n instanceof Nt||n instanceof $t){var r=function(t){n.setupListeners(),function(t){var r=n.current,i=e.options.scrollBehavior;xt&&i&&"fullPath"in t&&ft(e,t,r,!1)}(t)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Xt.prototype.beforeEach=function(t){return Zt(this.beforeHooks,t)},Xt.prototype.beforeResolve=function(t){return Zt(this.resolveHooks,t)},Xt.prototype.afterEach=function(t){return Zt(this.afterHooks,t)},Xt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Xt.prototype.onError=function(t){this.history.onError(t)},Xt.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},Xt.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},Xt.prototype.go=function(t){this.history.go(t)},Xt.prototype.back=function(){this.go(-1)},Xt.prototype.forward=function(){this.go(1)},Xt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Xt.prototype.resolve=function(t,e,n){var r=X(t,e=e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?T(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},Xt.prototype.getRoutes=function(){return this.matcher.getRoutes()},Xt.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==x&&this.history.transitionTo(this.history.getCurrentLocation())},Xt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==x&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Xt.prototype,Gt),Xt.install=function t(e){if(!t.installed||G!==e){t.installed=!0,G=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",C),e.component("RouterLink",K);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Xt.version="3.5.3",Xt.isNavigationFailure=Pt,Xt.NavigationFailureType=Ot,Xt.START_LOCATION=x,J&&window.Vue&&window.Vue.use(Xt);var Kt=Xt;n(145),n(146),n(33),n(147),n(252);function Qt(t){t.locales&&Object.keys(t.locales).forEach((function(e){t.locales[e].path=e})),Object.freeze(t)}var Jt=n(58),te=(n(20),n(41),n(128),n(129),{NotFound:function(){return n.e(7).then(n.bind(null,472))},Layout:function(){return Promise.all([n.e(0),n.e(2)]).then(n.bind(null,470))}}),ee={"v-908d9ca0":function(){return n.e(8).then(n.bind(null,475))},"v-1bbdc0fd":function(){return n.e(9).then(n.bind(null,476))},"v-192dc8a4":function(){return n.e(11).then(n.bind(null,477))},"v-3c782189":function(){return n.e(10).then(n.bind(null,478))},"v-2787a4b5":function(){return n.e(13).then(n.bind(null,479))},"v-a623eb16":function(){return n.e(12).then(n.bind(null,480))},"v-6f9c5d56":function(){return n.e(14).then(n.bind(null,481))},"v-6beba80e":function(){return n.e(15).then(n.bind(null,482))},"v-07976e15":function(){return n.e(16).then(n.bind(null,483))},"v-4ee50b15":function(){return n.e(17).then(n.bind(null,484))},"v-13cb82d5":function(){return n.e(19).then(n.bind(null,485))},"v-b2bdd296":function(){return n.e(18).then(n.bind(null,486))},"v-5f22cfba":function(){return n.e(20).then(n.bind(null,487))},"v-5ba83635":function(){return n.e(22).then(n.bind(null,488))},"v-f2b8a30a":function(){return n.e(23).then(n.bind(null,489))},"v-4a15025e":function(){return n.e(25).then(n.bind(null,490))},"v-1b1753d5":function(){return n.e(21).then(n.bind(null,491))},"v-bea74026":function(){return n.e(24).then(n.bind(null,492))},"v-294c46d5":function(){return n.e(27).then(n.bind(null,493))},"v-0a0c2246":function(){return n.e(26).then(n.bind(null,494))},"v-ac900b9a":function(){return n.e(29).then(n.bind(null,495))},"v-45d52f75":function(){return n.e(28).then(n.bind(null,496))}};function ne(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ne=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),s=new C(i||[]);return r(a,"_invoke",{value:_(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function d(){}function p(){}function v(){}var m={};c(m,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(S([])));b&&b!==e&&n.call(b,a)&&(m=b);var y=v.prototype=d.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var o;r(this,"_invoke",{value:function(r,a){function s(){return new e((function(o,s){!function r(o,a,s,u){var c=f(t[o],t,a);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==i(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(h).then((function(t){l.value=t,s(l)}),(function(t){return r("throw",t,s,u)}))}u(c.arg)}(r,a,o,s)}))}return o=o?o.then(s,s):s()}})}function _(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return M()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function k(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function re(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var ie=/-(\w)/g,oe=re((function(t){return t.replace(ie,(function(t,e){return e?e.toUpperCase():""}))})),ae=/\B([A-Z])/g,se=re((function(t){return t.replace(ae,"-$1").toLowerCase()})),ue=re((function(t){return t.charAt(0).toUpperCase()+t.slice(1)}));function ce(t,e){if(e)return t(e)?t(e):e.includes("-")?t(ue(oe(e))):t(ue(e))||t(se(e))}var le=Object.assign({},te,ee),fe=function(t){return le[t]},he=function(t){return ee[t]},de=function(t){return te[t]},pe=function(t){return s.a.component(t)};function ve(t){return ce(he,t)}function me(t){return ce(de,t)}function ge(t){return ce(fe,t)}function be(t){return ce(pe,t)}function ye(){for(var t=arguments.length,e=new Array(t),n=0;n"})).join("\n "):"",this.$ssrContext.canonicalLink=Se(this.$canonicalUrl)}var e},mounted:function(){this.currentMetaTags=Object(Jt.a)(document.querySelectorAll("meta")),this.updateMeta(),this.updateCanonicalLink()},methods:{updateMeta:function(){document.title=this.$title,document.documentElement.lang=this.$lang;var t=this.getMergedMetaTags();this.currentMetaTags=Me(t,this.currentMetaTags)},getMergedMetaTags:function(){var t=this.$page.frontmatter.meta||[];return Oe()([{name:"description",content:this.$description}],t,this.siteMeta,Te)},updateCanonicalLink:function(){Ce(),this.$canonicalUrl&&document.head.insertAdjacentHTML("beforeend",Se(this.$canonicalUrl))}},watch:{$page:function(){this.updateMeta(),this.updateCanonicalLink()}},beforeDestroy:function(){Me(null,this.currentMetaTags),Ce()}};function Ce(){var t=document.querySelector("link[rel='canonical']");t&&t.remove()}function Se(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t?''):""}function Me(t,e){if(e&&Object(Jt.a)(e).filter((function(t){return t.parentNode===document.head})).forEach((function(t){return document.head.removeChild(t)})),t)return t.map((function(t){var e=document.createElement("meta");return Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])})),document.head.appendChild(e),e}))}function Te(t){for(var e=0,n=["name","property","itemprop"];e=s.parentElement.offsetTop+10&&(!u||r=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}n(90),n(91),n(92),n(93),n(163),n(231),n(130);var Ie=n(49),Fe=n.n(Ie),Ne=n(247),Ue=n(248),$e=n(85),Be=n(86),He=n(243),We=s.a.extend({components:{DropdownLink:He.a},props:{item:{type:Object,required:!0}}}),Ve=(n(397),n(22)),qe=Object(Ve.a)(We,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"versions-dropdown nav-item can-hide"},[e("dropdown-link",{attrs:{item:this.item}})],1)}),[],!1,null,"3dd359e2",null).exports;function Ye(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ye=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),s=new C(i||[]);return r(a,"_invoke",{value:_(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function d(){}function p(){}function v(){}var m={};c(m,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(S([])));b&&b!==e&&n.call(b,a)&&(m=b);var y=v.prototype=d.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var o;r(this,"_invoke",{value:function(r,a){function s(){return new e((function(o,s){!function r(o,a,s,u){var c=f(t[o],t,a);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==i(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(h).then((function(t){l.value=t,s(l)}),(function(t){return r("throw",t,s,u)}))}u(c.arg)}(r,a,o,s)}))}return o=o?o.then(s,s):s()}})}function _(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return M()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function k(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}var Xe=Fe.a.filters||{};function Ge(t,e,n){var r=Object($e.resolveTemplate)(t,e,n);r.startsWith("/")&&(r="".concat(window.location.origin).concat(r));var i="".concat(window.location.origin).concat(Fe.a.base);return r.startsWith(i)?r.substring(i.length)+"/":r}function Ze(t,e){if(t.exclude){var n=new RegExp(t.exclude);e=e.filter((function(t){return!t.name.match(n)}))}var r=Object(Be.collapseVersions)(t,e);return t.limit>0&&(r=r.slice(0,t.limit)),r.map((function(e){var n=t.target,r=Object(Be.describeVersion)(e);return{target:n,text:Object($e.resolveTemplate)(t.text,r,Xe),link:Ge(t.link,r,Xe)}}))}function Ke(t,e){var n=t.menu;if(!n)return{};var r=e.find((function(e){return e.name===t.version}))||{name:t.version,tag:null},i=Object(Be.describeVersion)(r),o=Object($e.resolveTemplate)(n.text,i,Xe);return{items:function t(e,n,r){var i,o=[],a=Re(e);try{for(a.s();!(i=a.n()).done;){var s=i.value;if("versions"===s.type)o.push.apply(o,Object(Jt.a)(Ze(Object(Le.a)({group:"minor",link:"/{{version}}/",text:"{{version}}"},s),n)));else{var u=Object(Be.describeVersion)(r),c=Object($e.resolveTemplate)(s.text||"",u,Xe);s.items?o.push(Object(Le.a)(Object(Le.a)({},s),{},{text:c,type:"links",items:t(s.items,n,r)})):o.push(Object(Le.a)(Object(Le.a)({},s),{},{text:c,link:Ge(s.link||"",u,Xe)}))}}}catch(t){a.e(t)}finally{a.f()}return o}(n.items||[],e,r),text:o}}var Qe=s.a.observable({inserted:!1,dropdown:{}}),Je=[je,Ee,ze,{mounted:function(){return a(Ye().mark((function t(){var e,n,r;return Ye().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=Ke(Fe.a,Fe.a.versions||[]),s.a.set(Qe,"dropdown",e),t.prev=2,t.next=5,Object(Ue.fetchNpmVersions)(fetch,Fe.a.name);case 5:n=t.sent,r=Ke(Fe.a,n),Object.assign(Qe.dropdown,r),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),console.error("Failed to retrieve available versions");case 13:case"end":return t.stop()}}),t,null,[[2,10]])})))()},updated:function(){var t=this;return a(Ye().mark((function e(){var n,r,i,o,a,s;return Ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.$router,!Qe.inserted){r=Re(Fe.a.menu.locations);try{for(r.s();!(i=r.n()).done;)o=i.value,a={item:Qe.dropdown},s=new qe({router:n,propsData:a}).$mount(),Object(Ne.injectElement)(t.$el,s.$el,o)}catch(t){r.e(t)}finally{r.f()}Qe.inserted=!0}case 2:case"end":return e.stop()}}),e)})))()}}],tn={name:"GlobalLayout",computed:{layout:function(){var t=this.getLayout();return xe("layout",t),s.a.component(t)}},methods:{getLayout:function(){if(this.$page.path){var t=this.$page.frontmatter.layout;return t&&(this.$vuepress.getLayoutAsyncComponent(t)||this.$vuepress.getVueComponent(t))?t:"Layout"}return"NotFound"}}},en=Object(Ve.a)(tn,(function(){var t=this.$createElement;return(this._self._c||t)(this.layout,{tag:"component"})}),[],!1,null,null,null).exports;!function(t,e,n){var r;switch(e){case"components":t[e]||(t[e]={}),Object.assign(t[e],n);break;case"mixins":t[e]||(t[e]=[]),(r=t[e]).push.apply(r,Object(Jt.a)(n));break;default:throw new Error("Unknown option name.")}}(en,"mixins",Je);var nn=[{name:"v-908d9ca0",path:"/api/",component:en,beforeEnter:function(t,e,n){ye("Layout","v-908d9ca0").then(n)}},{path:"/api/index.html",redirect:"/api/"},{name:"v-1bbdc0fd",path:"/guide/animations.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-1bbdc0fd").then(n)}},{name:"v-192dc8a4",path:"/guide/",component:en,beforeEnter:function(t,e,n){ye("Layout","v-192dc8a4").then(n)}},{path:"/guide/index.html",redirect:"/guide/"},{name:"v-3c782189",path:"/guide/developers.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-3c782189").then(n)}},{name:"v-2787a4b5",path:"/guide/options.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-2787a4b5").then(n)}},{name:"v-a623eb16",path:"/guide/integration.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-a623eb16").then(n)}},{name:"v-6f9c5d56",path:"/guide/usage.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-6f9c5d56").then(n)}},{name:"v-6beba80e",path:"/",component:en,beforeEnter:function(t,e,n){ye("Layout","v-6beba80e").then(n)}},{path:"/index.html",redirect:"/"},{name:"v-07976e15",path:"/samples/api.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-07976e15").then(n)}},{name:"v-4ee50b15",path:"/samples/basic.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-4ee50b15").then(n)}},{name:"v-13cb82d5",path:"/samples/drag/linear.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-13cb82d5").then(n)}},{name:"v-b2bdd296",path:"/samples/drag/category.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-b2bdd296").then(n)}},{name:"v-5f22cfba",path:"/samples/drag/log.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-5f22cfba").then(n)}},{name:"v-5ba83635",path:"/samples/drag/timeseries.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-5ba83635").then(n)}},{name:"v-f2b8a30a",path:"/samples/fetch-data.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-f2b8a30a").then(n)}},{name:"v-4a15025e",path:"/samples/wheel/category.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-4a15025e").then(n)}},{name:"v-1b1753d5",path:"/samples/drag/time.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-1b1753d5").then(n)}},{name:"v-bea74026",path:"/samples/pan-region.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-bea74026").then(n)}},{name:"v-294c46d5",path:"/samples/wheel/log.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-294c46d5").then(n)}},{name:"v-0a0c2246",path:"/samples/wheel/click-zoom.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-0a0c2246").then(n)}},{name:"v-ac900b9a",path:"/samples/wheel/time.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-ac900b9a").then(n)}},{name:"v-45d52f75",path:"/samples/wheel/over-scale-mode.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-45d52f75").then(n)}},{path:"*",component:en}],rn={title:"chartjs-plugin-zoom",description:"A zoom and pan plugin for Chart.js >= 3.0.0",base:"/chartjs-plugin-zoom/master/",headTags:[["link",{rel:"icon",href:"/chartjs-plugin-zoom/master/favicon.ico"}]],pages:[{title:"chartjs-plugin-zoom - v2.0.1",frontmatter:{},regularPath:"/api/",relativePath:"api/README.md",key:"v-908d9ca0",path:"/api/",headers:[{level:2,title:"Type aliases",slug:"type-aliases"},{level:3,title:"PanFunction",slug:"panfunction"},{level:3,title:"ZoomFunction",slug:"zoomfunction"},{level:3,title:"ZoomRectFunction",slug:"zoomrectfunction"},{level:2,title:"Variables",slug:"variables"},{level:3,title:"default",slug:"default"},{level:2,title:"Functions",slug:"functions"},{level:3,title:"getInitialScaleBounds",slug:"getinitialscalebounds"},{level:3,title:"getZoomLevel",slug:"getzoomlevel"},{level:3,title:"isZoomedOrPanned",slug:"iszoomedorpanned"},{level:3,title:"pan",slug:"pan"},{level:3,title:"resetZoom",slug:"resetzoom"},{level:3,title:"zoom",slug:"zoom"},{level:3,title:"zoomRect",slug:"zoomrect"},{level:3,title:"zoomScale",slug:"zoomscale"}],content:' chartjs-plugin-zoom - v2.0.1 \n Type aliases \n PanFunction \n Ƭ PanFunction : ( scale : Scale , delta : number , limits : LimitOptions ) => boolean \n Type declaration \n ▸ ( scale , delta , limits ): boolean \n Parameters \n \n \n \n Name \n Type \n \n \n \n \n scale \n Scale \n \n \n delta \n number \n \n \n limits \n LimitOptions \n Returns \n boolean \n Defined in \n index.d.ts:35 \n ZoomFunction \n Ƭ ZoomFunction : ( scale : Scale , zoom : number , center : Point , limits : LimitOptions ) => boolean \n Type declaration \n ▸ ( scale , zoom , center , limits ): boolean \n Parameters \n \n \n \n Name \n Type \n \n \n \n \n scale \n Scale \n \n \n zoom \n number \n \n \n center \n Point \n \n \n limits \n LimitOptions \n Returns \n boolean \n Defined in \n index.d.ts:33 \n ZoomRectFunction \n Ƭ ZoomRectFunction : ( scale : Scale , from : number , to : number , limits : LimitOptions ) => boolean \n Type declaration \n ▸ ( scale , from , to , limits ): boolean \n Parameters \n \n \n \n Name \n Type \n \n \n \n \n scale \n Scale \n \n \n from \n number \n \n \n to \n number \n \n \n limits \n LimitOptions \n Returns \n boolean \n Defined in \n index.d.ts:34 \n Variables \n default \n • default : Plugin & { panFunctions : ScaleFunctions < PanFunction > ; zoomFunctions : ScaleFunctions < ZoomFunction > ; zoomRectFunctions : ScaleFunctions < ZoomRectFunction > } \n Defined in \n index.d.ts:43 \n Functions \n getInitialScaleBounds \n ▸ getInitialScaleBounds ( chart ): Record < string , Object > \n Parameters \n \n \n \n Name \n Type \n \n \n \n \n chart \n Chart \n Returns \n Record < string , Object > \n Defined in \n index.d.ts:57 \n getZoomLevel \n ▸ getZoomLevel ( chart ): number \n Parameters \n \n \n \n Name \n Type \n \n \n \n \n chart \n Chart \n Returns \n number \n Defined in \n index.d.ts:56 \n isZoomedOrPanned \n ▸ isZoomedOrPanned ( chart ): boolean \n Parameters \n \n \n \n Name \n Type \n \n \n \n \n chart \n Chart \n Returns \n boolean \n Defined in \n index.d.ts:58 \n pan \n ▸ pan ( chart , amount , scales? , mode? ): void \n Parameters \n \n \n \n Name \n Type \n \n \n \n \n chart \n Chart \n \n \n amount \n PanAmount \n \n \n scales? \n Scale < CoreScaleOptions >[] \n \n \n mode? \n "resize" | "reset" | "none" | "hide" | "show" | "default" | "active" | "zoom" \n Returns \n void \n Defined in \n index.d.ts:51 \n resetZoom \n ▸ resetZoom ( chart , mode? ): void \n Parameters \n \n \n \n Name \n Type \n \n \n \n \n chart \n Chart \n \n \n mode? \n "resize" | "reset" | "none" | "hide" | "show" | "default" | "active" | "zoom" \n Returns \n void \n Defined in \n index.d.ts:55 \n zoom \n ▸ zoom ( chart , amount , mode? ): void \n Parameters \n \n \n \n Name \n Type \n \n \n \n \n chart \n Chart \n \n \n amount \n ZoomAmount \n \n \n mode? \n "resize" | "reset" | "none" | "hide" | "show" | "default" | "active" | "zoom" \n Returns \n void \n Defined in \n index.d.ts:52 \n zoomRect \n ▸ zoomRect ( chart , p0 , p1 , mode? ): void \n Parameters \n \n \n \n Name \n Type \n \n \n \n \n chart \n Chart \n \n \n p0 \n Point \n \n \n p1 \n Point \n \n \n mode? \n "resize" | "reset" | "none" | "hide" | "show" | "default" | "active" | "zoom" \n Returns \n void \n Defined in \n index.d.ts:53 \n zoomScale \n ▸ zoomScale ( chart , scaleId , range , mode? ): void \n Parameters \n \n \n \n Name \n Type \n \n \n \n \n chart \n Chart \n \n \n scaleId \n string \n \n \n range \n ScaleRange \n \n \n mode? \n "resize" | "reset" | "none" | "hide" | "show" | "default" | "active" | "zoom" \n Returns \n void \n Defined in \n index.d.ts:54 \n'},{title:"Animations",frontmatter:{},regularPath:"/guide/animations.html",relativePath:"guide/animations.md",key:"v-1bbdc0fd",path:"/guide/animations.html",lastUpdated:"11/14/2024, 7:07:28 PM",content:" Animations \n The drag-to-zoom animation can be customized by configuring the zoom transition in your chart config: \n { \n options : { \n transitions : { \n zoom : { \n animation : { \n duration : 1000 , \n easing : 'easeOutCubic' \n } \n } \n } \n } \n } \n \n If you want to disable zoom animations: \n { \n options : { \n transitions : { \n zoom : { \n animation : { \n duration : 0 \n } \n } \n } \n } \n } \n \n "},{title:"Getting Started",frontmatter:{},regularPath:"/guide/",relativePath:"guide/index.md",key:"v-192dc8a4",path:"/guide/",headers:[{level:2,title:"Installation",slug:"installation"}],lastUpdated:"11/14/2024, 7:07:28 PM",content:" Getting Started \n A zoom and pan plugin for Chart.js >= 3.0.0 \n Panning can be done via the mouse or with a finger.\nZooming is done via the mouse wheel or via a pinch gesture. Hammer.js is used for gesture recognition. \n Installation \n > npm install chartjs-plugin-zoom\n \n TIP \n Important Note: For Chart.js 2.6.0 to 2.9.x support, use version 0.7.7 of this plugin .\nDocumentation for v0.7.7 can be found on GitHub . \n \n"},{title:"Developers",frontmatter:{},regularPath:"/guide/developers.html",relativePath:"guide/developers.md",key:"v-3c782189",path:"/guide/developers.html",headers:[{level:2,title:"Imperative Zoom/Pan API",slug:"imperative-zoom-pan-api"},{level:3,title:"chart.pan(delta, scales?, mode = 'none'): void",slug:"chart-pan-delta-scales-mode-none-void"},{level:3,title:"chart.zoom(zoomLevel, mode = 'none'): void",slug:"chart-zoom-zoomlevel-mode-none-void"},{level:3,title:"chart.zoomScale(scaleId, newRange, mode = 'none'): void",slug:"chart-zoomscale-scaleid-newrange-mode-none-void"},{level:3,title:"chart.resetZoom(mode = 'none'): void",slug:"chart-resetzoom-mode-none-void"},{level:3,title:"chart.getZoomLevel(): number",slug:"chart-getzoomlevel-number"},{level:3,title:"chart.getInitialScaleBounds(): Record",slug:"chart-getinitialscalebounds-record-string-min-number-max-number"},{level:3,title:"chart.isZoomedOrPanned(): boolean",slug:"chart-iszoomedorpanned-boolean"},{level:2,title:"Custom Scales",slug:"custom-scales"}],lastUpdated:"11/14/2024, 7:07:28 PM",content:" Developers \n Imperative Zoom/Pan API \n Alongside user-driven interactions, it is also possible to imperatively interact with the chart, either to manually zoom into a selected region, or to get information about the current zoom status. \n chart.pan(delta, scales?, mode = 'none'): void \n Pans the current chart by the specified amount in one or more axes. The value of delta can be a number, in which case all axes are panned by the same amount, or it can be an {x, y} object to pan different amounts in the horizontal and vertical directions. The value of scales is a list of scale objects that should be panned - by default, all scales of the chart will be panned. The value of mode should be one of the Chart.js animation modes . \n chart.zoom(zoomLevel, mode = 'none'): void \n Zooms the current chart by the specified amount in one more axes. The value of zoomLevel can be a number, in which case all axes are zoomed by the same amount, or it can be an {x, y} object to zoom different amounts in the horizontal and vertical directions. The value of mode should be one of the Chart.js animation modes . \n chart.zoomScale(scaleId, newRange, mode = 'none'): void \n Zooms the specified scale to the range given by newRange . This is an object in the form {min, max} and represents the new bounds of that scale. The value of mode should be one of the Chart.js animation modes . \n chart.resetZoom(mode = 'none'): void \n Resets the current chart bounds to the defaults that were used before any zooming or panning occurred. The value of mode should be one of the Chart.js animation modes . \n chart.getZoomLevel(): number \n Returns the current zoom level. If this is the same as the chart's initial scales, the value returned will be 1.0 . Otherwise, the value will be less than one if the chart has been zoomed out, and more than one if it has been zoomed in. If different axes have been zoomed by different amounts, the returned value will be the zoom level of the most zoomed out axis if any have been zoomed out, otherwise it will be the zoom level of the most zoomed-in axis. \n If the chart has been panned but not zoomed, this method will still return 1.0 . \n chart.getInitialScaleBounds(): Record \n Returns the initial scale bounds of each scale before any zooming or panning took place. This is returned in the format of an object, e.g. \n { \n x : { min : 0 , max : 100 } , \n y1 : { min : 50 , max : 80 } , \n y2 : { min : 0.1 , max : 0.8 } \n } \n chart.isZoomedOrPanned(): boolean \n Returns whether the chart has been zoomed or panned - i.e. whether the initial scale of any axis is different to the one used currently. \n Custom Scales \n You can extend chartjs-plugin-zoom with support for custom scales by using the zoom plugin's zoomFunctions , zoomRectFunctions , and panFunctions members. These objects are indexed by scale types (scales' id members) and give optional handlers for zoom and pan functionality. \n import { Scale } from 'chart.js' ; \n import zoomPlugin from 'chartjs-plugin-zoom' ; \n\n class MyScale extends Scale { \n /* extensions ... */ \n } \nMyScale . id = 'myScale' ; \nMyScale . defaults = defaultConfigObject ; \n\nzoomPlugin . zoomFunctions . myScale = ( scale , zoom , center , limits ) => false ; \nzoomPlugin . zoomRectFunctions . myScale = ( scale , from , to , limits ) => false ; \nzoomPlugin . panFunctions . myScale = ( scale , delta , limits ) => false ; \n // zoomRectFunctions can normally be omitted, since zooming by specific pixel \n // coordinates rarely needs special handling. \n \n The zoom, zoomRect, and pan functions take the following arguments: \n \n \n \n Name \n Type \n For \n Description \n \n \n \n \n scale \n Scale \n Zoom, Pan \n The custom scale instance (usually derived from Chart.Scale ) \n \n \n zoom \n number \n Zoom \n The zoom fraction; 1.0 is unzoomed, 0.5 means zoomed in to 50% of the original area, etc. \n \n \n center \n {x, y} \n Zoom \n Pixel coordinates of the center of the zoom operation. {x: 0, y: 0} is the upper left corner of the chart's canvas. \n \n \n from \n number \n ZoomRect \n Pixel coordinate of the start of the zoomRect operation. \n \n \n to \n number \n ZoomRect \n Pixel coordinate of the end of the zoomRect operation. \n \n \n delta \n number \n Pan \n Pixel amount to pan by \n \n \n limits \n Limits \n Zoom, Pan \n Zoom and pan limits (from chart options) \n \n \n \n For examples, see chartjs-plugin-zoom's default zoomFunctions, zoomRectFunctions, and panFunctions handling for standard Chart.js axes . \n"},{title:"Options",frontmatter:{},regularPath:"/guide/options.html",relativePath:"guide/options.md",key:"v-2787a4b5",path:"/guide/options.html",headers:[{level:2,title:"Pan",slug:"pan"},{level:3,title:"Pan Options",slug:"pan-options"},{level:3,title:"Pan Events",slug:"pan-events"},{level:2,title:"Zoom",slug:"zoom"},{level:3,title:"Zoom Options",slug:"zoom-options"},{level:2,title:"Draw Time",slug:"draw-time"},{level:3,title:"Zoom Events",slug:"zoom-events"},{level:2,title:"Limits",slug:"limits"},{level:3,title:"Limit options",slug:"limit-options"}],lastUpdated:"11/14/2024, 7:07:28 PM",content:" Options \n The options for chartjs-plugin-zoom should be placed in options.plugins.zoom in chart.js configuration. \n The options are split in three sub-objects, limits , pan and zoom . \n const chart = new Chart ( 'id' , { \n type : 'bar' , \n data : { } , \n options : { \n plugins : { \n zoom : { \n pan : { \n // pan options and/or events \n } , \n limits : { \n // axis limits \n } , \n zoom : { \n // zoom options and/or events \n } \n } \n } \n } \n } ) ; \n Pan \n Pan Options \n \n \n \n Name \n Type \n Default \n Description \n \n \n \n \n enabled \n boolean \n false \n Enable panning \n \n \n mode \n 'x' | 'y' | 'xy' \n 'xy' \n Allowed panning directions \n \n \n modifierKey \n 'ctrl' | 'alt' | 'shift' | 'meta' \n null \n Modifier key required for panning with mouse \n \n \n scaleMode \n 'x' | 'y' | 'xy' \n undefined \n Enable panning over a scale for that axis (regardless of mode) \n \n \n overScaleMode \n 'x' | 'y' | 'xy' \n undefined \n Enable panning over a scale for that axis (but only if mode is also enabled), and disables panning along that axis otherwise. Deprecated. \n \n \n threshold \n number \n 10 \n Minimal pan distance required before actually applying pan \n Pan Events \n \n \n \n Name \n Arguments \n Description \n \n \n \n \n onPan \n {chart} \n Called while the chart is being panned \n \n \n onPanComplete \n {chart} \n Called once panning is completed \n \n \n onPanRejected \n {chart,event} \n Called when panning is rejected due to missing modifier key. event is the a hammer event that failed \n \n \n onPanStart \n {chart,event,point} \n Called when panning is about to start. If this callback returns false, panning is aborted and onPanRejected is invoked \n Zoom \n Zoom Options \n \n \n \n Name \n Type \n Default \n Description \n \n \n \n \n wheel \n WheelOptions \n \n Options of the mouse wheel behavior \n \n \n drag \n DragOptions \n \n Options of the drag-to-zoom behavior \n \n \n pinch \n PinchOptions \n \n Options of the pinch behavior \n \n \n mode \n 'x' | 'y' | 'xy' \n 'xy' \n Allowed zoom directions \n \n \n scaleMode \n 'x' | 'y' | 'xy' \n undefined \n Which of the enabled zooming directions should only be available when the mouse cursor is over a scale for that axis \n \n \n overScaleMode \n 'x' | 'y' | 'xy' \n undefined \n Allowed zoom directions when the mouse cursor is over a scale for that axis (but only if mode is also enabled), and disables zooming along that axis otherwise. Deprecated; use scaleMode instead. \n Wheel options \n \n \n \n Name \n Type \n Default \n Description \n \n \n \n \n enabled \n boolean \n false \n Enable zooming via mouse wheel \n \n \n speed \n number \n 0.1 \n Factor of zoom speed via mouse wheel \n \n \n modifierKey \n 'ctrl' | 'alt' | 'shift' | 'meta' \n null \n Modifier key required for zooming via mouse wheel \n Drag options \n \n \n \n Name \n Type \n Default \n Description \n \n \n \n \n enabled \n boolean \n false \n Enable drag-to-zoom \n \n \n backgroundColor \n Color \n 'rgba(225,225,225,0.3)' \n Fill color \n \n \n borderColor \n Color \n 'rgba(225,225,225)' \n Stroke color \n \n \n borderWidth \n number \n 0 \n Stroke width \n \n \n drawTime \n string \n beforeDatasetsDraw \n When the dragging box is dran on the chart \n \n \n threshold \n number \n 0 \n Minimal zoom distance required before actually applying zoom \n \n \n modifierKey \n 'ctrl' | 'alt' | 'shift' | 'meta' \n null \n Modifier key required for drag-to-zoom \n Draw Time \n The drawTime option for zooming determines where in the chart lifecycle the drag box drawing occurs. Four potential options are available: \n \n \n \n Option \n Notes \n \n \n \n \n 'beforeDraw' \n Occurs before any drawing takes place \n \n \n 'beforeDatasetsDraw' \n Occurs after drawing of axes, but before datasets \n \n \n 'afterDatasetsDraw' \n Occurs after drawing of datasets but before items such as the tooltip \n \n \n 'afterDraw' \n After other drawing is completed \n Pinch options \n \n \n \n Name \n Type \n Default \n Description \n \n \n \n \n enabled \n boolean \n false \n Enable zooming via pinch \n Zoom Events \n \n \n \n Name \n Arguments \n Description \n \n \n \n \n onZoom \n {chart} \n Called while the chart is being zoomed \n \n \n onZoomComplete \n {chart} \n Called once zooming is completed \n \n \n onZoomRejected \n {chart,event} \n Called when zoom is rejected due to missing modifier key. event is the a hammer event that failed \n \n \n onZoomStart \n {chart,event,point} \n Called when zooming is about to start. If this callback returns false, zooming is aborted and onZoomRejected is invoked \n Limits \n Limits options define the limits per axis for pan and zoom. \n Limit options \n \n \n \n Name \n Type \n Description \n \n \n \n \n x \n ScaleLimits \n Limits for x-axis \n \n \n y \n ScaleLimits \n Limits for y-axis \n \n \n \n If you're using multiple or custom axes (scales), you can define limits for those, too. \n const chart = new Chart ( 'id' , { \n type : 'line' , \n data : { } , \n options : { \n scales : { \n y : { \n min : 20 , \n max : 80 , \n } , \n y2 : { \n position : 'right' , \n min : - 5 , \n max : 5 \n } \n } , \n plugins : { \n zoom : { \n limits : { \n y : { min : 0 , max : 100 } , \n y2 : { min : - 5 , max : 5 } \n } , \n } \n } \n } \n } ) ; \n Scale Limits \n \n \n \n Name \n Type \n Description \n \n \n \n \n min \n number | 'original' \n Minimum allowed value for scale.min \n \n \n max \n number | 'original' \n Maximum allowed value for scale.max \n \n \n minRange \n number \n Minimum allowed range (max - min). This defines the max zoom level. \n \n \n \n You may use the keyword 'original' in place of a numeric limit to instruct chartjs-plugin-zoom to use whatever limits the scale had when the chart was first displayed. \n"},{title:"Integration",frontmatter:{},regularPath:"/guide/integration.html",relativePath:"guide/integration.md",key:"v-a623eb16",path:"/guide/integration.html",headers:[{level:2,title:"Script Tag",slug:"script-tag"},{level:2,title:"Bundlers (Webpack, Rollup, etc.)",slug:"bundlers-webpack-rollup-etc"}],lastUpdated:"11/14/2024, 7:07:28 PM",content:' Integration \n chartjs-plugin-zoom can be integrated with plain JavaScript or with different module loaders. The examples below show how to load the plugin in different systems. \n Script Tag \n < script src = " path/to/chartjs/dist/chart.min.js " > \n < script src = " https://cdn.jsdelivr.net/npm/hammerjs@2.0.8 " > \n < script src = " path/to/chartjs-plugin-zoom/dist/chartjs-plugin-zoom.min.js " > \n < script > \n var myChart = new Chart ( ctx , { ... } ) ; \n \n Bundlers (Webpack, Rollup, etc.) \n import { Chart } from \'chart.js\' ; \n import zoomPlugin from \'chartjs-plugin-zoom\' ; \n\nChart . register ( zoomPlugin ) ; \n \n '},{title:"Usage",frontmatter:{},regularPath:"/guide/usage.html",relativePath:"guide/usage.md",key:"v-6f9c5d56",path:"/guide/usage.html",lastUpdated:"11/14/2024, 7:07:28 PM",content:" Usage \n Using the zoom and pan plugin is very simple. Once the plugin is registered zoom options provided to the chart will be used. In this example, scroll zoom is enabled. \n */\nconst config = {\n type: 'line',\n data: {\n labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],\n datasets: [{\n label: 'My First Dataset',\n data: [65, 59, 80, 81, 56, 55, 40],\n fill: false,\n borderColor: 'rgb(75, 192, 192)',\n tension: 0.1\n }]\n },\n options: {\n plugins: {\n zoom: {\n zoom: {\n wheel: {\n enabled: true,\n },\n pinch: {\n enabled: true\n },\n mode: 'xy',\n }\n }\n }\n }\n};\n/* */\n\nmodule.exports = {\n actions: [\n {\n name: 'Reset zoom',\n handler: function(chart) {\n chart.resetZoom();\n }\n }\n ],\n config\n};\n`\"/>"},{title:"Home",frontmatter:{home:!0,heroImage:"/hero.svg",actionText:"Get Started →",actionLink:"/guide/",footer:"MIT Licensed | Copyright © 2016-2021 chartjs-plugin-zoom contributors"},regularPath:"/",relativePath:"index.md",key:"v-6beba80e",path:"/",lastUpdated:"11/14/2024, 7:07:28 PM",content:""},{title:"API",frontmatter:{},regularPath:"/samples/api.html",relativePath:"samples/api.md",key:"v-07976e15",path:"/samples/api.html",lastUpdated:"11/14/2024, 7:07:28 PM",content:" API \n \nconst NUMBER_CFG = {count: 20, min: -100, max: 100};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }, {\n label: 'My Second dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n reverse: true,\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n position: 'top',\n },\n y: {\n position: 'right',\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n }\n};\n// \n\n// \n// Note: changes to these actions are not applied to the buttons.\nconst actions = [\n {\n name: 'Zoom +10%',\n handler(chart) {\n chart.zoom(1.1);\n }\n }, {\n name: 'Zoom -10%',\n handler(chart) {\n chart.zoom(0.9);\n },\n }, {\n name: 'Zoom x +10%',\n handler(chart) {\n chart.zoom({x: 1.1});\n }\n }, {\n name: 'Zoom x -10%',\n handler(chart) {\n chart.zoom({x: 0.9});\n },\n }, {\n name: 'Pan x 100px (anim)',\n handler(chart) {\n chart.pan({x: 100}, undefined, 'default');\n }\n }, {\n name: 'Pan x -100px (anim)',\n handler(chart) {\n chart.pan({x: -100}, undefined, 'default');\n },\n }, {\n name: 'Zoom x: 0..-100, y: 0..100',\n handler(chart) {\n chart.zoomScale('x', {min: -100, max: 0}, 'default');\n chart.zoomScale('y', {min: 0, max: 100}, 'default');\n }\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n// \n\nmodule.exports = {\n actions,\n config\n};\n`\"/>"},{title:"Basic",frontmatter:{},regularPath:"/samples/basic.html",relativePath:"samples/basic.md",key:"v-4ee50b15",path:"/samples/basic.html",lastUpdated:"11/14/2024, 7:07:28 PM",content:" Basic \n \nconst NUMBER_CFG = {count: 20, min: -100, max: 100};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }, {\n label: 'My Second dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n reverse: true,\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n position: 'top',\n },\n y: {\n position: 'right',\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst zoomOptions = {\n limits: {\n x: {min: -200, max: 200, minRange: 50},\n y: {min: -200, max: 200, minRange: 50}\n },\n pan: {\n enabled: true,\n mode: 'xy',\n },\n zoom: {\n wheel: {\n enabled: true,\n },\n pinch: {\n enabled: true\n },\n mode: 'xy',\n onZoomComplete({chart}) {\n // This update is needed to display up to date zoom level in the title.\n // Without this, previous zoom level is displayed.\n // The reason is: title uses the same beforeUpdate hook, and is evaluated before zoom.\n chart.update('none');\n }\n }\n};\n// \n\nconst panStatus = () => zoomOptions.pan.enabled ? 'enabled' : 'disabled';\nconst zoomStatus = (chart) => (zoomOptions.zoom.wheel.enabled ? 'enabled' : 'disabled') + ' (' + chart.getZoomLevel() + 'x)';\n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => 'Zoom: ' + zoomStatus(ctx.chart) + ', Pan: ' + panStatus()\n }\n },\n onClick(e) {\n console.log(e.type);\n }\n }\n};\n// \n\nconst actions = [\n {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.wheel.enabled = !zoomOptions.zoom.wheel.enabled;\n zoomOptions.zoom.pinch.enabled = !zoomOptions.zoom.pinch.enabled;\n chart.update();\n }\n }, {\n name: 'Toggle pan',\n handler(chart) {\n zoomOptions.pan.enabled = !zoomOptions.pan.enabled;\n chart.update();\n },\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n output: 'Clicks are logged here'\n};\n`\"/>"},{title:"Linear Scales",frontmatter:{},regularPath:"/samples/drag/linear.html",relativePath:"samples/drag/linear.md",key:"v-13cb82d5",path:"/samples/drag/linear.html",lastUpdated:"11/14/2024, 7:07:28 PM",content:" Linear Scales \n Zooming is performed by clicking and selecting an area over the chart with the mouse. Pan is activated by keeping ctrl pressed. \n \nconst NUMBER_CFG = {count: 20, min: -100, max: 100};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }, {\n label: 'My Second dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n reverse: true,\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n position: 'top',\n },\n y: {\n position: 'right',\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst dragColor = Utils.randomColor(0.4);\nconst zoomOptions = {\n pan: {\n enabled: true,\n mode: 'xy',\n modifierKey: 'ctrl',\n },\n zoom: {\n mode: 'xy',\n drag: {\n enabled: true,\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n backgroundColor: 'rgba(54, 162, 235, 0.3)'\n }\n }\n};\n// \n\nconst zoomStatus = () => zoomOptions.zoom.drag.enabled ? 'enabled' : 'disabled';\n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => 'Zoom: ' + zoomStatus()\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.drag.enabled = !zoomOptions.zoom.drag.enabled;\n chart.update();\n }\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n`\"/>"},{title:"Category Scale",frontmatter:{},regularPath:"/samples/drag/category.html",relativePath:"samples/drag/category.md",key:"v-b2bdd296",path:"/samples/drag/category.html",lastUpdated:"11/14/2024, 7:07:28 PM",content:" Category Scale \n Zooming is performed by clicking and selecting an area over the chart with the mouse. Pan is activated by keeping ctrl pressed. \n \nconst DATA_COUNT = 20;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n label: 'Dataset 1',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dataset 2',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dataset 3',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n type: 'category',\n },\n y: {\n type: 'linear',\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n scales: scales,\n plugins: {\n tooltip: false,\n zoom: {\n pan: {\n enabled: true,\n mode: 'x',\n modifierKey: 'ctrl',\n },\n zoom: {\n drag: {\n enabled: true\n },\n mode: 'x',\n },\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n`\"/>"},{title:"Logarithmic Scale",frontmatter:{},regularPath:"/samples/drag/log.html",relativePath:"samples/drag/log.md",key:"v-5f22cfba",path:"/samples/drag/log.html",lastUpdated:"11/14/2024, 7:07:28 PM",content:" Logarithmic Scale \n Zooming is performed by clicking and selecting an area over the chart with the mouse. Pan is activated by keeping ctrl pressed. \n \nconst data = {\n datasets: [{\n label: 'V(node2)',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: [{\n x: 1,\n y: -1.711e-2,\n }, {\n x: 1.26,\n y: -2.708e-2,\n }, {\n x: 1.58,\n y: -4.285e-2,\n }, {\n x: 2.0,\n y: -6.772e-2,\n }, {\n x: 2.51,\n y: -1.068e-1,\n }, {\n x: 3.16,\n y: -1.681e-1,\n }, {\n x: 3.98,\n y: -2.635e-1,\n }, {\n x: 5.01,\n y: -4.106e-1,\n }, {\n x: 6.31,\n y: -6.339e-1,\n }, {\n x: 7.94,\n y: -9.659e-1,\n }, {\n x: 10.00,\n y: -1.445,\n }, {\n x: 12.6,\n y: -2.110,\n }, {\n x: 15.8,\n y: -2.992,\n }, {\n x: 20.0,\n y: -4.102,\n }, {\n x: 25.1,\n y: -5.429,\n }, {\n x: 31.6,\n y: -6.944,\n }, {\n x: 39.8,\n y: -8.607,\n }, {\n x: 50.1,\n y: -1.038e1,\n }, {\n x: 63.1,\n y: -1.223e1,\n }, {\n x: 79.4,\n y: -1.413e1,\n }, {\n x: 100.00,\n y: -1.607e1,\n }, {\n x: 126,\n y: -1.803e1,\n }, {\n x: 158,\n y: -2e1,\n }, {\n x: 200,\n y: -2.199e1,\n }, {\n x: 251,\n y: -2.398e1,\n }, {\n x: 316,\n y: -2.597e1,\n }, {\n x: 398,\n y: -2.797e1,\n }, {\n x: 501,\n y: -2.996e1,\n }, {\n x: 631,\n y: -3.196e1,\n }, {\n x: 794,\n y: -3.396e1,\n }, {\n x: 1000,\n y: -3.596e1\n }]\n }]\n};\n// \n\n// \nconst scales = {\n x: {\n type: 'logarithmic',\n ticks: {\n callback: function(tick) {\n const remain = tick / (Math.pow(10, Math.floor(Math.log10(tick))));\n if (remain === 1 || remain === 2 || remain === 5) {\n return tick.toString() + 'Hz';\n }\n return '';\n },\n maxRotation: 0\n },\n title: {\n display: true,\n text: 'Frequency',\n },\n }\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: {\n pan: {\n enabled: true,\n mode: 'xy',\n modifierKey: 'ctrl',\n },\n zoom: {\n drag: {\n enabled: true\n },\n mode: 'xy',\n },\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n`\"/>"},{title:"Timeseries Scale",frontmatter:{},regularPath:"/samples/drag/timeseries.html",relativePath:"samples/drag/timeseries.md",key:"v-5ba83635",path:"/samples/drag/timeseries.html",lastUpdated:"11/14/2024, 7:07:28 PM",content:" Timeseries Scale \n Zooming is performed by clicking and selecting an area over the chart with the mouse. Pan is activated by keeping ctrl pressed. \n \nconst NUMBER_CFG = {count: 200, min: 0, max: 100};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.officeHourPoints(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scales = {\n x: {\n position: 'bottom',\n type: 'timeseries',\n ticks: {\n autoSkip: true,\n autoSkipPadding: 50,\n maxRotation: 0,\n major: {\n enabled: true\n }\n },\n time: {\n displayFormats: {\n hour: 'HH:mm',\n minute: 'HH:mm',\n second: 'HH:mm:ss'\n }\n }\n },\n y: {\n position: 'right',\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n },\n};\n// \n\n// \nconst zoomOptions = {\n pan: {\n enabled: true,\n modifierKey: 'ctrl',\n },\n zoom: {\n drag: {\n enabled: true,\n },\n mode: 'xy',\n },\n};\n// \n\nconst panStatus = () => zoomOptions.pan.enabled ? 'enabled' : 'disabled';\nconst zoomStatus = () => zoomOptions.zoom.drag.enabled ? 'enabled' : 'disabled';\n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => 'Zoom: ' + zoomStatus() + ', Pan: ' + panStatus()\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.drag.enabled = !zoomOptions.zoom.drag.enabled;\n chart.update();\n }\n }, {\n name: 'Toggle pan',\n handler(chart) {\n zoomOptions.pan.enabled = !zoomOptions.pan.enabled;\n chart.update();\n },\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n\n];\n\nmodule.exports = {\n actions,\n config,\n};\n`\"/>"},{title:"Fetch data",frontmatter:{},regularPath:"/samples/fetch-data.html",relativePath:"samples/fetch-data.md",key:"v-f2b8a30a",path:"/samples/fetch-data.html",lastUpdated:"11/14/2024, 7:07:28 PM",content:" Fetch data \n \nconst start = new Date().valueOf();\nconst end = start + 1000 * 60 * 60 * 24 * 2;\nconst allData = [];\nlet y = 100;\nfor (let x = start; x \n\n// \nlet timer;\nfunction startFetch({chart}) {\n const {min, max} = chart.scales.x;\n clearTimeout(timer);\n timer = setTimeout(() => {\n console.log('Fetched data between ' + min + ' and ' + max);\n chart.data.datasets[0].data = fetchData(min, max);\n chart.stop(); // make sure animations are not running\n chart.update('none');\n }, 500);\n}\n// \n\n// \nconst scales = {\n x: {\n position: 'bottom',\n min: start,\n max: end,\n type: 'time',\n ticks: {\n autoSkip: true,\n autoSkipPadding: 50,\n maxRotation: 0\n },\n time: {\n displayFormats: {\n hour: 'HH:mm',\n minute: 'HH:mm',\n second: 'HH:mm:ss'\n }\n }\n },\n y: {\n type: 'linear',\n position: 'left',\n },\n};\n// \n\n// \nconst zoomOptions = {\n limits: {\n x: {min: 'original', max: 'original', minRange: 60 * 1000},\n },\n pan: {\n enabled: true,\n mode: 'x',\n modifierKey: 'ctrl',\n onPanComplete: startFetch\n },\n zoom: {\n wheel: {\n enabled: true,\n },\n drag: {\n enabled: true,\n },\n pinch: {\n enabled: true\n },\n mode: 'x',\n onZoomComplete: startFetch\n }\n};\n// \n\nconst zoomStatus = (chart) => 'zoom level: ' + chart.getZoomLevel() + '';\n\n// \nconst config = {\n type: 'line',\n data: {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: fetchData(start, end),\n }]\n },\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => zoomStatus(ctx.chart)\n }\n },\n transitions: {\n zoom: {\n animation: {\n duration: 100\n }\n }\n }\n }\n};\n// \n\nconst actions = [\n {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom('zoom');\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n output: 'console.log output'\n};\n`\"/>"},{title:"Category Scale",frontmatter:{},regularPath:"/samples/wheel/category.html",relativePath:"samples/wheel/category.md",key:"v-4a15025e",path:"/samples/wheel/category.html",lastUpdated:"11/14/2024, 7:07:28 PM",content:" Category Scale \n \nconst DATA_COUNT = 20;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n label: 'Dataset 1',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dataset 2',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dataset 3',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n type: 'category',\n min: 5,\n max: 11,\n },\n y: {\n type: 'linear'\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: {\n pan: {\n enabled: true,\n mode: 'xy',\n threshold: 5,\n },\n zoom: {\n wheel: {\n enabled: true\n },\n pinch: {\n enabled: true\n },\n mode: 'xy',\n },\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n`\"/>"},{title:"Time Scale",frontmatter:{},regularPath:"/samples/drag/time.html",relativePath:"samples/drag/time.md",key:"v-1b1753d5",path:"/samples/drag/time.html",lastUpdated:"11/14/2024, 7:07:28 PM",content:" Time Scale \n Zooming is performed by clicking and selecting an area over the chart with the mouse. Pan is activated by keeping ctrl pressed. \n \nconst NUMBER_CFG = {count: 500, min: 0, max: 1000};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.hourlyPoints(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scales = {\n x: {\n position: 'bottom',\n type: 'time',\n ticks: {\n autoSkip: true,\n autoSkipPadding: 50,\n maxRotation: 0\n },\n time: {\n displayFormats: {\n hour: 'HH:mm',\n minute: 'HH:mm',\n second: 'HH:mm:ss'\n }\n }\n },\n y: {\n position: 'right',\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n },\n};\n// \n\n// \nconst zoomOptions = {\n pan: {\n enabled: true,\n modifierKey: 'ctrl',\n },\n zoom: {\n drag: {\n enabled: true\n },\n mode: 'xy',\n },\n};\n// \n\nconst panStatus = () => zoomOptions.pan.enabled ? 'enabled' : 'disabled';\nconst zoomStatus = () => zoomOptions.zoom.drag.enabled ? 'enabled' : 'disabled';\n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => 'Zoom: ' + zoomStatus() + ', Pan: ' + panStatus()\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.drag.enabled = !zoomOptions.zoom.drag.enabled;\n chart.update();\n }\n }, {\n name: 'Toggle pan',\n handler(chart) {\n zoomOptions.pan.enabled = !zoomOptions.pan.enabled;\n chart.update();\n },\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }, {\n name: 'Zoom to next week',\n handler(chart) {\n chart.zoomScale('x', Utils.nextWeek(), 'default');\n chart.update();\n }\n }, {\n name: 'Zoom to 400-600',\n handler(chart) {\n chart.zoomScale('y', {min: 400, max: 600}, 'default');\n chart.update();\n }\n }\n\n];\n\nmodule.exports = {\n actions,\n config,\n};\n`\"/>"},{title:"Pan Region",frontmatter:{},regularPath:"/samples/pan-region.html",relativePath:"samples/pan-region.md",key:"v-bea74026",path:"/samples/pan-region.html",lastUpdated:"11/14/2024, 7:07:28 PM",content:" Pan Region \n In this example pan is only accepted at the middle region (50%) of the chart. This region is highlighted by a red border. \n \nconst NUMBER_CFG = {count: 20, min: -100, max: 100};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }, {\n label: 'My Second dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n position: 'top',\n },\n y: {\n position: 'right',\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst zoomOptions = {\n limits: {\n x: {min: -200, max: 200, minRange: 50},\n y: {min: -200, max: 200, minRange: 50}\n },\n pan: {\n enabled: true,\n onPanStart({chart, point}) {\n const area = chart.chartArea;\n const w25 = area.width * 0.25;\n const h25 = area.height * 0.25;\n if (point.x area.right - w25\n || point.y area.bottom - h25) {\n return false; // abort\n }\n },\n mode: 'xy',\n },\n zoom: {\n wheel: {\n enabled: false,\n },\n pinch: {\n enabled: true\n },\n }\n};\n// \n\n// \nconst borderPlugin = {\n id: 'panAreaBorder',\n beforeDraw(chart, args, options) {\n const {ctx, chartArea: {left, top, width, height}} = chart;\n ctx.save();\n ctx.strokeStyle = 'rgba(255, 0, 0, 0.3)';\n ctx.lineWidth = 1;\n ctx.strokeRect(left + width * 0.25, top + height * 0.25, width / 2, height / 2);\n ctx.restore();\n }\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n },\n },\n plugins: [borderPlugin]\n};\n// \n\nmodule.exports = {\n config,\n};\n`\"/>"},{title:"Logarithmic Scale",frontmatter:{},regularPath:"/samples/wheel/log.html",relativePath:"samples/wheel/log.md",key:"v-294c46d5",path:"/samples/wheel/log.html",lastUpdated:"11/14/2024, 7:07:28 PM",content:" Logarithmic Scale \n \nconst data = {\n datasets: [{\n label: 'V(node2)',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: [{\n x: 1,\n y: -1.711e-2,\n }, {\n x: 1.26,\n y: -2.708e-2,\n }, {\n x: 1.58,\n y: -4.285e-2,\n }, {\n x: 2.0,\n y: -6.772e-2,\n }, {\n x: 2.51,\n y: -1.068e-1,\n }, {\n x: 3.16,\n y: -1.681e-1,\n }, {\n x: 3.98,\n y: -2.635e-1,\n }, {\n x: 5.01,\n y: -4.106e-1,\n }, {\n x: 6.31,\n y: -6.339e-1,\n }, {\n x: 7.94,\n y: -9.659e-1,\n }, {\n x: 10.00,\n y: -1.445,\n }, {\n x: 12.6,\n y: -2.110,\n }, {\n x: 15.8,\n y: -2.992,\n }, {\n x: 20.0,\n y: -4.102,\n }, {\n x: 25.1,\n y: -5.429,\n }, {\n x: 31.6,\n y: -6.944,\n }, {\n x: 39.8,\n y: -8.607,\n }, {\n x: 50.1,\n y: -1.038e1,\n }, {\n x: 63.1,\n y: -1.223e1,\n }, {\n x: 79.4,\n y: -1.413e1,\n }, {\n x: 100.00,\n y: -1.607e1,\n }, {\n x: 126,\n y: -1.803e1,\n }, {\n x: 158,\n y: -2e1,\n }, {\n x: 200,\n y: -2.199e1,\n }, {\n x: 251,\n y: -2.398e1,\n }, {\n x: 316,\n y: -2.597e1,\n }, {\n x: 398,\n y: -2.797e1,\n }, {\n x: 501,\n y: -2.996e1,\n }, {\n x: 631,\n y: -3.196e1,\n }, {\n x: 794,\n y: -3.396e1,\n }, {\n x: 1000,\n y: -3.596e1\n }]\n }]\n};\n// \n\n// \nconst scales = {\n x: {\n type: 'logarithmic',\n ticks: {\n callback: function(tick) {\n const remain = tick / (Math.pow(10, Math.floor(Math.log10(tick))));\n if (remain === 1 || remain === 2 || remain === 5) {\n return tick.toString() + 'Hz';\n }\n return '';\n },\n maxRotation: 0\n },\n title: {\n display: true,\n text: 'Frequency',\n },\n }\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: {\n limits: {\n x: {min: 0.5, max: 2e3, minRange: 100},\n y: {min: -50, max: 10, minRange: 10}\n },\n pan: {\n enabled: true,\n mode: 'xy',\n },\n zoom: {\n wheel: {\n enabled: true\n },\n pinch: {\n enabled: true,\n },\n mode: 'xy',\n },\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n`\"/>"},{title:"Click to Zoom",frontmatter:{},regularPath:"/samples/wheel/click-zoom.html",relativePath:"samples/wheel/click-zoom.md",key:"v-0a0c2246",path:"/samples/wheel/click-zoom.html",lastUpdated:"11/14/2024, 7:07:28 PM",content:" Click to Zoom \n NOTE \n The following text is there on purpose, so the page is scrollable.\nThis demoes that the chart does not consume the wheel until clicked. \n \n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Fringilla ut morbi tincidunt augue interdum velit euismod. Elit pellentesque habitant morbi tristique senectus et netus. Consectetur adipiscing elit pellentesque habitant morbi. Id faucibus nisl tincidunt eget nullam non nisi est sit. Blandit turpis cursus in hac habitasse. Vulputate eu scelerisque felis imperdiet proin fermentum leo vel. Ornare massa eget egestas purus. A diam sollicitudin tempor id eu nisl nunc. Augue mauris augue neque gravida in fermentum et sollicitudin. Dolor purus non enim praesent elementum facilisis leo vel fringilla. Habitant morbi tristique senectus et netus et malesuada. Nulla pharetra diam sit amet nisl suscipit adipiscing bibendum est. Gravida dictum fusce ut placerat orci nulla pellentesque. \n Semper viverra nam libero justo laoreet sit. Pretium vulputate sapien nec sagittis aliquam malesuada bibendum arcu vitae. Risus ultricies tristique nulla aliquet enim tortor at auctor urna. Consequat semper viverra nam libero justo laoreet sit amet. Magna ac placerat vestibulum lectus mauris ultrices eros. Dolor purus non enim praesent elementum facilisis leo vel. Enim eu turpis egestas pretium aenean pharetra. Vitae purus faucibus ornare suspendisse sed nisi lacus. Senectus et netus et malesuada fames. Nec feugiat in fermentum posuere urna nec tincidunt praesent. Accumsan lacus vel facilisis volutpat. Lectus quam id leo in vitae turpis massa. Cras sed felis eget velit aliquet. Volutpat maecenas volutpat blandit aliquam. \n Volutpat lacus laoreet non curabitur. Diam donec adipiscing tristique risus. Fusce id velit ut tortor pretium viverra suspendisse. Dui ut ornare lectus sit amet est. Pharetra sit amet aliquam id. Porttitor massa id neque aliquam vestibulum morbi blandit. Viverra adipiscing at in tellus integer feugiat scelerisque varius morbi. Quam elementum pulvinar etiam non quam. Congue quisque egestas diam in arcu cursus euismod quis. Dictum fusce ut placerat orci nulla pellentesque. Ut placerat orci nulla pellentesque dignissim enim sit amet. Sagittis id consectetur purus ut faucibus pulvinar elementum integer. Dui ut ornare lectus sit amet est. \n Ut tortor pretium viverra suspendisse potenti nullam ac tortor. Mauris a diam maecenas sed enim. Tellus in hac habitasse platea dictumst vestibulum rhoncus. Cras sed felis eget velit aliquet. Purus viverra accumsan in nisl nisi. Sed risus ultricies tristique nulla aliquet enim tortor at. Integer quis auctor elit sed vulputate mi sit amet mauris. Adipiscing elit duis tristique sollicitudin nibh sit amet commodo. Risus feugiat in ante metus dictum at. Posuere urna nec tincidunt praesent semper. Auctor elit sed vulputate mi sit amet mauris commodo. Senectus et netus et malesuada fames ac turpis egestas integer. Varius morbi enim nunc faucibus a pellentesque. Sed felis eget velit aliquet sagittis id. Ac auctor augue mauris augue neque gravida. Etiam erat velit scelerisque in dictum non consectetur a erat. \n Tortor condimentum lacinia quis vel eros donec ac. Phasellus vestibulum lorem sed risus ultricies tristique. Vitae tortor condimentum lacinia quis vel eros donec. Morbi tempus iaculis urna id volutpat lacus laoreet non curabitur. Ut pharetra sit amet aliquam id diam. Eu non diam phasellus vestibulum lorem. Pharetra pharetra massa massa ultricies mi. Donec ultrices tincidunt arcu non. Sagittis orci a scelerisque purus semper eget duis. In iaculis nunc sed augue lacus viverra. Vitae proin sagittis nisl rhoncus mattis rhoncus urna neque. Consequat mauris nunc congue nisi vitae suscipit tellus mauris a. Massa placerat duis ultricies lacus sed turpis tincidunt id. Sit amet tellus cras adipiscing enim eu turpis. Amet porttitor eget dolor morbi non arcu risus quis varius. Potenti nullam ac tortor vitae purus. \n \nconst DATA_COUNT = 70;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: DATA_COUNT});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n stack: 'combined',\n type: 'bar'\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n stack: 'combined'\n }\n ]\n};\n// \n\n// \nconst zoomOptions = {\n limits: {\n y: {min: 0, max: 200, minRange: 50}\n },\n pan: {\n enabled: true,\n mode: 'xy',\n },\n zoom: {\n wheel: {\n enabled: false,\n },\n pinch: {\n enabled: false\n },\n mode: 'xy',\n }\n};\n// \n\n// \nconst borderPlugin = {\n id: 'chartAreaBorder',\n beforeDraw(chart, args, options) {\n const {ctx, chartArea: {left, top, width, height}} = chart;\n if (chart.options.plugins.zoom.zoom.wheel.enabled) {\n ctx.save();\n ctx.strokeStyle = 'red';\n ctx.lineWidth = 1;\n ctx.strokeRect(left, top, width, height);\n ctx.restore();\n }\n }\n};\n// \n\nconst zoomStatus = () => 'Zoom: ' + (zoomOptions.zoom.wheel.enabled ? 'enabled' : 'disabled');\n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n scales: {y: {stacked: true, min: 0}},\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: zoomStatus\n }\n },\n onClick(e) {\n const chart = e.chart;\n chart.options.plugins.zoom.zoom.wheel.enabled = !chart.options.plugins.zoom.zoom.wheel.enabled;\n chart.options.plugins.zoom.zoom.pinch.enabled = !chart.options.plugins.zoom.zoom.pinch.enabled;\n chart.update();\n }\n },\n plugins: [borderPlugin]\n};\n// \n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers(NUMBER_CFG);\n });\n chart.update();\n }\n }, {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.wheel.enabled = !zoomOptions.zoom.wheel.enabled;\n chart.update();\n }\n }, {\n name: 'Toggle pan',\n handler(chart) {\n zoomOptions.pan.enabled = !zoomOptions.pan.enabled;\n chart.update();\n },\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n`\"/> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Fringilla ut morbi tincidunt augue interdum velit euismod. Elit pellentesque habitant morbi tristique senectus et netus. Consectetur adipiscing elit pellentesque habitant morbi. Id faucibus nisl tincidunt eget nullam non nisi est sit. Blandit turpis cursus in hac habitasse. Vulputate eu scelerisque felis imperdiet proin fermentum leo vel. Ornare massa eget egestas purus. A diam sollicitudin tempor id eu nisl nunc. Augue mauris augue neque gravida in fermentum et sollicitudin. Dolor purus non enim praesent elementum facilisis leo vel fringilla. Habitant morbi tristique senectus et netus et malesuada. Nulla pharetra diam sit amet nisl suscipit adipiscing bibendum est. Gravida dictum fusce ut placerat orci nulla pellentesque. \n Semper viverra nam libero justo laoreet sit. Pretium vulputate sapien nec sagittis aliquam malesuada bibendum arcu vitae. Risus ultricies tristique nulla aliquet enim tortor at auctor urna. Consequat semper viverra nam libero justo laoreet sit amet. Magna ac placerat vestibulum lectus mauris ultrices eros. Dolor purus non enim praesent elementum facilisis leo vel. Enim eu turpis egestas pretium aenean pharetra. Vitae purus faucibus ornare suspendisse sed nisi lacus. Senectus et netus et malesuada fames. Nec feugiat in fermentum posuere urna nec tincidunt praesent. Accumsan lacus vel facilisis volutpat. Lectus quam id leo in vitae turpis massa. Cras sed felis eget velit aliquet. Volutpat maecenas volutpat blandit aliquam. \n Volutpat lacus laoreet non curabitur. Diam donec adipiscing tristique risus. Fusce id velit ut tortor pretium viverra suspendisse. Dui ut ornare lectus sit amet est. Pharetra sit amet aliquam id. Porttitor massa id neque aliquam vestibulum morbi blandit. Viverra adipiscing at in tellus integer feugiat scelerisque varius morbi. Quam elementum pulvinar etiam non quam. Congue quisque egestas diam in arcu cursus euismod quis. Dictum fusce ut placerat orci nulla pellentesque. Ut placerat orci nulla pellentesque dignissim enim sit amet. Sagittis id consectetur purus ut faucibus pulvinar elementum integer. Dui ut ornare lectus sit amet est. \n Ut tortor pretium viverra suspendisse potenti nullam ac tortor. Mauris a diam maecenas sed enim. Tellus in hac habitasse platea dictumst vestibulum rhoncus. Cras sed felis eget velit aliquet. Purus viverra accumsan in nisl nisi. Sed risus ultricies tristique nulla aliquet enim tortor at. Integer quis auctor elit sed vulputate mi sit amet mauris. Adipiscing elit duis tristique sollicitudin nibh sit amet commodo. Risus feugiat in ante metus dictum at. Posuere urna nec tincidunt praesent semper. Auctor elit sed vulputate mi sit amet mauris commodo. Senectus et netus et malesuada fames ac turpis egestas integer. Varius morbi enim nunc faucibus a pellentesque. Sed felis eget velit aliquet sagittis id. Ac auctor augue mauris augue neque gravida. Etiam erat velit scelerisque in dictum non consectetur a erat. \n Tortor condimentum lacinia quis vel eros donec ac. Phasellus vestibulum lorem sed risus ultricies tristique. Vitae tortor condimentum lacinia quis vel eros donec. Morbi tempus iaculis urna id volutpat lacus laoreet non curabitur. Ut pharetra sit amet aliquam id diam. Eu non diam phasellus vestibulum lorem. Pharetra pharetra massa massa ultricies mi. Donec ultrices tincidunt arcu non. Sagittis orci a scelerisque purus semper eget duis. In iaculis nunc sed augue lacus viverra. Vitae proin sagittis nisl rhoncus mattis rhoncus urna neque. Consequat mauris nunc congue nisi vitae suscipit tellus mauris a. Massa placerat duis ultricies lacus sed turpis tincidunt id. Sit amet tellus cras adipiscing enim eu turpis. Amet porttitor eget dolor morbi non arcu risus quis varius. Potenti nullam ac tortor vitae purus. \n"},{title:"Time Scale",frontmatter:{},regularPath:"/samples/wheel/time.html",relativePath:"samples/wheel/time.md",key:"v-ac900b9a",path:"/samples/wheel/time.html",lastUpdated:"11/14/2024, 7:07:28 PM",content:" Time Scale \n \nconst NUMBER_CFG = {count: 500, min: 0, max: 1000};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.hourlyPoints(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scales = {\n x: {\n position: 'bottom',\n type: 'time',\n ticks: {\n autoSkip: true,\n autoSkipPadding: 50,\n maxRotation: 0\n },\n time: {\n displayFormats: {\n hour: 'HH:mm',\n minute: 'HH:mm',\n second: 'HH:mm:ss'\n }\n }\n },\n y: {\n position: 'right',\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n },\n};\n// \n\n// \nconst zoomOptions = {\n zoom: {\n wheel: {\n enabled: true,\n },\n pinch: {\n enabled: true,\n },\n mode: 'xy',\n },\n pan: {\n enabled: true,\n mode: 'xy',\n }\n};\n// \n\nconst panStatus = () => zoomOptions.pan.enabled ? 'enabled' : 'disabled';\nconst zoomStatus = () => zoomOptions.zoom.wheel.enabled ? 'enabled' : 'disabled';\n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => 'Zoom: ' + zoomStatus() + ', Pan: ' + panStatus()\n }\n },\n onClick(e) {\n console.log(e.type);\n }\n }\n};\n// \n\nconst actions = [\n {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.wheel.enabled = !zoomOptions.zoom.wheel.enabled;\n zoomOptions.zoom.pinch.enabled = !zoomOptions.zoom.pinch.enabled;\n chart.update();\n }\n }, {\n name: 'Toggle pan',\n handler(chart) {\n zoomOptions.pan.enabled = !zoomOptions.pan.enabled;\n chart.update();\n },\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }, {\n name: 'Zoom to next week',\n handler(chart) {\n chart.zoomScale('x', Utils.nextWeek(), 'default');\n chart.update();\n }\n }, {\n name: 'Zoom to 400-600',\n handler(chart) {\n chart.zoomScale('y', {min: 400, max: 600}, 'default');\n chart.update();\n }\n }\n\n];\n\nmodule.exports = {\n actions,\n config,\n output: 'Clicks are logged here'\n};\n`\"/>"},{title:"Over Scale Mode",frontmatter:{},regularPath:"/samples/wheel/over-scale-mode.html",relativePath:"samples/wheel/over-scale-mode.md",key:"v-45d52f75",path:"/samples/wheel/over-scale-mode.html",lastUpdated:"11/14/2024, 7:07:28 PM",content:" Over Scale Mode \n Pan and Zoom are allowed only when mouse is over the axis. \n \nconst NUMBER_CFG = {count: 20, min: -100, max: 100};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }, {\n label: 'My Second dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n reverse: true,\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n position: 'top',\n },\n y: {\n position: 'right',\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst zoomOptions = {\n zoom: {\n wheel: {\n enabled: true,\n },\n pinch: {\n enabled: true,\n },\n mode: 'xy',\n scaleMode: 'xy',\n },\n pan: {\n enabled: true,\n mode: 'xy',\n scaleMode: 'xy',\n }\n};\n// \n\nconst panStatus = () => zoomOptions.pan.enabled ? 'enabled' : 'disabled';\nconst zoomStatus = () => zoomOptions.zoom.wheel.enabled ? 'enabled' : 'disabled';\n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => 'Zoom: ' + zoomStatus() + ', Pan: ' + panStatus(),\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.wheel.enabled = !zoomOptions.zoom.wheel.enabled;\n zoomOptions.zoom.pinch.enabled = !zoomOptions.zoom.pinch.enabled;\n chart.update();\n }\n }, {\n name: 'Toggle pan',\n handler(chart) {\n zoomOptions.pan.enabled = !zoomOptions.pan.enabled;\n chart.update();\n },\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n`\"/>"}],themeConfig:{repo:"chartjs/chartjs-plugin-zoom",logo:"/favicon.ico",lastUpdated:"Last Updated",searchPlaceholder:"Search...",editLinks:!1,docsDir:"docs",chart:{imports:[["scripts/register.js"],["scripts/defaults.js"],["scripts/utils.js","Utils"]]},nav:[{text:"Home",link:"/"},{text:"Guide",link:"/guide/"},{text:"API",link:"/api/"},{text:"Samples",link:"/samples/"},{text:"Ecosystem",ariaLabel:"Community Menu",items:[{text:"Awesome",link:"https://github.com/chartjs/awesome"}]}],sidebar:{"/guide/":["","integration","usage","options","animations","developers"],"/samples/":["basic",{title:"Wheel Zoom",children:["wheel/category","wheel/log","wheel/time","wheel/over-scale-mode","wheel/click-zoom"]},{title:"Drag to Zoom",children:["drag/category","drag/linear","drag/log","drag/time","drag/timeseries"]},"api","fetch-data","pan-region"]}}};n(398),n(399);s.a.component("ChartEditor",(function(){return Promise.all([n.e(0),n.e(3)]).then(n.bind(null,471))})),s.a.component("Badge",(function(){return Promise.all([n.e(0),n.e(4)]).then(n.bind(null,497))})),s.a.component("CodeBlock",(function(){return Promise.all([n.e(0),n.e(5)]).then(n.bind(null,473))})),s.a.component("CodeGroup",(function(){return Promise.all([n.e(0),n.e(6)]).then(n.bind(null,474))}));n(400);var on,an=n(31);function sn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?"s":"")+" required, but only "+e.length+" present")}function ln(t){cn(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"==typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}var fn={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},hn=function(t,e,n){var r,i=fn[t];return r="string"==typeof i?i:1===e?i.one:i.other.replace("{{count}}",e.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function dn(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var pn={date:dn({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:dn({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:dn({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},vn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function mn(t){return function(e,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,a=i.width?String(i.width):o;r=t.formattingValues[a]||t.formattingValues[o]}else{var s=t.defaultWidth,u=i.width?String(i.width):t.defaultWidth;r=t.values[u]||t.values[s]}return r[t.argumentCallback?t.argumentCallback(e):e]}}function gn(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;var a,s=o[0],u=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(u)?yn(u,(function(t){return t.test(s)})):bn(u,(function(t){return t.test(s)}));a=t.valueCallback?t.valueCallback(c):c,a=n.valueCallback?n.valueCallback(a):a;var l=e.slice(s.length);return{value:a,rest:l}}}function bn(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function yn(t,e){for(var n=0;n20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:mn({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:mn({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:mn({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:mn({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:mn({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(xn={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(xn.matchPattern);if(!n)return null;var r=n[0],i=t.match(xn.parsePattern);if(!i)return null;var o=xn.valueCallback?xn.valueCallback(i[0]):i[0];o=e.valueCallback?e.valueCallback(o):o;var a=t.slice(r.length);return{value:o,rest:a}}),era:gn({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:gn({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:gn({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:gn({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:gn({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function _n(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function kn(t,e){cn(2,arguments);var n=ln(t).getTime(),r=_n(e);return new Date(n+r)}function On(t,e){cn(2,arguments);var n=_n(e);return kn(t,-n)}function jn(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in e=e||{})Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function Cn(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function Sn(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}var Mn={p:Sn,P:function(t,e){var n,r=t.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return Cn(t,e);switch(i){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;case"PPPP":default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",Cn(i,e)).replace("{{time}}",Sn(o,e))}};function Tn(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var Pn=["D","DD"],En=["YY","YYYY"];function An(t){return-1!==Pn.indexOf(t)}function Dn(t){return-1!==En.indexOf(t)}function zn(t,e,n){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}function Ln(t,e){cn(1,arguments);var n=e||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=null==i?0:_n(i),a=null==n.weekStartsOn?o:_n(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=ln(t),u=s.getUTCDay(),c=(u=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(r+1,0,u),c.setUTCHours(0,0,0,0);var l=Ln(c,e),f=new Date(0);f.setUTCFullYear(r,0,u),f.setUTCHours(0,0,0,0);var h=Ln(f,e);return n.getTime()>=l.getTime()?r+1:n.getTime()>=h.getTime()?r:r-1}function In(t,e,n){cn(2,arguments);var r=n||{},i=r.locale,o=i&&i.options&&i.options.weekStartsOn,a=null==o?0:_n(o),s=null==r.weekStartsOn?a:_n(r.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=ln(t),c=_n(e),l=u.getUTCDay(),f=c%7,h=(f+7)%7,d=(h=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function Un(t){cn(1,arguments);var e=Nn(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=Fn(n);return r}function $n(t){cn(1,arguments);var e=ln(t),n=Fn(e).getTime()-Un(e).getTime();return Math.round(n/6048e5)+1}function Bn(t,e){cn(1,arguments);var n=e||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,o=null==i?1:_n(i),a=null==n.firstWeekContainsDate?o:_n(n.firstWeekContainsDate),s=Rn(t,e),u=new Date(0);u.setUTCFullYear(s,0,a),u.setUTCHours(0,0,0,0);var c=Ln(u,e);return c}function Hn(t,e){cn(1,arguments);var n=ln(t),r=Ln(n,e).getTime()-Bn(n,e).getTime();return Math.round(r/6048e5)+1}var Wn=/^(1[0-2]|0?\d)/,Vn=/^(3[0-1]|[0-2]?\d)/,qn=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Yn=/^(5[0-3]|[0-4]?\d)/,Xn=/^(2[0-3]|[0-1]?\d)/,Gn=/^(2[0-4]|[0-1]?\d)/,Zn=/^(1[0-1]|0?\d)/,Kn=/^(1[0-2]|0?\d)/,Qn=/^[0-5]?\d/,Jn=/^[0-5]?\d/,tr=/^\d/,er=/^\d{1,2}/,nr=/^\d{1,3}/,rr=/^\d{1,4}/,ir=/^-?\d+/,or=/^-?\d/,ar=/^-?\d{1,2}/,sr=/^-?\d{1,3}/,ur=/^-?\d{1,4}/,cr=/^([+-])(\d{2})(\d{2})?|Z/,lr=/^([+-])(\d{2})(\d{2})|Z/,fr=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,hr=/^([+-])(\d{2}):(\d{2})|Z/,dr=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function pr(t,e,n){var r=e.match(t);if(!r)return null;var i=parseInt(r[0],10);return{value:n?n(i):i,rest:e.slice(r[0].length)}}function vr(t,e){var n=e.match(t);return n?"Z"===n[0]?{value:0,rest:e.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:e.slice(n[0].length)}:null}function mr(t,e){return pr(ir,t,e)}function gr(t,e,n){switch(t){case 1:return pr(tr,e,n);case 2:return pr(er,e,n);case 3:return pr(nr,e,n);case 4:return pr(rr,e,n);default:return pr(new RegExp("^\\d{1,"+t+"}"),e,n)}}function br(t,e,n){switch(t){case 1:return pr(or,e,n);case 2:return pr(ar,e,n);case 3:return pr(sr,e,n);case 4:return pr(ur,e,n);default:return pr(new RegExp("^-?\\d{1,"+t+"}"),e,n)}}function yr(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function xr(t,e){var n,r=e>0,i=r?e:1-e;if(i<=50)n=t||100;else{var o=i+50;n=t+100*Math.floor(o/100)-(t>=o%100?100:0)}return r?n:1-n}var wr=[31,28,31,30,31,30,31,31,30,31,30,31],_r=[31,29,31,30,31,30,31,31,30,31,30,31];function kr(t){return t%400==0||t%4==0&&t%100!=0}var Or={G:{priority:140,parse:function(t,e,n,r){switch(e){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}},set:function(t,e,n,r){return e.era=n,t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(t,e,n,r){var i=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return gr(4,t,i);case"yo":return n.ordinalNumber(t,{unit:"year",valueCallback:i});default:return gr(e.length,t,i)}},validate:function(t,e,n){return e.isTwoDigitYear||e.year>0},set:function(t,e,n,r){var i=t.getUTCFullYear();if(n.isTwoDigitYear){var o=xr(n.year,i);return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t}var a="era"in e&&1!==e.era?1-n.year:n.year;return t.setUTCFullYear(a,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(t,e,n,r){var i=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return gr(4,t,i);case"Yo":return n.ordinalNumber(t,{unit:"year",valueCallback:i});default:return gr(e.length,t,i)}},validate:function(t,e,n){return e.isTwoDigitYear||e.year>0},set:function(t,e,n,r){var i=Rn(t,r);if(n.isTwoDigitYear){var o=xr(n.year,i);return t.setUTCFullYear(o,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Ln(t,r)}var a="era"in e&&1!==e.era?1-n.year:n.year;return t.setUTCFullYear(a,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Ln(t,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(t,e,n,r){return br("R"===e?4:e.length,t)},set:function(t,e,n,r){var i=new Date(0);return i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0),Fn(i)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(t,e,n,r){return br("u"===e?4:e.length,t)},set:function(t,e,n,r){return t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(t,e,n,r){switch(e){case"Q":case"QQ":return gr(e.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=1&&e<=4},set:function(t,e,n,r){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(t,e,n,r){switch(e){case"q":case"qq":return gr(e.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,n){return e>=1&&e<=4},set:function(t,e,n,r){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(t,e,n,r){var i=function(t){return t-1};switch(e){case"M":return pr(Wn,t,i);case"MM":return gr(2,t,i);case"Mo":return n.ordinalNumber(t,{unit:"month",valueCallback:i});case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=0&&e<=11},set:function(t,e,n,r){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(t,e,n,r){var i=function(t){return t-1};switch(e){case"L":return pr(Wn,t,i);case"LL":return gr(2,t,i);case"Lo":return n.ordinalNumber(t,{unit:"month",valueCallback:i});case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,n){return e>=0&&e<=11},set:function(t,e,n,r){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(t,e,n,r){switch(e){case"w":return pr(Yn,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return gr(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=53},set:function(t,e,n,r){return Ln(function(t,e,n){cn(2,arguments);var r=ln(t),i=_n(e),o=Hn(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*o),r}(t,n,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(t,e,n,r){switch(e){case"I":return pr(Yn,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return gr(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=53},set:function(t,e,n,r){return Fn(function(t,e){cn(2,arguments);var n=ln(t),r=_n(e),i=$n(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(t,n,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(t,e,n,r){switch(e){case"d":return pr(Vn,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return gr(e.length,t)}},validate:function(t,e,n){var r=kr(t.getUTCFullYear()),i=t.getUTCMonth();return r?e>=1&&e<=_r[i]:e>=1&&e<=wr[i]},set:function(t,e,n,r){return t.setUTCDate(n),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(t,e,n,r){switch(e){case"D":case"DD":return pr(qn,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return gr(e.length,t)}},validate:function(t,e,n){return kr(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365},set:function(t,e,n,r){return t.setUTCMonth(0,n),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(t,e,n,r){switch(e){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=0&&e<=6},set:function(t,e,n,r){return(t=In(t,n,r)).setUTCHours(0,0,0,0),t},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(t,e,n,r){var i=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return gr(e.length,t,i);case"eo":return n.ordinalNumber(t,{unit:"day",valueCallback:i});case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=0&&e<=6},set:function(t,e,n,r){return(t=In(t,n,r)).setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(t,e,n,r){var i=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return gr(e.length,t,i);case"co":return n.ordinalNumber(t,{unit:"day",valueCallback:i});case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,n){return e>=0&&e<=6},set:function(t,e,n,r){return(t=In(t,n,r)).setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(t,e,n,r){var i=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return gr(e.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return n.day(t,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(t,{width:"short",context:"formatting",valueCallback:i})||n.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiiii":return n.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiiiii":return n.day(t,{width:"short",context:"formatting",valueCallback:i})||n.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiii":default:return n.day(t,{width:"wide",context:"formatting",valueCallback:i})||n.day(t,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(t,{width:"short",context:"formatting",valueCallback:i})||n.day(t,{width:"narrow",context:"formatting",valueCallback:i})}},validate:function(t,e,n){return e>=1&&e<=7},set:function(t,e,n,r){return(t=function(t,e){cn(2,arguments);var n=_n(e);n%7==0&&(n-=7);var r=1,i=ln(t),o=i.getUTCDay(),a=n%7,s=(a+7)%7,u=(s=1&&e<=12},set:function(t,e,n,r){var i=t.getUTCHours()>=12;return i&&n<12?t.setUTCHours(n+12,0,0,0):i||12!==n?t.setUTCHours(n,0,0,0):t.setUTCHours(0,0,0,0),t},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(t,e,n,r){switch(e){case"H":return pr(Xn,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return gr(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=23},set:function(t,e,n,r){return t.setUTCHours(n,0,0,0),t},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(t,e,n,r){switch(e){case"K":return pr(Zn,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return gr(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=11},set:function(t,e,n,r){return t.getUTCHours()>=12&&n<12?t.setUTCHours(n+12,0,0,0):t.setUTCHours(n,0,0,0),t},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(t,e,n,r){switch(e){case"k":return pr(Gn,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return gr(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=24},set:function(t,e,n,r){var i=n<=24?n%24:n;return t.setUTCHours(i,0,0,0),t},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(t,e,n,r){switch(e){case"m":return pr(Qn,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return gr(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=59},set:function(t,e,n,r){return t.setUTCMinutes(n,0,0),t},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(t,e,n,r){switch(e){case"s":return pr(Jn,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return gr(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=59},set:function(t,e,n,r){return t.setUTCSeconds(n,0),t},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(t,e,n,r){return gr(e.length,t,(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))},set:function(t,e,n,r){return t.setUTCMilliseconds(n),t},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(t,e,n,r){switch(e){case"X":return vr(cr,t);case"XX":return vr(lr,t);case"XXXX":return vr(fr,t);case"XXXXX":return vr(dr,t);case"XXX":default:return vr(hr,t)}},set:function(t,e,n,r){return e.timestampIsSet?t:new Date(t.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(t,e,n,r){switch(e){case"x":return vr(cr,t);case"xx":return vr(lr,t);case"xxxx":return vr(fr,t);case"xxxxx":return vr(dr,t);case"xxx":default:return vr(hr,t)}},set:function(t,e,n,r){return e.timestampIsSet?t:new Date(t.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(t,e,n,r){return mr(t)},set:function(t,e,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(t,e,n,r){return mr(t)},set:function(t,e,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}},jr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Cr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Sr=/^'([^]*?)'?$/,Mr=/''/g,Tr=/\S/,Pr=/[a-zA-Z]/;function Er(t,e){if(e.timestampIsSet)return t;var n=new Date(0);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}function Ar(t){return t.match(Sr)[1].replace(Mr,"'")}var Dr={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},zr=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Lr=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Rr=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Ir(t){var e,n={},r=t.split(Dr.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?(n.date=null,e=r[0]):(n.date=r[0],e=r[1],Dr.timeZoneDelimiter.test(n.date)&&(n.date=t.split(Dr.timeZoneDelimiter)[0],e=t.substr(n.date.length,t.length))),e){var i=Dr.timezone.exec(e);i?(n.time=e.replace(i[1],""),n.timezone=i[1]):n.time=e}return n}function Fr(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:null};var i=r[1]&&parseInt(r[1]),o=r[2]&&parseInt(r[2]);return{year:null==o?i:100*o,restDateString:t.slice((r[1]||r[2]).length)}}function Nr(t,e){if(null===e)return null;var n=t.match(zr);if(!n)return null;var r=!!n[4],i=Ur(n[1]),o=Ur(n[2])-1,a=Ur(n[3]),s=Ur(n[4]),u=Ur(n[5])-1;if(r)return function(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}(0,s,u)?function(t,e,n){var r=new Date(0);r.setUTCFullYear(t,0,4);var i=r.getUTCDay()||7,o=7*(e-1)+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}(e,s,u):new Date(NaN);var c=new Date(0);return function(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(Wr[e]||(Vr(t)?29:28))}(e,o,a)&&function(t,e){return e>=1&&e<=(Vr(t)?366:365)}(e,i)?(c.setUTCFullYear(e,o,Math.max(i,a)),c):new Date(NaN)}function Ur(t){return t?parseInt(t):1}function $r(t){var e=t.match(Lr);if(!e)return null;var n=Br(e[1]),r=Br(e[2]),i=Br(e[3]);return function(t,e,n){if(24===t)return 0===e&&0===n;return n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}(n,r,i)?36e5*n+6e4*r+1e3*i:NaN}function Br(t){return t&&parseFloat(t.replace(",","."))||0}function Hr(t){if("Z"===t)return 0;var e=t.match(Rr);if(!e)return 0;var n="+"===e[1]?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return function(t,e){return e>=0&&e<=59}(0,i)?n*(36e5*r+6e4*i):NaN}var Wr=[31,null,31,30,31,30,31,31,30,31,30,31];function Vr(t){return t%400==0||t%4==0&&t%100}function qr(t){return cn(1,arguments),t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)}function Yr(t){if(cn(1,arguments),!qr(t)&&"number"!=typeof t)return!1;var e=ln(t);return!isNaN(Number(e))}function Xr(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length0?n:1-n;return Xr("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):Xr(n+1,2)},d:function(t,e){return Xr(t.getUTCDate(),e.length)},a:function(t,e){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(t,e){return Xr(t.getUTCHours()%12||12,e.length)},H:function(t,e){return Xr(t.getUTCHours(),e.length)},m:function(t,e){return Xr(t.getUTCMinutes(),e.length)},s:function(t,e){return Xr(t.getUTCSeconds(),e.length)},S:function(t,e){var n=e.length,r=t.getUTCMilliseconds();return Xr(Math.floor(r*Math.pow(10,n-3)),e.length)}};var Zr="midnight",Kr="noon",Qr="morning",Jr="afternoon",ti="evening",ei="night";function ni(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=e||"";return n+String(i)+a+Xr(o,2)}function ri(t,e){return t%60==0?(t>0?"-":"+")+Xr(Math.abs(t)/60,2):ii(t,e)}function ii(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t);return r+Xr(Math.floor(i/60),2)+n+Xr(i%60,2)}var oi={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var r=t.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Gr.y(t,e)},Y:function(t,e,n,r){var i=Rn(t,r),o=i>0?i:1-i;return"YY"===e?Xr(o%100,2):"Yo"===e?n.ordinalNumber(o,{unit:"year"}):Xr(o,e.length)},R:function(t,e){return Xr(Nn(t),e.length)},u:function(t,e){return Xr(t.getUTCFullYear(),e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return Xr(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return Xr(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return Gr.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return Xr(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){var i=Hn(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):Xr(i,e.length)},I:function(t,e,n){var r=$n(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):Xr(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):Gr.d(t,e)},D:function(t,e,n){var r=function(t){cn(1,arguments);var e=ln(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=n-r;return Math.floor(i/864e5)+1}(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):Xr(r,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return Xr(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return Xr(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){var r=t.getUTCDay(),i=0===r?7:r;switch(e){case"i":return String(i);case"ii":return Xr(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r,i=t.getUTCHours();switch(r=12===i?Kr:0===i?Zr:i/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r,i=t.getUTCHours();switch(r=i>=17?ti:i>=12?Jr:i>=4?Qr:ei,e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Gr.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Gr.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):Xr(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):Xr(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Gr.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Gr.s(t,e)},S:function(t,e){return Gr.S(t,e)},X:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();if(0===i)return"Z";switch(e){case"X":return ri(i);case"XXXX":case"XX":return ii(i);case"XXXXX":case"XXX":default:return ii(i,":")}},x:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return ri(i);case"xxxx":case"xx":return ii(i);case"xxxxx":case"xxx":default:return ii(i,":")}},O:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+ni(i,":");case"OOOO":default:return"GMT"+ii(i,":")}},z:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+ni(i,":");case"zzzz":default:return"GMT"+ii(i,":")}},t:function(t,e,n,r){var i=r._originalDate||t;return Xr(Math.floor(i.getTime()/1e3),e.length)},T:function(t,e,n,r){return Xr((r._originalDate||t).getTime(),e.length)}},ai=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,si=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ui=/^'([^]*?)'?$/,ci=/''/g,li=/[a-zA-Z]/;function fi(t){return t.match(ui)[1].replace(ci,"'")}function hi(t,e){cn(2,arguments);var n=_n(e);return kn(t,36e5*n)}function di(t,e){cn(2,arguments);var n=ln(t),r=_n(e);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function pi(t,e){cn(2,arguments);var n=ln(t),r=_n(e);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function vi(t,e){return cn(2,arguments),ln(t).getTime()-ln(e).getTime()}var mi={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}};function gi(t){return t?mi[t]:mi.trunc}Math.pow(10,8);function bi(t){cn(1,arguments);var e=ln(t);return e.setHours(0,0,0,0),e}function yi(t,e){cn(2,arguments);var n=bi(t),r=bi(e),i=n.getTime()-Tn(n),o=r.getTime()-Tn(r);return Math.round((i-o)/864e5)}function xi(t,e){var n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function wi(t,e){cn(2,arguments);var n=ln(t),r=ln(e),i=xi(n,r),o=Math.abs(yi(n,r));n.setDate(n.getDate()-i*o);var a=Number(xi(n,r)===-i),s=i*(o-a);return 0===s?0:s}function _i(t,e){cn(2,arguments);var n=ln(t),r=ln(e),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return 12*i+o}function ki(t,e){cn(2,arguments);var n=ln(t),r=ln(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function Oi(t){cn(1,arguments);var e=ln(t);return e.setHours(23,59,59,999),e}function ji(t){cn(1,arguments);var e=ln(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}function Ci(t){cn(1,arguments);var e=ln(t);return Oi(e).getTime()===ji(e).getTime()}function Si(t,e){cn(2,arguments);var n,r=ln(t),i=ln(e),o=ki(r,i),a=Math.abs(_i(r,i));if(a<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-o*a);var s=ki(r,i)===-o;Ci(ln(t))&&1===a&&1===ki(t,i)&&(s=!1),n=o*(a-Number(s))}return 0===n?0:n}function Mi(t,e){cn(2,arguments);var n=ln(t),r=ln(e);return n.getFullYear()-r.getFullYear()}function Ti(t,e){cn(1,arguments);var n=e||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=null==i?0:_n(i),a=null==n.weekStartsOn?o:_n(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=ln(t),u=s.getDay(),c=(u=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=ln(t),u=s.getDay(),c=6+(u
'};function i(t,e,n){return tn?n:t}function o(t){return 100*(-1+t)}n.configure=function(t){var e,n;for(e in t)void 0!==(n=t[e])&&t.hasOwnProperty(e)&&(r[e]=n);return this},n.status=null,n.set=function(t){var e=n.isStarted();t=i(t,r.minimum,1),n.status=1===t?null:t;var u=n.render(!e),c=u.querySelector(r.barSelector),l=r.speed,f=r.easing;return u.offsetWidth,a((function(e){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),s(c,function(t,e,n){var i;return(i="translate3d"===r.positionUsing?{transform:"translate3d("+o(t)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+o(t)+"%,0)"}:{"margin-left":o(t)+"%"}).transition="all "+e+"ms "+n,i}(t,l,f)),1===t?(s(u,{transition:"none",opacity:1}),u.offsetWidth,setTimeout((function(){s(u,{transition:"all "+l+"ms linear",opacity:0}),setTimeout((function(){n.remove(),e()}),l)}),l)):setTimeout(e,l)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var t=function(){setTimeout((function(){n.status&&(n.trickle(),t())}),r.trickleSpeed)};return r.trickle&&t(),this},n.done=function(t){return t||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(t){var e=n.status;return e?("number"!=typeof t&&(t=(1-e)*i(Math.random()*e,.1,.95)),e=i(e+t,0,.994),n.set(e)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},t=0,e=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===e&&n.start(),t++,e++,r.always((function(){0==--e?(t=0,n.done()):n.set((t-e)/t)})),this):this},n.render=function(t){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var e=document.createElement("div");e.id="nprogress",e.innerHTML=r.template;var i,a=e.querySelector(r.barSelector),u=t?"-100":o(n.status||0),l=document.querySelector(r.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+u+"%,0,0)"}),r.showSpinner||(i=e.querySelector(r.spinnerSelector))&&h(i),l!=document.body&&c(l,"nprogress-custom-parent"),l.appendChild(e),e},n.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(r.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&h(t)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var a=function(){var t=[];function e(){var n=t.shift();n&&n(e)}return function(n){t.push(n),1==t.length&&e()}}(),s=function(){var t=["Webkit","O","Moz","ms"],e={};function n(n){return n=n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()})),e[n]||(e[n]=function(e){var n=document.body.style;if(e in n)return e;for(var r,i=t.length,o=e.charAt(0).toUpperCase()+e.slice(1);i--;)if((r=t[i]+o)in n)return r;return e}(n))}function r(t,e,r){e=n(e),t.style[e]=r}return function(t,e){var n,i,o=arguments;if(2==o.length)for(n in e)void 0!==(i=e[n])&&e.hasOwnProperty(n)&&r(t,n,i);else r(t,o[1],o[2])}}();function u(t,e){return("string"==typeof t?t:f(t)).indexOf(" "+e+" ")>=0}function c(t,e){var n=f(t),r=n+e;u(n,e)||(t.className=r.substring(1))}function l(t,e){var n,r=f(t);u(t,e)&&(n=r.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function f(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function h(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return n})?r.call(e,n,e,t):r)||(t.exports=i)},function(t,e,n){"use strict";var r=n(2),i=n(3),o=n(135).indexOf,a=n(65),s=i([].indexOf),u=!!s&&1/s([1],1,-0)<0,c=a("indexOf");r({target:"Array",proto:!0,forced:u||!c},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return u?s(this,t,e)||0:o(this,t,e)}})},function(t,e,n){var r=n(1),i=n(26),o=n(7),a=n(52),s=n(177),u=r.Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return o(e)&&a(e.prototype,u(t))}},function(t,e,n){"use strict";var r,i,o=n(15),a=n(3),s=n(18),u=n(148),c=n(127),l=n(98),f=n(54),h=n(27).get,d=n(149),p=n(208),v=l("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,g=m,b=a("".charAt),y=a("".indexOf),x=a("".replace),w=a("".slice),_=(i=/b*/g,o(m,r=/a/,"a"),o(m,i,"a"),0!==r.lastIndex||0!==i.lastIndex),k=c.UNSUPPORTED_Y||c.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];(_||O||k||d||p)&&(g=function(t){var e,n,r,i,a,c,l,d=this,p=h(d),j=s(t),C=p.raw;if(C)return C.lastIndex=d.lastIndex,e=o(g,C,j),d.lastIndex=C.lastIndex,e;var S=p.groups,M=k&&d.sticky,T=o(u,d),P=d.source,E=0,A=j;if(M&&(T=x(T,"y",""),-1===y(T,"g")&&(T+="g"),A=w(j,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==b(j,d.lastIndex-1))&&(P="(?: "+P+")",A=" "+A,E++),n=new RegExp("^(?:"+P+")",T)),O&&(n=new RegExp("^"+P+"$(?!\\s)",T)),_&&(r=d.lastIndex),i=o(m,M?n:d,A),M?i?(i.input=w(i.input,E),i[0]=w(i[0],E),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:_&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),O&&i&&i.length>1&&o(v,i[0],n,(function(){for(a=1;a1?arguments[1]:void 0)}}),o("includes")},function(t,e,n){"use strict";var r=n(2),i=n(3),o=n(167),a=n(32),s=n(18),u=n(169),c=i("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~c(s(a(this)),s(o(t)),arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(2),i=n(55).find,o=n(131),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("find")},function(t,e,n){var r=n(8),i=n(54),o=n(16),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},function(t,e,n){var r=n(1),i=n(133),o=r["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},function(t,e,n){var r=n(1),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(62),i=n(5);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e,n){var r=n(23),i=n(181),o=n(45),a=function(t){return function(e,n,a){var s,u=r(e),c=o(u),l=i(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(1),i=n(13),o=n(7),a=n(24),s=n(103),u=n(188),c=s("IE_PROTO"),l=r.Object,f=l.prototype;t.exports=u?l.getPrototypeOf:function(t){var e=a(t);if(i(e,c))return e[c];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof l?f:null}},function(t,e,n){var r=n(21);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){var r=n(1),i=n(52),o=r.TypeError;t.exports=function(t,e){if(i(e,t))return t;throw o("Incorrect invocation")}},function(t,e,n){var r=n(1),i=n(79),o=n(15),a=n(11),s=n(102),u=n(191),c=n(45),l=n(52),f=n(192),h=n(142),d=n(193),p=r.TypeError,v=function(t,e){this.stopped=t,this.result=e},m=v.prototype;t.exports=function(t,e,n){var r,g,b,y,x,w,_,k=n&&n.that,O=!(!n||!n.AS_ENTRIES),j=!(!n||!n.IS_ITERATOR),C=!(!n||!n.INTERRUPTED),S=i(e,k),M=function(t){return r&&d(r,"normal",t),new v(!0,t)},T=function(t){return O?(a(t),C?S(t[0],t[1],M):S(t[0],t[1])):C?S(t,M):S(t)};if(j)r=t;else{if(!(g=h(t)))throw p(s(t)+" is not iterable");if(u(g)){for(b=0,y=c(t);y>b;b++)if((x=T(t[b]))&&l(m,x))return x;return new v(!1)}r=f(t,g)}for(w=r.next;!(_=o(w,r)).done;){try{x=T(_.value)}catch(t){d(r,"throw",t)}if("object"==typeof x&&x&&l(m,x))return x}return new v(!1)}},function(t,e,n){var r=n(107),i=n(70),o=n(76),a=n(8)("iterator");t.exports=function(t){if(null!=t)return i(t,a)||i(t,"@@iterator")||o[r(t)]}},function(t,e,n){var r={};r[n(8)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r=n(8)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},function(t,e,n){var r=n(2),i=n(10),o=n(186),a=n(23),s=n(50),u=n(114);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),i=s.f,c=o(r),l={},f=0;c.length>f;)void 0!==(n=i(r,e=c[f++]))&&u(l,e,n);return l}})},function(t,e,n){"use strict";var r=n(2),i=n(274).left,o=n(65),a=n(62),s=n(109);r({target:"Array",proto:!0,forced:!o("reduce")||!s&&a>79&&a<83},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r,i=n(2),o=n(3),a=n(50).f,s=n(94),u=n(18),c=n(167),l=n(32),f=n(169),h=n(51),d=o("".startsWith),p=o("".slice),v=Math.min,m=f("startsWith");i({target:"String",proto:!0,forced:!!(h||m||(r=a(String.prototype,"startsWith"),!r||r.writable))&&!m},{startsWith:function(t){var e=u(l(this));c(t);var n=s(v(arguments.length>1?arguments[1]:void 0,e.length)),r=u(t);return d?d(e,r,n):p(e,n,n+r.length)===r}})},function(t,e,n){"use strict";var r=n(11);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(5),i=n(1).RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,n){var r=n(282),i=n(61),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e,n){var r=n(57)(n(39),"Map");t.exports=r},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(302),i=n(309),o=n(311),a=n(312),s=n(313);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){var r=n(37),i=n(157),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(a.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e,n){var r=n(72),i=n(61);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},function(t,e){t.exports=function(t){return t}},function(t,e,n){"use strict";var r,i=n(1),o=n(3),a=n(139),s=n(116),u=n(375),c=n(376),l=n(9),f=n(207),h=n(27).enforce,d=n(183),p=!i.ActiveXObject&&"ActiveXObject"in i,v=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},m=u("WeakMap",v,c);if(d&&p){r=c.getConstructor(v,"WeakMap",!0),s.enable();var g=m.prototype,b=o(g.delete),y=o(g.has),x=o(g.get),w=o(g.set);a(g,{delete:function(t){if(l(t)&&!f(t)){var e=h(this);return e.frozen||(e.frozen=new r),b(this,t)||e.frozen.delete(t)}return b(this,t)},has:function(t){if(l(t)&&!f(t)){var e=h(this);return e.frozen||(e.frozen=new r),y(this,t)||e.frozen.has(t)}return y(this,t)},get:function(t){if(l(t)&&!f(t)){var e=h(this);return e.frozen||(e.frozen=new r),y(this,t)?x(this,t):e.frozen.get(t)}return x(this,t)},set:function(t,e){if(l(t)&&!f(t)){var n=h(this);n.frozen||(n.frozen=new r),y(this,t)?w(this,t,e):n.frozen.set(t,e)}else w(this,t,e);return this}})}},function(t,e,n){function r(e,n){return t.exports=r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.default=t.exports,t.exports.__esModule=!0,r(e,n)}n(56),t.exports=r,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r=-1&&!e;i--){var o=i>=0?arguments[i]:process.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,e="/"===o.charAt(0))}return(e?"/":"")+(t=n(r(t.split("/"),(function(t){return!!t})),!e).join("/"))||"."},e.normalize=function(t){var o=e.isAbsolute(t),a="/"===i(t,-1);return(t=n(r(t.split("/"),(function(t){return!!t})),!o).join("/"))||o||(t="."),t&&a&&(t+="/"),(o?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u=1;--o)if(47===(e=t.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=function(t){"string"!=typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!=typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=a+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?"":t.slice(e,r)};var i="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}},function(t,e,n){"use strict";var r=n(15),i=n(164),o=n(11),a=n(94),s=n(18),u=n(32),c=n(70),l=n(170),f=n(165);i("match",(function(t,e,n){return[function(e){var n=u(this),i=null==e?void 0:c(e,t);return i?r(i,e,n):new RegExp(e)[t](s(n))},function(t){var r=o(this),i=s(t),u=n(e,r,i);if(u.done)return u.value;if(!r.global)return f(r,i);var c=r.unicode;r.lastIndex=0;for(var h,d=[],p=0;null!==(h=f(r,i));){var v=s(h[0]);d[p]=v,""===v&&(r.lastIndex=l(i,a(r.lastIndex),c)),p++}return 0===p?null:d}]}))},function(t,e,n){"use strict";n(20);var r=n(3),i=n(21),o=n(126),a=n(5),s=n(8),u=n(46),c=s("species"),l=RegExp.prototype;t.exports=function(t,e,n,f){var h=s(t),d=!a((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),p=d&&!a((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return e=!0,null},n[h](""),!e}));if(!d||!p||n){var v=r(/./[h]),m=e(h,""[t],(function(t,e,n,i,a){var s=r(t),u=e.exec;return u===o||u===l.exec?d&&!a?{done:!0,value:v(e,n,i)}:{done:!0,value:s(n,e,i)}:{done:!1}}));i(String.prototype,t,m[0]),i(l,h,m[1])}f&&u(l[h],"sham",!0)}},function(t,e,n){var r=n(1),i=n(15),o=n(11),a=n(7),s=n(30),u=n(126),c=r.TypeError;t.exports=function(t,e){var n=t.exec;if(a(n)){var r=i(n,t,e);return null!==r&&o(r),r}if("RegExp"===s(t))return i(u,t,e);throw c("RegExp#exec called on incompatible receiver")}},function(t,e,n){var r=n(11),i=n(194),o=n(8)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[o])?e:i(n)}},function(t,e,n){var r=n(1),i=n(168),o=r.TypeError;t.exports=function(t){if(i(t))throw o("The method doesn't accept regular expressions");return t}},function(t,e,n){var r=n(9),i=n(30),o=n(8)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},function(t,e,n){var r=n(8)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,n){"use strict";var r=n(205).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(7),i=n(9),o=n(106);t.exports=function(t,e,n){var a,s;return o&&r(a=e.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(t,e,n){n(29),n(6),n(36),n(117),n(12),n(20),n(69);var r=n(235);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n(231),n(87),n(6),n(33);var r=n(59),i={name:"NavLink",props:{item:{required:!0}},computed:{link:function(){return Object(r.b)(this.item.link)},exact:function(){var t=this;return this.$site.locales?Object.keys(this.$site.locales).some((function(e){return e===t.link})):"/"===this.link},isNonHttpURI:function(){return Object(r.g)(this.link)||Object(r.h)(this.link)},isBlankTarget:function(){return"_blank"===this.target},isInternal:function(){return!Object(r.f)(this.link)&&!this.isBlankTarget},target:function(){return this.isNonHttpURI?null:this.item.target?this.item.target:Object(r.f)(this.link)?"_blank":""},rel:function(){return this.isNonHttpURI||!1===this.item.rel?null:this.item.rel?this.item.rel:this.isBlankTarget?"noopener noreferrer":null}},methods:{focusoutAction:function(){this.$emit("focusout")}}},o=n(22),a=Object(o.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isInternal?n("RouterLink",{staticClass:"nav-link",attrs:{to:t.link,exact:t.exact},nativeOn:{focusout:function(e){return t.focusoutAction.apply(null,arguments)}}},[t._v("\n "+t._s(t.item.text)+"\n")]):n("a",{staticClass:"nav-link external",attrs:{href:t.link,target:t.target,rel:t.rel},on:{focusout:t.focusoutAction}},[t._v("\n "+t._s(t.item.text)+"\n "),t.isBlankTarget?n("OutboundLink"):t._e()],1)}),[],!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r=n(23),i=n(131),o=n(76),a=n(27),s=n(184),u=a.set,c=a.getterFor("Array Iterator");t.exports=s(Array,"Array",(function(t,e){u(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=c(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e,n){var r=n(134);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(10),i=n(16),o=n(11),a=n(23),s=n(74);t.exports=r?Object.defineProperties:function(t,e){o(t);for(var n,r=a(e),u=s(e),c=u.length,l=0;c>l;)i.f(t,n=u[l++],r[n]);return t}},function(t,e,n){var r=n(10),i=n(5),o=n(100);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(3),i=n(13),o=n(23),a=n(135).indexOf,s=n(75),u=r([].push);t.exports=function(t,e){var n,r=o(t),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);for(;e.length>c;)i(r,n=e[c++])&&(~a(l,n)||u(l,n));return l}},function(t,e,n){var r=n(95),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},function(t,e,n){var r=n(26);t.exports=r("document","documentElement")},function(t,e,n){var r=n(1),i=n(7),o=n(104),a=r.WeakMap;t.exports=i(a)&&/native code/.test(o(a))},function(t,e,n){"use strict";var r=n(2),i=n(15),o=n(51),a=n(78),s=n(7),u=n(259),c=n(138),l=n(106),f=n(47),h=n(46),d=n(21),p=n(8),v=n(76),m=n(187),g=a.PROPER,b=a.CONFIGURABLE,y=m.IteratorPrototype,x=m.BUGGY_SAFARI_ITERATORS,w=p("iterator"),_=function(){return this};t.exports=function(t,e,n,a,p,m,k){u(n,e,a);var O,j,C,S=function(t){if(t===p&&A)return A;if(!x&&t in P)return P[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},M=e+" Iterator",T=!1,P=t.prototype,E=P[w]||P["@@iterator"]||p&&P[p],A=!x&&E||S(p),D="Array"==e&&P.entries||E;if(D&&(O=c(D.call(new t)))!==Object.prototype&&O.next&&(o||c(O)===y||(l?l(O,y):s(O[w])||d(O,w,_)),f(O,M,!0,!0),o&&(v[M]=_)),g&&"values"==p&&E&&"values"!==E.name&&(!o&&b?h(P,"name","values"):(T=!0,A=function(){return i(E,this)})),p)if(j={values:S("values"),keys:m?A:S("keys"),entries:S("entries")},k)for(C in j)(x||T||!(C in P))&&d(P,C,j[C]);else r({target:e,proto:!0,forced:x||T},j);return o&&!k||P[w]===A||d(P,w,A,{name:p}),v[e]=A,j}},function(t,e,n){var r=n(13),i=n(186),o=n(50),a=n(16);t.exports=function(t,e){for(var n=i(e),s=a.f,u=o.f,c=0;c1?arguments[1]:void 0)}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(100)("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},function(t,e,n){var r=n(3),i=n(95),o=n(18),a=n(32),s=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(t){return function(e,n){var r,l,f=o(a(e)),h=i(n),d=f.length;return h<0||h>=d?t?"":void 0:(r=u(f,h))<55296||r>56319||h+1===d||(l=u(f,h+1))<56320||l>57343?t?s(f,h):r:t?c(f,h,h+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},function(t,e,n){var r=n(5);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,n){var r=n(5),i=n(9),o=n(30),a=n(275),s=Object.isExtensible,u=r((function(){s(1)}));t.exports=u||a?function(t){return!!i(t)&&((!a||"ArrayBuffer"!=o(t))&&(!s||s(t)))}:s},function(t,e,n){var r=n(5),i=n(1).RegExp;t.exports=r((function(){var t=i("(?
b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++nl))return!1;var h=u.get(t),d=u.get(e);if(h&&d)return h==e&&d==t;var p=-1,v=!0,m=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++p-1&&t%1==0&&tt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=e||n<0||m&&t-c>=o}function w(){var t=d();if(x(t))return _(t);s=setTimeout(w,function(t){var n=e-(t-u);return m?h(n,o-(t-c)):n}(t))}function _(t){return s=void 0,g&&r?b(t):(r=i=void 0,a)}function k(){var t=d(),n=x(t);if(r=arguments,i=this,u=t,n){if(void 0===s)return y(u);if(m)return s=setTimeout(w,e),b(u)}return void 0===s&&(s=setTimeout(w,e)),a}return e=v(e)||0,p(n)&&(l=!!n.leading,o=(m="maxWait"in n)?f(v(n.maxWait)||0,e):o,g="trailing"in n?!!n.trailing:g),k.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=i=s=void 0},k.flush=function(){return void 0===s?a:_(d())},k}},function(t,e,n){n(90),n(91),n(92),n(93),n(6),n(12),n(159),n(14),n(146),n(33),n(48),n(232),n(41),n(17),n(19),n(42),n(88),n(29);var r=n(82).default,i=n(233).default,o=n(160).default;function a(){a=function(t,e){return new n(t,void 0,e)};var t=RegExp.prototype,e=new WeakMap;function n(t,r,i){var a=new RegExp(t,r);return e.set(a,i||e.get(t)),o(a,n.prototype)}function s(t,n){var r=e.get(n);return Object.keys(r).reduce((function(e,n){var i=r[n];if("number"==typeof i)e[n]=t[i];else{for(var o=0;void 0===t[i[o]]&&o+1]+)>/g,(function(t,e){var n=o[e];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var a=this;return t[Symbol.replace].call(this,n,(function(){var t=arguments;return"object"!=r(t[t.length-1])&&(t=[].slice.call(t)).push(s(t,a)),i.apply(this,t)}))}return t[Symbol.replace].call(this,n,i)},a.apply(this,arguments)}n(20),n(249);var s=a(/^(.+?)(::(after|before))?$/,{selector:1,position:3});t.exports={injectElement:function(t,e,n){var r=s.exec(n.trim());if(r){var i=r.groups,o=i.selector,a=i.position,u=t.querySelector(o.trim());if(u)if(a){var c="before"===a?u:u.nextSibling;c?u.parentNode.insertBefore(e,c):u.parentNode.appendChild(e)}else u.appendChild(e);else console.error("Target '".concat(u,"' does not match any element"))}else console.error("Invalid query selector: ".concat(n))}}},function(t,e,n){var r=n(82).default,i=n(378).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,a=Object.create(o.prototype),s=new S(r||[]);return i(a,"_invoke",{value:k(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var d={};function p(){}function v(){}function m(){}var g={};l(g,s,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(M([])));y&&y!==e&&n.call(y,s)&&(g=y);var x=m.prototype=p.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){var o;i(this,"_invoke",{value:function(i,a){function s(){return new e((function(o,s){!function i(o,a,s,u){var c=h(t[o],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==r(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,s,u)}),(function(t){i("throw",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return i("throw",t,s,u)}))}u(c.arg)}(i,a,o,s)}))}return o=o?o.then(s,s):s()}})}function k(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=h(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function O(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=h(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function M(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:M(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function a(){return(a=i(o().mark((function t(e,n){var r,i,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r="https://data.jsdelivr.com/v1/package/npm/".concat(n),t.next=3,e(r);case 3:return t.next=5,t.sent.json();case 5:return i=t.sent,a=Object.entries(i.tags||[]),t.abrupt("return",i.versions.map((function(t){return{tag:(a.find((function(e){return e[1]===t}))||[null])[0],name:t}})));case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}n(234),n(40),n(130),n(6),n(38),n(17),n(19),n(25),n(12),n(14),n(110),n(111),n(112),n(113),n(48),n(64),n(34),n(35),n(36),n(56),n(97),n(29),t.exports={fetchNpmVersions:function(t,e){return a.apply(this,arguments)}}},function(t,e,n){"use strict";var r=n(2),i=n(250).trim;r({target:"String",proto:!0,forced:n(377)("trim")},{trim:function(){return i(this)}})},function(t,e,n){var r=n(3),i=n(32),o=n(18),a=n(173),s=r("".replace),u="["+a+"]",c=RegExp("^"+u+u+"*"),l=RegExp(u+u+"*$"),f=function(t){return function(e){var n=o(i(e));return 1&t&&(n=s(n,c,"")),2&t&&(n=s(n,l,"")),n}};t.exports={start:f(1),end:f(2),trim:f(3)}},function(t,e,n){var r=n(1),i=n(15),o=n(9),a=n(125),s=n(70),u=n(258),c=n(8),l=r.TypeError,f=c("toPrimitive");t.exports=function(t,e){if(!o(t)||a(t))return t;var n,r=s(t,f);if(r){if(void 0===e&&(e="default"),n=i(r,t,e),!o(n)||a(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},function(t,e,n){var r=n(2),i=n(206),o=n(5),a=n(9),s=n(116).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!i},{freeze:function(t){return u&&a(t)?u(s(t)):t}})},function(t,e,n){var r=n(227);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},function(t,e,n){"use strict";var r=n(2),i=n(3),o=n(44),a=n(24),s=n(45),u=n(18),c=n(5),l=n(390),f=n(65),h=n(391),d=n(392),p=n(62),v=n(393),m=[],g=i(m.sort),b=i(m.push),y=c((function(){m.sort(void 0)})),x=c((function(){m.sort(null)})),w=f("sort"),_=!c((function(){if(p)return p<70;if(!(h&&h>3)){if(d)return!0;if(v)return v<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)m.push({k:e+r,v:n})}for(m.sort((function(t,e){return e.v-t.v})),r=0;ru(n)?1:-1}}(t)),n=i.length,r=0;r2,i=r?u(arguments,2):void 0;return t(r?function(){o(a(e)?e:l(e),this,i)}:e,n)}};r({global:!0,bind:!0,forced:c},{setTimeout:f(i.setTimeout),setInterval:f(i.setInterval)})},,function(t,e,n){t.exports=n(406)},function(t,e,n){var r=n(1),i=n(15),o=n(7),a=n(9),s=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&o(n=t.toString)&&!a(r=i(n,t)))return r;if(o(n=t.valueOf)&&!a(r=i(n,t)))return r;if("string"!==e&&o(n=t.toString)&&!a(r=i(n,t)))return r;throw s("Can't convert object to primitive value")}},function(t,e,n){"use strict";var r=n(187).IteratorPrototype,i=n(54),o=n(77),a=n(47),s=n(76),u=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,c,!1,!0),s[c]=u,t}},function(t,e,n){var r=n(1),i=n(7),o=r.String,a=r.TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw a("Can't set "+o(t)+" as a prototype")}},function(t,e,n){"use strict";var r,i,o,a,s=n(2),u=n(51),c=n(1),l=n(26),f=n(15),h=n(189),d=n(21),p=n(139),v=n(106),m=n(47),g=n(190),b=n(44),y=n(7),x=n(9),w=n(140),_=n(104),k=n(141),O=n(144),j=n(166),C=n(195).set,S=n(262),M=n(197),T=n(265),P=n(198),E=n(266),A=n(27),D=n(96),z=n(8),L=n(267),R=n(109),I=n(62),F=z("species"),N=A.get,U=A.set,$=A.getterFor("Promise"),B=h&&h.prototype,H=h,W=B,V=c.TypeError,q=c.document,Y=c.process,X=P.f,G=X,Z=!!(q&&q.createEvent&&c.dispatchEvent),K=y(c.PromiseRejectionEvent),Q=!1,J=D("Promise",(function(){var t=_(H),e=t!==String(H);if(!e&&66===I)return!0;if(u&&!W.finally)return!0;if(I>=51&&/native code/.test(t))return!1;var n=new H((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[F]=r,!(Q=n.then((function(){}))instanceof r)||!e&&L&&!K})),tt=J||!O((function(t){H.all(t).catch((function(){}))})),et=function(t){var e;return!(!x(t)||!y(e=t.then))&&e},nt=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;S((function(){for(var r=t.value,i=1==t.state,o=0;n.length>o;){var a,s,u,c=n[o++],l=i?c.ok:c.fail,h=c.resolve,d=c.reject,p=c.domain;try{l?(i||(2===t.rejection&&at(t),t.rejection=1),!0===l?a=r:(p&&p.enter(),a=l(r),p&&(p.exit(),u=!0)),a===c.promise?d(V("Promise-chain cycle")):(s=et(a))?f(s,a,h,d):h(a)):d(r)}catch(t){p&&!u&&p.exit(),d(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&it(t)}))}},rt=function(t,e,n){var r,i;Z?((r=q.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!K&&(i=c["on"+t])?i(r):"unhandledrejection"===t&&T("Unhandled promise rejection",n)},it=function(t){f(C,c,(function(){var e,n=t.facade,r=t.value;if(ot(t)&&(e=E((function(){R?Y.emit("unhandledRejection",r,n):rt("unhandledrejection",n,r)})),t.rejection=R||ot(t)?2:1,e.error))throw e.value}))},ot=function(t){return 1!==t.rejection&&!t.parent},at=function(t){f(C,c,(function(){var e=t.facade;R?Y.emit("rejectionHandled",e):rt("rejectionhandled",e,t.value)}))},st=function(t,e,n){return function(r){t(e,r,n)}},ut=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,nt(t,!0))},ct=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw V("Promise can't be resolved itself");var r=et(e);r?S((function(){var n={done:!1};try{f(r,e,st(ct,n,t),st(ut,n,t))}catch(e){ut(n,e,t)}})):(t.value=e,t.state=1,nt(t,!1))}catch(e){ut({done:!1},e,t)}}};if(J&&(W=(H=function(t){w(this,W),b(t),f(r,this);var e=N(this);try{t(st(ct,e),st(ut,e))}catch(t){ut(e,t)}}).prototype,(r=function(t){U(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(W,{then:function(t,e){var n=$(this),r=n.reactions,i=X(j(this,H));return i.ok=!y(t)||t,i.fail=y(e)&&e,i.domain=R?Y.domain:void 0,n.parent=!0,r[r.length]=i,0!=n.state&&nt(n,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=N(t);this.promise=t,this.resolve=st(ct,e),this.reject=st(ut,e)},P.f=X=function(t){return t===H||t===o?new i(t):G(t)},!u&&y(h)&&B!==Object.prototype)){a=B.then,Q||(d(B,"then",(function(t,e){var n=this;return new H((function(t,e){f(a,n,t,e)})).then(t,e)}),{unsafe:!0}),d(B,"catch",W.catch,{unsafe:!0}));try{delete B.constructor}catch(t){}v&&v(B,W)}s({global:!0,wrap:!0,forced:J},{Promise:H}),m(H,"Promise",!1,!0),g("Promise"),o=l("Promise"),s({target:"Promise",stat:!0,forced:J},{reject:function(t){var e=X(this);return f(e.reject,void 0,t),e.promise}}),s({target:"Promise",stat:!0,forced:u||J},{resolve:function(t){return M(u&&this===o?H:this,t)}}),s({target:"Promise",stat:!0,forced:tt},{all:function(t){var e=this,n=X(e),r=n.resolve,i=n.reject,o=E((function(){var n=b(e.resolve),o=[],a=0,s=1;k(t,(function(t){var u=a++,c=!1;s++,f(n,e,t).then((function(t){c||(c=!0,o[u]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=X(e),r=n.reject,i=E((function(){var i=b(e.resolve);k(t,(function(t){f(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},function(t,e,n){var r,i,o,a,s,u,c,l,f=n(1),h=n(79),d=n(50).f,p=n(195).set,v=n(196),m=n(263),g=n(264),b=n(109),y=f.MutationObserver||f.WebKitMutationObserver,x=f.document,w=f.process,_=f.Promise,k=d(f,"queueMicrotask"),O=k&&k.value;O||(r=function(){var t,e;for(b&&(t=w.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},v||b||g||!y||!x?!m&&_&&_.resolve?((c=_.resolve(void 0)).constructor=_,l=h(c.then,c),a=function(){l(r)}):b?a=function(){w.nextTick(r)}:(p=h(p,f),a=function(){p(r)}):(s=!0,u=x.createTextNode(""),new y(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s})),t.exports=O||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},function(t,e,n){var r=n(43),i=n(1);t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},function(t,e,n){var r=n(43);t.exports=/web0s(?!.*chrome)/i.test(r)},function(t,e,n){var r=n(1);t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e){t.exports="object"==typeof window},function(t,e,n){var r=n(2),i=n(269);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(t,e,n){"use strict";var r=n(10),i=n(3),o=n(15),a=n(5),s=n(74),u=n(137),c=n(105),l=n(24),f=n(73),h=Object.assign,d=Object.defineProperty,p=i([].concat);t.exports=!h||a((function(){if(r&&1!==h({b:1},h(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=h({},t)[n]||"abcdefghijklmnopqrst"!=s(h({},e)).join("")}))?function(t,e){for(var n=l(t),i=arguments.length,a=1,h=u.f,d=c.f;i>a;)for(var v,m=f(arguments[a++]),g=h?p(s(m),h(m)):s(m),b=g.length,y=0;b>y;)v=g[y++],r&&!o(d,m,v)||(n[v]=m[v]);return n}:h},function(t,e,n){"use strict";var r=n(2),i=n(51),o=n(189),a=n(5),s=n(26),u=n(7),c=n(166),l=n(197),f=n(21);if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){o.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=c(this,s("Promise")),n=u(t);return this.then(n?function(n){return l(e,t()).then((function(){return n}))}:t,n?function(n){return l(e,t()).then((function(){throw n}))}:t)}}),!i&&u(o)){var h=s("Promise").prototype.finally;o.prototype.finally!==h&&f(o.prototype,"finally",h,{unsafe:!0})}},function(t,e,n){var r=n(1);t.exports=r},function(t,e,n){var r=n(1),i=n(63),o=n(108),a=n(9),s=n(8)("species"),u=r.Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(o(e)&&(e===u||i(e.prototype))||a(e)&&null===(e=e[s]))&&(e=void 0)),void 0===e?u:e}},function(t,e,n){"use strict";var r=n(143),i=n(107);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,e,n){var r=n(1),i=n(44),o=n(24),a=n(73),s=n(45),u=r.TypeError,c=function(t){return function(e,n,r,c){i(n);var l=o(e),f=a(l),h=s(l),d=t?h-1:0,p=t?-1:1;if(r<2)for(;;){if(d in f){c=f[d],d+=p;break}if(d+=p,t?d<0:h<=d)throw u("Reduce of empty array with no initial value")}for(;t?d>=0:h>d;d+=p)d in f&&(c=n(c,f[d],d,l));return c}};t.exports={left:c(!1),right:c(!0)}},function(t,e,n){var r=n(5);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,e,n){"use strict";var r=n(1),i=n(79),o=n(15),a=n(24),s=n(277),u=n(191),c=n(108),l=n(45),f=n(114),h=n(192),d=n(142),p=r.Array;t.exports=function(t){var e=a(t),n=c(this),r=arguments.length,v=r>1?arguments[1]:void 0,m=void 0!==v;m&&(v=i(v,r>2?arguments[2]:void 0));var g,b,y,x,w,_,k=d(e),O=0;if(!k||this==p&&u(k))for(g=l(e),b=n?new this(g):p(g);g>O;O++)_=m?v(e[O],O):e[O],f(b,O,_);else for(w=(x=h(e,k)).next,b=n?new this:[];!(y=o(w,x)).done;O++)_=m?s(x,v,[y.value,O],!0):y.value,f(b,O,_);return b.length=O,b}},function(t,e,n){var r=n(11),i=n(193);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){i(t,"throw",e)}}},function(t,e,n){var r=n(3),i=n(24),o=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,h){var d=n+t.length,p=r.length,v=l;return void 0!==f&&(f=i(f),v=c),s(h,v,(function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,n);case"'":return u(e,d);case"<":c=f[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>p){var h=o(l/10);return 0===h?i:h<=p?void 0===r[h-1]?a(s,1):r[h-1]+a(s,1):i}c=r[l-1]}return void 0===c?"":c}))}},function(t,e,n){var r=n(2),i=n(1),o=n(26),a=n(60),s=n(3),u=n(5),c=i.Array,l=o("JSON","stringify"),f=s(/./.exec),h=s("".charAt),d=s("".charCodeAt),p=s("".replace),v=s(1..toString),m=/[\uD800-\uDFFF]/g,g=/^[\uD800-\uDBFF]$/,b=/^[\uDC00-\uDFFF]$/,y=function(t,e,n){var r=h(n,e-1),i=h(n,e+1);return f(g,t)&&!f(b,i)||f(b,t)&&!f(g,r)?"\\u"+v(d(t,0),16):t},x=u((function(){return'"\\udf06\\ud834"'!==l("\udf06\ud834")||'"\\udead"'!==l("\udead")}));l&&r({target:"JSON",stat:!0,forced:x},{stringify:function(t,e,n){for(var r=0,i=arguments.length,o=c(i);r0&&o(l)?n>1?t(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},function(t,e,n){var r=n(81),i=n(150),o=n(37),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},function(t,e,n){var r=n(72),i=n(61);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},function(t,e,n){var r=n(81),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=n(286),i=n(342),o=n(158),a=n(37),s=n(352);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}},function(t,e,n){var r=n(287),i=n(341),o=n(226);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(211),i=n(215);t.exports=function(t,e,n,o){var a=n.length,s=a,u=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a-1}},function(t,e,n){var r=n(119);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},function(t,e,n){var r=n(118);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(118),i=n(151),o=n(153);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(213),i=n(299),o=n(152),a=n(214),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,h=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?h:s).test(a(t))}},function(t,e,n){var r,i=n(300),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var r=n(39)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(303),i=n(118),o=n(151);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(t,e,n){var r=n(304),i=n(305),o=n(306),a=n(307),s=n(308);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(217),i=n(364),o=n(369),a=n(218),s=n(370),u=n(154);t.exports=function(t,e,n){var c=-1,l=i,f=t.length,h=!0,d=[],p=d;if(n)h=!1,l=o;else if(f>=200){var v=e?null:s(t);if(v)return u(v);h=!1,l=a,p=new r}else p=e?[]:d;t:for(;++c-1}},function(t,e,n){var r=n(366),i=n(367),o=n(368);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o"+u+""}},function(t,e,n){var r=n(5);t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},function(t,e,n){"use strict";var r=n(2),i=n(1),o=n(3),a=n(96),s=n(21),u=n(116),c=n(141),l=n(140),f=n(7),h=n(9),d=n(5),p=n(144),v=n(47),m=n(172);t.exports=function(t,e,n){var g=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),y=g?"set":"add",x=i[t],w=x&&x.prototype,_=x,k={},O=function(t){var e=o(w[t]);s(w,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!h(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return b&&!h(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!h(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(a(t,!f(x)||!(b||w.forEach&&!d((function(){(new x).entries().next()})))))_=n.getConstructor(e,t,g,y),u.enable();else if(a(t,!0)){var j=new _,C=j[y](b?{}:-0,1)!=j,S=d((function(){j.has(1)})),M=p((function(t){new x(t)})),T=!b&&d((function(){for(var t=new x,e=5;e--;)t[y](e,e);return!t.has(-0)}));M||((_=e((function(t,e){l(t,w);var n=m(new x,t,_);return null!=e&&c(e,n[y],{that:n,AS_ENTRIES:g}),n}))).prototype=w,w.constructor=_),(S||T)&&(O("delete"),O("has"),g&&O("get")),(T||C)&&O(y),b&&w.clear&&delete w.clear}return k[t]=_,r({global:!0,forced:_!=x},k),v(_,t),b||n.setStrong(_,t,g),_}},function(t,e,n){"use strict";var r=n(3),i=n(139),o=n(116).getWeakData,a=n(11),s=n(9),u=n(140),c=n(141),l=n(55),f=n(13),h=n(27),d=h.set,p=h.getterFor,v=l.find,m=l.findIndex,g=r([].splice),b=0,y=function(t){return t.frozen||(t.frozen=new x)},x=function(){this.entries=[]},w=function(t,e){return v(t.entries,(function(t){return t[0]===e}))};x.prototype={get:function(t){var e=w(this,t);if(e)return e[1]},has:function(t){return!!w(this,t)},set:function(t,e){var n=w(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=m(this.entries,(function(e){return e[0]===t}));return~e&&g(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var l=t((function(t,i){u(t,h),d(t,{type:e,id:b++,frozen:void 0}),null!=i&&c(i,t[r],{that:t,AS_ENTRIES:n})})),h=l.prototype,v=p(e),m=function(t,e,n){var r=v(t),i=o(a(e),!0);return!0===i?y(r).set(e,n):i[r.id]=n,t};return i(h,{delete:function(t){var e=v(this);if(!s(t))return!1;var n=o(t);return!0===n?y(e).delete(t):n&&f(n,e.id)&&delete n[e.id]},has:function(t){var e=v(this);if(!s(t))return!1;var n=o(t);return!0===n?y(e).has(t):n&&f(n,e.id)}}),i(h,n?{get:function(t){var e=v(this);if(s(t)){var n=o(t);return!0===n?y(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return m(this,t,e)}}:{add:function(t){return m(this,t,!0)}}),l}}},function(t,e,n){var r=n(78).PROPER,i=n(5),o=n(173);t.exports=function(t){return i((function(){return!!o[t]()||"​…᠎"!=="​…᠎"[t]()||r&&o[t].name!==t}))}},function(t,e,n){function r(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}n(6),t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,u,"next",t)}function u(t){r(a,i,o,s,u,"throw",t)}s(void 0)}))}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(10),i=n(3),o=n(74),a=n(23),s=i(n(105).f),u=i([].push),c=function(t){return function(e){for(var n,i=a(e),c=o(i),l=c.length,f=0,h=[];l>f;)n=c[f++],r&&!s(i,n)||u(h,t?[n,i[n]]:i[n]);return h}};t.exports={entries:c(!0),values:c(!1)}},function(t,e,n){var r=n(381),i=n(382),o=n(174),a=n(383);t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){n(42),t.exports=function(t){if(Array.isArray(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){n(17),n(19),n(6),n(25),n(12),n(14),t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(385),i=n(386),o=n(174),a=n(387);t.exports=function(t){return r(t)||i(t)||o(t)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){n(42);var r=n(235);t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){n(17),n(19),n(6),n(25),n(12),n(14),n(117),t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){n(33),n(17),n(28),n(6),n(229),n(34),n(35),n(145),n(230),n(38);var r=n(389);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}t.exports=function(t){for(var e=1;e0;)t[r]=t[--r];r!==o++&&(t[r]=n)}return t},s=function(t,e,n,r){for(var i=e.length,o=n.length,a=0,s=0;a=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(i.path||""),l=e&&e.path||"/",f=c.path?M(c.path,l,n||i.append):l,h=function(t,e,n){void 0===e&&(e={});var r,i=n||v;try{r=i(t||"")}catch(t){r={}}for(var o in e){var a=e[o];r[o]=Array.isArray(a)?a.map(p):p(a)}return r}(c.query,i.query,r&&r.options.parseQuery),d=i.hash||c.hash;return d&&"#"!==d.charAt(0)&&(d="#"+d),{_normalized:!0,path:f,query:h,hash:d}}var G,Z=function(){},K={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.location,a=i.route,s=i.href,c={},l=n.options.linkActiveClass,f=n.options.linkExactActiveClass,h=null==l?"router-link-active":l,d=null==f?"router-link-exact-active":f,p=null==this.activeClass?h:this.activeClass,v=null==this.exactActiveClass?d:this.exactActiveClass,m=a.redirectedFrom?b(null,X(a.redirectedFrom),null,n):a;c[v]=k(r,m,this.exactPath),c[p]=this.exact||this.exactPath?c[v]:function(t,e){return 0===t.path.replace(g,"/").indexOf(e.path.replace(g,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,m);var y=c[v]?this.ariaCurrentValue:null,x=function(t){Q(t)&&(e.replace?n.replace(o,Z):n.push(o,Z))},w={click:Q};Array.isArray(this.event)?this.event.forEach((function(t){w[t]=x})):w[this.event]=x;var _={class:c},O=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:s,route:a,navigate:x,isActive:c[p],isExactActive:c[v]});if(O){if(1===O.length)return O[0];if(O.length>1||!O.length)return 0===O.length?t():t("span",{},O)}if("a"===this.tag)_.on=w,_.attrs={href:s,"aria-current":y};else{var j=function t(e){var n;if(e)for(var r=0;r-1&&(s.params[h]=n.params[h]);return s.path=Y(l.path,s.params),u(l,s,a)}if(s.path){s.params={};for(var d=0;d=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}var Ot={redirected:2,aborted:4,cancelled:8,duplicated:16};function jt(t,e){return St(t,e,Ot.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return Mt.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function Ct(t,e){return St(t,e,Ot.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function St(t,e,n,r){var i=new Error(r);return i._isRouter=!0,i.from=t,i.to=e,i.type=n,i}var Mt=["params","query","hash"];function Tt(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Pt(t,e){return Tt(t)&&t._isRouter&&(null==e||t.type===e)}function Et(t){return function(e,n,r){var i=!1,o=0,a=null;At(t,(function(t,e,n,s){if("function"==typeof t&&void 0===t.cid){i=!0,o++;var u,c=Lt((function(e){var i;((i=e).__esModule||zt&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:G.extend(e),n.components[s]=e,--o<=0&&r()})),l=Lt((function(t){var e="Failed to resolve async component "+s+": "+t;a||(a=Tt(t)?t:new Error(e),r(a))}));try{u=t(c,l)}catch(t){l(t)}if(u)if("function"==typeof u.then)u.then(c,l);else{var f=u.component;f&&"function"==typeof f.then&&f.then(c,l)}}})),i||r()}}function At(t,e){return Dt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Dt(t){return Array.prototype.concat.apply([],t)}var zt="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Lt(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Rt=function(t,e){this.router=t,this.base=function(t){if(!t)if(J){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=x,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function It(t,e,n,r){var i=At(t,(function(t,r,i,o){var a=function(t,e){"function"!=typeof t&&(t=G.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map((function(t){return n(t,r,i,o)})):n(a,r,i,o)}));return Dt(r?i.reverse():i)}function Ft(t,e){if(e)return function(){return t.apply(e,arguments)}}Rt.prototype.listen=function(t){this.cb=t},Rt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Rt.prototype.onError=function(t){this.errorCbs.push(t)},Rt.prototype.transitionTo=function(t,e,n){var r,i=this;try{r=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}var o=this.current;this.confirmTransition(r,(function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.router.afterHooks.forEach((function(t){t&&t(r,o)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!i.ready&&(Pt(t,Ot.redirected)&&o===x||(i.ready=!0,i.readyErrorCbs.forEach((function(e){e(t)}))))}))},Rt.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current;this.pending=t;var o,a,s=function(t){!Pt(t)&&Tt(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)},u=t.matched.length-1,c=i.matched.length-1;if(k(t,i)&&u===c&&t.matched[u]===i.matched[c])return this.ensureURL(),t.hash&&ft(this.router,i,t,!1),s(((a=St(o=i,t,Ot.duplicated,'Avoided redundant navigation to current location: "'+o.fullPath+'".')).name="NavigationDuplicated",a));var l=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n0)){var e=this.router,n=e.options.scrollBehavior,r=xt&&n;r&&this.listeners.push(lt());var i=function(){var n=t.current,i=Ut(t.base);t.current===x&&i===t._startLocation||t.transitionTo(i,(function(t){r&&ft(e,t,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){wt(T(r.base+t.fullPath)),ft(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){_t(T(r.base+t.fullPath)),ft(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(Ut(this.base)!==this.current.fullPath){var e=T(this.base+this.current.fullPath);t?wt(e):_t(e)}},e.prototype.getCurrentLocation=function(){return Ut(this.base)},e}(Rt);function Ut(t){var e=window.location.pathname,n=e.toLowerCase(),r=t.toLowerCase();return!t||n!==r&&0!==n.indexOf(T(r+"/"))||(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var $t=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=Ut(t);if(!/^\/#/.test(e))return window.location.replace(T(t+"/#"+e)),!0}(this.base)||Bt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=xt&&e;n&&this.listeners.push(lt());var r=function(){var e=t.current;Bt()&&t.transitionTo(Ht(),(function(r){n&&ft(t.router,r,e,!0),xt||qt(r.fullPath)}))},i=xt?"popstate":"hashchange";window.addEventListener(i,r),this.listeners.push((function(){window.removeEventListener(i,r)}))}},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){Vt(t.fullPath),ft(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){qt(t.fullPath),ft(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Ht()!==e&&(t?Vt(e):qt(e))},e.prototype.getCurrentLocation=function(){return Ht()},e}(Rt);function Bt(){var t=Ht();return"/"===t.charAt(0)||(qt("/"+t),!1)}function Ht(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function Wt(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Vt(t){xt?wt(Wt(t)):window.location.hash=t}function qt(t){xt?_t(Wt(t)):window.location.replace(Wt(t))}var Yt=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){Pt(t,Ot.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Rt),Xt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=nt(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!xt&&!1!==t.fallback,this.fallback&&(e="hash"),J||(e="abstract"),this.mode=e,e){case"history":this.history=new Nt(this,t.base);break;case"hash":this.history=new $t(this,t.base,this.fallback);break;case"abstract":this.history=new Yt(this,t.base);break;default:0}},Gt={currentRoute:{configurable:!0}};function Zt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Xt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Gt.currentRoute.get=function(){return this.history&&this.history.current},Xt.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var n=this.history;if(n instanceof Nt||n instanceof $t){var r=function(t){n.setupListeners(),function(t){var r=n.current,i=e.options.scrollBehavior;xt&&i&&"fullPath"in t&&ft(e,t,r,!1)}(t)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Xt.prototype.beforeEach=function(t){return Zt(this.beforeHooks,t)},Xt.prototype.beforeResolve=function(t){return Zt(this.resolveHooks,t)},Xt.prototype.afterEach=function(t){return Zt(this.afterHooks,t)},Xt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Xt.prototype.onError=function(t){this.history.onError(t)},Xt.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},Xt.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},Xt.prototype.go=function(t){this.history.go(t)},Xt.prototype.back=function(){this.go(-1)},Xt.prototype.forward=function(){this.go(1)},Xt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Xt.prototype.resolve=function(t,e,n){var r=X(t,e=e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?T(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},Xt.prototype.getRoutes=function(){return this.matcher.getRoutes()},Xt.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==x&&this.history.transitionTo(this.history.getCurrentLocation())},Xt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==x&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Xt.prototype,Gt),Xt.install=function t(e){if(!t.installed||G!==e){t.installed=!0,G=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",C),e.component("RouterLink",K);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Xt.version="3.5.3",Xt.isNavigationFailure=Pt,Xt.NavigationFailureType=Ot,Xt.START_LOCATION=x,J&&window.Vue&&window.Vue.use(Xt);var Kt=Xt;n(145),n(146),n(33),n(147),n(252);function Qt(t){t.locales&&Object.keys(t.locales).forEach((function(e){t.locales[e].path=e})),Object.freeze(t)}var Jt=n(58),te=(n(20),n(41),n(128),n(129),{NotFound:function(){return n.e(7).then(n.bind(null,472))},Layout:function(){return Promise.all([n.e(0),n.e(2)]).then(n.bind(null,470))}}),ee={"v-908d9ca0":function(){return n.e(8).then(n.bind(null,475))},"v-3c782189":function(){return n.e(10).then(n.bind(null,476))},"v-1bbdc0fd":function(){return n.e(9).then(n.bind(null,477))},"v-192dc8a4":function(){return n.e(11).then(n.bind(null,478))},"v-a623eb16":function(){return n.e(12).then(n.bind(null,479))},"v-2787a4b5":function(){return n.e(13).then(n.bind(null,480))},"v-6beba80e":function(){return n.e(15).then(n.bind(null,481))},"v-07976e15":function(){return n.e(16).then(n.bind(null,482))},"v-6f9c5d56":function(){return n.e(14).then(n.bind(null,483))},"v-4ee50b15":function(){return n.e(17).then(n.bind(null,484))},"v-b2bdd296":function(){return n.e(18).then(n.bind(null,485))},"v-13cb82d5":function(){return n.e(19).then(n.bind(null,486))},"v-5f22cfba":function(){return n.e(20).then(n.bind(null,487))},"v-1b1753d5":function(){return n.e(21).then(n.bind(null,488))},"v-5ba83635":function(){return n.e(22).then(n.bind(null,489))},"v-f2b8a30a":function(){return n.e(23).then(n.bind(null,490))},"v-4a15025e":function(){return n.e(25).then(n.bind(null,491))},"v-bea74026":function(){return n.e(24).then(n.bind(null,492))},"v-0a0c2246":function(){return n.e(26).then(n.bind(null,493))},"v-294c46d5":function(){return n.e(27).then(n.bind(null,494))},"v-45d52f75":function(){return n.e(28).then(n.bind(null,495))},"v-ac900b9a":function(){return n.e(29).then(n.bind(null,496))}};function ne(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ne=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),s=new C(i||[]);return r(a,"_invoke",{value:_(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function d(){}function p(){}function v(){}var m={};c(m,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(S([])));b&&b!==e&&n.call(b,a)&&(m=b);var y=v.prototype=d.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var o;r(this,"_invoke",{value:function(r,a){function s(){return new e((function(o,s){!function r(o,a,s,u){var c=f(t[o],t,a);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==i(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(h).then((function(t){l.value=t,s(l)}),(function(t){return r("throw",t,s,u)}))}u(c.arg)}(r,a,o,s)}))}return o=o?o.then(s,s):s()}})}function _(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return M()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function k(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function re(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var ie=/-(\w)/g,oe=re((function(t){return t.replace(ie,(function(t,e){return e?e.toUpperCase():""}))})),ae=/\B([A-Z])/g,se=re((function(t){return t.replace(ae,"-$1").toLowerCase()})),ue=re((function(t){return t.charAt(0).toUpperCase()+t.slice(1)}));function ce(t,e){if(e)return t(e)?t(e):e.includes("-")?t(ue(oe(e))):t(ue(e))||t(se(e))}var le=Object.assign({},te,ee),fe=function(t){return le[t]},he=function(t){return ee[t]},de=function(t){return te[t]},pe=function(t){return s.a.component(t)};function ve(t){return ce(he,t)}function me(t){return ce(de,t)}function ge(t){return ce(fe,t)}function be(t){return ce(pe,t)}function ye(){for(var t=arguments.length,e=new Array(t),n=0;n"})).join("\n "):"",this.$ssrContext.canonicalLink=Se(this.$canonicalUrl)}var e},mounted:function(){this.currentMetaTags=Object(Jt.a)(document.querySelectorAll("meta")),this.updateMeta(),this.updateCanonicalLink()},methods:{updateMeta:function(){document.title=this.$title,document.documentElement.lang=this.$lang;var t=this.getMergedMetaTags();this.currentMetaTags=Me(t,this.currentMetaTags)},getMergedMetaTags:function(){var t=this.$page.frontmatter.meta||[];return Oe()([{name:"description",content:this.$description}],t,this.siteMeta,Te)},updateCanonicalLink:function(){Ce(),this.$canonicalUrl&&document.head.insertAdjacentHTML("beforeend",Se(this.$canonicalUrl))}},watch:{$page:function(){this.updateMeta(),this.updateCanonicalLink()}},beforeDestroy:function(){Me(null,this.currentMetaTags),Ce()}};function Ce(){var t=document.querySelector("link[rel='canonical']");t&&t.remove()}function Se(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t?''):""}function Me(t,e){if(e&&Object(Jt.a)(e).filter((function(t){return t.parentNode===document.head})).forEach((function(t){return document.head.removeChild(t)})),t)return t.map((function(t){var e=document.createElement("meta");return Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])})),document.head.appendChild(e),e}))}function Te(t){for(var e=0,n=["name","property","itemprop"];e=s.parentElement.offsetTop+10&&(!u||r=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}n(90),n(91),n(92),n(93),n(163),n(231),n(130);var Ie=n(49),Fe=n.n(Ie),Ne=n(247),Ue=n(248),$e=n(85),Be=n(86),He=n(243),We=s.a.extend({components:{DropdownLink:He.a},props:{item:{type:Object,required:!0}}}),Ve=(n(397),n(22)),qe=Object(Ve.a)(We,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"versions-dropdown nav-item can-hide"},[e("dropdown-link",{attrs:{item:this.item}})],1)}),[],!1,null,"3dd359e2",null).exports;function Ye(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ye=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),s=new C(i||[]);return r(a,"_invoke",{value:_(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function d(){}function p(){}function v(){}var m={};c(m,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(S([])));b&&b!==e&&n.call(b,a)&&(m=b);var y=v.prototype=d.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var o;r(this,"_invoke",{value:function(r,a){function s(){return new e((function(o,s){!function r(o,a,s,u){var c=f(t[o],t,a);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==i(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(h).then((function(t){l.value=t,s(l)}),(function(t){return r("throw",t,s,u)}))}u(c.arg)}(r,a,o,s)}))}return o=o?o.then(s,s):s()}})}function _(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return M()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function k(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}var Xe=Fe.a.filters||{};function Ge(t,e,n){var r=Object($e.resolveTemplate)(t,e,n);r.startsWith("/")&&(r="".concat(window.location.origin).concat(r));var i="".concat(window.location.origin).concat(Fe.a.base);return r.startsWith(i)?r.substring(i.length)+"/":r}function Ze(t,e){if(t.exclude){var n=new RegExp(t.exclude);e=e.filter((function(t){return!t.name.match(n)}))}var r=Object(Be.collapseVersions)(t,e);return t.limit>0&&(r=r.slice(0,t.limit)),r.map((function(e){var n=t.target,r=Object(Be.describeVersion)(e);return{target:n,text:Object($e.resolveTemplate)(t.text,r,Xe),link:Ge(t.link,r,Xe)}}))}function Ke(t,e){var n=t.menu;if(!n)return{};var r=e.find((function(e){return e.name===t.version}))||{name:t.version,tag:null},i=Object(Be.describeVersion)(r),o=Object($e.resolveTemplate)(n.text,i,Xe);return{items:function t(e,n,r){var i,o=[],a=Re(e);try{for(a.s();!(i=a.n()).done;){var s=i.value;if("versions"===s.type)o.push.apply(o,Object(Jt.a)(Ze(Object(Le.a)({group:"minor",link:"/{{version}}/",text:"{{version}}"},s),n)));else{var u=Object(Be.describeVersion)(r),c=Object($e.resolveTemplate)(s.text||"",u,Xe);s.items?o.push(Object(Le.a)(Object(Le.a)({},s),{},{text:c,type:"links",items:t(s.items,n,r)})):o.push(Object(Le.a)(Object(Le.a)({},s),{},{text:c,link:Ge(s.link||"",u,Xe)}))}}}catch(t){a.e(t)}finally{a.f()}return o}(n.items||[],e,r),text:o}}var Qe=s.a.observable({inserted:!1,dropdown:{}}),Je=[je,Ee,ze,{mounted:function(){return a(Ye().mark((function t(){var e,n,r;return Ye().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=Ke(Fe.a,Fe.a.versions||[]),s.a.set(Qe,"dropdown",e),t.prev=2,t.next=5,Object(Ue.fetchNpmVersions)(fetch,Fe.a.name);case 5:n=t.sent,r=Ke(Fe.a,n),Object.assign(Qe.dropdown,r),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),console.error("Failed to retrieve available versions");case 13:case"end":return t.stop()}}),t,null,[[2,10]])})))()},updated:function(){var t=this;return a(Ye().mark((function e(){var n,r,i,o,a,s;return Ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.$router,!Qe.inserted){r=Re(Fe.a.menu.locations);try{for(r.s();!(i=r.n()).done;)o=i.value,a={item:Qe.dropdown},s=new qe({router:n,propsData:a}).$mount(),Object(Ne.injectElement)(t.$el,s.$el,o)}catch(t){r.e(t)}finally{r.f()}Qe.inserted=!0}case 2:case"end":return e.stop()}}),e)})))()}}],tn={name:"GlobalLayout",computed:{layout:function(){var t=this.getLayout();return xe("layout",t),s.a.component(t)}},methods:{getLayout:function(){if(this.$page.path){var t=this.$page.frontmatter.layout;return t&&(this.$vuepress.getLayoutAsyncComponent(t)||this.$vuepress.getVueComponent(t))?t:"Layout"}return"NotFound"}}},en=Object(Ve.a)(tn,(function(){var t=this.$createElement;return(this._self._c||t)(this.layout,{tag:"component"})}),[],!1,null,null,null).exports;!function(t,e,n){var r;switch(e){case"components":t[e]||(t[e]={}),Object.assign(t[e],n);break;case"mixins":t[e]||(t[e]=[]),(r=t[e]).push.apply(r,Object(Jt.a)(n));break;default:throw new Error("Unknown option name.")}}(en,"mixins",Je);var nn=[{name:"v-908d9ca0",path:"/api/",component:en,beforeEnter:function(t,e,n){ye("Layout","v-908d9ca0").then(n)}},{path:"/api/index.html",redirect:"/api/"},{name:"v-3c782189",path:"/guide/developers.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-3c782189").then(n)}},{name:"v-1bbdc0fd",path:"/guide/animations.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-1bbdc0fd").then(n)}},{name:"v-192dc8a4",path:"/guide/",component:en,beforeEnter:function(t,e,n){ye("Layout","v-192dc8a4").then(n)}},{path:"/guide/index.html",redirect:"/guide/"},{name:"v-a623eb16",path:"/guide/integration.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-a623eb16").then(n)}},{name:"v-2787a4b5",path:"/guide/options.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-2787a4b5").then(n)}},{name:"v-6beba80e",path:"/",component:en,beforeEnter:function(t,e,n){ye("Layout","v-6beba80e").then(n)}},{path:"/index.html",redirect:"/"},{name:"v-07976e15",path:"/samples/api.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-07976e15").then(n)}},{name:"v-6f9c5d56",path:"/guide/usage.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-6f9c5d56").then(n)}},{name:"v-4ee50b15",path:"/samples/basic.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-4ee50b15").then(n)}},{name:"v-b2bdd296",path:"/samples/drag/category.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-b2bdd296").then(n)}},{name:"v-13cb82d5",path:"/samples/drag/linear.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-13cb82d5").then(n)}},{name:"v-5f22cfba",path:"/samples/drag/log.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-5f22cfba").then(n)}},{name:"v-1b1753d5",path:"/samples/drag/time.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-1b1753d5").then(n)}},{name:"v-5ba83635",path:"/samples/drag/timeseries.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-5ba83635").then(n)}},{name:"v-f2b8a30a",path:"/samples/fetch-data.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-f2b8a30a").then(n)}},{name:"v-4a15025e",path:"/samples/wheel/category.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-4a15025e").then(n)}},{name:"v-bea74026",path:"/samples/pan-region.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-bea74026").then(n)}},{name:"v-0a0c2246",path:"/samples/wheel/click-zoom.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-0a0c2246").then(n)}},{name:"v-294c46d5",path:"/samples/wheel/log.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-294c46d5").then(n)}},{name:"v-45d52f75",path:"/samples/wheel/over-scale-mode.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-45d52f75").then(n)}},{name:"v-ac900b9a",path:"/samples/wheel/time.html",component:en,beforeEnter:function(t,e,n){ye("Layout","v-ac900b9a").then(n)}},{path:"*",component:en}],rn={title:"chartjs-plugin-zoom",description:"A zoom and pan plugin for Chart.js >= 3.0.0",base:"/chartjs-plugin-zoom/master/",headTags:[["link",{rel:"icon",href:"/chartjs-plugin-zoom/master/favicon.ico"}]],pages:[{title:"chartjs-plugin-zoom - v2.0.1",frontmatter:{},regularPath:"/api/",relativePath:"api/README.md",key:"v-908d9ca0",path:"/api/",headers:[{level:2,title:"Type aliases",slug:"type-aliases"},{level:3,title:"PanFunction",slug:"panfunction"},{level:3,title:"ZoomFunction",slug:"zoomfunction"},{level:3,title:"ZoomRectFunction",slug:"zoomrectfunction"},{level:2,title:"Variables",slug:"variables"},{level:3,title:"default",slug:"default"},{level:2,title:"Functions",slug:"functions"},{level:3,title:"getInitialScaleBounds",slug:"getinitialscalebounds"},{level:3,title:"getZoomLevel",slug:"getzoomlevel"},{level:3,title:"isZoomedOrPanned",slug:"iszoomedorpanned"},{level:3,title:"pan",slug:"pan"},{level:3,title:"resetZoom",slug:"resetzoom"},{level:3,title:"zoom",slug:"zoom"},{level:3,title:"zoomRect",slug:"zoomrect"},{level:3,title:"zoomScale",slug:"zoomscale"}],content:' chartjs-plugin-zoom - v2.0.1 \n Type aliases \n PanFunction \n Ƭ PanFunction : ( scale : Scale , delta : number , limits : LimitOptions ) => boolean \n Type declaration \n ▸ ( scale , delta , limits ): boolean \n Parameters \n \n \n \n Name \n Type \n \n \n \n \n scale \n Scale \n \n \n delta \n number \n \n \n limits \n LimitOptions \n Returns \n boolean \n Defined in \n index.d.ts:35 \n ZoomFunction \n Ƭ ZoomFunction : ( scale : Scale , zoom : number , center : Point , limits : LimitOptions ) => boolean \n Type declaration \n ▸ ( scale , zoom , center , limits ): boolean \n Parameters \n \n \n \n Name \n Type \n \n \n \n \n scale \n Scale \n \n \n zoom \n number \n \n \n center \n Point \n \n \n limits \n LimitOptions \n Returns \n boolean \n Defined in \n index.d.ts:33 \n ZoomRectFunction \n Ƭ ZoomRectFunction : ( scale : Scale , from : number , to : number , limits : LimitOptions ) => boolean \n Type declaration \n ▸ ( scale , from , to , limits ): boolean \n Parameters \n \n \n \n Name \n Type \n \n \n \n \n scale \n Scale \n \n \n from \n number \n \n \n to \n number \n \n \n limits \n LimitOptions \n Returns \n boolean \n Defined in \n index.d.ts:34 \n Variables \n default \n • default : Plugin & { panFunctions : ScaleFunctions < PanFunction > ; zoomFunctions : ScaleFunctions < ZoomFunction > ; zoomRectFunctions : ScaleFunctions < ZoomRectFunction > } \n Defined in \n index.d.ts:43 \n Functions \n getInitialScaleBounds \n ▸ getInitialScaleBounds ( chart ): Record < string , Object > \n Parameters \n \n \n \n Name \n Type \n \n \n \n \n chart \n Chart \n Returns \n Record < string , Object > \n Defined in \n index.d.ts:57 \n getZoomLevel \n ▸ getZoomLevel ( chart ): number \n Parameters \n \n \n \n Name \n Type \n \n \n \n \n chart \n Chart \n Returns \n number \n Defined in \n index.d.ts:56 \n isZoomedOrPanned \n ▸ isZoomedOrPanned ( chart ): boolean \n Parameters \n \n \n \n Name \n Type \n \n \n \n \n chart \n Chart \n Returns \n boolean \n Defined in \n index.d.ts:58 \n pan \n ▸ pan ( chart , amount , scales? , mode? ): void \n Parameters \n \n \n \n Name \n Type \n \n \n \n \n chart \n Chart \n \n \n amount \n PanAmount \n \n \n scales? \n Scale < CoreScaleOptions >[] \n \n \n mode? \n "resize" | "reset" | "none" | "hide" | "show" | "default" | "active" | "zoom" \n Returns \n void \n Defined in \n index.d.ts:51 \n resetZoom \n ▸ resetZoom ( chart , mode? ): void \n Parameters \n \n \n \n Name \n Type \n \n \n \n \n chart \n Chart \n \n \n mode? \n "resize" | "reset" | "none" | "hide" | "show" | "default" | "active" | "zoom" \n Returns \n void \n Defined in \n index.d.ts:55 \n zoom \n ▸ zoom ( chart , amount , mode? ): void \n Parameters \n \n \n \n Name \n Type \n \n \n \n \n chart \n Chart \n \n \n amount \n ZoomAmount \n \n \n mode? \n "resize" | "reset" | "none" | "hide" | "show" | "default" | "active" | "zoom" \n Returns \n void \n Defined in \n index.d.ts:52 \n zoomRect \n ▸ zoomRect ( chart , p0 , p1 , mode? ): void \n Parameters \n \n \n \n Name \n Type \n \n \n \n \n chart \n Chart \n \n \n p0 \n Point \n \n \n p1 \n Point \n \n \n mode? \n "resize" | "reset" | "none" | "hide" | "show" | "default" | "active" | "zoom" \n Returns \n void \n Defined in \n index.d.ts:53 \n zoomScale \n ▸ zoomScale ( chart , scaleId , range , mode? ): void \n Parameters \n \n \n \n Name \n Type \n \n \n \n \n chart \n Chart \n \n \n scaleId \n string \n \n \n range \n ScaleRange \n \n \n mode? \n "resize" | "reset" | "none" | "hide" | "show" | "default" | "active" | "zoom" \n Returns \n void \n Defined in \n index.d.ts:54 \n'},{title:"Developers",frontmatter:{},regularPath:"/guide/developers.html",relativePath:"guide/developers.md",key:"v-3c782189",path:"/guide/developers.html",headers:[{level:2,title:"Imperative Zoom/Pan API",slug:"imperative-zoom-pan-api"},{level:3,title:"chart.pan(delta, scales?, mode = 'none'): void",slug:"chart-pan-delta-scales-mode-none-void"},{level:3,title:"chart.zoom(zoomLevel, mode = 'none'): void",slug:"chart-zoom-zoomlevel-mode-none-void"},{level:3,title:"chart.zoomScale(scaleId, newRange, mode = 'none'): void",slug:"chart-zoomscale-scaleid-newrange-mode-none-void"},{level:3,title:"chart.resetZoom(mode = 'none'): void",slug:"chart-resetzoom-mode-none-void"},{level:3,title:"chart.getZoomLevel(): number",slug:"chart-getzoomlevel-number"},{level:3,title:"chart.getInitialScaleBounds(): Record",slug:"chart-getinitialscalebounds-record-string-min-number-max-number"},{level:3,title:"chart.isZoomedOrPanned(): boolean",slug:"chart-iszoomedorpanned-boolean"},{level:2,title:"Custom Scales",slug:"custom-scales"}],lastUpdated:"11/14/2024, 7:07:50 PM",content:" Developers \n Imperative Zoom/Pan API \n Alongside user-driven interactions, it is also possible to imperatively interact with the chart, either to manually zoom into a selected region, or to get information about the current zoom status. \n chart.pan(delta, scales?, mode = 'none'): void \n Pans the current chart by the specified amount in one or more axes. The value of delta can be a number, in which case all axes are panned by the same amount, or it can be an {x, y} object to pan different amounts in the horizontal and vertical directions. The value of scales is a list of scale objects that should be panned - by default, all scales of the chart will be panned. The value of mode should be one of the Chart.js animation modes . \n chart.zoom(zoomLevel, mode = 'none'): void \n Zooms the current chart by the specified amount in one more axes. The value of zoomLevel can be a number, in which case all axes are zoomed by the same amount, or it can be an {x, y} object to zoom different amounts in the horizontal and vertical directions. The value of mode should be one of the Chart.js animation modes . \n chart.zoomScale(scaleId, newRange, mode = 'none'): void \n Zooms the specified scale to the range given by newRange . This is an object in the form {min, max} and represents the new bounds of that scale. The value of mode should be one of the Chart.js animation modes . \n chart.resetZoom(mode = 'none'): void \n Resets the current chart bounds to the defaults that were used before any zooming or panning occurred. The value of mode should be one of the Chart.js animation modes . \n chart.getZoomLevel(): number \n Returns the current zoom level. If this is the same as the chart's initial scales, the value returned will be 1.0 . Otherwise, the value will be less than one if the chart has been zoomed out, and more than one if it has been zoomed in. If different axes have been zoomed by different amounts, the returned value will be the zoom level of the most zoomed out axis if any have been zoomed out, otherwise it will be the zoom level of the most zoomed-in axis. \n If the chart has been panned but not zoomed, this method will still return 1.0 . \n chart.getInitialScaleBounds(): Record \n Returns the initial scale bounds of each scale before any zooming or panning took place. This is returned in the format of an object, e.g. \n { \n x : { min : 0 , max : 100 } , \n y1 : { min : 50 , max : 80 } , \n y2 : { min : 0.1 , max : 0.8 } \n } \n chart.isZoomedOrPanned(): boolean \n Returns whether the chart has been zoomed or panned - i.e. whether the initial scale of any axis is different to the one used currently. \n Custom Scales \n You can extend chartjs-plugin-zoom with support for custom scales by using the zoom plugin's zoomFunctions , zoomRectFunctions , and panFunctions members. These objects are indexed by scale types (scales' id members) and give optional handlers for zoom and pan functionality. \n import { Scale } from 'chart.js' ; \n import zoomPlugin from 'chartjs-plugin-zoom' ; \n\n class MyScale extends Scale { \n /* extensions ... */ \n } \nMyScale . id = 'myScale' ; \nMyScale . defaults = defaultConfigObject ; \n\nzoomPlugin . zoomFunctions . myScale = ( scale , zoom , center , limits ) => false ; \nzoomPlugin . zoomRectFunctions . myScale = ( scale , from , to , limits ) => false ; \nzoomPlugin . panFunctions . myScale = ( scale , delta , limits ) => false ; \n // zoomRectFunctions can normally be omitted, since zooming by specific pixel \n // coordinates rarely needs special handling. \n \n The zoom, zoomRect, and pan functions take the following arguments: \n \n \n \n Name \n Type \n For \n Description \n \n \n \n \n scale \n Scale \n Zoom, Pan \n The custom scale instance (usually derived from Chart.Scale ) \n \n \n zoom \n number \n Zoom \n The zoom fraction; 1.0 is unzoomed, 0.5 means zoomed in to 50% of the original area, etc. \n \n \n center \n {x, y} \n Zoom \n Pixel coordinates of the center of the zoom operation. {x: 0, y: 0} is the upper left corner of the chart's canvas. \n \n \n from \n number \n ZoomRect \n Pixel coordinate of the start of the zoomRect operation. \n \n \n to \n number \n ZoomRect \n Pixel coordinate of the end of the zoomRect operation. \n \n \n delta \n number \n Pan \n Pixel amount to pan by \n \n \n limits \n Limits \n Zoom, Pan \n Zoom and pan limits (from chart options) \n \n \n \n For examples, see chartjs-plugin-zoom's default zoomFunctions, zoomRectFunctions, and panFunctions handling for standard Chart.js axes . \n"},{title:"Animations",frontmatter:{},regularPath:"/guide/animations.html",relativePath:"guide/animations.md",key:"v-1bbdc0fd",path:"/guide/animations.html",lastUpdated:"11/14/2024, 7:07:50 PM",content:" Animations \n The drag-to-zoom animation can be customized by configuring the zoom transition in your chart config: \n { \n options : { \n transitions : { \n zoom : { \n animation : { \n duration : 1000 , \n easing : 'easeOutCubic' \n } \n } \n } \n } \n } \n \n If you want to disable zoom animations: \n { \n options : { \n transitions : { \n zoom : { \n animation : { \n duration : 0 \n } \n } \n } \n } \n } \n \n "},{title:"Getting Started",frontmatter:{},regularPath:"/guide/",relativePath:"guide/index.md",key:"v-192dc8a4",path:"/guide/",headers:[{level:2,title:"Installation",slug:"installation"}],lastUpdated:"11/14/2024, 7:07:50 PM",content:" Getting Started \n A zoom and pan plugin for Chart.js >= 3.0.0 \n Panning can be done via the mouse or with a finger.\nZooming is done via the mouse wheel or via a pinch gesture. Hammer.js is used for gesture recognition. \n Installation \n > npm install chartjs-plugin-zoom\n \n TIP \n Important Note: For Chart.js 2.6.0 to 2.9.x support, use version 0.7.7 of this plugin .\nDocumentation for v0.7.7 can be found on GitHub . \n \n"},{title:"Integration",frontmatter:{},regularPath:"/guide/integration.html",relativePath:"guide/integration.md",key:"v-a623eb16",path:"/guide/integration.html",headers:[{level:2,title:"Script Tag",slug:"script-tag"},{level:2,title:"Bundlers (Webpack, Rollup, etc.)",slug:"bundlers-webpack-rollup-etc"}],lastUpdated:"11/14/2024, 7:07:50 PM",content:' Integration \n chartjs-plugin-zoom can be integrated with plain JavaScript or with different module loaders. The examples below show how to load the plugin in different systems. \n Script Tag \n < script src = " path/to/chartjs/dist/chart.min.js " > \n < script src = " https://cdn.jsdelivr.net/npm/hammerjs@2.0.8 " > \n < script src = " path/to/chartjs-plugin-zoom/dist/chartjs-plugin-zoom.min.js " > \n < script > \n var myChart = new Chart ( ctx , { ... } ) ; \n \n Bundlers (Webpack, Rollup, etc.) \n import { Chart } from \'chart.js\' ; \n import zoomPlugin from \'chartjs-plugin-zoom\' ; \n\nChart . register ( zoomPlugin ) ; \n \n '},{title:"Options",frontmatter:{},regularPath:"/guide/options.html",relativePath:"guide/options.md",key:"v-2787a4b5",path:"/guide/options.html",headers:[{level:2,title:"Pan",slug:"pan"},{level:3,title:"Pan Options",slug:"pan-options"},{level:3,title:"Pan Events",slug:"pan-events"},{level:2,title:"Zoom",slug:"zoom"},{level:3,title:"Zoom Options",slug:"zoom-options"},{level:2,title:"Draw Time",slug:"draw-time"},{level:3,title:"Zoom Events",slug:"zoom-events"},{level:2,title:"Limits",slug:"limits"},{level:3,title:"Limit options",slug:"limit-options"}],lastUpdated:"11/14/2024, 7:07:50 PM",content:" Options \n The options for chartjs-plugin-zoom should be placed in options.plugins.zoom in chart.js configuration. \n The options are split in three sub-objects, limits , pan and zoom . \n const chart = new Chart ( 'id' , { \n type : 'bar' , \n data : { } , \n options : { \n plugins : { \n zoom : { \n pan : { \n // pan options and/or events \n } , \n limits : { \n // axis limits \n } , \n zoom : { \n // zoom options and/or events \n } \n } \n } \n } \n } ) ; \n Pan \n Pan Options \n \n \n \n Name \n Type \n Default \n Description \n \n \n \n \n enabled \n boolean \n false \n Enable panning \n \n \n mode \n 'x' | 'y' | 'xy' \n 'xy' \n Allowed panning directions \n \n \n modifierKey \n 'ctrl' | 'alt' | 'shift' | 'meta' \n null \n Modifier key required for panning with mouse \n \n \n scaleMode \n 'x' | 'y' | 'xy' \n undefined \n Enable panning over a scale for that axis (regardless of mode) \n \n \n overScaleMode \n 'x' | 'y' | 'xy' \n undefined \n Enable panning over a scale for that axis (but only if mode is also enabled), and disables panning along that axis otherwise. Deprecated. \n \n \n threshold \n number \n 10 \n Minimal pan distance required before actually applying pan \n Pan Events \n \n \n \n Name \n Arguments \n Description \n \n \n \n \n onPan \n {chart} \n Called while the chart is being panned \n \n \n onPanComplete \n {chart} \n Called once panning is completed \n \n \n onPanRejected \n {chart,event} \n Called when panning is rejected due to missing modifier key. event is the a hammer event that failed \n \n \n onPanStart \n {chart,event,point} \n Called when panning is about to start. If this callback returns false, panning is aborted and onPanRejected is invoked \n Zoom \n Zoom Options \n \n \n \n Name \n Type \n Default \n Description \n \n \n \n \n wheel \n WheelOptions \n \n Options of the mouse wheel behavior \n \n \n drag \n DragOptions \n \n Options of the drag-to-zoom behavior \n \n \n pinch \n PinchOptions \n \n Options of the pinch behavior \n \n \n mode \n 'x' | 'y' | 'xy' \n 'xy' \n Allowed zoom directions \n \n \n scaleMode \n 'x' | 'y' | 'xy' \n undefined \n Which of the enabled zooming directions should only be available when the mouse cursor is over a scale for that axis \n \n \n overScaleMode \n 'x' | 'y' | 'xy' \n undefined \n Allowed zoom directions when the mouse cursor is over a scale for that axis (but only if mode is also enabled), and disables zooming along that axis otherwise. Deprecated; use scaleMode instead. \n Wheel options \n \n \n \n Name \n Type \n Default \n Description \n \n \n \n \n enabled \n boolean \n false \n Enable zooming via mouse wheel \n \n \n speed \n number \n 0.1 \n Factor of zoom speed via mouse wheel \n \n \n modifierKey \n 'ctrl' | 'alt' | 'shift' | 'meta' \n null \n Modifier key required for zooming via mouse wheel \n Drag options \n \n \n \n Name \n Type \n Default \n Description \n \n \n \n \n enabled \n boolean \n false \n Enable drag-to-zoom \n \n \n backgroundColor \n Color \n 'rgba(225,225,225,0.3)' \n Fill color \n \n \n borderColor \n Color \n 'rgba(225,225,225)' \n Stroke color \n \n \n borderWidth \n number \n 0 \n Stroke width \n \n \n drawTime \n string \n beforeDatasetsDraw \n When the dragging box is dran on the chart \n \n \n threshold \n number \n 0 \n Minimal zoom distance required before actually applying zoom \n \n \n modifierKey \n 'ctrl' | 'alt' | 'shift' | 'meta' \n null \n Modifier key required for drag-to-zoom \n Draw Time \n The drawTime option for zooming determines where in the chart lifecycle the drag box drawing occurs. Four potential options are available: \n \n \n \n Option \n Notes \n \n \n \n \n 'beforeDraw' \n Occurs before any drawing takes place \n \n \n 'beforeDatasetsDraw' \n Occurs after drawing of axes, but before datasets \n \n \n 'afterDatasetsDraw' \n Occurs after drawing of datasets but before items such as the tooltip \n \n \n 'afterDraw' \n After other drawing is completed \n Pinch options \n \n \n \n Name \n Type \n Default \n Description \n \n \n \n \n enabled \n boolean \n false \n Enable zooming via pinch \n Zoom Events \n \n \n \n Name \n Arguments \n Description \n \n \n \n \n onZoom \n {chart} \n Called while the chart is being zoomed \n \n \n onZoomComplete \n {chart} \n Called once zooming is completed \n \n \n onZoomRejected \n {chart,event} \n Called when zoom is rejected due to missing modifier key. event is the a hammer event that failed \n \n \n onZoomStart \n {chart,event,point} \n Called when zooming is about to start. If this callback returns false, zooming is aborted and onZoomRejected is invoked \n Limits \n Limits options define the limits per axis for pan and zoom. \n Limit options \n \n \n \n Name \n Type \n Description \n \n \n \n \n x \n ScaleLimits \n Limits for x-axis \n \n \n y \n ScaleLimits \n Limits for y-axis \n \n \n \n If you're using multiple or custom axes (scales), you can define limits for those, too. \n const chart = new Chart ( 'id' , { \n type : 'line' , \n data : { } , \n options : { \n scales : { \n y : { \n min : 20 , \n max : 80 , \n } , \n y2 : { \n position : 'right' , \n min : - 5 , \n max : 5 \n } \n } , \n plugins : { \n zoom : { \n limits : { \n y : { min : 0 , max : 100 } , \n y2 : { min : - 5 , max : 5 } \n } , \n } \n } \n } \n } ) ; \n Scale Limits \n \n \n \n Name \n Type \n Description \n \n \n \n \n min \n number | 'original' \n Minimum allowed value for scale.min \n \n \n max \n number | 'original' \n Maximum allowed value for scale.max \n \n \n minRange \n number \n Minimum allowed range (max - min). This defines the max zoom level. \n \n \n \n You may use the keyword 'original' in place of a numeric limit to instruct chartjs-plugin-zoom to use whatever limits the scale had when the chart was first displayed. \n"},{title:"Home",frontmatter:{home:!0,heroImage:"/hero.svg",actionText:"Get Started →",actionLink:"/guide/",footer:"MIT Licensed | Copyright © 2016-2021 chartjs-plugin-zoom contributors"},regularPath:"/",relativePath:"index.md",key:"v-6beba80e",path:"/",lastUpdated:"11/14/2024, 7:07:50 PM",content:""},{title:"API",frontmatter:{},regularPath:"/samples/api.html",relativePath:"samples/api.md",key:"v-07976e15",path:"/samples/api.html",lastUpdated:"11/14/2024, 7:07:50 PM",content:" API \n \nconst NUMBER_CFG = {count: 20, min: -100, max: 100};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }, {\n label: 'My Second dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n reverse: true,\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n position: 'top',\n },\n y: {\n position: 'right',\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n }\n};\n// \n\n// \n// Note: changes to these actions are not applied to the buttons.\nconst actions = [\n {\n name: 'Zoom +10%',\n handler(chart) {\n chart.zoom(1.1);\n }\n }, {\n name: 'Zoom -10%',\n handler(chart) {\n chart.zoom(0.9);\n },\n }, {\n name: 'Zoom x +10%',\n handler(chart) {\n chart.zoom({x: 1.1});\n }\n }, {\n name: 'Zoom x -10%',\n handler(chart) {\n chart.zoom({x: 0.9});\n },\n }, {\n name: 'Pan x 100px (anim)',\n handler(chart) {\n chart.pan({x: 100}, undefined, 'default');\n }\n }, {\n name: 'Pan x -100px (anim)',\n handler(chart) {\n chart.pan({x: -100}, undefined, 'default');\n },\n }, {\n name: 'Zoom x: 0..-100, y: 0..100',\n handler(chart) {\n chart.zoomScale('x', {min: -100, max: 0}, 'default');\n chart.zoomScale('y', {min: 0, max: 100}, 'default');\n }\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n// \n\nmodule.exports = {\n actions,\n config\n};\n`\"/>"},{title:"Usage",frontmatter:{},regularPath:"/guide/usage.html",relativePath:"guide/usage.md",key:"v-6f9c5d56",path:"/guide/usage.html",lastUpdated:"11/14/2024, 7:07:50 PM",content:" Usage \n Using the zoom and pan plugin is very simple. Once the plugin is registered zoom options provided to the chart will be used. In this example, scroll zoom is enabled. \n */\nconst config = {\n type: 'line',\n data: {\n labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],\n datasets: [{\n label: 'My First Dataset',\n data: [65, 59, 80, 81, 56, 55, 40],\n fill: false,\n borderColor: 'rgb(75, 192, 192)',\n tension: 0.1\n }]\n },\n options: {\n plugins: {\n zoom: {\n zoom: {\n wheel: {\n enabled: true,\n },\n pinch: {\n enabled: true\n },\n mode: 'xy',\n }\n }\n }\n }\n};\n/* */\n\nmodule.exports = {\n actions: [\n {\n name: 'Reset zoom',\n handler: function(chart) {\n chart.resetZoom();\n }\n }\n ],\n config\n};\n`\"/>"},{title:"Basic",frontmatter:{},regularPath:"/samples/basic.html",relativePath:"samples/basic.md",key:"v-4ee50b15",path:"/samples/basic.html",lastUpdated:"11/14/2024, 7:07:50 PM",content:" Basic \n \nconst NUMBER_CFG = {count: 20, min: -100, max: 100};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }, {\n label: 'My Second dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n reverse: true,\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n position: 'top',\n },\n y: {\n position: 'right',\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst zoomOptions = {\n limits: {\n x: {min: -200, max: 200, minRange: 50},\n y: {min: -200, max: 200, minRange: 50}\n },\n pan: {\n enabled: true,\n mode: 'xy',\n },\n zoom: {\n wheel: {\n enabled: true,\n },\n pinch: {\n enabled: true\n },\n mode: 'xy',\n onZoomComplete({chart}) {\n // This update is needed to display up to date zoom level in the title.\n // Without this, previous zoom level is displayed.\n // The reason is: title uses the same beforeUpdate hook, and is evaluated before zoom.\n chart.update('none');\n }\n }\n};\n// \n\nconst panStatus = () => zoomOptions.pan.enabled ? 'enabled' : 'disabled';\nconst zoomStatus = (chart) => (zoomOptions.zoom.wheel.enabled ? 'enabled' : 'disabled') + ' (' + chart.getZoomLevel() + 'x)';\n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => 'Zoom: ' + zoomStatus(ctx.chart) + ', Pan: ' + panStatus()\n }\n },\n onClick(e) {\n console.log(e.type);\n }\n }\n};\n// \n\nconst actions = [\n {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.wheel.enabled = !zoomOptions.zoom.wheel.enabled;\n zoomOptions.zoom.pinch.enabled = !zoomOptions.zoom.pinch.enabled;\n chart.update();\n }\n }, {\n name: 'Toggle pan',\n handler(chart) {\n zoomOptions.pan.enabled = !zoomOptions.pan.enabled;\n chart.update();\n },\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n output: 'Clicks are logged here'\n};\n`\"/>"},{title:"Category Scale",frontmatter:{},regularPath:"/samples/drag/category.html",relativePath:"samples/drag/category.md",key:"v-b2bdd296",path:"/samples/drag/category.html",lastUpdated:"11/14/2024, 7:07:50 PM",content:" Category Scale \n Zooming is performed by clicking and selecting an area over the chart with the mouse. Pan is activated by keeping ctrl pressed. \n \nconst DATA_COUNT = 20;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n label: 'Dataset 1',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dataset 2',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dataset 3',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n type: 'category',\n },\n y: {\n type: 'linear',\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n scales: scales,\n plugins: {\n tooltip: false,\n zoom: {\n pan: {\n enabled: true,\n mode: 'x',\n modifierKey: 'ctrl',\n },\n zoom: {\n drag: {\n enabled: true\n },\n mode: 'x',\n },\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n`\"/>"},{title:"Linear Scales",frontmatter:{},regularPath:"/samples/drag/linear.html",relativePath:"samples/drag/linear.md",key:"v-13cb82d5",path:"/samples/drag/linear.html",lastUpdated:"11/14/2024, 7:07:50 PM",content:" Linear Scales \n Zooming is performed by clicking and selecting an area over the chart with the mouse. Pan is activated by keeping ctrl pressed. \n \nconst NUMBER_CFG = {count: 20, min: -100, max: 100};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }, {\n label: 'My Second dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n reverse: true,\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n position: 'top',\n },\n y: {\n position: 'right',\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst dragColor = Utils.randomColor(0.4);\nconst zoomOptions = {\n pan: {\n enabled: true,\n mode: 'xy',\n modifierKey: 'ctrl',\n },\n zoom: {\n mode: 'xy',\n drag: {\n enabled: true,\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n backgroundColor: 'rgba(54, 162, 235, 0.3)'\n }\n }\n};\n// \n\nconst zoomStatus = () => zoomOptions.zoom.drag.enabled ? 'enabled' : 'disabled';\n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => 'Zoom: ' + zoomStatus()\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.drag.enabled = !zoomOptions.zoom.drag.enabled;\n chart.update();\n }\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n`\"/>"},{title:"Logarithmic Scale",frontmatter:{},regularPath:"/samples/drag/log.html",relativePath:"samples/drag/log.md",key:"v-5f22cfba",path:"/samples/drag/log.html",lastUpdated:"11/14/2024, 7:07:50 PM",content:" Logarithmic Scale \n Zooming is performed by clicking and selecting an area over the chart with the mouse. Pan is activated by keeping ctrl pressed. \n \nconst data = {\n datasets: [{\n label: 'V(node2)',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: [{\n x: 1,\n y: -1.711e-2,\n }, {\n x: 1.26,\n y: -2.708e-2,\n }, {\n x: 1.58,\n y: -4.285e-2,\n }, {\n x: 2.0,\n y: -6.772e-2,\n }, {\n x: 2.51,\n y: -1.068e-1,\n }, {\n x: 3.16,\n y: -1.681e-1,\n }, {\n x: 3.98,\n y: -2.635e-1,\n }, {\n x: 5.01,\n y: -4.106e-1,\n }, {\n x: 6.31,\n y: -6.339e-1,\n }, {\n x: 7.94,\n y: -9.659e-1,\n }, {\n x: 10.00,\n y: -1.445,\n }, {\n x: 12.6,\n y: -2.110,\n }, {\n x: 15.8,\n y: -2.992,\n }, {\n x: 20.0,\n y: -4.102,\n }, {\n x: 25.1,\n y: -5.429,\n }, {\n x: 31.6,\n y: -6.944,\n }, {\n x: 39.8,\n y: -8.607,\n }, {\n x: 50.1,\n y: -1.038e1,\n }, {\n x: 63.1,\n y: -1.223e1,\n }, {\n x: 79.4,\n y: -1.413e1,\n }, {\n x: 100.00,\n y: -1.607e1,\n }, {\n x: 126,\n y: -1.803e1,\n }, {\n x: 158,\n y: -2e1,\n }, {\n x: 200,\n y: -2.199e1,\n }, {\n x: 251,\n y: -2.398e1,\n }, {\n x: 316,\n y: -2.597e1,\n }, {\n x: 398,\n y: -2.797e1,\n }, {\n x: 501,\n y: -2.996e1,\n }, {\n x: 631,\n y: -3.196e1,\n }, {\n x: 794,\n y: -3.396e1,\n }, {\n x: 1000,\n y: -3.596e1\n }]\n }]\n};\n// \n\n// \nconst scales = {\n x: {\n type: 'logarithmic',\n ticks: {\n callback: function(tick) {\n const remain = tick / (Math.pow(10, Math.floor(Math.log10(tick))));\n if (remain === 1 || remain === 2 || remain === 5) {\n return tick.toString() + 'Hz';\n }\n return '';\n },\n maxRotation: 0\n },\n title: {\n display: true,\n text: 'Frequency',\n },\n }\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: {\n pan: {\n enabled: true,\n mode: 'xy',\n modifierKey: 'ctrl',\n },\n zoom: {\n drag: {\n enabled: true\n },\n mode: 'xy',\n },\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n`\"/>"},{title:"Time Scale",frontmatter:{},regularPath:"/samples/drag/time.html",relativePath:"samples/drag/time.md",key:"v-1b1753d5",path:"/samples/drag/time.html",lastUpdated:"11/14/2024, 7:07:50 PM",content:" Time Scale \n Zooming is performed by clicking and selecting an area over the chart with the mouse. Pan is activated by keeping ctrl pressed. \n \nconst NUMBER_CFG = {count: 500, min: 0, max: 1000};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.hourlyPoints(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scales = {\n x: {\n position: 'bottom',\n type: 'time',\n ticks: {\n autoSkip: true,\n autoSkipPadding: 50,\n maxRotation: 0\n },\n time: {\n displayFormats: {\n hour: 'HH:mm',\n minute: 'HH:mm',\n second: 'HH:mm:ss'\n }\n }\n },\n y: {\n position: 'right',\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n },\n};\n// \n\n// \nconst zoomOptions = {\n pan: {\n enabled: true,\n modifierKey: 'ctrl',\n },\n zoom: {\n drag: {\n enabled: true\n },\n mode: 'xy',\n },\n};\n// \n\nconst panStatus = () => zoomOptions.pan.enabled ? 'enabled' : 'disabled';\nconst zoomStatus = () => zoomOptions.zoom.drag.enabled ? 'enabled' : 'disabled';\n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => 'Zoom: ' + zoomStatus() + ', Pan: ' + panStatus()\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.drag.enabled = !zoomOptions.zoom.drag.enabled;\n chart.update();\n }\n }, {\n name: 'Toggle pan',\n handler(chart) {\n zoomOptions.pan.enabled = !zoomOptions.pan.enabled;\n chart.update();\n },\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }, {\n name: 'Zoom to next week',\n handler(chart) {\n chart.zoomScale('x', Utils.nextWeek(), 'default');\n chart.update();\n }\n }, {\n name: 'Zoom to 400-600',\n handler(chart) {\n chart.zoomScale('y', {min: 400, max: 600}, 'default');\n chart.update();\n }\n }\n\n];\n\nmodule.exports = {\n actions,\n config,\n};\n`\"/>"},{title:"Timeseries Scale",frontmatter:{},regularPath:"/samples/drag/timeseries.html",relativePath:"samples/drag/timeseries.md",key:"v-5ba83635",path:"/samples/drag/timeseries.html",lastUpdated:"11/14/2024, 7:07:50 PM",content:" Timeseries Scale \n Zooming is performed by clicking and selecting an area over the chart with the mouse. Pan is activated by keeping ctrl pressed. \n \nconst NUMBER_CFG = {count: 200, min: 0, max: 100};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.officeHourPoints(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scales = {\n x: {\n position: 'bottom',\n type: 'timeseries',\n ticks: {\n autoSkip: true,\n autoSkipPadding: 50,\n maxRotation: 0,\n major: {\n enabled: true\n }\n },\n time: {\n displayFormats: {\n hour: 'HH:mm',\n minute: 'HH:mm',\n second: 'HH:mm:ss'\n }\n }\n },\n y: {\n position: 'right',\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n },\n};\n// \n\n// \nconst zoomOptions = {\n pan: {\n enabled: true,\n modifierKey: 'ctrl',\n },\n zoom: {\n drag: {\n enabled: true,\n },\n mode: 'xy',\n },\n};\n// \n\nconst panStatus = () => zoomOptions.pan.enabled ? 'enabled' : 'disabled';\nconst zoomStatus = () => zoomOptions.zoom.drag.enabled ? 'enabled' : 'disabled';\n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => 'Zoom: ' + zoomStatus() + ', Pan: ' + panStatus()\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.drag.enabled = !zoomOptions.zoom.drag.enabled;\n chart.update();\n }\n }, {\n name: 'Toggle pan',\n handler(chart) {\n zoomOptions.pan.enabled = !zoomOptions.pan.enabled;\n chart.update();\n },\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n\n];\n\nmodule.exports = {\n actions,\n config,\n};\n`\"/>"},{title:"Fetch data",frontmatter:{},regularPath:"/samples/fetch-data.html",relativePath:"samples/fetch-data.md",key:"v-f2b8a30a",path:"/samples/fetch-data.html",lastUpdated:"11/14/2024, 7:07:50 PM",content:" Fetch data \n \nconst start = new Date().valueOf();\nconst end = start + 1000 * 60 * 60 * 24 * 2;\nconst allData = [];\nlet y = 100;\nfor (let x = start; x \n\n// \nlet timer;\nfunction startFetch({chart}) {\n const {min, max} = chart.scales.x;\n clearTimeout(timer);\n timer = setTimeout(() => {\n console.log('Fetched data between ' + min + ' and ' + max);\n chart.data.datasets[0].data = fetchData(min, max);\n chart.stop(); // make sure animations are not running\n chart.update('none');\n }, 500);\n}\n// \n\n// \nconst scales = {\n x: {\n position: 'bottom',\n min: start,\n max: end,\n type: 'time',\n ticks: {\n autoSkip: true,\n autoSkipPadding: 50,\n maxRotation: 0\n },\n time: {\n displayFormats: {\n hour: 'HH:mm',\n minute: 'HH:mm',\n second: 'HH:mm:ss'\n }\n }\n },\n y: {\n type: 'linear',\n position: 'left',\n },\n};\n// \n\n// \nconst zoomOptions = {\n limits: {\n x: {min: 'original', max: 'original', minRange: 60 * 1000},\n },\n pan: {\n enabled: true,\n mode: 'x',\n modifierKey: 'ctrl',\n onPanComplete: startFetch\n },\n zoom: {\n wheel: {\n enabled: true,\n },\n drag: {\n enabled: true,\n },\n pinch: {\n enabled: true\n },\n mode: 'x',\n onZoomComplete: startFetch\n }\n};\n// \n\nconst zoomStatus = (chart) => 'zoom level: ' + chart.getZoomLevel() + '';\n\n// \nconst config = {\n type: 'line',\n data: {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: fetchData(start, end),\n }]\n },\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => zoomStatus(ctx.chart)\n }\n },\n transitions: {\n zoom: {\n animation: {\n duration: 100\n }\n }\n }\n }\n};\n// \n\nconst actions = [\n {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom('zoom');\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n output: 'console.log output'\n};\n`\"/>"},{title:"Category Scale",frontmatter:{},regularPath:"/samples/wheel/category.html",relativePath:"samples/wheel/category.md",key:"v-4a15025e",path:"/samples/wheel/category.html",lastUpdated:"11/14/2024, 7:07:50 PM",content:" Category Scale \n \nconst DATA_COUNT = 20;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n label: 'Dataset 1',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dataset 2',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dataset 3',\n borderColor: Utils.randomColor(0.7),\n backgroundColor: Utils.randomColor(0.5),\n data: Utils.numbers(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n type: 'category',\n min: 5,\n max: 11,\n },\n y: {\n type: 'linear'\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: {\n pan: {\n enabled: true,\n mode: 'xy',\n threshold: 5,\n },\n zoom: {\n wheel: {\n enabled: true\n },\n pinch: {\n enabled: true\n },\n mode: 'xy',\n },\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n`\"/>"},{title:"Pan Region",frontmatter:{},regularPath:"/samples/pan-region.html",relativePath:"samples/pan-region.md",key:"v-bea74026",path:"/samples/pan-region.html",lastUpdated:"11/14/2024, 7:07:50 PM",content:" Pan Region \n In this example pan is only accepted at the middle region (50%) of the chart. This region is highlighted by a red border. \n \nconst NUMBER_CFG = {count: 20, min: -100, max: 100};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }, {\n label: 'My Second dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n position: 'top',\n },\n y: {\n position: 'right',\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst zoomOptions = {\n limits: {\n x: {min: -200, max: 200, minRange: 50},\n y: {min: -200, max: 200, minRange: 50}\n },\n pan: {\n enabled: true,\n onPanStart({chart, point}) {\n const area = chart.chartArea;\n const w25 = area.width * 0.25;\n const h25 = area.height * 0.25;\n if (point.x area.right - w25\n || point.y area.bottom - h25) {\n return false; // abort\n }\n },\n mode: 'xy',\n },\n zoom: {\n wheel: {\n enabled: false,\n },\n pinch: {\n enabled: true\n },\n }\n};\n// \n\n// \nconst borderPlugin = {\n id: 'panAreaBorder',\n beforeDraw(chart, args, options) {\n const {ctx, chartArea: {left, top, width, height}} = chart;\n ctx.save();\n ctx.strokeStyle = 'rgba(255, 0, 0, 0.3)';\n ctx.lineWidth = 1;\n ctx.strokeRect(left + width * 0.25, top + height * 0.25, width / 2, height / 2);\n ctx.restore();\n }\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n },\n },\n plugins: [borderPlugin]\n};\n// \n\nmodule.exports = {\n config,\n};\n`\"/>"},{title:"Click to Zoom",frontmatter:{},regularPath:"/samples/wheel/click-zoom.html",relativePath:"samples/wheel/click-zoom.md",key:"v-0a0c2246",path:"/samples/wheel/click-zoom.html",lastUpdated:"11/14/2024, 7:07:50 PM",content:" Click to Zoom \n NOTE \n The following text is there on purpose, so the page is scrollable.\nThis demoes that the chart does not consume the wheel until clicked. \n \n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Fringilla ut morbi tincidunt augue interdum velit euismod. Elit pellentesque habitant morbi tristique senectus et netus. Consectetur adipiscing elit pellentesque habitant morbi. Id faucibus nisl tincidunt eget nullam non nisi est sit. Blandit turpis cursus in hac habitasse. Vulputate eu scelerisque felis imperdiet proin fermentum leo vel. Ornare massa eget egestas purus. A diam sollicitudin tempor id eu nisl nunc. Augue mauris augue neque gravida in fermentum et sollicitudin. Dolor purus non enim praesent elementum facilisis leo vel fringilla. Habitant morbi tristique senectus et netus et malesuada. Nulla pharetra diam sit amet nisl suscipit adipiscing bibendum est. Gravida dictum fusce ut placerat orci nulla pellentesque. \n Semper viverra nam libero justo laoreet sit. Pretium vulputate sapien nec sagittis aliquam malesuada bibendum arcu vitae. Risus ultricies tristique nulla aliquet enim tortor at auctor urna. Consequat semper viverra nam libero justo laoreet sit amet. Magna ac placerat vestibulum lectus mauris ultrices eros. Dolor purus non enim praesent elementum facilisis leo vel. Enim eu turpis egestas pretium aenean pharetra. Vitae purus faucibus ornare suspendisse sed nisi lacus. Senectus et netus et malesuada fames. Nec feugiat in fermentum posuere urna nec tincidunt praesent. Accumsan lacus vel facilisis volutpat. Lectus quam id leo in vitae turpis massa. Cras sed felis eget velit aliquet. Volutpat maecenas volutpat blandit aliquam. \n Volutpat lacus laoreet non curabitur. Diam donec adipiscing tristique risus. Fusce id velit ut tortor pretium viverra suspendisse. Dui ut ornare lectus sit amet est. Pharetra sit amet aliquam id. Porttitor massa id neque aliquam vestibulum morbi blandit. Viverra adipiscing at in tellus integer feugiat scelerisque varius morbi. Quam elementum pulvinar etiam non quam. Congue quisque egestas diam in arcu cursus euismod quis. Dictum fusce ut placerat orci nulla pellentesque. Ut placerat orci nulla pellentesque dignissim enim sit amet. Sagittis id consectetur purus ut faucibus pulvinar elementum integer. Dui ut ornare lectus sit amet est. \n Ut tortor pretium viverra suspendisse potenti nullam ac tortor. Mauris a diam maecenas sed enim. Tellus in hac habitasse platea dictumst vestibulum rhoncus. Cras sed felis eget velit aliquet. Purus viverra accumsan in nisl nisi. Sed risus ultricies tristique nulla aliquet enim tortor at. Integer quis auctor elit sed vulputate mi sit amet mauris. Adipiscing elit duis tristique sollicitudin nibh sit amet commodo. Risus feugiat in ante metus dictum at. Posuere urna nec tincidunt praesent semper. Auctor elit sed vulputate mi sit amet mauris commodo. Senectus et netus et malesuada fames ac turpis egestas integer. Varius morbi enim nunc faucibus a pellentesque. Sed felis eget velit aliquet sagittis id. Ac auctor augue mauris augue neque gravida. Etiam erat velit scelerisque in dictum non consectetur a erat. \n Tortor condimentum lacinia quis vel eros donec ac. Phasellus vestibulum lorem sed risus ultricies tristique. Vitae tortor condimentum lacinia quis vel eros donec. Morbi tempus iaculis urna id volutpat lacus laoreet non curabitur. Ut pharetra sit amet aliquam id diam. Eu non diam phasellus vestibulum lorem. Pharetra pharetra massa massa ultricies mi. Donec ultrices tincidunt arcu non. Sagittis orci a scelerisque purus semper eget duis. In iaculis nunc sed augue lacus viverra. Vitae proin sagittis nisl rhoncus mattis rhoncus urna neque. Consequat mauris nunc congue nisi vitae suscipit tellus mauris a. Massa placerat duis ultricies lacus sed turpis tincidunt id. Sit amet tellus cras adipiscing enim eu turpis. Amet porttitor eget dolor morbi non arcu risus quis varius. Potenti nullam ac tortor vitae purus. \n \nconst DATA_COUNT = 70;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: DATA_COUNT});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n stack: 'combined',\n type: 'bar'\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n stack: 'combined'\n }\n ]\n};\n// \n\n// \nconst zoomOptions = {\n limits: {\n y: {min: 0, max: 200, minRange: 50}\n },\n pan: {\n enabled: true,\n mode: 'xy',\n },\n zoom: {\n wheel: {\n enabled: false,\n },\n pinch: {\n enabled: false\n },\n mode: 'xy',\n }\n};\n// \n\n// \nconst borderPlugin = {\n id: 'chartAreaBorder',\n beforeDraw(chart, args, options) {\n const {ctx, chartArea: {left, top, width, height}} = chart;\n if (chart.options.plugins.zoom.zoom.wheel.enabled) {\n ctx.save();\n ctx.strokeStyle = 'red';\n ctx.lineWidth = 1;\n ctx.strokeRect(left, top, width, height);\n ctx.restore();\n }\n }\n};\n// \n\nconst zoomStatus = () => 'Zoom: ' + (zoomOptions.zoom.wheel.enabled ? 'enabled' : 'disabled');\n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n scales: {y: {stacked: true, min: 0}},\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: zoomStatus\n }\n },\n onClick(e) {\n const chart = e.chart;\n chart.options.plugins.zoom.zoom.wheel.enabled = !chart.options.plugins.zoom.zoom.wheel.enabled;\n chart.options.plugins.zoom.zoom.pinch.enabled = !chart.options.plugins.zoom.zoom.pinch.enabled;\n chart.update();\n }\n },\n plugins: [borderPlugin]\n};\n// \n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers(NUMBER_CFG);\n });\n chart.update();\n }\n }, {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.wheel.enabled = !zoomOptions.zoom.wheel.enabled;\n chart.update();\n }\n }, {\n name: 'Toggle pan',\n handler(chart) {\n zoomOptions.pan.enabled = !zoomOptions.pan.enabled;\n chart.update();\n },\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n`\"/> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Fringilla ut morbi tincidunt augue interdum velit euismod. Elit pellentesque habitant morbi tristique senectus et netus. Consectetur adipiscing elit pellentesque habitant morbi. Id faucibus nisl tincidunt eget nullam non nisi est sit. Blandit turpis cursus in hac habitasse. Vulputate eu scelerisque felis imperdiet proin fermentum leo vel. Ornare massa eget egestas purus. A diam sollicitudin tempor id eu nisl nunc. Augue mauris augue neque gravida in fermentum et sollicitudin. Dolor purus non enim praesent elementum facilisis leo vel fringilla. Habitant morbi tristique senectus et netus et malesuada. Nulla pharetra diam sit amet nisl suscipit adipiscing bibendum est. Gravida dictum fusce ut placerat orci nulla pellentesque. \n Semper viverra nam libero justo laoreet sit. Pretium vulputate sapien nec sagittis aliquam malesuada bibendum arcu vitae. Risus ultricies tristique nulla aliquet enim tortor at auctor urna. Consequat semper viverra nam libero justo laoreet sit amet. Magna ac placerat vestibulum lectus mauris ultrices eros. Dolor purus non enim praesent elementum facilisis leo vel. Enim eu turpis egestas pretium aenean pharetra. Vitae purus faucibus ornare suspendisse sed nisi lacus. Senectus et netus et malesuada fames. Nec feugiat in fermentum posuere urna nec tincidunt praesent. Accumsan lacus vel facilisis volutpat. Lectus quam id leo in vitae turpis massa. Cras sed felis eget velit aliquet. Volutpat maecenas volutpat blandit aliquam. \n Volutpat lacus laoreet non curabitur. Diam donec adipiscing tristique risus. Fusce id velit ut tortor pretium viverra suspendisse. Dui ut ornare lectus sit amet est. Pharetra sit amet aliquam id. Porttitor massa id neque aliquam vestibulum morbi blandit. Viverra adipiscing at in tellus integer feugiat scelerisque varius morbi. Quam elementum pulvinar etiam non quam. Congue quisque egestas diam in arcu cursus euismod quis. Dictum fusce ut placerat orci nulla pellentesque. Ut placerat orci nulla pellentesque dignissim enim sit amet. Sagittis id consectetur purus ut faucibus pulvinar elementum integer. Dui ut ornare lectus sit amet est. \n Ut tortor pretium viverra suspendisse potenti nullam ac tortor. Mauris a diam maecenas sed enim. Tellus in hac habitasse platea dictumst vestibulum rhoncus. Cras sed felis eget velit aliquet. Purus viverra accumsan in nisl nisi. Sed risus ultricies tristique nulla aliquet enim tortor at. Integer quis auctor elit sed vulputate mi sit amet mauris. Adipiscing elit duis tristique sollicitudin nibh sit amet commodo. Risus feugiat in ante metus dictum at. Posuere urna nec tincidunt praesent semper. Auctor elit sed vulputate mi sit amet mauris commodo. Senectus et netus et malesuada fames ac turpis egestas integer. Varius morbi enim nunc faucibus a pellentesque. Sed felis eget velit aliquet sagittis id. Ac auctor augue mauris augue neque gravida. Etiam erat velit scelerisque in dictum non consectetur a erat. \n Tortor condimentum lacinia quis vel eros donec ac. Phasellus vestibulum lorem sed risus ultricies tristique. Vitae tortor condimentum lacinia quis vel eros donec. Morbi tempus iaculis urna id volutpat lacus laoreet non curabitur. Ut pharetra sit amet aliquam id diam. Eu non diam phasellus vestibulum lorem. Pharetra pharetra massa massa ultricies mi. Donec ultrices tincidunt arcu non. Sagittis orci a scelerisque purus semper eget duis. In iaculis nunc sed augue lacus viverra. Vitae proin sagittis nisl rhoncus mattis rhoncus urna neque. Consequat mauris nunc congue nisi vitae suscipit tellus mauris a. Massa placerat duis ultricies lacus sed turpis tincidunt id. Sit amet tellus cras adipiscing enim eu turpis. Amet porttitor eget dolor morbi non arcu risus quis varius. Potenti nullam ac tortor vitae purus. \n"},{title:"Logarithmic Scale",frontmatter:{},regularPath:"/samples/wheel/log.html",relativePath:"samples/wheel/log.md",key:"v-294c46d5",path:"/samples/wheel/log.html",lastUpdated:"11/14/2024, 7:07:50 PM",content:" Logarithmic Scale \n \nconst data = {\n datasets: [{\n label: 'V(node2)',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: [{\n x: 1,\n y: -1.711e-2,\n }, {\n x: 1.26,\n y: -2.708e-2,\n }, {\n x: 1.58,\n y: -4.285e-2,\n }, {\n x: 2.0,\n y: -6.772e-2,\n }, {\n x: 2.51,\n y: -1.068e-1,\n }, {\n x: 3.16,\n y: -1.681e-1,\n }, {\n x: 3.98,\n y: -2.635e-1,\n }, {\n x: 5.01,\n y: -4.106e-1,\n }, {\n x: 6.31,\n y: -6.339e-1,\n }, {\n x: 7.94,\n y: -9.659e-1,\n }, {\n x: 10.00,\n y: -1.445,\n }, {\n x: 12.6,\n y: -2.110,\n }, {\n x: 15.8,\n y: -2.992,\n }, {\n x: 20.0,\n y: -4.102,\n }, {\n x: 25.1,\n y: -5.429,\n }, {\n x: 31.6,\n y: -6.944,\n }, {\n x: 39.8,\n y: -8.607,\n }, {\n x: 50.1,\n y: -1.038e1,\n }, {\n x: 63.1,\n y: -1.223e1,\n }, {\n x: 79.4,\n y: -1.413e1,\n }, {\n x: 100.00,\n y: -1.607e1,\n }, {\n x: 126,\n y: -1.803e1,\n }, {\n x: 158,\n y: -2e1,\n }, {\n x: 200,\n y: -2.199e1,\n }, {\n x: 251,\n y: -2.398e1,\n }, {\n x: 316,\n y: -2.597e1,\n }, {\n x: 398,\n y: -2.797e1,\n }, {\n x: 501,\n y: -2.996e1,\n }, {\n x: 631,\n y: -3.196e1,\n }, {\n x: 794,\n y: -3.396e1,\n }, {\n x: 1000,\n y: -3.596e1\n }]\n }]\n};\n// \n\n// \nconst scales = {\n x: {\n type: 'logarithmic',\n ticks: {\n callback: function(tick) {\n const remain = tick / (Math.pow(10, Math.floor(Math.log10(tick))));\n if (remain === 1 || remain === 2 || remain === 5) {\n return tick.toString() + 'Hz';\n }\n return '';\n },\n maxRotation: 0\n },\n title: {\n display: true,\n text: 'Frequency',\n },\n }\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: {\n limits: {\n x: {min: 0.5, max: 2e3, minRange: 100},\n y: {min: -50, max: 10, minRange: 10}\n },\n pan: {\n enabled: true,\n mode: 'xy',\n },\n zoom: {\n wheel: {\n enabled: true\n },\n pinch: {\n enabled: true,\n },\n mode: 'xy',\n },\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n`\"/>"},{title:"Over Scale Mode",frontmatter:{},regularPath:"/samples/wheel/over-scale-mode.html",relativePath:"samples/wheel/over-scale-mode.md",key:"v-45d52f75",path:"/samples/wheel/over-scale-mode.html",lastUpdated:"11/14/2024, 7:07:50 PM",content:" Over Scale Mode \n Pan and Zoom are allowed only when mouse is over the axis. \n \nconst NUMBER_CFG = {count: 20, min: -100, max: 100};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }, {\n label: 'My Second dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.points(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scaleOpts = {\n reverse: true,\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n};\nconst scales = {\n x: {\n position: 'top',\n },\n y: {\n position: 'right',\n },\n};\nObject.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));\n// \n\n// \nconst zoomOptions = {\n zoom: {\n wheel: {\n enabled: true,\n },\n pinch: {\n enabled: true,\n },\n mode: 'xy',\n scaleMode: 'xy',\n },\n pan: {\n enabled: true,\n mode: 'xy',\n scaleMode: 'xy',\n }\n};\n// \n\nconst panStatus = () => zoomOptions.pan.enabled ? 'enabled' : 'disabled';\nconst zoomStatus = () => zoomOptions.zoom.wheel.enabled ? 'enabled' : 'disabled';\n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => 'Zoom: ' + zoomStatus() + ', Pan: ' + panStatus(),\n }\n },\n }\n};\n// \n\nconst actions = [\n {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.wheel.enabled = !zoomOptions.zoom.wheel.enabled;\n zoomOptions.zoom.pinch.enabled = !zoomOptions.zoom.pinch.enabled;\n chart.update();\n }\n }, {\n name: 'Toggle pan',\n handler(chart) {\n zoomOptions.pan.enabled = !zoomOptions.pan.enabled;\n chart.update();\n },\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }\n];\n\nmodule.exports = {\n actions,\n config,\n};\n`\"/>"},{title:"Time Scale",frontmatter:{},regularPath:"/samples/wheel/time.html",relativePath:"samples/wheel/time.md",key:"v-ac900b9a",path:"/samples/wheel/time.html",lastUpdated:"11/14/2024, 7:07:50 PM",content:" Time Scale \n \nconst NUMBER_CFG = {count: 500, min: 0, max: 1000};\nconst data = {\n datasets: [{\n label: 'My First dataset',\n borderColor: Utils.randomColor(0.4),\n backgroundColor: Utils.randomColor(0.1),\n pointBorderColor: Utils.randomColor(0.7),\n pointBackgroundColor: Utils.randomColor(0.5),\n pointBorderWidth: 1,\n data: Utils.hourlyPoints(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst scales = {\n x: {\n position: 'bottom',\n type: 'time',\n ticks: {\n autoSkip: true,\n autoSkipPadding: 50,\n maxRotation: 0\n },\n time: {\n displayFormats: {\n hour: 'HH:mm',\n minute: 'HH:mm',\n second: 'HH:mm:ss'\n }\n }\n },\n y: {\n position: 'right',\n ticks: {\n callback: (val, index, ticks) => index === 0 || index === ticks.length - 1 ? null : val,\n },\n grid: {\n borderColor: Utils.randomColor(1),\n color: 'rgba( 0, 0, 0, 0.1)',\n },\n title: {\n display: true,\n text: (ctx) => ctx.scale.axis + ' axis',\n }\n },\n};\n// \n\n// \nconst zoomOptions = {\n zoom: {\n wheel: {\n enabled: true,\n },\n pinch: {\n enabled: true,\n },\n mode: 'xy',\n },\n pan: {\n enabled: true,\n mode: 'xy',\n }\n};\n// \n\nconst panStatus = () => zoomOptions.pan.enabled ? 'enabled' : 'disabled';\nconst zoomStatus = () => zoomOptions.zoom.wheel.enabled ? 'enabled' : 'disabled';\n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: scales,\n plugins: {\n zoom: zoomOptions,\n title: {\n display: true,\n position: 'bottom',\n text: (ctx) => 'Zoom: ' + zoomStatus() + ', Pan: ' + panStatus()\n }\n },\n onClick(e) {\n console.log(e.type);\n }\n }\n};\n// \n\nconst actions = [\n {\n name: 'Toggle zoom',\n handler(chart) {\n zoomOptions.zoom.wheel.enabled = !zoomOptions.zoom.wheel.enabled;\n zoomOptions.zoom.pinch.enabled = !zoomOptions.zoom.pinch.enabled;\n chart.update();\n }\n }, {\n name: 'Toggle pan',\n handler(chart) {\n zoomOptions.pan.enabled = !zoomOptions.pan.enabled;\n chart.update();\n },\n }, {\n name: 'Reset zoom',\n handler(chart) {\n chart.resetZoom();\n }\n }, {\n name: 'Zoom to next week',\n handler(chart) {\n chart.zoomScale('x', Utils.nextWeek(), 'default');\n chart.update();\n }\n }, {\n name: 'Zoom to 400-600',\n handler(chart) {\n chart.zoomScale('y', {min: 400, max: 600}, 'default');\n chart.update();\n }\n }\n\n];\n\nmodule.exports = {\n actions,\n config,\n output: 'Clicks are logged here'\n};\n`\"/>"}],themeConfig:{repo:"chartjs/chartjs-plugin-zoom",logo:"/favicon.ico",lastUpdated:"Last Updated",searchPlaceholder:"Search...",editLinks:!1,docsDir:"docs",chart:{imports:[["scripts/register.js"],["scripts/defaults.js"],["scripts/utils.js","Utils"]]},nav:[{text:"Home",link:"/"},{text:"Guide",link:"/guide/"},{text:"API",link:"/api/"},{text:"Samples",link:"/samples/"},{text:"Ecosystem",ariaLabel:"Community Menu",items:[{text:"Awesome",link:"https://github.com/chartjs/awesome"}]}],sidebar:{"/guide/":["","integration","usage","options","animations","developers"],"/samples/":["basic",{title:"Wheel Zoom",children:["wheel/category","wheel/log","wheel/time","wheel/over-scale-mode","wheel/click-zoom"]},{title:"Drag to Zoom",children:["drag/category","drag/linear","drag/log","drag/time","drag/timeseries"]},"api","fetch-data","pan-region"]}}};n(398),n(399);s.a.component("ChartEditor",(function(){return Promise.all([n.e(0),n.e(3)]).then(n.bind(null,471))})),s.a.component("Badge",(function(){return Promise.all([n.e(0),n.e(4)]).then(n.bind(null,497))})),s.a.component("CodeBlock",(function(){return Promise.all([n.e(0),n.e(5)]).then(n.bind(null,473))})),s.a.component("CodeGroup",(function(){return Promise.all([n.e(0),n.e(6)]).then(n.bind(null,474))}));n(400);var on,an=n(31);function sn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?"s":"")+" required, but only "+e.length+" present")}function ln(t){cn(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"==typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}var fn={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},hn=function(t,e,n){var r,i=fn[t];return r="string"==typeof i?i:1===e?i.one:i.other.replace("{{count}}",e.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function dn(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var pn={date:dn({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:dn({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:dn({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},vn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function mn(t){return function(e,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,a=i.width?String(i.width):o;r=t.formattingValues[a]||t.formattingValues[o]}else{var s=t.defaultWidth,u=i.width?String(i.width):t.defaultWidth;r=t.values[u]||t.values[s]}return r[t.argumentCallback?t.argumentCallback(e):e]}}function gn(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;var a,s=o[0],u=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(u)?yn(u,(function(t){return t.test(s)})):bn(u,(function(t){return t.test(s)}));a=t.valueCallback?t.valueCallback(c):c,a=n.valueCallback?n.valueCallback(a):a;var l=e.slice(s.length);return{value:a,rest:l}}}function bn(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function yn(t,e){for(var n=0;n20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:mn({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:mn({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:mn({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:mn({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:mn({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(xn={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(xn.matchPattern);if(!n)return null;var r=n[0],i=t.match(xn.parsePattern);if(!i)return null;var o=xn.valueCallback?xn.valueCallback(i[0]):i[0];o=e.valueCallback?e.valueCallback(o):o;var a=t.slice(r.length);return{value:o,rest:a}}),era:gn({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:gn({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:gn({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:gn({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:gn({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function _n(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function kn(t,e){cn(2,arguments);var n=ln(t).getTime(),r=_n(e);return new Date(n+r)}function On(t,e){cn(2,arguments);var n=_n(e);return kn(t,-n)}function jn(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in e=e||{})Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function Cn(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function Sn(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}var Mn={p:Sn,P:function(t,e){var n,r=t.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return Cn(t,e);switch(i){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;case"PPPP":default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",Cn(i,e)).replace("{{time}}",Sn(o,e))}};function Tn(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var Pn=["D","DD"],En=["YY","YYYY"];function An(t){return-1!==Pn.indexOf(t)}function Dn(t){return-1!==En.indexOf(t)}function zn(t,e,n){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}function Ln(t,e){cn(1,arguments);var n=e||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=null==i?0:_n(i),a=null==n.weekStartsOn?o:_n(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=ln(t),u=s.getUTCDay(),c=(u=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(r+1,0,u),c.setUTCHours(0,0,0,0);var l=Ln(c,e),f=new Date(0);f.setUTCFullYear(r,0,u),f.setUTCHours(0,0,0,0);var h=Ln(f,e);return n.getTime()>=l.getTime()?r+1:n.getTime()>=h.getTime()?r:r-1}function In(t,e,n){cn(2,arguments);var r=n||{},i=r.locale,o=i&&i.options&&i.options.weekStartsOn,a=null==o?0:_n(o),s=null==r.weekStartsOn?a:_n(r.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=ln(t),c=_n(e),l=u.getUTCDay(),f=c%7,h=(f+7)%7,d=(h=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function Un(t){cn(1,arguments);var e=Nn(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=Fn(n);return r}function $n(t){cn(1,arguments);var e=ln(t),n=Fn(e).getTime()-Un(e).getTime();return Math.round(n/6048e5)+1}function Bn(t,e){cn(1,arguments);var n=e||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,o=null==i?1:_n(i),a=null==n.firstWeekContainsDate?o:_n(n.firstWeekContainsDate),s=Rn(t,e),u=new Date(0);u.setUTCFullYear(s,0,a),u.setUTCHours(0,0,0,0);var c=Ln(u,e);return c}function Hn(t,e){cn(1,arguments);var n=ln(t),r=Ln(n,e).getTime()-Bn(n,e).getTime();return Math.round(r/6048e5)+1}var Wn=/^(1[0-2]|0?\d)/,Vn=/^(3[0-1]|[0-2]?\d)/,qn=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Yn=/^(5[0-3]|[0-4]?\d)/,Xn=/^(2[0-3]|[0-1]?\d)/,Gn=/^(2[0-4]|[0-1]?\d)/,Zn=/^(1[0-1]|0?\d)/,Kn=/^(1[0-2]|0?\d)/,Qn=/^[0-5]?\d/,Jn=/^[0-5]?\d/,tr=/^\d/,er=/^\d{1,2}/,nr=/^\d{1,3}/,rr=/^\d{1,4}/,ir=/^-?\d+/,or=/^-?\d/,ar=/^-?\d{1,2}/,sr=/^-?\d{1,3}/,ur=/^-?\d{1,4}/,cr=/^([+-])(\d{2})(\d{2})?|Z/,lr=/^([+-])(\d{2})(\d{2})|Z/,fr=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,hr=/^([+-])(\d{2}):(\d{2})|Z/,dr=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function pr(t,e,n){var r=e.match(t);if(!r)return null;var i=parseInt(r[0],10);return{value:n?n(i):i,rest:e.slice(r[0].length)}}function vr(t,e){var n=e.match(t);return n?"Z"===n[0]?{value:0,rest:e.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:e.slice(n[0].length)}:null}function mr(t,e){return pr(ir,t,e)}function gr(t,e,n){switch(t){case 1:return pr(tr,e,n);case 2:return pr(er,e,n);case 3:return pr(nr,e,n);case 4:return pr(rr,e,n);default:return pr(new RegExp("^\\d{1,"+t+"}"),e,n)}}function br(t,e,n){switch(t){case 1:return pr(or,e,n);case 2:return pr(ar,e,n);case 3:return pr(sr,e,n);case 4:return pr(ur,e,n);default:return pr(new RegExp("^-?\\d{1,"+t+"}"),e,n)}}function yr(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function xr(t,e){var n,r=e>0,i=r?e:1-e;if(i<=50)n=t||100;else{var o=i+50;n=t+100*Math.floor(o/100)-(t>=o%100?100:0)}return r?n:1-n}var wr=[31,28,31,30,31,30,31,31,30,31,30,31],_r=[31,29,31,30,31,30,31,31,30,31,30,31];function kr(t){return t%400==0||t%4==0&&t%100!=0}var Or={G:{priority:140,parse:function(t,e,n,r){switch(e){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}},set:function(t,e,n,r){return e.era=n,t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(t,e,n,r){var i=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return gr(4,t,i);case"yo":return n.ordinalNumber(t,{unit:"year",valueCallback:i});default:return gr(e.length,t,i)}},validate:function(t,e,n){return e.isTwoDigitYear||e.year>0},set:function(t,e,n,r){var i=t.getUTCFullYear();if(n.isTwoDigitYear){var o=xr(n.year,i);return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t}var a="era"in e&&1!==e.era?1-n.year:n.year;return t.setUTCFullYear(a,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(t,e,n,r){var i=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return gr(4,t,i);case"Yo":return n.ordinalNumber(t,{unit:"year",valueCallback:i});default:return gr(e.length,t,i)}},validate:function(t,e,n){return e.isTwoDigitYear||e.year>0},set:function(t,e,n,r){var i=Rn(t,r);if(n.isTwoDigitYear){var o=xr(n.year,i);return t.setUTCFullYear(o,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Ln(t,r)}var a="era"in e&&1!==e.era?1-n.year:n.year;return t.setUTCFullYear(a,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Ln(t,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(t,e,n,r){return br("R"===e?4:e.length,t)},set:function(t,e,n,r){var i=new Date(0);return i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0),Fn(i)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(t,e,n,r){return br("u"===e?4:e.length,t)},set:function(t,e,n,r){return t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(t,e,n,r){switch(e){case"Q":case"QQ":return gr(e.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=1&&e<=4},set:function(t,e,n,r){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(t,e,n,r){switch(e){case"q":case"qq":return gr(e.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,n){return e>=1&&e<=4},set:function(t,e,n,r){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(t,e,n,r){var i=function(t){return t-1};switch(e){case"M":return pr(Wn,t,i);case"MM":return gr(2,t,i);case"Mo":return n.ordinalNumber(t,{unit:"month",valueCallback:i});case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=0&&e<=11},set:function(t,e,n,r){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(t,e,n,r){var i=function(t){return t-1};switch(e){case"L":return pr(Wn,t,i);case"LL":return gr(2,t,i);case"Lo":return n.ordinalNumber(t,{unit:"month",valueCallback:i});case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,n){return e>=0&&e<=11},set:function(t,e,n,r){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(t,e,n,r){switch(e){case"w":return pr(Yn,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return gr(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=53},set:function(t,e,n,r){return Ln(function(t,e,n){cn(2,arguments);var r=ln(t),i=_n(e),o=Hn(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*o),r}(t,n,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(t,e,n,r){switch(e){case"I":return pr(Yn,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return gr(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=53},set:function(t,e,n,r){return Fn(function(t,e){cn(2,arguments);var n=ln(t),r=_n(e),i=$n(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(t,n,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(t,e,n,r){switch(e){case"d":return pr(Vn,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return gr(e.length,t)}},validate:function(t,e,n){var r=kr(t.getUTCFullYear()),i=t.getUTCMonth();return r?e>=1&&e<=_r[i]:e>=1&&e<=wr[i]},set:function(t,e,n,r){return t.setUTCDate(n),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(t,e,n,r){switch(e){case"D":case"DD":return pr(qn,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return gr(e.length,t)}},validate:function(t,e,n){return kr(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365},set:function(t,e,n,r){return t.setUTCMonth(0,n),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(t,e,n,r){switch(e){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=0&&e<=6},set:function(t,e,n,r){return(t=In(t,n,r)).setUTCHours(0,0,0,0),t},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(t,e,n,r){var i=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return gr(e.length,t,i);case"eo":return n.ordinalNumber(t,{unit:"day",valueCallback:i});case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=0&&e<=6},set:function(t,e,n,r){return(t=In(t,n,r)).setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(t,e,n,r){var i=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return gr(e.length,t,i);case"co":return n.ordinalNumber(t,{unit:"day",valueCallback:i});case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,n){return e>=0&&e<=6},set:function(t,e,n,r){return(t=In(t,n,r)).setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(t,e,n,r){var i=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return gr(e.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return n.day(t,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(t,{width:"short",context:"formatting",valueCallback:i})||n.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiiii":return n.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiiiii":return n.day(t,{width:"short",context:"formatting",valueCallback:i})||n.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiii":default:return n.day(t,{width:"wide",context:"formatting",valueCallback:i})||n.day(t,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(t,{width:"short",context:"formatting",valueCallback:i})||n.day(t,{width:"narrow",context:"formatting",valueCallback:i})}},validate:function(t,e,n){return e>=1&&e<=7},set:function(t,e,n,r){return(t=function(t,e){cn(2,arguments);var n=_n(e);n%7==0&&(n-=7);var r=1,i=ln(t),o=i.getUTCDay(),a=n%7,s=(a+7)%7,u=(s=1&&e<=12},set:function(t,e,n,r){var i=t.getUTCHours()>=12;return i&&n<12?t.setUTCHours(n+12,0,0,0):i||12!==n?t.setUTCHours(n,0,0,0):t.setUTCHours(0,0,0,0),t},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(t,e,n,r){switch(e){case"H":return pr(Xn,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return gr(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=23},set:function(t,e,n,r){return t.setUTCHours(n,0,0,0),t},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(t,e,n,r){switch(e){case"K":return pr(Zn,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return gr(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=11},set:function(t,e,n,r){return t.getUTCHours()>=12&&n<12?t.setUTCHours(n+12,0,0,0):t.setUTCHours(n,0,0,0),t},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(t,e,n,r){switch(e){case"k":return pr(Gn,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return gr(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=24},set:function(t,e,n,r){var i=n<=24?n%24:n;return t.setUTCHours(i,0,0,0),t},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(t,e,n,r){switch(e){case"m":return pr(Qn,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return gr(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=59},set:function(t,e,n,r){return t.setUTCMinutes(n,0,0),t},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(t,e,n,r){switch(e){case"s":return pr(Jn,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return gr(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=59},set:function(t,e,n,r){return t.setUTCSeconds(n,0),t},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(t,e,n,r){return gr(e.length,t,(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))},set:function(t,e,n,r){return t.setUTCMilliseconds(n),t},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(t,e,n,r){switch(e){case"X":return vr(cr,t);case"XX":return vr(lr,t);case"XXXX":return vr(fr,t);case"XXXXX":return vr(dr,t);case"XXX":default:return vr(hr,t)}},set:function(t,e,n,r){return e.timestampIsSet?t:new Date(t.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(t,e,n,r){switch(e){case"x":return vr(cr,t);case"xx":return vr(lr,t);case"xxxx":return vr(fr,t);case"xxxxx":return vr(dr,t);case"xxx":default:return vr(hr,t)}},set:function(t,e,n,r){return e.timestampIsSet?t:new Date(t.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(t,e,n,r){return mr(t)},set:function(t,e,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(t,e,n,r){return mr(t)},set:function(t,e,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}},jr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Cr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Sr=/^'([^]*?)'?$/,Mr=/''/g,Tr=/\S/,Pr=/[a-zA-Z]/;function Er(t,e){if(e.timestampIsSet)return t;var n=new Date(0);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}function Ar(t){return t.match(Sr)[1].replace(Mr,"'")}var Dr={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},zr=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Lr=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Rr=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Ir(t){var e,n={},r=t.split(Dr.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?(n.date=null,e=r[0]):(n.date=r[0],e=r[1],Dr.timeZoneDelimiter.test(n.date)&&(n.date=t.split(Dr.timeZoneDelimiter)[0],e=t.substr(n.date.length,t.length))),e){var i=Dr.timezone.exec(e);i?(n.time=e.replace(i[1],""),n.timezone=i[1]):n.time=e}return n}function Fr(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:null};var i=r[1]&&parseInt(r[1]),o=r[2]&&parseInt(r[2]);return{year:null==o?i:100*o,restDateString:t.slice((r[1]||r[2]).length)}}function Nr(t,e){if(null===e)return null;var n=t.match(zr);if(!n)return null;var r=!!n[4],i=Ur(n[1]),o=Ur(n[2])-1,a=Ur(n[3]),s=Ur(n[4]),u=Ur(n[5])-1;if(r)return function(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}(0,s,u)?function(t,e,n){var r=new Date(0);r.setUTCFullYear(t,0,4);var i=r.getUTCDay()||7,o=7*(e-1)+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}(e,s,u):new Date(NaN);var c=new Date(0);return function(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(Wr[e]||(Vr(t)?29:28))}(e,o,a)&&function(t,e){return e>=1&&e<=(Vr(t)?366:365)}(e,i)?(c.setUTCFullYear(e,o,Math.max(i,a)),c):new Date(NaN)}function Ur(t){return t?parseInt(t):1}function $r(t){var e=t.match(Lr);if(!e)return null;var n=Br(e[1]),r=Br(e[2]),i=Br(e[3]);return function(t,e,n){if(24===t)return 0===e&&0===n;return n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}(n,r,i)?36e5*n+6e4*r+1e3*i:NaN}function Br(t){return t&&parseFloat(t.replace(",","."))||0}function Hr(t){if("Z"===t)return 0;var e=t.match(Rr);if(!e)return 0;var n="+"===e[1]?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return function(t,e){return e>=0&&e<=59}(0,i)?n*(36e5*r+6e4*i):NaN}var Wr=[31,null,31,30,31,30,31,31,30,31,30,31];function Vr(t){return t%400==0||t%4==0&&t%100}function qr(t){return cn(1,arguments),t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)}function Yr(t){if(cn(1,arguments),!qr(t)&&"number"!=typeof t)return!1;var e=ln(t);return!isNaN(Number(e))}function Xr(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length0?n:1-n;return Xr("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):Xr(n+1,2)},d:function(t,e){return Xr(t.getUTCDate(),e.length)},a:function(t,e){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(t,e){return Xr(t.getUTCHours()%12||12,e.length)},H:function(t,e){return Xr(t.getUTCHours(),e.length)},m:function(t,e){return Xr(t.getUTCMinutes(),e.length)},s:function(t,e){return Xr(t.getUTCSeconds(),e.length)},S:function(t,e){var n=e.length,r=t.getUTCMilliseconds();return Xr(Math.floor(r*Math.pow(10,n-3)),e.length)}};var Zr="midnight",Kr="noon",Qr="morning",Jr="afternoon",ti="evening",ei="night";function ni(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=e||"";return n+String(i)+a+Xr(o,2)}function ri(t,e){return t%60==0?(t>0?"-":"+")+Xr(Math.abs(t)/60,2):ii(t,e)}function ii(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t);return r+Xr(Math.floor(i/60),2)+n+Xr(i%60,2)}var oi={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var r=t.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Gr.y(t,e)},Y:function(t,e,n,r){var i=Rn(t,r),o=i>0?i:1-i;return"YY"===e?Xr(o%100,2):"Yo"===e?n.ordinalNumber(o,{unit:"year"}):Xr(o,e.length)},R:function(t,e){return Xr(Nn(t),e.length)},u:function(t,e){return Xr(t.getUTCFullYear(),e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return Xr(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return Xr(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return Gr.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return Xr(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){var i=Hn(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):Xr(i,e.length)},I:function(t,e,n){var r=$n(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):Xr(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):Gr.d(t,e)},D:function(t,e,n){var r=function(t){cn(1,arguments);var e=ln(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=n-r;return Math.floor(i/864e5)+1}(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):Xr(r,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return Xr(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return Xr(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){var r=t.getUTCDay(),i=0===r?7:r;switch(e){case"i":return String(i);case"ii":return Xr(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r,i=t.getUTCHours();switch(r=12===i?Kr:0===i?Zr:i/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r,i=t.getUTCHours();switch(r=i>=17?ti:i>=12?Jr:i>=4?Qr:ei,e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Gr.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Gr.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):Xr(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):Xr(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Gr.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Gr.s(t,e)},S:function(t,e){return Gr.S(t,e)},X:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();if(0===i)return"Z";switch(e){case"X":return ri(i);case"XXXX":case"XX":return ii(i);case"XXXXX":case"XXX":default:return ii(i,":")}},x:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return ri(i);case"xxxx":case"xx":return ii(i);case"xxxxx":case"xxx":default:return ii(i,":")}},O:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+ni(i,":");case"OOOO":default:return"GMT"+ii(i,":")}},z:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+ni(i,":");case"zzzz":default:return"GMT"+ii(i,":")}},t:function(t,e,n,r){var i=r._originalDate||t;return Xr(Math.floor(i.getTime()/1e3),e.length)},T:function(t,e,n,r){return Xr((r._originalDate||t).getTime(),e.length)}},ai=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,si=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ui=/^'([^]*?)'?$/,ci=/''/g,li=/[a-zA-Z]/;function fi(t){return t.match(ui)[1].replace(ci,"'")}function hi(t,e){cn(2,arguments);var n=_n(e);return kn(t,36e5*n)}function di(t,e){cn(2,arguments);var n=ln(t),r=_n(e);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function pi(t,e){cn(2,arguments);var n=ln(t),r=_n(e);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function vi(t,e){return cn(2,arguments),ln(t).getTime()-ln(e).getTime()}var mi={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}};function gi(t){return t?mi[t]:mi.trunc}Math.pow(10,8);function bi(t){cn(1,arguments);var e=ln(t);return e.setHours(0,0,0,0),e}function yi(t,e){cn(2,arguments);var n=bi(t),r=bi(e),i=n.getTime()-Tn(n),o=r.getTime()-Tn(r);return Math.round((i-o)/864e5)}function xi(t,e){var n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function wi(t,e){cn(2,arguments);var n=ln(t),r=ln(e),i=xi(n,r),o=Math.abs(yi(n,r));n.setDate(n.getDate()-i*o);var a=Number(xi(n,r)===-i),s=i*(o-a);return 0===s?0:s}function _i(t,e){cn(2,arguments);var n=ln(t),r=ln(e),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return 12*i+o}function ki(t,e){cn(2,arguments);var n=ln(t),r=ln(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function Oi(t){cn(1,arguments);var e=ln(t);return e.setHours(23,59,59,999),e}function ji(t){cn(1,arguments);var e=ln(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}function Ci(t){cn(1,arguments);var e=ln(t);return Oi(e).getTime()===ji(e).getTime()}function Si(t,e){cn(2,arguments);var n,r=ln(t),i=ln(e),o=ki(r,i),a=Math.abs(_i(r,i));if(a<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-o*a);var s=ki(r,i)===-o;Ci(ln(t))&&1===a&&1===ki(t,i)&&(s=!1),n=o*(a-Number(s))}return 0===n?0:n}function Mi(t,e){cn(2,arguments);var n=ln(t),r=ln(e);return n.getFullYear()-r.getFullYear()}function Ti(t,e){cn(1,arguments);var n=e||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=null==i?0:_n(i),a=null==n.weekStartsOn?o:_n(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=ln(t),u=s.getDay(),c=(u=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=ln(t),u=s.getDay(),c=6+(u=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=s.options&&s.options.weekStartsOn,h=null==f?0:_n(f),d=null==a.weekStartsOn?h:_n(a.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===o)return""===i?ln(n):new Date(NaN);var p,v={firstWeekContainsDate:l,weekStartsOn:d,locale:s},m=[{priority:10,subPriority:-1,set:Er,index:0}],g=o.match(Cr).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,Mn[e])(t,s.formatLong,v):t})).join("").match(jr),b=[];for(p=0;p0&&Tr.test(i))return new Date(NaN);var S=m.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,n){return n.indexOf(t)===e})).map((function(t){return m.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),M=ln(n);if(isNaN(M))return new Date(NaN);var T=On(M,Tn(M)),P={};for(p=0;p=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=o.options&&o.options.weekStartsOn,l=null==c?0:_n(c),f=null==i.weekStartsOn?l:_n(i.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var h=ln(t);if(!Yr(h))throw new RangeError("Invalid time value");var d=Tn(h),p=On(h,d),v={firstWeekContainsDate:u,weekStartsOn:f,locale:o,_originalDate:h},m=r.match(si).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,Mn[e])(t,o.formatLong,v):t})).join("").match(ai).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return fi(n);var a=oi[r];if(a)return!i.useAdditionalWeekYearTokens&&Dn(n)&&zn(n,e,t),!i.useAdditionalDayOfYearTokens&&An(n)&&zn(n,e,t),a(p,n,o.localize,v);if(r.match(li))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("");return m}(t,e,this.options)},add:function(t,e,n){switch(n){case"millisecond":return kn(t,e);case"second":return function(t,e){cn(2,arguments);var n=_n(e);return kn(t,1e3*n)}(t,e);case"minute":return function(t,e){cn(2,arguments);var n=_n(e);return kn(t,6e4*n)}(t,e);case"hour":return hi(t,e);case"day":return di(t,e);case"week":return function(t,e){cn(2,arguments);var n=_n(e),r=7*n;return di(t,r)}(t,e);case"month":return pi(t,e);case"quarter":return function(t,e){cn(2,arguments);var n=_n(e),r=3*n;return pi(t,r)}(t,e);case"year":return function(t,e){cn(2,arguments);var n=_n(e);return pi(t,12*n)}(t,e);default:return t}},diff:function(t,e,n){switch(n){case"millisecond":return vi(t,e);case"second":return function(t,e,n){cn(2,arguments);var r=vi(t,e)/1e3;return gi(null==n?void 0:n.roundingMethod)(r)}(t,e);case"minute":return function(t,e,n){cn(2,arguments);var r=vi(t,e)/6e4;return gi(null==n?void 0:n.roundingMethod)(r)}(t,e);case"hour":return function(t,e,n){cn(2,arguments);var r=vi(t,e)/36e5;return gi(null==n?void 0:n.roundingMethod)(r)}(t,e);case"day":return wi(t,e);case"week":return function(t,e,n){cn(2,arguments);var r=wi(t,e)/7;return gi(null==n?void 0:n.roundingMethod)(r)}(t,e);case"month":return Si(t,e);case"quarter":return function(t,e,n){cn(2,arguments);var r=Si(t,e)/3;return gi(null==n?void 0:n.roundingMethod)(r)}(t,e);case"year":return function(t,e){cn(2,arguments);var n=ln(t),r=ln(e),i=ki(n,r),o=Math.abs(Mi(n,r));n.setFullYear(1584),r.setFullYear(1584);var a=ki(n,r)===-i,s=i*(o-Number(a));return 0===s?0:s}(t,e);default:return 0}},startOf:function(t,e,n){switch(e){case"second":return function(t){cn(1,arguments);var e=ln(t);return e.setMilliseconds(0),e}(t);case"minute":return function(t){cn(1,arguments);var e=ln(t);return e.setSeconds(0,0),e}(t);case"hour":return function(t){cn(1,arguments);var e=ln(t);return e.setMinutes(0,0,0),e}(t);case"day":return bi(t);case"week":return Ti(t);case"isoWeek":return Ti(t,{weekStartsOn:+n});case"month":return function(t){cn(1,arguments);var e=ln(t);return e.setDate(1),e.setHours(0,0,0,0),e}(t);case"quarter":return function(t){cn(1,arguments);var e=ln(t),n=e.getMonth(),r=n-n%3;return e.setMonth(r,1),e.setHours(0,0,0,0),e}(t);case"year":return function(t){cn(1,arguments);var e=ln(t),n=new Date(0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t);default:return t}},endOf:function(t,e){switch(e){case"second":return function(t){cn(1,arguments);var e=ln(t);return e.setMilliseconds(999),e}(t);case"minute":return function(t){cn(1,arguments);var e=ln(t);return e.setSeconds(59,999),e}(t);case"hour":return function(t){cn(1,arguments);var e=ln(t);return e.setMinutes(59,59,999),e}(t);case"day":return Oi(t);case"week":return Pi(t);case"month":return ji(t);case"quarter":return function(t){cn(1,arguments);var e=ln(t),n=e.getMonth(),r=n-n%3+3;return e.setMonth(r,0),e.setHours(23,59,59,999),e}(t);case"year":return function(t){cn(1,arguments);var e=ln(t),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(23,59,59,999),e}(t);default:return t}}});n(124),n(255),n(159);var Ai=n(68),Di=n.n(Ai),zi=n(0),Li=function(t){return t&&t.enabled&&t.modifierKey},Ri=function(t,e){return t&&e[t+"Key"]},Ii=function(t,e){return t&&!e[t+"Key"]};function Fi(t,e,n){return void 0===t||("string"==typeof t?-1!==t.indexOf(e):"function"==typeof t&&-1!==t({chart:n}).indexOf(e))}function Ni(t,e){return"function"==typeof t&&(t=t({chart:e})),"string"==typeof t?{x:-1!==t.indexOf("x"),y:-1!==t.indexOf("y")}:{x:!1,y:!1}}function Ui(t,e,n){var r=t||{},i=r.mode,o=void 0===i?"xy":i,a=r.scaleMode,s=r.overScaleMode,u=function(t,e){for(var n=t.x,r=t.y,i=e.scales,o=Object.keys(i),a=0;a=s.top&&r<=s.bottom&&n>=s.left&&n<=s.right)return s}return null}(e,n),c=Ni(o,n),l=Ni(a,n);if(s)for(var f=Ni(s,n),h=0,d=["x","y"];h3&&void 0!==arguments[3]&&arguments[3],a=Bi(t.chart),s=t.options,u=Wi(t,n),c=u.minRange,l=void 0===c?0:c,f=Vi(a,t,u,"min",-1/0),h=Vi(a,t,u,"max",1/0);if("pan"===o&&(rh))return!0;var d=o?Math.max(i-r,l):t.max-t.min,p=(d-i+r)/2;return i+=p,(r-=p)h&&(i=h,r=Math.max(h-d,f)),s.min=r,s.max=i,a.updatedScaleLimits[t.id]={min:r,max:i},t.parse(r)!==t.min||t.parse(i)!==t.max}var Yi=function(t){return 0===t||isNaN(t)?0:t<0?Math.min(Math.round(t),-1):Math.max(Math.round(t),1)};var Xi={second:500,minute:3e4,hour:18e5,day:432e5,week:3024e5,month:1296e6,quarter:5184e6,year:157248e5};function Gi(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=t.min,o=t.max,a=t.options,s=a.time&&a.time.round,u=Xi[s]||0,c=t.getValueForPixel(t.getPixelForValue(i+u)-e),l=t.getValueForPixel(t.getPixelForValue(o+u)-e);return!(!isNaN(c)&&!isNaN(l))||qi(t,{min:c,max:l},n,!!r&&"pan")}function Zi(t,e,n){return Gi(t,e,n,!0)}var Ki={category:function(t,e,n,r){var i=Hi(t,e,n);return t.min===t.max&&e<1&&function(t){var e=t.getLabels().length-1;t.min>0&&(t.min-=1),t.maxu&&(o=Math.max(0,o-c),a=1===s?o:o+s,r=0===o),qi(t,{min:o,max:a},n)||r},default:Gi,logarithmic:Zi,timeseries:Zi};function to(t,e){Object(zi.g)(t,(function(n,r){e[r]||delete t[r]}))}function eo(t,e){var n=t.scales,r=e.originalScaleLimits,i=e.updatedScaleLimits;return Object(zi.g)(n,(function(t){(function(t,e,n){var r=t.id,i=t.options,o=i.min,a=i.max;if(!e[r]||!n[r])return!0;var s=n[r];return s.min!==o||s.max!==a})(t,r,i)&&(r[t.id]={min:{scale:t.min,options:t.options.min},max:{scale:t.max,options:t.options.max}})})),to(r,n),to(i,n),r}function no(t,e,n,r){var i=Ki[t.type]||Ki.default;Object(zi.r)(i,[t,e,n,r])}function ro(t,e,n,r,i){var o=Qi[t.type]||Qi.default;Object(zi.r)(o,[t,e,n,r,i])}function io(t){var e=t.chartArea;return{x:(e.left+e.right)/2,y:(e.top+e.bottom)/2}}function oo(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"none",r="number"==typeof e?{x:e,y:e}:e,i=r.x,o=void 0===i?1:i,a=r.y,s=void 0===a?1:a,u=r.focalPoint,c=void 0===u?io(t):u,l=Bi(t),f=l.options,h=f.limits,d=f.zoom;eo(t,l);var p=1!==o,v=1!==s,m=Ui(d,c,t);Object(zi.g)(m||t.scales,(function(t){t.isHorizontal()&&p?no(t,o,c,h):!t.isHorizontal()&&v&&no(t,s,c,h)})),t.update(n),Object(zi.r)(d.onZoom,[{chart:t}])}function ao(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none",i=Bi(t),o=i.options,a=o.limits,s=o.zoom,u=s.mode,c=void 0===u?"xy":u;eo(t,i);var l=Fi(c,"x",t),f=Fi(c,"y",t);Object(zi.g)(t.scales,(function(t){t.isHorizontal()&&l?ro(t,e.x,n.x,a):!t.isHorizontal()&&f&&ro(t,e.y,n.y,a)})),t.update(r),Object(zi.r)(s.onZoom,[{chart:t}])}function so(t){var e=Bi(t),n=1,r=1;return Object(zi.g)(t.scales,(function(t){var i=function(t,e){var n=t.originalScaleLimits[e];if(n){var r=n.min,i=n.max;return Object(zi.Xb)(i.options,i.scale)-Object(zi.Xb)(r.options,r.scale)}}(e,t.id);if(i){var o=Math.round(i/(t.max-t.min)*100)/100;n=Math.min(n,o),r=Math.max(r,o)}})),n<1?n:r}function uo(t,e,n,r){var i=r.panDelta,o=i[t.id]||0;Object(zi.Ub)(o)===Object(zi.Ub)(e)&&(e+=o);var a=Ji[t.type]||Ji.default;Object(zi.r)(a,[t,e,n])?i[t.id]=0:i[t.id]=e}function co(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none",i="number"==typeof e?{x:e,y:e}:e,o=i.x,a=void 0===o?0:o,s=i.y,u=void 0===s?0:s,c=Bi(t),l=c.options,f=l.pan,h=l.limits,d=f||{},p=d.onPan;eo(t,c);var v=0!==a,m=0!==u;Object(zi.g)(n||t.scales,(function(t){t.isHorizontal()&&v?uo(t,a,h,c):!t.isHorizontal()&&m&&uo(t,u,h,c)})),t.update(r),Object(zi.r)(p,[{chart:t}])}function lo(t){var e=Bi(t);eo(t,e);for(var n={},r=0,i=Object.keys(t.scales);r=0?-i.wheel.speed:i.wheel.speed);oo(t,{x:a,y:a,focalPoint:{x:e.clientX-o.left,y:e.clientY-o.top}}),r&&r()}}function wo(t,e,n,r){n&&(Bi(t).handlers[e]=function(t,e){var n;return function(){return clearTimeout(n),n=setTimeout(t,e),e}}((function(){return Object(zi.r)(n,[{chart:t}])}),r))}function _o(t,e){return function(n,r){var i=e.options,o=i.pan,a=i.zoom,s=void 0===a?{}:a;if(!o||!o.enabled)return!1;var u=r&&r.srcEvent;return!u||(!(!e.panning&&"mouse"===r.pointerType&&(Ii(Li(o),u)||Ri(Li(s.drag),u)))||(Object(zi.r)(o.onPanRejected,[{chart:t,event:r}]),!1))}}function ko(t,e,n){if(e.scale){var r=n.center,i=n.pointers,o=1/e.scale*n.scale,a=n.target.getBoundingClientRect(),s=(c=i[0],l=i[1],d=Math.abs(c.clientX-l.clientX),p=Math.abs(c.clientY-l.clientY),(v=d/p)>.3&&v<1.7?f=h=!0:d>p?f=!0:h=!0,{x:f,y:h}),u=e.options.zoom.mode;oo(t,{x:s.x&&Fi(u,"x",t)?o:1,y:s.y&&Fi(u,"y",t)?o:1,focalPoint:{x:r.x-a.left,y:r.y-a.top}}),e.scale=n.scale}var c,l,f,h,d,p,v}function Oo(t,e,n){var r=e.delta;r&&(e.panning=!0,co(t,{x:n.deltaX-r.x,y:n.deltaY-r.y},e.panScales),e.delta={x:n.deltaX,y:n.deltaY})}var jo=new WeakMap;function Co(t,e){var n=Bi(t),r=t.canvas,i=e.pan,o=e.zoom,a=new Di.a.Manager(r);o&&o.pinch.enabled&&(a.add(new Di.a.Pinch),a.on("pinchstart",(function(){return function(t,e){e.options.zoom.pinch.enabled&&(e.scale=1)}(0,n)})),a.on("pinch",(function(e){return ko(t,n,e)})),a.on("pinchend",(function(e){return function(t,e,n){e.scale&&(ko(t,e,n),e.scale=null,Object(zi.r)(e.options.zoom.onZoomComplete,[{chart:t}]))}(t,n,e)}))),i&&i.enabled&&(a.add(new Di.a.Pan({threshold:i.threshold,enable:_o(t,n)})),a.on("panstart",(function(e){return function(t,e,n){var r=e.options.pan,i=r.enabled,o=r.onPanStart,a=r.onPanRejected;if(i){var s=n.target.getBoundingClientRect(),u={x:n.center.x-s.left,y:n.center.y-s.top};if(!1===Object(zi.r)(o,[{chart:t,event:n,point:u}]))return Object(zi.r)(a,[{chart:t,event:n}]);e.panScales=Ui(e.options.pan,u,t),e.delta={x:0,y:0},clearTimeout(e.panEndTimeout),Oo(t,e,n)}}(t,n,e)})),a.on("panmove",(function(e){return Oo(t,n,e)})),a.on("panend",(function(){return function(t,e){e.delta=null,e.panning&&(e.panEndTimeout=setTimeout((function(){return e.panning=!1}),500),Object(zi.r)(e.options.pan.onPanComplete,[{chart:t}]))}(t,n)}))),jo.set(t,a)}function So(t,e,n){var r=n.zoom.drag,i=Bi(t),o=i.dragStart,a=i.dragEnd;if(r.drawTime===e&&a){var s=bo(t,n.zoom.mode,o,a),u=s.left,c=s.top,l=s.width,f=s.height,h=t.ctx;h.save(),h.beginPath(),h.fillStyle=r.backgroundColor||"rgba(225,225,225,0.3)",h.fillRect(u,c,l,f),r.borderWidth>0&&(h.lineWidth=r.borderWidth,h.strokeStyle=r.borderColor||"rgba(225,225,225)",h.strokeRect(u,c,l,f)),h.restore()}}var Mo={id:"zoom",version:"2.0.1",defaults:{pan:{enabled:!1,mode:"xy",threshold:10,modifierKey:null},zoom:{wheel:{enabled:!1,speed:.1,modifierKey:null},drag:{enabled:!1,drawTime:"beforeDatasetsDraw",modifierKey:null},pinch:{enabled:!1},mode:"xy"}},start:function(t,e,n){Bi(t).options=n,Object.prototype.hasOwnProperty.call(n.zoom,"enabled")&&console.warn("The option `zoom.enabled` is no longer supported. Please use `zoom.wheel.enabled`, `zoom.drag.enabled`, or `zoom.pinch.enabled`."),(Object.prototype.hasOwnProperty.call(n.zoom,"overScaleMode")||Object.prototype.hasOwnProperty.call(n.pan,"overScaleMode"))&&console.warn("The option `overScaleMode` is deprecated. Please use `scaleMode` instead (and update `mode` as desired)."),Di.a&&Co(t,n),t.pan=function(e,n,r){return co(t,e,n,r)},t.zoom=function(e,n){return oo(t,e,n)},t.zoomRect=function(e,n,r){return ao(t,e,n,r)},t.zoomScale=function(e,n,r){return function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";eo(t,Bi(t));var i=t.scales[e];qi(i,n,void 0,!0),t.update(r)}(t,e,n,r)},t.resetZoom=function(e){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=Bi(t),r=eo(t,n);Object(zi.g)(t.scales,(function(t){var e=t.options;r[t.id]?(e.min=r[t.id].min.options,e.max=r[t.id].max.options):(delete e.min,delete e.max)})),t.update(e),Object(zi.r)(n.options.zoom.onZoomComplete,[{chart:t}])}(t,e)},t.getZoomLevel=function(){return so(t)},t.getInitialScaleBounds=function(){return lo(t)},t.isZoomedOrPanned=function(){return function(t){for(var e=lo(t),n=0,r=Object.keys(t.scales);n17&&(t=Po(di(t,1),8)),function(t){cn(1,arguments);var e=ln(t),n=e.getDay();return 0===n||6===n}(t=To(t)<9?Po(t,9):hi(t,1))&&(t=Po(function(t){return cn(1,arguments),Ao(ln(t),1)}(t),9)),t}function Wo(t){var e=this.numbers(t),n=(new Date).valueOf();return e.map((function(t){return{x:+(n=Ho(n)),y:t}}))}function Vo(){var t=Ti(hi(Pi((new Date).valueOf()),24));return{min:+t,max:+Pi(t)}}var qo={Utils:r};s.a.mixin({created:function(){this.$chart=this.$chart||{},this.$chart.imports=qo}});n(69);var Yo=n(162),Xo={redirectors:[{base:"/samples",alternative:["basic"]}]},Go=[{},{},function(t){t.Vue.mixin({computed:{$dataBlock:function(){return this.$options.__data__block__}}})},{},{},{},function(t){var e=t.router,n=t.siteData,r=e.options.routes,o=void 0===r?[]:r,a=Xo.redirectors,s=void 0===a?[]:a;function u(t){return o.some((function(e){return e.path.toLowerCase()===t.toLowerCase()}))}function c(t){if(u(t))return t;if(!/\/$/.test(t)){var e=t+"/";if(u(e))return e}if(!/\.html$/.test(t)){var n=t.replace(/\/$/,"")+".html";if(u(n))return n}return null}if(Xo.locales&&n.locales){var l=n.locales,f=Object.keys(l),h=f.map((function(t){return{key:t.replace(/^\/|\/$/,""),lang:l[t].lang}}));"object"!==i(Xo.locales)&&(Xo.locales={});var d=Xo.locales,p=d.fallback,v=d.storage,m=void 0===v||v;p&&f.unshift(p),s.unshift({storage:m,base:"/",alternative:function(){if("undefined"!=typeof window&&window.navigator){var t=window.navigator.languages||[window.navigator.language],e=h.find((function(e){var n=e.lang;return t.includes(n)}));if(e)return e.key}return f}})}var g=s.map((function(t){var e=t.base,n=void 0===e?"/":e,r=t.storage,o=void 0!==r&&r,a=t.alternative,s=!1;if(o)if("object"!==i(o)){var u="string"!=typeof o?"vuepress:redirect:".concat(n):o;s={get:function(){return"undefined"==typeof localStorage?null:localStorage.getItem(u)},set:function(t){"undefined"!=typeof localStorage&&localStorage.setItem(u,t)}}}else o.get&&o.set&&(s=o);return{base:n,storage:s,alternative:a}}));e.beforeEach((function(t,e,n){var r;if(c(t.path))return n();var i,o=Re(g);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a.base,u=void 0===s?"/":s,l=a.storage,f=void 0!==l&&l,h=a.alternative;if(t.path.startsWith(u)){var d=t.path.slice(u.length)||"/";if(f){var p=f.get(a);if(p){var v=c(Object(Yo.join)(u,p,d));if(v){r=v;break}}}if("function"==typeof h&&(h=h(d)),h){"string"==typeof h&&(h=[h]);var m,b=Re(h);try{for(b.s();!(m=b.n()).done;){var y=m.value,x=c(Object(Yo.join)(u,y,d));if(x){r=x;break}}}catch(t){b.e(t)}finally{b.f()}if(r)break}}}}catch(t){o.e(t)}finally{o.f()}n(r)})),e.afterEach((function(t){if(u(t.path)){var e,n=Re(g);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=r.base,o=r.storage;if(o&&t.path.startsWith(i)){var a=t.path.slice(i.length).split("/")[0];a&&o.set(a,r)}}}catch(t){n.e(t)}finally{n.f()}}}))},function(t){var e=t.siteData;t.options;e.themeConfig.sidebarDepth=0,e.themeConfig.sidebar=Object.assign({},e.themeConfig.sidebar,{"/api/":[{title:"API",children:[["/api/","Exports"]],initialOpenGroupIndex:-1,collapsable:!1}]})}],Zo=[];function Ko(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qo(t,e){for(var n=0;n=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function va(){return(va=a(pa().mark((function t(e){var n,r,i,o;return pa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="undefined"!=typeof window&&window.__VUEPRESS_ROUTER_BASE__?window.__VUEPRESS_ROUTER_BASE__:rn.routerBase||rn.base,ua(r=new Kt({base:n,mode:"history",fallback:!1,routes:nn,scrollBehavior:function(t,e,n){return n||(t.hash?!s.a.$vuepress.$get("disableScrollBehavior")&&{selector:decodeURIComponent(t.hash)}:{x:0,y:0})}})),i={},t.prev=4,t.next=7,Promise.all(Go.filter((function(t){return"function"==typeof t})).map((function(t){return t({Vue:s.a,options:i,router:r,siteData:rn,isServer:e})})));case 7:t.next=12;break;case 9:t.prev=9,t.t0=t.catch(4),console.error(t.t0);case 12:return o=new s.a(Object.assign(i,{router:r,render:function(t){return t("div",{attrs:{id:"app"}},[t("RouterView",{ref:"layout"}),t("div",{class:"global-ui"},Zo.map((function(e){return t(e)})))])}})),t.abrupt("return",{app:o,router:r});case 14:case"end":return t.stop()}}),t,null,[[4,9]])})))).apply(this,arguments)}s.a.config.productionTip=!1,s.a.use(Kt),s.a.use(sa),s.a.mixin(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.a;Qt(e),n.$vuepress.$set("siteData",e);var r=t(n.$vuepress.$get("siteData")),i=new r,o=Object.getOwnPropertyDescriptors(Object.getPrototypeOf(i)),a={};return Object.keys(o).reduce((function(t,e){return e.startsWith("$")&&(t[e]=o[e].get),t}),a),{computed:a}}((function(t){return function(){function e(){Ko(this,e)}return Jo(e,[{key:"setPage",value:function(t){this.__page=t}},{key:"$site",get:function(){return t}},{key:"$themeConfig",get:function(){return this.$site.themeConfig}},{key:"$frontmatter",get:function(){return this.$page.frontmatter}},{key:"$localeConfig",get:function(){var t,e,n=this.$site.locales,r=void 0===n?{}:n;for(var i in r)"/"===i?e=r[i]:0===this.$page.path.indexOf(i)&&(t=r[i]);return t||e||{}}},{key:"$siteTitle",get:function(){return this.$localeConfig.title||this.$site.title||""}},{key:"$canonicalUrl",get:function(){var t=this.$page.frontmatter.canonicalUrl;return"string"==typeof t&&t}},{key:"$title",get:function(){var t=this.$page,e=this.$page.frontmatter.metaTitle;if("string"==typeof e)return e;var n=this.$siteTitle,r=t.frontmatter.home?null:t.frontmatter.title||t.title;return n?r?r+" | "+n:n:r||"VuePress"}},{key:"$description",get:function(){var t=function(t){if(t){var e=t.filter((function(t){return"description"===t.name}))[0];if(e)return e.content}}(this.$page.frontmatter.meta);return t||(this.$page.frontmatter.description||this.$localeConfig.description||this.$site.description||"")}},{key:"$lang",get:function(){return this.$page.frontmatter.lang||this.$localeConfig.lang||"en-US"}},{key:"$localePath",get:function(){return this.$localeConfig.path||"/"}},{key:"$themeLocaleConfig",get:function(){return(this.$site.themeConfig.locales||{})[this.$localePath]||{}}},{key:"$page",get:function(){return this.__page?this.__page:function(t,e){for(var n=0;n=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=s.options&&s.options.weekStartsOn,h=null==f?0:_n(f),d=null==a.weekStartsOn?h:_n(a.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===o)return""===i?ln(n):new Date(NaN);var p,v={firstWeekContainsDate:l,weekStartsOn:d,locale:s},m=[{priority:10,subPriority:-1,set:Er,index:0}],g=o.match(Cr).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,Mn[e])(t,s.formatLong,v):t})).join("").match(jr),b=[];for(p=0;p0&&Tr.test(i))return new Date(NaN);var S=m.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,n){return n.indexOf(t)===e})).map((function(t){return m.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),M=ln(n);if(isNaN(M))return new Date(NaN);var T=On(M,Tn(M)),P={};for(p=0;p=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=o.options&&o.options.weekStartsOn,l=null==c?0:_n(c),f=null==i.weekStartsOn?l:_n(i.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var h=ln(t);if(!Yr(h))throw new RangeError("Invalid time value");var d=Tn(h),p=On(h,d),v={firstWeekContainsDate:u,weekStartsOn:f,locale:o,_originalDate:h},m=r.match(si).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,Mn[e])(t,o.formatLong,v):t})).join("").match(ai).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return fi(n);var a=oi[r];if(a)return!i.useAdditionalWeekYearTokens&&Dn(n)&&zn(n,e,t),!i.useAdditionalDayOfYearTokens&&An(n)&&zn(n,e,t),a(p,n,o.localize,v);if(r.match(li))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("");return m}(t,e,this.options)},add:function(t,e,n){switch(n){case"millisecond":return kn(t,e);case"second":return function(t,e){cn(2,arguments);var n=_n(e);return kn(t,1e3*n)}(t,e);case"minute":return function(t,e){cn(2,arguments);var n=_n(e);return kn(t,6e4*n)}(t,e);case"hour":return hi(t,e);case"day":return di(t,e);case"week":return function(t,e){cn(2,arguments);var n=_n(e),r=7*n;return di(t,r)}(t,e);case"month":return pi(t,e);case"quarter":return function(t,e){cn(2,arguments);var n=_n(e),r=3*n;return pi(t,r)}(t,e);case"year":return function(t,e){cn(2,arguments);var n=_n(e);return pi(t,12*n)}(t,e);default:return t}},diff:function(t,e,n){switch(n){case"millisecond":return vi(t,e);case"second":return function(t,e,n){cn(2,arguments);var r=vi(t,e)/1e3;return gi(null==n?void 0:n.roundingMethod)(r)}(t,e);case"minute":return function(t,e,n){cn(2,arguments);var r=vi(t,e)/6e4;return gi(null==n?void 0:n.roundingMethod)(r)}(t,e);case"hour":return function(t,e,n){cn(2,arguments);var r=vi(t,e)/36e5;return gi(null==n?void 0:n.roundingMethod)(r)}(t,e);case"day":return wi(t,e);case"week":return function(t,e,n){cn(2,arguments);var r=wi(t,e)/7;return gi(null==n?void 0:n.roundingMethod)(r)}(t,e);case"month":return Si(t,e);case"quarter":return function(t,e,n){cn(2,arguments);var r=Si(t,e)/3;return gi(null==n?void 0:n.roundingMethod)(r)}(t,e);case"year":return function(t,e){cn(2,arguments);var n=ln(t),r=ln(e),i=ki(n,r),o=Math.abs(Mi(n,r));n.setFullYear(1584),r.setFullYear(1584);var a=ki(n,r)===-i,s=i*(o-Number(a));return 0===s?0:s}(t,e);default:return 0}},startOf:function(t,e,n){switch(e){case"second":return function(t){cn(1,arguments);var e=ln(t);return e.setMilliseconds(0),e}(t);case"minute":return function(t){cn(1,arguments);var e=ln(t);return e.setSeconds(0,0),e}(t);case"hour":return function(t){cn(1,arguments);var e=ln(t);return e.setMinutes(0,0,0),e}(t);case"day":return bi(t);case"week":return Ti(t);case"isoWeek":return Ti(t,{weekStartsOn:+n});case"month":return function(t){cn(1,arguments);var e=ln(t);return e.setDate(1),e.setHours(0,0,0,0),e}(t);case"quarter":return function(t){cn(1,arguments);var e=ln(t),n=e.getMonth(),r=n-n%3;return e.setMonth(r,1),e.setHours(0,0,0,0),e}(t);case"year":return function(t){cn(1,arguments);var e=ln(t),n=new Date(0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t);default:return t}},endOf:function(t,e){switch(e){case"second":return function(t){cn(1,arguments);var e=ln(t);return e.setMilliseconds(999),e}(t);case"minute":return function(t){cn(1,arguments);var e=ln(t);return e.setSeconds(59,999),e}(t);case"hour":return function(t){cn(1,arguments);var e=ln(t);return e.setMinutes(59,59,999),e}(t);case"day":return Oi(t);case"week":return Pi(t);case"month":return ji(t);case"quarter":return function(t){cn(1,arguments);var e=ln(t),n=e.getMonth(),r=n-n%3+3;return e.setMonth(r,0),e.setHours(23,59,59,999),e}(t);case"year":return function(t){cn(1,arguments);var e=ln(t),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(23,59,59,999),e}(t);default:return t}}});n(124),n(255),n(159);var Ai=n(68),Di=n.n(Ai),zi=n(0),Li=function(t){return t&&t.enabled&&t.modifierKey},Ri=function(t,e){return t&&e[t+"Key"]},Ii=function(t,e){return t&&!e[t+"Key"]};function Fi(t,e,n){return void 0===t||("string"==typeof t?-1!==t.indexOf(e):"function"==typeof t&&-1!==t({chart:n}).indexOf(e))}function Ni(t,e){return"function"==typeof t&&(t=t({chart:e})),"string"==typeof t?{x:-1!==t.indexOf("x"),y:-1!==t.indexOf("y")}:{x:!1,y:!1}}function Ui(t,e,n){var r=t||{},i=r.mode,o=void 0===i?"xy":i,a=r.scaleMode,s=r.overScaleMode,u=function(t,e){for(var n=t.x,r=t.y,i=e.scales,o=Object.keys(i),a=0;a=s.top&&r<=s.bottom&&n>=s.left&&n<=s.right)return s}return null}(e,n),c=Ni(o,n),l=Ni(a,n);if(s)for(var f=Ni(s,n),h=0,d=["x","y"];h3&&void 0!==arguments[3]&&arguments[3],a=Bi(t.chart),s=t.options,u=Wi(t,n),c=u.minRange,l=void 0===c?0:c,f=Vi(a,t,u,"min",-1/0),h=Vi(a,t,u,"max",1/0);if("pan"===o&&(rh))return!0;var d=o?Math.max(i-r,l):t.max-t.min,p=(d-i+r)/2;return i+=p,(r-=p)h&&(i=h,r=Math.max(h-d,f)),s.min=r,s.max=i,a.updatedScaleLimits[t.id]={min:r,max:i},t.parse(r)!==t.min||t.parse(i)!==t.max}var Yi=function(t){return 0===t||isNaN(t)?0:t<0?Math.min(Math.round(t),-1):Math.max(Math.round(t),1)};var Xi={second:500,minute:3e4,hour:18e5,day:432e5,week:3024e5,month:1296e6,quarter:5184e6,year:157248e5};function Gi(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=t.min,o=t.max,a=t.options,s=a.time&&a.time.round,u=Xi[s]||0,c=t.getValueForPixel(t.getPixelForValue(i+u)-e),l=t.getValueForPixel(t.getPixelForValue(o+u)-e);return!(!isNaN(c)&&!isNaN(l))||qi(t,{min:c,max:l},n,!!r&&"pan")}function Zi(t,e,n){return Gi(t,e,n,!0)}var Ki={category:function(t,e,n,r){var i=Hi(t,e,n);return t.min===t.max&&e<1&&function(t){var e=t.getLabels().length-1;t.min>0&&(t.min-=1),t.maxu&&(o=Math.max(0,o-c),a=1===s?o:o+s,r=0===o),qi(t,{min:o,max:a},n)||r},default:Gi,logarithmic:Zi,timeseries:Zi};function to(t,e){Object(zi.g)(t,(function(n,r){e[r]||delete t[r]}))}function eo(t,e){var n=t.scales,r=e.originalScaleLimits,i=e.updatedScaleLimits;return Object(zi.g)(n,(function(t){(function(t,e,n){var r=t.id,i=t.options,o=i.min,a=i.max;if(!e[r]||!n[r])return!0;var s=n[r];return s.min!==o||s.max!==a})(t,r,i)&&(r[t.id]={min:{scale:t.min,options:t.options.min},max:{scale:t.max,options:t.options.max}})})),to(r,n),to(i,n),r}function no(t,e,n,r){var i=Ki[t.type]||Ki.default;Object(zi.r)(i,[t,e,n,r])}function ro(t,e,n,r,i){var o=Qi[t.type]||Qi.default;Object(zi.r)(o,[t,e,n,r,i])}function io(t){var e=t.chartArea;return{x:(e.left+e.right)/2,y:(e.top+e.bottom)/2}}function oo(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"none",r="number"==typeof e?{x:e,y:e}:e,i=r.x,o=void 0===i?1:i,a=r.y,s=void 0===a?1:a,u=r.focalPoint,c=void 0===u?io(t):u,l=Bi(t),f=l.options,h=f.limits,d=f.zoom;eo(t,l);var p=1!==o,v=1!==s,m=Ui(d,c,t);Object(zi.g)(m||t.scales,(function(t){t.isHorizontal()&&p?no(t,o,c,h):!t.isHorizontal()&&v&&no(t,s,c,h)})),t.update(n),Object(zi.r)(d.onZoom,[{chart:t}])}function ao(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none",i=Bi(t),o=i.options,a=o.limits,s=o.zoom,u=s.mode,c=void 0===u?"xy":u;eo(t,i);var l=Fi(c,"x",t),f=Fi(c,"y",t);Object(zi.g)(t.scales,(function(t){t.isHorizontal()&&l?ro(t,e.x,n.x,a):!t.isHorizontal()&&f&&ro(t,e.y,n.y,a)})),t.update(r),Object(zi.r)(s.onZoom,[{chart:t}])}function so(t){var e=Bi(t),n=1,r=1;return Object(zi.g)(t.scales,(function(t){var i=function(t,e){var n=t.originalScaleLimits[e];if(n){var r=n.min,i=n.max;return Object(zi.Xb)(i.options,i.scale)-Object(zi.Xb)(r.options,r.scale)}}(e,t.id);if(i){var o=Math.round(i/(t.max-t.min)*100)/100;n=Math.min(n,o),r=Math.max(r,o)}})),n<1?n:r}function uo(t,e,n,r){var i=r.panDelta,o=i[t.id]||0;Object(zi.Ub)(o)===Object(zi.Ub)(e)&&(e+=o);var a=Ji[t.type]||Ji.default;Object(zi.r)(a,[t,e,n])?i[t.id]=0:i[t.id]=e}function co(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none",i="number"==typeof e?{x:e,y:e}:e,o=i.x,a=void 0===o?0:o,s=i.y,u=void 0===s?0:s,c=Bi(t),l=c.options,f=l.pan,h=l.limits,d=f||{},p=d.onPan;eo(t,c);var v=0!==a,m=0!==u;Object(zi.g)(n||t.scales,(function(t){t.isHorizontal()&&v?uo(t,a,h,c):!t.isHorizontal()&&m&&uo(t,u,h,c)})),t.update(r),Object(zi.r)(p,[{chart:t}])}function lo(t){var e=Bi(t);eo(t,e);for(var n={},r=0,i=Object.keys(t.scales);r=0?-i.wheel.speed:i.wheel.speed);oo(t,{x:a,y:a,focalPoint:{x:e.clientX-o.left,y:e.clientY-o.top}}),r&&r()}}function wo(t,e,n,r){n&&(Bi(t).handlers[e]=function(t,e){var n;return function(){return clearTimeout(n),n=setTimeout(t,e),e}}((function(){return Object(zi.r)(n,[{chart:t}])}),r))}function _o(t,e){return function(n,r){var i=e.options,o=i.pan,a=i.zoom,s=void 0===a?{}:a;if(!o||!o.enabled)return!1;var u=r&&r.srcEvent;return!u||(!(!e.panning&&"mouse"===r.pointerType&&(Ii(Li(o),u)||Ri(Li(s.drag),u)))||(Object(zi.r)(o.onPanRejected,[{chart:t,event:r}]),!1))}}function ko(t,e,n){if(e.scale){var r=n.center,i=n.pointers,o=1/e.scale*n.scale,a=n.target.getBoundingClientRect(),s=(c=i[0],l=i[1],d=Math.abs(c.clientX-l.clientX),p=Math.abs(c.clientY-l.clientY),(v=d/p)>.3&&v<1.7?f=h=!0:d>p?f=!0:h=!0,{x:f,y:h}),u=e.options.zoom.mode;oo(t,{x:s.x&&Fi(u,"x",t)?o:1,y:s.y&&Fi(u,"y",t)?o:1,focalPoint:{x:r.x-a.left,y:r.y-a.top}}),e.scale=n.scale}var c,l,f,h,d,p,v}function Oo(t,e,n){var r=e.delta;r&&(e.panning=!0,co(t,{x:n.deltaX-r.x,y:n.deltaY-r.y},e.panScales),e.delta={x:n.deltaX,y:n.deltaY})}var jo=new WeakMap;function Co(t,e){var n=Bi(t),r=t.canvas,i=e.pan,o=e.zoom,a=new Di.a.Manager(r);o&&o.pinch.enabled&&(a.add(new Di.a.Pinch),a.on("pinchstart",(function(){return function(t,e){e.options.zoom.pinch.enabled&&(e.scale=1)}(0,n)})),a.on("pinch",(function(e){return ko(t,n,e)})),a.on("pinchend",(function(e){return function(t,e,n){e.scale&&(ko(t,e,n),e.scale=null,Object(zi.r)(e.options.zoom.onZoomComplete,[{chart:t}]))}(t,n,e)}))),i&&i.enabled&&(a.add(new Di.a.Pan({threshold:i.threshold,enable:_o(t,n)})),a.on("panstart",(function(e){return function(t,e,n){var r=e.options.pan,i=r.enabled,o=r.onPanStart,a=r.onPanRejected;if(i){var s=n.target.getBoundingClientRect(),u={x:n.center.x-s.left,y:n.center.y-s.top};if(!1===Object(zi.r)(o,[{chart:t,event:n,point:u}]))return Object(zi.r)(a,[{chart:t,event:n}]);e.panScales=Ui(e.options.pan,u,t),e.delta={x:0,y:0},clearTimeout(e.panEndTimeout),Oo(t,e,n)}}(t,n,e)})),a.on("panmove",(function(e){return Oo(t,n,e)})),a.on("panend",(function(){return function(t,e){e.delta=null,e.panning&&(e.panEndTimeout=setTimeout((function(){return e.panning=!1}),500),Object(zi.r)(e.options.pan.onPanComplete,[{chart:t}]))}(t,n)}))),jo.set(t,a)}function So(t,e,n){var r=n.zoom.drag,i=Bi(t),o=i.dragStart,a=i.dragEnd;if(r.drawTime===e&&a){var s=bo(t,n.zoom.mode,o,a),u=s.left,c=s.top,l=s.width,f=s.height,h=t.ctx;h.save(),h.beginPath(),h.fillStyle=r.backgroundColor||"rgba(225,225,225,0.3)",h.fillRect(u,c,l,f),r.borderWidth>0&&(h.lineWidth=r.borderWidth,h.strokeStyle=r.borderColor||"rgba(225,225,225)",h.strokeRect(u,c,l,f)),h.restore()}}var Mo={id:"zoom",version:"2.0.1",defaults:{pan:{enabled:!1,mode:"xy",threshold:10,modifierKey:null},zoom:{wheel:{enabled:!1,speed:.1,modifierKey:null},drag:{enabled:!1,drawTime:"beforeDatasetsDraw",modifierKey:null},pinch:{enabled:!1},mode:"xy"}},start:function(t,e,n){Bi(t).options=n,Object.prototype.hasOwnProperty.call(n.zoom,"enabled")&&console.warn("The option `zoom.enabled` is no longer supported. Please use `zoom.wheel.enabled`, `zoom.drag.enabled`, or `zoom.pinch.enabled`."),(Object.prototype.hasOwnProperty.call(n.zoom,"overScaleMode")||Object.prototype.hasOwnProperty.call(n.pan,"overScaleMode"))&&console.warn("The option `overScaleMode` is deprecated. Please use `scaleMode` instead (and update `mode` as desired)."),Di.a&&Co(t,n),t.pan=function(e,n,r){return co(t,e,n,r)},t.zoom=function(e,n){return oo(t,e,n)},t.zoomRect=function(e,n,r){return ao(t,e,n,r)},t.zoomScale=function(e,n,r){return function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";eo(t,Bi(t));var i=t.scales[e];qi(i,n,void 0,!0),t.update(r)}(t,e,n,r)},t.resetZoom=function(e){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=Bi(t),r=eo(t,n);Object(zi.g)(t.scales,(function(t){var e=t.options;r[t.id]?(e.min=r[t.id].min.options,e.max=r[t.id].max.options):(delete e.min,delete e.max)})),t.update(e),Object(zi.r)(n.options.zoom.onZoomComplete,[{chart:t}])}(t,e)},t.getZoomLevel=function(){return so(t)},t.getInitialScaleBounds=function(){return lo(t)},t.isZoomedOrPanned=function(){return function(t){for(var e=lo(t),n=0,r=Object.keys(t.scales);n17&&(t=Po(di(t,1),8)),function(t){cn(1,arguments);var e=ln(t),n=e.getDay();return 0===n||6===n}(t=To(t)<9?Po(t,9):hi(t,1))&&(t=Po(function(t){return cn(1,arguments),Ao(ln(t),1)}(t),9)),t}function Wo(t){var e=this.numbers(t),n=(new Date).valueOf();return e.map((function(t){return{x:+(n=Ho(n)),y:t}}))}function Vo(){var t=Ti(hi(Pi((new Date).valueOf()),24));return{min:+t,max:+Pi(t)}}var qo={Utils:r};s.a.mixin({created:function(){this.$chart=this.$chart||{},this.$chart.imports=qo}});n(69);var Yo=n(162),Xo={redirectors:[{base:"/samples",alternative:["basic"]}]},Go=[{},{},function(t){t.Vue.mixin({computed:{$dataBlock:function(){return this.$options.__data__block__}}})},{},{},{},function(t){var e=t.router,n=t.siteData,r=e.options.routes,o=void 0===r?[]:r,a=Xo.redirectors,s=void 0===a?[]:a;function u(t){return o.some((function(e){return e.path.toLowerCase()===t.toLowerCase()}))}function c(t){if(u(t))return t;if(!/\/$/.test(t)){var e=t+"/";if(u(e))return e}if(!/\.html$/.test(t)){var n=t.replace(/\/$/,"")+".html";if(u(n))return n}return null}if(Xo.locales&&n.locales){var l=n.locales,f=Object.keys(l),h=f.map((function(t){return{key:t.replace(/^\/|\/$/,""),lang:l[t].lang}}));"object"!==i(Xo.locales)&&(Xo.locales={});var d=Xo.locales,p=d.fallback,v=d.storage,m=void 0===v||v;p&&f.unshift(p),s.unshift({storage:m,base:"/",alternative:function(){if("undefined"!=typeof window&&window.navigator){var t=window.navigator.languages||[window.navigator.language],e=h.find((function(e){var n=e.lang;return t.includes(n)}));if(e)return e.key}return f}})}var g=s.map((function(t){var e=t.base,n=void 0===e?"/":e,r=t.storage,o=void 0!==r&&r,a=t.alternative,s=!1;if(o)if("object"!==i(o)){var u="string"!=typeof o?"vuepress:redirect:".concat(n):o;s={get:function(){return"undefined"==typeof localStorage?null:localStorage.getItem(u)},set:function(t){"undefined"!=typeof localStorage&&localStorage.setItem(u,t)}}}else o.get&&o.set&&(s=o);return{base:n,storage:s,alternative:a}}));e.beforeEach((function(t,e,n){var r;if(c(t.path))return n();var i,o=Re(g);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a.base,u=void 0===s?"/":s,l=a.storage,f=void 0!==l&&l,h=a.alternative;if(t.path.startsWith(u)){var d=t.path.slice(u.length)||"/";if(f){var p=f.get(a);if(p){var v=c(Object(Yo.join)(u,p,d));if(v){r=v;break}}}if("function"==typeof h&&(h=h(d)),h){"string"==typeof h&&(h=[h]);var m,b=Re(h);try{for(b.s();!(m=b.n()).done;){var y=m.value,x=c(Object(Yo.join)(u,y,d));if(x){r=x;break}}}catch(t){b.e(t)}finally{b.f()}if(r)break}}}}catch(t){o.e(t)}finally{o.f()}n(r)})),e.afterEach((function(t){if(u(t.path)){var e,n=Re(g);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=r.base,o=r.storage;if(o&&t.path.startsWith(i)){var a=t.path.slice(i.length).split("/")[0];a&&o.set(a,r)}}}catch(t){n.e(t)}finally{n.f()}}}))},function(t){var e=t.siteData;t.options;e.themeConfig.sidebarDepth=0,e.themeConfig.sidebar=Object.assign({},e.themeConfig.sidebar,{"/api/":[{title:"API",children:[["/api/","Exports"]],initialOpenGroupIndex:-1,collapsable:!1}]})}],Zo=[];function Ko(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qo(t,e){for(var n=0;n=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function va(){return(va=a(pa().mark((function t(e){var n,r,i,o;return pa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="undefined"!=typeof window&&window.__VUEPRESS_ROUTER_BASE__?window.__VUEPRESS_ROUTER_BASE__:rn.routerBase||rn.base,ua(r=new Kt({base:n,mode:"history",fallback:!1,routes:nn,scrollBehavior:function(t,e,n){return n||(t.hash?!s.a.$vuepress.$get("disableScrollBehavior")&&{selector:decodeURIComponent(t.hash)}:{x:0,y:0})}})),i={},t.prev=4,t.next=7,Promise.all(Go.filter((function(t){return"function"==typeof t})).map((function(t){return t({Vue:s.a,options:i,router:r,siteData:rn,isServer:e})})));case 7:t.next=12;break;case 9:t.prev=9,t.t0=t.catch(4),console.error(t.t0);case 12:return o=new s.a(Object.assign(i,{router:r,render:function(t){return t("div",{attrs:{id:"app"}},[t("RouterView",{ref:"layout"}),t("div",{class:"global-ui"},Zo.map((function(e){return t(e)})))])}})),t.abrupt("return",{app:o,router:r});case 14:case"end":return t.stop()}}),t,null,[[4,9]])})))).apply(this,arguments)}s.a.config.productionTip=!1,s.a.use(Kt),s.a.use(sa),s.a.mixin(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.a;Qt(e),n.$vuepress.$set("siteData",e);var r=t(n.$vuepress.$get("siteData")),i=new r,o=Object.getOwnPropertyDescriptors(Object.getPrototypeOf(i)),a={};return Object.keys(o).reduce((function(t,e){return e.startsWith("$")&&(t[e]=o[e].get),t}),a),{computed:a}}((function(t){return function(){function e(){Ko(this,e)}return Jo(e,[{key:"setPage",value:function(t){this.__page=t}},{key:"$site",get:function(){return t}},{key:"$themeConfig",get:function(){return this.$site.themeConfig}},{key:"$frontmatter",get:function(){return this.$page.frontmatter}},{key:"$localeConfig",get:function(){var t,e,n=this.$site.locales,r=void 0===n?{}:n;for(var i in r)"/"===i?e=r[i]:0===this.$page.path.indexOf(i)&&(t=r[i]);return t||e||{}}},{key:"$siteTitle",get:function(){return this.$localeConfig.title||this.$site.title||""}},{key:"$canonicalUrl",get:function(){var t=this.$page.frontmatter.canonicalUrl;return"string"==typeof t&&t}},{key:"$title",get:function(){var t=this.$page,e=this.$page.frontmatter.metaTitle;if("string"==typeof e)return e;var n=this.$siteTitle,r=t.frontmatter.home?null:t.frontmatter.title||t.title;return n?r?r+" | "+n:n:r||"VuePress"}},{key:"$description",get:function(){var t=function(t){if(t){var e=t.filter((function(t){return"description"===t.name}))[0];if(e)return e.content}}(this.$page.frontmatter.meta);return t||(this.$page.frontmatter.description||this.$localeConfig.description||this.$site.description||"")}},{key:"$lang",get:function(){return this.$page.frontmatter.lang||this.$localeConfig.lang||"en-US"}},{key:"$localePath",get:function(){return this.$localeConfig.path||"/"}},{key:"$themeLocaleConfig",get:function(){return(this.$site.themeConfig.locales||{})[this.$localePath]||{}}},{key:"$page",get:function(){return this.__page?this.__page:function(t,e){for(var n=0;n - + @@ -58,7 +58,7 @@ } } } -
Last Updated: 11/14/2024, 7:07:28 PM
Last Updated: 11/14/2024, 7:07:50 PM
- + diff --git a/master/guide/developers.html b/master/guide/developers.html index b2682ae5..2f5c39ce 100644 --- a/master/guide/developers.html +++ b/master/guide/developers.html @@ -7,7 +7,7 @@ - + @@ -52,11 +52,11 @@ zoomPlugin.panFunctions.myScale = (scale, delta, limits) => false; // zoomRectFunctions can normally be omitted, since zooming by specific pixel // coordinates rarely needs special handling. -

The zoom, zoomRect, and pan functions take the following arguments:

Name Type For Description
scale Scale Zoom, Pan The custom scale instance (usually derived from Chart.Scale)
zoom number Zoom The zoom fraction; 1.0 is unzoomed, 0.5 means zoomed in to 50% of the original area, etc.
center {x, y} Zoom Pixel coordinates of the center of the zoom operation. {x: 0, y: 0} is the upper left corner of the chart's canvas.
from number ZoomRect Pixel coordinate of the start of the zoomRect operation.
to number ZoomRect Pixel coordinate of the end of the zoomRect operation.
delta number Pan Pixel amount to pan by
limits Limits Zoom, Pan Zoom and pan limits (from chart options)

For examples, see chartjs-plugin-zoom's default zoomFunctions, zoomRectFunctions, and panFunctions handling for standard Chart.js axes (opens new window).

Last Updated: 11/14/2024, 7:07:28 PM

The zoom, zoomRect, and pan functions take the following arguments:

Name Type For Description
scale Scale Zoom, Pan The custom scale instance (usually derived from Chart.Scale)
zoom number Zoom The zoom fraction; 1.0 is unzoomed, 0.5 means zoomed in to 50% of the original area, etc.
center {x, y} Zoom Pixel coordinates of the center of the zoom operation. {x: 0, y: 0} is the upper left corner of the chart's canvas.
from number ZoomRect Pixel coordinate of the start of the zoomRect operation.
to number ZoomRect Pixel coordinate of the end of the zoomRect operation.
delta number Pan Pixel amount to pan by
limits Limits Zoom, Pan Zoom and pan limits (from chart options)

For examples, see chartjs-plugin-zoom's default zoomFunctions, zoomRectFunctions, and panFunctions handling for standard Chart.js axes (opens new window).

Last Updated: 11/14/2024, 7:07:50 PM
- + diff --git a/master/guide/index.html b/master/guide/index.html index 345ca08a..c31277b7 100644 --- a/master/guide/index.html +++ b/master/guide/index.html @@ -7,7 +7,7 @@ - + @@ -38,11 +38,11 @@ (opens new window)

# Getting Started

A zoom and pan plugin for Chart.js >= 3.0.0

Panning can be done via the mouse or with a finger. Zooming is done via the mouse wheel or via a pinch gesture. Hammer.js (opens new window) is used for gesture recognition.

# Installation

> npm install chartjs-plugin-zoom
 

TIP

Important Note: For Chart.js 2.6.0 to 2.9.x support, use version 0.7.7 of this plugin (opens new window). -Documentation for v0.7.7 can be found on GitHub (opens new window).

Last Updated: 11/14/2024, 7:07:28 PM
Last Updated: 11/14/2024, 7:07:50 PM
- + diff --git a/master/guide/integration.html b/master/guide/integration.html index 64772b61..c673dc21 100644 --- a/master/guide/integration.html +++ b/master/guide/integration.html @@ -7,7 +7,7 @@ - + @@ -44,7 +44,7 @@

# Bundlers (Webpack, Rollup, etc.)

import { Chart } from 'chart.js';
 import zoomPlugin from 'chartjs-plugin-zoom';
 Chart.register(zoomPlugin);
-
Last Updated: 11/14/2024, 7:07:28 PM
Last Updated: 11/14/2024, 7:07:50 PM
- + diff --git a/master/guide/options.html b/master/guide/options.html index c2efa543..79b66c52 100644 --- a/master/guide/options.html +++ b/master/guide/options.html @@ -7,7 +7,7 @@ - + @@ -79,7 +79,7 @@ } } }); -

# Scale Limits

Name Type Description
min number | 'original' Minimum allowed value for scale.min
max number | 'original' Maximum allowed value for scale.max
minRange number Minimum allowed range (max - min). This defines the max zoom level.

You may use the keyword 'original' in place of a numeric limit to instruct chartjs-plugin-zoom to use whatever limits the scale had when the chart was first displayed.

Last Updated: 11/14/2024, 7:07:28 PM

# Scale Limits

Name Type Description
min number | 'original' Minimum allowed value for scale.min
max number | 'original' Maximum allowed value for scale.max
minRange number Minimum allowed range (max - min). This defines the max zoom level.

You may use the keyword 'original' in place of a numeric limit to instruct chartjs-plugin-zoom to use whatever limits the scale had when the chart was first displayed.

Last Updated: 11/14/2024, 7:07:50 PM
- + diff --git a/master/guide/usage.html b/master/guide/usage.html index 1e4e9148..7335f906 100644 --- a/master/guide/usage.html +++ b/master/guide/usage.html @@ -7,7 +7,7 @@ - + @@ -91,7 +91,7 @@ } } } -};
Last Updated: 11/14/2024, 7:07:28 PM
Last Updated: 11/14/2024, 7:07:50 PM
- + diff --git a/master/index.html b/master/index.html index 45488753..994b7e16 100644 --- a/master/index.html +++ b/master/index.html @@ -7,7 +7,7 @@ - + @@ -44,6 +44,6 @@

- + diff --git a/master/samples/api.html b/master/samples/api.html index 2cea49a2..a0eeb4bb 100644 --- a/master/samples/api.html +++ b/master/samples/api.html @@ -7,7 +7,7 @@ - + @@ -225,7 +225,7 @@ position: 'right', }, }; -Object.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));
Last Updated: 11/14/2024, 7:07:28 PM
Last Updated: 11/14/2024, 7:07:50 PM
- + diff --git a/master/samples/basic.html b/master/samples/basic.html index 7a916d93..fcdaf46f 100644 --- a/master/samples/basic.html +++ b/master/samples/basic.html @@ -7,7 +7,7 @@ - + @@ -207,11 +207,11 @@ position: 'right', }, }; -Object.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));
Last Updated: 11/14/2024, 7:07:28 PM
Last Updated: 11/14/2024, 7:07:50 PM
- + diff --git a/master/samples/drag/category.html b/master/samples/drag/category.html index 2007a9ee..8400d878 100644 --- a/master/samples/drag/category.html +++ b/master/samples/drag/category.html @@ -7,7 +7,7 @@ - + @@ -167,7 +167,7 @@ }, }, }; -Object.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));
Last Updated: 11/14/2024, 7:07:28 PM
Last Updated: 11/14/2024, 7:07:50 PM
- + diff --git a/master/samples/drag/linear.html b/master/samples/drag/linear.html index 47998b1b..1ee36cbe 100644 --- a/master/samples/drag/linear.html +++ b/master/samples/drag/linear.html @@ -7,7 +7,7 @@ - + @@ -185,7 +185,7 @@ position: 'right', }, }; -Object.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));
Last Updated: 11/14/2024, 7:07:28 PM
Last Updated: 11/14/2024, 7:07:50 PM
- + diff --git a/master/samples/drag/log.html b/master/samples/drag/log.html index 8c2703d3..88523cf1 100644 --- a/master/samples/drag/log.html +++ b/master/samples/drag/log.html @@ -7,7 +7,7 @@ - + @@ -325,7 +325,7 @@ y: -3.596e1 }] }] -};
Last Updated: 11/14/2024, 7:07:28 PM
Last Updated: 11/14/2024, 7:07:50 PM
- + diff --git a/master/samples/drag/time.html b/master/samples/drag/time.html index d57221e5..744ab897 100644 --- a/master/samples/drag/time.html +++ b/master/samples/drag/time.html @@ -7,7 +7,7 @@ - + @@ -183,7 +183,7 @@ text: (ctx) => ctx.scale.axis + ' axis', } }, -};
Last Updated: 11/14/2024, 7:07:28 PM
Last Updated: 11/14/2024, 7:07:50 PM
- + diff --git a/master/samples/drag/timeseries.html b/master/samples/drag/timeseries.html index 483a29bb..69529400 100644 --- a/master/samples/drag/timeseries.html +++ b/master/samples/drag/timeseries.html @@ -7,7 +7,7 @@ - + @@ -189,7 +189,7 @@ text: (ctx) => ctx.scale.axis + ' axis', } }, -};
Last Updated: 11/14/2024, 7:07:28 PM
Last Updated: 11/14/2024, 7:07:50 PM
- + diff --git a/master/samples/fetch-data.html b/master/samples/fetch-data.html index f1c10044..5d85b622 100644 --- a/master/samples/fetch-data.html +++ b/master/samples/fetch-data.html @@ -7,7 +7,7 @@ - + @@ -259,7 +259,7 @@ type: 'linear', position: 'left', }, -};
Last Updated: 11/14/2024, 7:07:28 PM
Last Updated: 11/14/2024, 7:07:50 PM
- + diff --git a/master/samples/pan-region.html b/master/samples/pan-region.html index 6de94631..2dc4435d 100644 --- a/master/samples/pan-region.html +++ b/master/samples/pan-region.html @@ -7,7 +7,7 @@ - + @@ -217,11 +217,11 @@ ctx.strokeRect(left + width * 0.25, top + height * 0.25, width / 2, height / 2); ctx.restore(); } -};
Last Updated: 11/14/2024, 7:07:28 PM
Last Updated: 11/14/2024, 7:07:50 PM
- + diff --git a/master/samples/wheel/category.html b/master/samples/wheel/category.html index 22919e56..241e593b 100644 --- a/master/samples/wheel/category.html +++ b/master/samples/wheel/category.html @@ -7,7 +7,7 @@ - + @@ -169,7 +169,7 @@ type: 'linear' }, }; -Object.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));
Last Updated: 11/14/2024, 7:07:28 PM
Last Updated: 11/14/2024, 7:07:50 PM
- + diff --git a/master/samples/wheel/click-zoom.html b/master/samples/wheel/click-zoom.html index eb023ba8..14badaea 100644 --- a/master/samples/wheel/click-zoom.html +++ b/master/samples/wheel/click-zoom.html @@ -7,7 +7,7 @@ - + @@ -192,7 +192,7 @@ ctx.restore(); } } -};

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Fringilla ut morbi tincidunt augue interdum velit euismod. Elit pellentesque habitant morbi tristique senectus et netus. Consectetur adipiscing elit pellentesque habitant morbi. Id faucibus nisl tincidunt eget nullam non nisi est sit. Blandit turpis cursus in hac habitasse. Vulputate eu scelerisque felis imperdiet proin fermentum leo vel. Ornare massa eget egestas purus. A diam sollicitudin tempor id eu nisl nunc. Augue mauris augue neque gravida in fermentum et sollicitudin. Dolor purus non enim praesent elementum facilisis leo vel fringilla. Habitant morbi tristique senectus et netus et malesuada. Nulla pharetra diam sit amet nisl suscipit adipiscing bibendum est. Gravida dictum fusce ut placerat orci nulla pellentesque.

Semper viverra nam libero justo laoreet sit. Pretium vulputate sapien nec sagittis aliquam malesuada bibendum arcu vitae. Risus ultricies tristique nulla aliquet enim tortor at auctor urna. Consequat semper viverra nam libero justo laoreet sit amet. Magna ac placerat vestibulum lectus mauris ultrices eros. Dolor purus non enim praesent elementum facilisis leo vel. Enim eu turpis egestas pretium aenean pharetra. Vitae purus faucibus ornare suspendisse sed nisi lacus. Senectus et netus et malesuada fames. Nec feugiat in fermentum posuere urna nec tincidunt praesent. Accumsan lacus vel facilisis volutpat. Lectus quam id leo in vitae turpis massa. Cras sed felis eget velit aliquet. Volutpat maecenas volutpat blandit aliquam.

Volutpat lacus laoreet non curabitur. Diam donec adipiscing tristique risus. Fusce id velit ut tortor pretium viverra suspendisse. Dui ut ornare lectus sit amet est. Pharetra sit amet aliquam id. Porttitor massa id neque aliquam vestibulum morbi blandit. Viverra adipiscing at in tellus integer feugiat scelerisque varius morbi. Quam elementum pulvinar etiam non quam. Congue quisque egestas diam in arcu cursus euismod quis. Dictum fusce ut placerat orci nulla pellentesque. Ut placerat orci nulla pellentesque dignissim enim sit amet. Sagittis id consectetur purus ut faucibus pulvinar elementum integer. Dui ut ornare lectus sit amet est.

Ut tortor pretium viverra suspendisse potenti nullam ac tortor. Mauris a diam maecenas sed enim. Tellus in hac habitasse platea dictumst vestibulum rhoncus. Cras sed felis eget velit aliquet. Purus viverra accumsan in nisl nisi. Sed risus ultricies tristique nulla aliquet enim tortor at. Integer quis auctor elit sed vulputate mi sit amet mauris. Adipiscing elit duis tristique sollicitudin nibh sit amet commodo. Risus feugiat in ante metus dictum at. Posuere urna nec tincidunt praesent semper. Auctor elit sed vulputate mi sit amet mauris commodo. Senectus et netus et malesuada fames ac turpis egestas integer. Varius morbi enim nunc faucibus a pellentesque. Sed felis eget velit aliquet sagittis id. Ac auctor augue mauris augue neque gravida. Etiam erat velit scelerisque in dictum non consectetur a erat.

Tortor condimentum lacinia quis vel eros donec ac. Phasellus vestibulum lorem sed risus ultricies tristique. Vitae tortor condimentum lacinia quis vel eros donec. Morbi tempus iaculis urna id volutpat lacus laoreet non curabitur. Ut pharetra sit amet aliquam id diam. Eu non diam phasellus vestibulum lorem. Pharetra pharetra massa massa ultricies mi. Donec ultrices tincidunt arcu non. Sagittis orci a scelerisque purus semper eget duis. In iaculis nunc sed augue lacus viverra. Vitae proin sagittis nisl rhoncus mattis rhoncus urna neque. Consequat mauris nunc congue nisi vitae suscipit tellus mauris a. Massa placerat duis ultricies lacus sed turpis tincidunt id. Sit amet tellus cras adipiscing enim eu turpis. Amet porttitor eget dolor morbi non arcu risus quis varius. Potenti nullam ac tortor vitae purus.

Last Updated: 11/14/2024, 7:07:28 PM

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Fringilla ut morbi tincidunt augue interdum velit euismod. Elit pellentesque habitant morbi tristique senectus et netus. Consectetur adipiscing elit pellentesque habitant morbi. Id faucibus nisl tincidunt eget nullam non nisi est sit. Blandit turpis cursus in hac habitasse. Vulputate eu scelerisque felis imperdiet proin fermentum leo vel. Ornare massa eget egestas purus. A diam sollicitudin tempor id eu nisl nunc. Augue mauris augue neque gravida in fermentum et sollicitudin. Dolor purus non enim praesent elementum facilisis leo vel fringilla. Habitant morbi tristique senectus et netus et malesuada. Nulla pharetra diam sit amet nisl suscipit adipiscing bibendum est. Gravida dictum fusce ut placerat orci nulla pellentesque.

Semper viverra nam libero justo laoreet sit. Pretium vulputate sapien nec sagittis aliquam malesuada bibendum arcu vitae. Risus ultricies tristique nulla aliquet enim tortor at auctor urna. Consequat semper viverra nam libero justo laoreet sit amet. Magna ac placerat vestibulum lectus mauris ultrices eros. Dolor purus non enim praesent elementum facilisis leo vel. Enim eu turpis egestas pretium aenean pharetra. Vitae purus faucibus ornare suspendisse sed nisi lacus. Senectus et netus et malesuada fames. Nec feugiat in fermentum posuere urna nec tincidunt praesent. Accumsan lacus vel facilisis volutpat. Lectus quam id leo in vitae turpis massa. Cras sed felis eget velit aliquet. Volutpat maecenas volutpat blandit aliquam.

Volutpat lacus laoreet non curabitur. Diam donec adipiscing tristique risus. Fusce id velit ut tortor pretium viverra suspendisse. Dui ut ornare lectus sit amet est. Pharetra sit amet aliquam id. Porttitor massa id neque aliquam vestibulum morbi blandit. Viverra adipiscing at in tellus integer feugiat scelerisque varius morbi. Quam elementum pulvinar etiam non quam. Congue quisque egestas diam in arcu cursus euismod quis. Dictum fusce ut placerat orci nulla pellentesque. Ut placerat orci nulla pellentesque dignissim enim sit amet. Sagittis id consectetur purus ut faucibus pulvinar elementum integer. Dui ut ornare lectus sit amet est.

Ut tortor pretium viverra suspendisse potenti nullam ac tortor. Mauris a diam maecenas sed enim. Tellus in hac habitasse platea dictumst vestibulum rhoncus. Cras sed felis eget velit aliquet. Purus viverra accumsan in nisl nisi. Sed risus ultricies tristique nulla aliquet enim tortor at. Integer quis auctor elit sed vulputate mi sit amet mauris. Adipiscing elit duis tristique sollicitudin nibh sit amet commodo. Risus feugiat in ante metus dictum at. Posuere urna nec tincidunt praesent semper. Auctor elit sed vulputate mi sit amet mauris commodo. Senectus et netus et malesuada fames ac turpis egestas integer. Varius morbi enim nunc faucibus a pellentesque. Sed felis eget velit aliquet sagittis id. Ac auctor augue mauris augue neque gravida. Etiam erat velit scelerisque in dictum non consectetur a erat.

Tortor condimentum lacinia quis vel eros donec ac. Phasellus vestibulum lorem sed risus ultricies tristique. Vitae tortor condimentum lacinia quis vel eros donec. Morbi tempus iaculis urna id volutpat lacus laoreet non curabitur. Ut pharetra sit amet aliquam id diam. Eu non diam phasellus vestibulum lorem. Pharetra pharetra massa massa ultricies mi. Donec ultrices tincidunt arcu non. Sagittis orci a scelerisque purus semper eget duis. In iaculis nunc sed augue lacus viverra. Vitae proin sagittis nisl rhoncus mattis rhoncus urna neque. Consequat mauris nunc congue nisi vitae suscipit tellus mauris a. Massa placerat duis ultricies lacus sed turpis tincidunt id. Sit amet tellus cras adipiscing enim eu turpis. Amet porttitor eget dolor morbi non arcu risus quis varius. Potenti nullam ac tortor vitae purus.

Last Updated: 11/14/2024, 7:07:50 PM
- + diff --git a/master/samples/wheel/log.html b/master/samples/wheel/log.html index 3371b29a..275d7604 100644 --- a/master/samples/wheel/log.html +++ b/master/samples/wheel/log.html @@ -7,7 +7,7 @@ - + @@ -337,7 +337,7 @@ y: -3.596e1 }] }] -};
Last Updated: 11/14/2024, 7:07:28 PM
Last Updated: 11/14/2024, 7:07:50 PM
- + diff --git a/master/samples/wheel/over-scale-mode.html b/master/samples/wheel/over-scale-mode.html index 1c7d2791..7e20f31c 100644 --- a/master/samples/wheel/over-scale-mode.html +++ b/master/samples/wheel/over-scale-mode.html @@ -7,7 +7,7 @@ - + @@ -191,7 +191,7 @@ position: 'right', }, }; -Object.keys(scales).forEach(scale => Object.assign(scales[scale], scaleOpts));
Last Updated: 11/14/2024, 7:07:28 PM
Last Updated: 11/14/2024, 7:07:50 PM
- + diff --git a/master/samples/wheel/time.html b/master/samples/wheel/time.html index bd43d814..7437694c 100644 --- a/master/samples/wheel/time.html +++ b/master/samples/wheel/time.html @@ -7,7 +7,7 @@ - + @@ -195,7 +195,7 @@ text: (ctx) => ctx.scale.axis + ' axis', } }, -};
Last Updated: 11/14/2024, 7:07:28 PM
Last Updated: 11/14/2024, 7:07:50 PM
- +